animeic 2 years ago
parent
commit
3db5900925
4 changed files with 1 additions and 12 deletions
  1. 0 3
      boxcost/api/bill-produce.go
  2. 0 4
      boxcost/api/bill-product.go
  3. 0 4
      boxcost/api/bill.go
  4. 1 1
      boxcost/api/supplier.go

+ 0 - 3
boxcost/api/bill-produce.go

@@ -216,9 +216,6 @@ func UpdateProduceBill(c *gin.Context, apictx *ApiSession) (interface{}, error)
 
 		}
 	}
-	if bill.IsSend {
-		bill.SendTime = time.Now()
-	}
 	// 计算结算价格
 	if bill.Status == "complete" {
 		bill.CompleteTime = time.Now()

+ 0 - 4
boxcost/api/bill-product.go

@@ -216,10 +216,6 @@ func UpdateProductBill(c *gin.Context, apictx *ApiSession) (interface{}, error)
 
 		}
 	}
-	if bill.IsSend {
-		bill.SendTime = time.Now()
-	}
-
 	// 计算结算价格
 	if bill.Status == "complete" {
 		bill.CompleteTime = time.Now()

+ 0 - 4
boxcost/api/bill.go

@@ -312,10 +312,6 @@ func UpdateBill(c *gin.Context, apictx *ApiSession) (interface{}, error) {
 
 		}
 	}
-	if bill.IsSend {
-		bill.SendTime = time.Now()
-	}
-
 	if bill.Status == "complete" {
 		bill.CompleteTime = time.Now()
 	}

+ 1 - 1
boxcost/api/supplier.go

@@ -173,7 +173,7 @@ func SupplierBillList(c *gin.Context, apictx *ApiSession) (interface{}, error) {
 		Page:        page,
 		Size:        size,
 		Query:       query,
-		Sort:        repo.Map{"sendTime": 1},
+		Sort:        repo.Map{"sendTime": -1},
 	})
 }