chore: release server-v1.0.76
Deploy Server / release-deploy-server (push) Successful in 1m30s

修复编辑入库单草稿后合计金额被清零(Update 漏累加 total)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YZ4DskSRKsSiheQonFtQvx
This commit is contained in:
wangjia
2026-06-22 20:15:38 +08:00
parent 2fac1aff66
commit 08f9e20010
4 changed files with 46 additions and 0 deletions
+1
View File
@@ -172,6 +172,7 @@ func (h *StockInHandler) Update(c *gin.Context) {
it.ProductID = prod.ID
it.ProductCode = prod.Code
it.TotalPrice = it.Quantity * it.UnitPrice
total += it.TotalPrice
}
updates := map[string]interface{}{
"warehouse_id": req.WarehouseID,