部署
This commit is contained in:
@@ -149,13 +149,13 @@ func (a *accounting) Edit(ctx context.Context, args ArgsAccountingEdit) (err err
|
||||
}
|
||||
|
||||
type InvoiceProductItem struct {
|
||||
FactoryId int64 `json:"factoryId"`
|
||||
FactoryName string `json:"factoryName"`
|
||||
CustomsSerial string `json:"customsSerial"`
|
||||
CustomsName string `json:"customsName"`
|
||||
CustomsInvoiceUnit string `json:"customsInvoiceUnit"`
|
||||
InvoiceCount decimal.Decimal `json:"invoiceCount"`
|
||||
Amount decimal.Decimal `json:"amount"`
|
||||
FactoryId int64 `json:"factoryId" label:"工厂id"` // 工厂id
|
||||
FactoryName string `json:"factoryName" label:"工厂名称"` // 工厂名称
|
||||
CustomsSerial string `json:"customsSerial" label:"hs编码"` // hs编码
|
||||
CustomsName string `json:"customsName" label:"报关名称"` // 报关名称
|
||||
CustomsInvoiceUnit string `json:"customsInvoiceUnit" label:"开票单位"` // 开票单位
|
||||
InvoiceCount decimal.Decimal `json:"invoiceCount" label:"开票数量"` // 开票数量
|
||||
Amount decimal.Decimal `json:"amount" label:"金额"` // 金额
|
||||
}
|
||||
|
||||
// InvoiceProducts @TITLE 开票产品资料
|
||||
@@ -168,3 +168,19 @@ func (a *accounting) InvoiceProducts(ctx context.Context, accountingId int64) (r
|
||||
return
|
||||
|
||||
}
|
||||
|
||||
type ReplyAccountFactoryItem struct {
|
||||
FactoryId int64 // 工厂id
|
||||
FactoryName string // 工厂名称
|
||||
}
|
||||
|
||||
// Factories @TITLE 做账工厂
|
||||
func (a *accounting) Factories(ctx context.Context, accountingId int64) (reply []ReplyAccountFactoryItem, err error) {
|
||||
xClient, err := client.GetClient(a)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
err = xClient.Call(ctx, "Factories", accountingId, &reply)
|
||||
return
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user