feat(payment): 添加付款用途常量定义并更新数据结构
- 定义 PaymentPurpose 类型和相关常量值 - 在 ERP 服务中添加 Payment 模块引用 - 更新 Payment 结构体中的 PaymentPurpose 字段类型 - 将字符串类型替换为常量类型以增强类型安全 - 添加采购付款单、费用报销和其他支出的用途常量
This commit is contained in:
@@ -13,6 +13,7 @@ type Erp struct {
|
|||||||
Template template
|
Template template
|
||||||
Accounting accounting
|
Accounting accounting
|
||||||
Payable payable
|
Payable payable
|
||||||
|
Payment payment
|
||||||
Receivable receivable
|
Receivable receivable
|
||||||
Receipt receipt
|
Receipt receipt
|
||||||
Expense expense
|
Expense expense
|
||||||
|
|||||||
@@ -79,6 +79,14 @@ const (
|
|||||||
PaymentTypeRequest PaymentType = "FKDLX11_SYS" // 报销付款单
|
PaymentTypeRequest PaymentType = "FKDLX11_SYS" // 报销付款单
|
||||||
)
|
)
|
||||||
|
|
||||||
|
type PaymentPurpose = string
|
||||||
|
|
||||||
|
const (
|
||||||
|
PaymentPurposePurchase PaymentPurpose = "SFKYT08_SYS" // 采购付款单
|
||||||
|
PaymentPurposeExpense PaymentPurpose = "SFKYT009" // 费用报销
|
||||||
|
PaymentPurposeOther PaymentPurpose = "SFKYT12_SYS" // 其他支出
|
||||||
|
)
|
||||||
|
|
||||||
type ReceiptType = string
|
type ReceiptType = string
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -32,8 +32,8 @@ type PaymentCostItem struct {
|
|||||||
InvoiceSerial string // 发票号
|
InvoiceSerial string // 发票号
|
||||||
DepartmentNumber string // 核算部门
|
DepartmentNumber string // 核算部门
|
||||||
//SettlementMethod string // 结算方式
|
//SettlementMethod string // 结算方式
|
||||||
//PaymentPurpose string // 付款用途
|
PaymentPurpose constant.PaymentPurpose // 付款用途
|
||||||
ExpenseItem string // 费用项目
|
ExpenseItem string // 费用项目
|
||||||
}
|
}
|
||||||
|
|
||||||
// Save @TITLE 保存付款单
|
// Save @TITLE 保存付款单
|
||||||
|
|||||||
Reference in New Issue
Block a user