feat(erp): 添加会计模块中的运费和佣金字段
- 在 ReplyAccountingInfo 结构体中添加 DomesticShippingCost、ForeignShippingCost 和 ForeignCommission 字段 - 在 AccountingEdit 结构体中添加 DomesticShippingCost、ForeignShippingCost 和 ForeignCommission 字段 - 更新结构体字段对齐格式以提高代码可读性
This commit is contained in:
@@ -118,31 +118,34 @@ func (a *accounting) Gen(ctx context.Context, args ArgsAccountingGen) (err error
|
||||
}
|
||||
|
||||
type ReplyAccountingInfo struct {
|
||||
Id int64 `json:"id"`
|
||||
CustomId int64 `json:"customId"`
|
||||
CustomShortName string `json:"customShortName"`
|
||||
CustomName string `json:"customName"`
|
||||
ShipmentId int64 `json:"shipmentId"`
|
||||
InvoiceDate *time.Time `json:"invoiceDate"`
|
||||
InvoiceDateEnd *time.Time `json:"invoiceDateEnd"`
|
||||
InvoiceSerial string `json:"invoiceSerial"`
|
||||
AccountingSerial string `json:"accountingSerial"`
|
||||
Currency string `json:"currency"`
|
||||
CurrencyName string `json:"currencyName"`
|
||||
CurrencySymbol string `json:"currencySymbol"`
|
||||
CurrencyRate decimal.Decimal `json:"currencyRate"`
|
||||
Remark string `json:"remark"`
|
||||
WorkflowId int64 `json:"workflowId"`
|
||||
WorkflowStatus int64 `json:"workflowStatus"`
|
||||
WorkflowReason string `json:"workflowReason"`
|
||||
BanFlag int64 `json:"banFlag"`
|
||||
CreatedStaffId int64 `json:"createdStaffId"`
|
||||
CreatedAt *time.Time `json:"createdAt"`
|
||||
TotalBoxCount int64 `json:"totalBoxCount"`
|
||||
TotalAmount decimal.Decimal `json:"totalAmount"`
|
||||
TotalVolume decimal.Decimal `json:"totalVolume"`
|
||||
TotalGrossWeight decimal.Decimal `json:"totalGrossWeight"`
|
||||
TotalNetWeight decimal.Decimal `json:"totalNetWeight"`
|
||||
Id int64 `json:"id"`
|
||||
CustomId int64 `json:"customId"`
|
||||
CustomShortName string `json:"customShortName"`
|
||||
CustomName string `json:"customName"`
|
||||
ShipmentId int64 `json:"shipmentId"`
|
||||
InvoiceDate *time.Time `json:"invoiceDate"`
|
||||
InvoiceDateEnd *time.Time `json:"invoiceDateEnd"`
|
||||
InvoiceSerial string `json:"invoiceSerial"`
|
||||
AccountingSerial string `json:"accountingSerial"`
|
||||
Currency string `json:"currency"`
|
||||
CurrencyName string `json:"currencyName"`
|
||||
CurrencySymbol string `json:"currencySymbol"`
|
||||
CurrencyRate decimal.Decimal `json:"currencyRate"`
|
||||
Remark string `json:"remark"`
|
||||
DomesticShippingCost decimal.Decimal `json:"domesticShippingCost"`
|
||||
ForeignShippingCost decimal.Decimal `json:"foreignShippingCost"`
|
||||
ForeignCommission decimal.Decimal `json:"foreignCommission"`
|
||||
WorkflowId int64 `json:"workflowId"`
|
||||
WorkflowStatus int64 `json:"workflowStatus"`
|
||||
WorkflowReason string `json:"workflowReason"`
|
||||
BanFlag int64 `json:"banFlag"`
|
||||
CreatedStaffId int64 `json:"createdStaffId"`
|
||||
CreatedAt *time.Time `json:"createdAt"`
|
||||
TotalBoxCount int64 `json:"totalBoxCount"`
|
||||
TotalAmount decimal.Decimal `json:"totalAmount"`
|
||||
TotalVolume decimal.Decimal `json:"totalVolume"`
|
||||
TotalGrossWeight decimal.Decimal `json:"totalGrossWeight"`
|
||||
TotalNetWeight decimal.Decimal `json:"totalNetWeight"`
|
||||
}
|
||||
|
||||
// Info @TITLE 详情
|
||||
@@ -161,14 +164,17 @@ type ArgsAccountingEdit struct {
|
||||
}
|
||||
|
||||
type AccountingEdit struct {
|
||||
InvoiceDate *time.Time // 发票日期
|
||||
InvoiceDateEnd *time.Time // 开票期限
|
||||
AccountingSerial string // 做账合同号
|
||||
Remark string // 备注
|
||||
Currency string // 币种
|
||||
CurrencyName string // 币种名称
|
||||
CurrencySymbol string // 币种符号
|
||||
CurrencyRate decimal.Decimal // 币种汇率
|
||||
InvoiceDate *time.Time // 发票日期
|
||||
InvoiceDateEnd *time.Time // 开票期限
|
||||
AccountingSerial string // 做账合同号
|
||||
Remark string // 备注
|
||||
Currency string // 币种
|
||||
CurrencyName string // 币种名称
|
||||
CurrencySymbol string // 币种符号
|
||||
CurrencyRate decimal.Decimal // 币种汇率
|
||||
DomesticShippingCost decimal.Decimal // 国内运费
|
||||
ForeignShippingCost decimal.Decimal // 国外运费
|
||||
ForeignCommission decimal.Decimal // 国外佣金
|
||||
}
|
||||
|
||||
// Edit @TITLE 编辑
|
||||
|
||||
Reference in New Issue
Block a user