diff --git a/erp/receipt.go b/erp/receipt.go index b25cae6..75295da 100644 --- a/erp/receipt.go +++ b/erp/receipt.go @@ -41,6 +41,7 @@ type ReceiptItem struct { CustomName string `json:"customName"` PayCustomId int64 `json:"payCustomId"` PayCustomName string `json:"payCustomName"` + PayCompany string `json:"payCompany"` ReceiptDate time.Time `json:"receiptDate"` Currency string `json:"currency"` CurrencyName string `json:"currencyName"` @@ -81,6 +82,7 @@ type ReceiptAdd struct { CurrencySymbol string // 币种符号 CurrencyRate decimal.Decimal // 币种汇率 PayCustomId int64 // 付款客户id + PayCompany string // 付款公司 BankAccount string // 结汇银行账号 BankName string // 结汇银行 EntryAmount decimal.Decimal // 外币入账金额 @@ -111,6 +113,7 @@ type ReplyReceiptInfo struct { CustomName string `json:"customName"` PayCustomId int64 `json:"payCustomId"` PayCustomName string `json:"payCustomName"` + PayCompany string `json:"payCompany"` BankAccount string `json:"bankAccount"` BankName string `json:"bankName"` EntryAmount decimal.Decimal `json:"entryAmount"` diff --git a/erp/receivable.go b/erp/receivable.go index e554c87..b68180c 100644 --- a/erp/receivable.go +++ b/erp/receivable.go @@ -87,7 +87,8 @@ type ReceivableProductItem struct { PiSerial string `json:"piSerial"` Name string `json:"name"` Serial string `json:"serial"` - ReceivableCount int64 `json:"receivableCount"` + ReceivableCount decimal.Decimal `json:"receivableCount"` + InvoiceUnit string `json:"invoiceUnit"` AddTaxRate decimal.Decimal `json:"addTaxRate"` UnitPrice decimal.Decimal `json:"unitPrice"` ExTaxUnitPrice decimal.Decimal `json:"exTaxUnitPrice"` diff --git a/ik3cloud/receivable.go b/ik3cloud/receivable.go index a06307e..d367103 100644 --- a/ik3cloud/receivable.go +++ b/ik3cloud/receivable.go @@ -29,7 +29,7 @@ type ArgsReceivableSave struct { type ReceivableProductItem struct { Number string // 商品编码 Name string // 商品名称 - Count int64 // 数量 + Count decimal.Decimal // 数量 UnitPrice decimal.Decimal // 含税单价 AddTaxRate decimal.Decimal // 税率 ExTaxUnitPrice decimal.Decimal // 不含税单价