animeic 2 жил өмнө
parent
commit
9d35a159e7
1 өөрчлөгдсөн 3 нэмэгдсэн , 0 устгасан
  1. 3 0
      boxcost/api/bill.go

+ 3 - 0
boxcost/api/bill.go

@@ -315,6 +315,9 @@ func UpdateBill(c *gin.Context, apictx *ApiSession) (interface{}, error) {
 	if bill.Status == "complete" {
 		bill.CompleteTime = time.Now()
 	}
+	if bill.Remark == "" {
+		bill.Remark = " "
+	}
 
 	bill.UpdateTime = time.Now()
 	return repo.RepoUpdateSetDoc(apictx.CreateRepoCtx(), repo.CollectionBillPurchase, bill.Id.Hex(), &bill)