animeic %!s(int64=2) %!d(string=hai) anos
pai
achega
9d35a159e7
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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)