feat(erp): 添加报销人字段并调整付款单结构
- 在 expense.go 的 Expense 结构体中添加 ExpenseStaffId 字段 - 在 expense.go 的 Add 和 Update 结构体中同步添加 ExpenseStaffId 字段 - 在 payment.go 中移除 SettlementMethod 和 PaymentPurpose 字段 - 在 payment.go 中保留 ExpenseItem 字段并调整其位置
This commit is contained in:
@@ -39,6 +39,7 @@ type ExpenseItem struct {
|
||||
WorkflowId int64 `json:"workflowId"`
|
||||
WorkflowStatus int64 `json:"workflowStatus"`
|
||||
WorkflowReason string `json:"workflowReason"`
|
||||
ExpenseStaffId int64 `json:"expenseStaffId"`
|
||||
CreatedStaffId int64 `json:"createdStaffId"`
|
||||
CreatedAt *time.Time `json:"createdAt"`
|
||||
UpdatedAt *time.Time `json:"updatedAt"`
|
||||
@@ -64,7 +65,7 @@ type ExpenseAdd struct {
|
||||
CurrencySymbol string // 币种符号
|
||||
CurrencyRate decimal.Decimal // 币种汇率
|
||||
Remarks string // 备注
|
||||
Amount decimal.Decimal // 金额
|
||||
ExpenseStaffId int64 // 报销人
|
||||
}
|
||||
|
||||
// Add @TITLE 添加
|
||||
@@ -89,6 +90,7 @@ type ReplyExpenseInfo struct {
|
||||
WorkflowId int64 `json:"workflowId"`
|
||||
WorkflowStatus int64 `json:"workflowStatus"`
|
||||
WorkflowReason string `json:"workflowReason"`
|
||||
ExpenseStaffId int64 `json:"expenseStaffId"`
|
||||
CreatedStaffId int64 `json:"createdStaffId"`
|
||||
CreatedAt *time.Time `json:"createdAt"`
|
||||
UpdatedAt *time.Time `json:"updatedAt"`
|
||||
|
||||
@@ -31,9 +31,9 @@ type PaymentCostItem struct {
|
||||
Date time.Time // 费用日期
|
||||
InvoiceSerial string // 发票号
|
||||
DepartmentNumber string // 核算部门
|
||||
SettlementMethod string // 结算方式
|
||||
PaymentPurpose string // 付款用途
|
||||
ExpenseItem string // 费用项目
|
||||
//SettlementMethod string // 结算方式
|
||||
//PaymentPurpose string // 付款用途
|
||||
ExpenseItem string // 费用项目
|
||||
}
|
||||
|
||||
// Save @TITLE 保存付款单
|
||||
|
||||
Reference in New Issue
Block a user