diff --git a/erp/accounting.go b/erp/accounting.go index e0a8034..0985dd9 100644 --- a/erp/accounting.go +++ b/erp/accounting.go @@ -48,6 +48,7 @@ type AccountingItem struct { WorkflowStatus int64 `json:"workflowStatus"` WorkflowReason string `json:"workflowReason"` BanFlag int64 `json:"banFlag"` + GenPayableFlag bool `json:"genPayableFlag"` TotalBoxCount int64 `json:"totalBoxCount"` TotalAmount decimal.Decimal `json:"totalAmount"` TotalVolume decimal.Decimal `json:"totalVolume"` diff --git a/erp/constant.go b/erp/constant.go index 13db1bd..74afabd 100644 --- a/erp/constant.go +++ b/erp/constant.go @@ -145,6 +145,8 @@ const ( OrderFieldExpenseCreatedAt OrderField = "createdAt" OrderFieldExpenseAmount OrderField = "amount" + + OrderFieldInvoiceSerial OrderField = "invoiceSerial" ) type OrderSort = string diff --git a/erp/payable.go b/erp/payable.go index f7c635b..0319068 100644 --- a/erp/payable.go +++ b/erp/payable.go @@ -39,6 +39,7 @@ type PayableItem struct { PayableSerial string `json:"payableSerial"` InvoiceSerial string `json:"invoiceSerial"` AccountingSerial string `json:"accountingSerial"` + BusinessDate *time.Time `json:"businessDate"` Amount decimal.Decimal `json:"amount"` Currency string `json:"currency"` CurrencyName string `json:"currencyName"` diff --git a/erp/receivable.go b/erp/receivable.go index 75f137a..65874e1 100644 --- a/erp/receivable.go +++ b/erp/receivable.go @@ -39,6 +39,7 @@ type ReceivableCount struct { type ReceivableItem struct { Id int64 `json:"id"` ReceivableSerial string `json:"receivableSerial"` + BusinessDate *time.Time `json:"businessDate"` CustomName string `json:"customName"` InvoiceSerial string `json:"invoiceSerial"` ReceivableAmount decimal.Decimal `json:"receivableAmount"`