feat(erp): 添加应付账款和应收账款业务日期字段
- 在Accounting结构体中新增GenPayableFlag字段用于标识是否生成应付账款 - 在常量定义中新增InvoiceSerial排序字段支持发票序列号排序 - 在Payable结构体中新增BusinessDate字段记录业务日期 - 在ReceivableItem结构体中新增BusinessDate字段记录业务日期 - 完善了财务模块的数据结构以支持更精确的业务日期管理
This commit is contained in:
@@ -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"`
|
||||
|
||||
@@ -145,6 +145,8 @@ const (
|
||||
|
||||
OrderFieldExpenseCreatedAt OrderField = "createdAt"
|
||||
OrderFieldExpenseAmount OrderField = "amount"
|
||||
|
||||
OrderFieldInvoiceSerial OrderField = "invoiceSerial"
|
||||
)
|
||||
|
||||
type OrderSort = string
|
||||
|
||||
@@ -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"`
|
||||
|
||||
@@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user