From dec0da77e3537bcd71bb31067258194327da9bfa Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期五, 05 七月 2024 10:21:53 +0800 Subject: [PATCH] 操作明细增加当时库存数量供盘点操作用 --- models/operation_details.go | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/models/operation_details.go b/models/operation_details.go index c596a44..f51f399 100644 --- a/models/operation_details.go +++ b/models/operation_details.go @@ -17,7 +17,8 @@ BaseOperationType constvar.BaseOperationType `json:"baseOperationType" gorm:"type:tinyint;not null;comment:鍩虹浣滀笟绫诲瀷"` //鍩虹浣滀笟绫诲瀷 ProductId string `json:"productId" gorm:"type:varchar(191);not null;comment:浜у搧id"` //浜у搧id //ProductName string `json:"productName" gorm:"type:varchar(255);not null;comment:浜у搧鍚嶇О"` //浜у搧鍚嶇О - Amount decimal.Decimal `json:"amount" gorm:"type:decimal(20,2);not null;comment:鏁伴噺"` //鏁伴噺 + Amount decimal.Decimal `json:"amount" gorm:"type:decimal(30,10);not null;comment:鏁伴噺"` //鏁伴噺 + StockAmount decimal.Decimal `json:"stockAmount" gorm:"type:decimal(30,10);"` //搴撳瓨鏁伴噺锛岀洏鐐规椂鐢� //Unit string `json:"unit" gorm:"type:varchar(31);comment:鍗曚綅"` //鍗曚綅 Product Material `json:"product" gorm:"foreignKey:ProductId;references:ID"` -- Gitblit v1.8.0