feat(erp): 更新费用成本结构以支持发票编号和到期日期
- 将费用类型字段拆分为类型编号和类型名称 - 在费用添加参数中新增发票编号字段 - 在请求成本项中增加发票编号、到期日期和期望付款日期 - 更新相关结构体字段以适应新的业务需求
This commit is contained in:
@@ -26,7 +26,8 @@ type CostItem struct {
|
||||
Id int64 `json:"id"`
|
||||
ExpenseId int64 `json:"expenseId"`
|
||||
Date time.Time `json:"date"`
|
||||
Type int64 `json:"type"`
|
||||
TypeNumber string `json:"typeNumber"`
|
||||
TypeName string `json:"typeName"`
|
||||
Value string `json:"value"`
|
||||
Amount decimal.Decimal `json:"amount"`
|
||||
DepartmentId int64 `json:"departmentId"`
|
||||
@@ -46,12 +47,14 @@ func (c *cost) List(ctx context.Context, args ArgsCostList) (reply ReplyCostList
|
||||
}
|
||||
|
||||
type ArgsCostAdd struct {
|
||||
ExpenseId int64 // 报销单ID
|
||||
Date time.Time // 费用日期
|
||||
Type int64 // 费用类型
|
||||
Value string // 费用名称
|
||||
Amount decimal.Decimal // 金额
|
||||
DepartmentId int64 // 部门
|
||||
ExpenseId int64 // 报销单ID
|
||||
Date time.Time // 费用日期
|
||||
TypeNumber string // 费用类型
|
||||
TypeName string // 费用类型名称
|
||||
Value string // 费用名称
|
||||
Amount decimal.Decimal // 金额
|
||||
DepartmentId int64 // 部门
|
||||
InvoiceSerial string // 发票编号
|
||||
}
|
||||
|
||||
// Add @TITLE 添加
|
||||
|
||||
@@ -23,13 +23,18 @@ type ReplyCostList struct {
|
||||
Total int64 `json:"total"`
|
||||
}
|
||||
type CostItem struct {
|
||||
Id int64 `json:"id"`
|
||||
RequestId int64 `json:"requestId"`
|
||||
Amount decimal.Decimal `json:"amount"`
|
||||
DepartmentId int64 `json:"departmentId"`
|
||||
Remarks string `json:"remarks"`
|
||||
CreatedAt *time.Time `json:"createdAt"`
|
||||
UpdatedAt *time.Time `json:"updatedAt"`
|
||||
Id int64 `json:"id"`
|
||||
RequestId int64 `json:"requestId"`
|
||||
TypeNumber string `json:"typeNumber"`
|
||||
TypeName string `json:"typeName"`
|
||||
Amount decimal.Decimal `json:"amount"`
|
||||
DepartmentId int64 `json:"departmentId"`
|
||||
InvoiceSerial string `json:"invoiceSerial"`
|
||||
Remarks string `json:"remarks"`
|
||||
DueDate *time.Time `json:"dueDate"`
|
||||
ExpectedPayDate *time.Time `json:"expectedPayDate"`
|
||||
CreatedAt *time.Time `json:"createdAt"`
|
||||
UpdatedAt *time.Time `json:"updatedAt"`
|
||||
}
|
||||
|
||||
// List @TITLE 列表
|
||||
@@ -43,10 +48,15 @@ func (c *cost) List(ctx context.Context, args ArgsCostList) (reply ReplyCostList
|
||||
}
|
||||
|
||||
type ArgsCostAdd struct {
|
||||
RequestId int64 // 报销单ID
|
||||
Amount decimal.Decimal // 金额
|
||||
DepartmentId int64 // 部门
|
||||
Remarks string // 备注
|
||||
RequestId int64 // 报销单ID
|
||||
TypeNumber string // 费用类型
|
||||
TypeName string // 费用类型名称
|
||||
Amount decimal.Decimal // 金额
|
||||
DepartmentId int64 // 部门
|
||||
Remarks string // 备注
|
||||
InvoiceSerial string // 发票号
|
||||
DueDate *time.Time // 到期日期
|
||||
ExpectedPayDate *time.Time // 期望付款日期
|
||||
}
|
||||
|
||||
// Add @TITLE 添加
|
||||
|
||||
Reference in New Issue
Block a user