Files
service/ik3cloud/constant/constant.go
kanade eb4c3e3241 feat(ik3cloud): 新增收款单功能并完善作废接口
- 新增收款单常量定义及映射配置
- 新增收款单类型枚举定义
- 新增收款单服务模块,支持保存和作废操作
- 在应付、应收、付款模块中补充作废接口实现
- 定义收款单保存参数结构体及费用明细结构体
2025-12-19 16:31:29 +08:00

94 lines
3.2 KiB
Go

package constant
type Action = string // 方法
const (
ActionDepartment Action = "BD_Department" // 部门
ActionStaff Action = "BD_Empinfo" // 员工
ActionStaffPosition Action = "BD_NEWSTAFF" // 职位
ActionOperatorType Action = "BD_OPERATOR" // 业务员类型
ActionPosition Action = "HR_ORG_HRPOST" // 职位
ActionFactory Action = "BD_Supplier" // 工厂
ActionContact Action = "BD_CommonContact" // 联系人
ActionCustom Action = "BD_Customer" // 客户
ActionReceivable Action = "AR_receivable" // 应收单
ActionPayable Action = "AP_Payable" // 应付单
ActionProduct Action = "BD_MATERIAL" // 物料
ActionCurrency Action = "BD_Currency" // 币种
ActionSettleType Action = "BD_SETTLETYPE" // 结算方式
ActionRecPayPurpose Action = "CN_RECPAYPURPOSE" // 收付款用途
ActionExpense Action = "BD_Expense" // 费用项目
ActionPayment Action = "AP_PAYBILL" // 付款单
ActionInformation Action = "BOS_ASSISTANTDATA_DETAIL" // 辅助资料
ActionReceiptAction Action = "AR_RECEIVEBILL" // 收款单
)
var ActionIdField = map[Action]string{
ActionDepartment: "FDEPTID",
ActionStaff: "FID",
ActionStaffPosition: "FSTAFFID",
ActionOperatorType: "FOperatorId",
ActionPosition: "FPOSTID",
ActionFactory: "FSupplierId",
ActionContact: "FCONTACTID",
ActionCustom: "FCUSTID",
ActionReceivable: "FID",
ActionPayable: "FID",
ActionProduct: "FMATERIALID",
ActionCurrency: "",
ActionSettleType: "",
ActionRecPayPurpose: "",
ActionExpense: "",
ActionPayment: "FID",
ActionInformation: "FEntryID",
ActionReceiptAction: "FID",
}
var ActionNumberField = map[Action]string{
ActionDepartment: "FNumber",
ActionStaff: "FNumber",
ActionStaffPosition: "FNumber",
ActionOperatorType: "FNumber",
ActionPosition: "FNumber",
ActionFactory: "FNumber",
ActionContact: "FNumber",
ActionCustom: "FNumber",
ActionReceivable: "FBillNo",
ActionPayable: "FBillNo",
ActionProduct: "FNumber",
ActionCurrency: "FNumber",
ActionSettleType: "FNumber",
ActionRecPayPurpose: "FNumber",
ActionExpense: "FNumber",
ActionPayment: "FBillNo",
ActionInformation: "FNumber",
ActionReceiptAction: "FBillNo",
}
type OperatorType = string
const (
OperatorTypeXSY OperatorType = "XSY" // 业务员
OperatorTypeCGY OperatorType = "CGY" // 采购员
)
type PaymentType = string
const (
PaymentTypePurchase PaymentType = "FKDLX09_SYS" // 采购付款单
PaymentTypeCost PaymentType = "FKDLX10_SYS" // 费用付款单
PaymentTypeRequest PaymentType = "FKDLX11_SYS" // 报销付款单
)
type ReceiptType = string
const (
ReceiptTypeReceiptFx ReceiptType = "SKDLX08_SYS" // 收汇水单
ReceiptTypeReceipt ReceiptType = "SKDLX09_SYS" // 收款单
)
type InformationType = string
const (
InformationTypeInvoiceSerial InformationType = "FYP" // 采购付款单
)