animeic пре 2 година
родитељ
комит
758d71003e
1 измењених фајлова са 4 додато и 0 уклоњено
  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)
 }