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

出库售价(应收按售价) + 库存选择器分页上限修复 + seed 改为序列号模型

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 13:01:25 +08:00
parent 6c43800354
commit 3641f1cf16
9 changed files with 420 additions and 323 deletions
+4 -2
View File
@@ -110,8 +110,9 @@ func (h *StockOutHandler) Create(c *gin.Context) {
var total float64
for i := range req.Items {
req.Items[i].ShopID = shopID
// TotalPrice 记成本小计;应收(TotalAmount)按售价×数量
req.Items[i].TotalPrice = req.Items[i].Quantity * req.Items[i].UnitPrice
total += req.Items[i].TotalPrice
total += req.Items[i].Quantity * req.Items[i].SalePrice
}
req.TotalAmount = total
@@ -147,8 +148,9 @@ func (h *StockOutHandler) Update(c *gin.Context) {
for i := range req.Items {
req.Items[i].ShopID = shopID
req.Items[i].OrderID = order.ID
// TotalPrice 记成本小计;应收(TotalAmount)按售价×数量
req.Items[i].TotalPrice = req.Items[i].Quantity * req.Items[i].UnitPrice
total += req.Items[i].TotalPrice
total += req.Items[i].Quantity * req.Items[i].SalePrice
}
updates := map[string]interface{}{
"warehouse_id": req.WarehouseID,