animeic 2 éve
szülő
commit
758d71003e
1 módosított fájl, 4 hozzáadás és 0 törlés
  1. 4 0
      boxcost/api/bill-product.go

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

@@ -220,6 +220,10 @@ func UpdateProductBill(c *gin.Context, apictx *ApiSession) (interface{}, error)
 		bill.CompleteTime = time.Now()
 	}
 
+	if bill.Remark == "" {
+		bill.Remark = " "
+	}
+
 	bill.UpdateTime = time.Now()
 	return repo.RepoUpdateSetDoc(apictx.CreateRepoCtx(), repo.CollectionBillProduct, bill.Id.Hex(), &bill)
 }