feat(erp): 更新收据和应收账款数据结构
- 在收据结构中添加付款公司字段 - 将应收账款数量类型从int64改为decimal.Decimal - 在应收账款项目中添加发票单位字段 - 更新ik3cloud中应收账款产品项目的数量类型为decimal.Decimal
This commit is contained in:
@@ -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"`
|
||||
|
||||
@@ -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"`
|
||||
|
||||
@@ -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 // 不含税单价
|
||||
|
||||
Reference in New Issue
Block a user