feat(erp): 添加销售价格字段和收汇客户信息字段
- 在销售审核模块中为产品项目添加销售单价字段 - 在销售变更模块中为产品添加变更前后销售价格字段 - 在发货单相关结构体中添加收汇客户ID、名称和地址字段 - 在应收账款模块中添加收汇客户相关信息字段 - 统一在发货单主结构体和详情结构体中添加收汇客户字段 - 引入decimal库支持精确的价格计算和存储
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
|
||||
"git.kumo.work/shama/service/client"
|
||||
"git.kumo.work/shama/service/erp/bean"
|
||||
"github.com/shopspring/decimal"
|
||||
)
|
||||
|
||||
type audit struct {
|
||||
@@ -54,8 +55,9 @@ type ArgsAuditChange struct {
|
||||
Products []ChangeProductItem // 产品信息
|
||||
}
|
||||
type ChangeProductItem struct {
|
||||
Id int64 // 产品id
|
||||
SaleCount int64 // 销售数量
|
||||
Id int64 // 产品id
|
||||
SaleCount int64 // 销售数量
|
||||
SalePrice decimal.Decimal // 销售单价
|
||||
}
|
||||
|
||||
// Change @TITLE 编辑商品审核
|
||||
|
||||
@@ -2,8 +2,10 @@ package sale
|
||||
|
||||
import (
|
||||
"context"
|
||||
"git.kumo.work/shama/service/client"
|
||||
"time"
|
||||
|
||||
"git.kumo.work/shama/service/client"
|
||||
"github.com/shopspring/decimal"
|
||||
)
|
||||
|
||||
type change struct {
|
||||
@@ -14,12 +16,14 @@ type ArgsChangeAllSearch struct {
|
||||
WorkflowId int64 // 审核id
|
||||
}
|
||||
type ChangeProduct struct {
|
||||
Id int64 `json:"id"`
|
||||
SaleProductID int64 `json:"saleProductID"`
|
||||
BeforeSaleCount int64 `json:"beforeSaleCount"`
|
||||
SaleCount int64 `json:"saleCount"`
|
||||
CreatedAt *time.Time `json:"createdAt"`
|
||||
UpdatedAt *time.Time `json:"updatedAt"`
|
||||
Id int64 `json:"id"`
|
||||
SaleProductID int64 `json:"saleProductID"`
|
||||
BeforeSaleCount int64 `json:"beforeSaleCount"`
|
||||
SaleCount int64 `json:"saleCount"`
|
||||
BeforeSalePrice decimal.Decimal `json:"beforeSalePrice"`
|
||||
SalePrice decimal.Decimal `json:"salePrice"`
|
||||
CreatedAt *time.Time `json:"createdAt"`
|
||||
UpdatedAt *time.Time `json:"updatedAt"`
|
||||
}
|
||||
|
||||
// All @TITLE 获取产品
|
||||
|
||||
Reference in New Issue
Block a user