animeic 2 năm trước cách đây
mục cha
commit
758d71003e
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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)
 }