- 将 OrderFieldReceiptIk3cloudUpdatedAt 的值从 "ik3cloudUpdatedAt" 修正为 "ik3CloudUpdatedAt"
194 lines
8.0 KiB
Go
194 lines
8.0 KiB
Go
package erp
|
|
|
|
type BusinessAuditType = string // 业务审核类型
|
|
const (
|
|
BusinessAuditTypeSaleAudit BusinessAuditType = "saleAudit" // 销售合同审核
|
|
BusinessAuditTypeSaleAuditClose BusinessAuditType = "saleAuditClose" // 销售合同关单审核
|
|
BusinessAuditTypeSaleAppendAudit BusinessAuditType = "saleAuditAppend" // 销售合同追加商品
|
|
BusinessAuditTypeSaleChangeAudit BusinessAuditType = "saleAuditChange" // 销售合同修改产品
|
|
BusinessAuditTypeSaleBenefitAudit BusinessAuditType = "saleAuditBenefit" // 销售合同修改效益测算
|
|
BusinessAuditTypePurchaseAudit BusinessAuditType = "purchaseAudit" // 采购合同审核
|
|
BusinessAuditTypeShipmentAudit BusinessAuditType = "shipmentAudit" // 订舱单审核
|
|
BusinessAuditTypeShipmentModifyAudit BusinessAuditType = "shipmentModifyAudit" // 订舱单修改单审核
|
|
BusinessAuditTypeAccountingAudit BusinessAuditType = "accountingAudit" // 做账合同审核
|
|
BusinessAuditTypeAccountingAuditV2 BusinessAuditType = "accountingAuditV2" // 做账合同审核
|
|
BusinessAuditTypeAccountingAppendCostAudit BusinessAuditType = "accountingAppendCostAudit" // 做账合同追加费用审核
|
|
BusinessAuditTypeExpense BusinessAuditType = "expenseAudit" // 报销单
|
|
BusinessAuditTypeRequest BusinessAuditType = "requestAudit" // 申请单
|
|
BusinessAuditTypePayment BusinessAuditType = "paymentAudit" // 申请单
|
|
)
|
|
|
|
var BusinessAuditTypeName = map[BusinessAuditType]string{
|
|
BusinessAuditTypeSaleAudit: "销售合同审核",
|
|
BusinessAuditTypeSaleAuditClose: "销售合同关单审核",
|
|
BusinessAuditTypeSaleAppendAudit: "销售合同追加商品审核",
|
|
BusinessAuditTypeSaleChangeAudit: "销售合同编辑产品审核",
|
|
BusinessAuditTypeSaleBenefitAudit: "销售合同修改效益测算",
|
|
BusinessAuditTypePurchaseAudit: "采购合同审核",
|
|
BusinessAuditTypeShipmentAudit: "订舱单审核",
|
|
BusinessAuditTypeShipmentModifyAudit: "订舱修改单审核",
|
|
BusinessAuditTypeAccountingAudit: "做账合同审核",
|
|
BusinessAuditTypeAccountingAuditV2: "做账合同审核",
|
|
BusinessAuditTypeAccountingAppendCostAudit: "做账费用追加审核",
|
|
BusinessAuditTypeExpense: "报销单审核",
|
|
BusinessAuditTypeRequest: "申请单审核",
|
|
BusinessAuditTypePayment: "付款单审核",
|
|
}
|
|
|
|
type BusinessType = string // 业务类型
|
|
const (
|
|
BusinessTypeExpense BusinessType = "expense" // 报销
|
|
BusinessTypeRequest BusinessType = "request" // 报销
|
|
)
|
|
|
|
var BusinessTypeName = map[BusinessType]string{
|
|
BusinessTypeExpense: "报销单",
|
|
BusinessTypeRequest: "申请单",
|
|
}
|
|
|
|
type AuditStatus = int64 // 审核状态
|
|
const (
|
|
AuditStatusNone AuditStatus = 1 // 待提交
|
|
AuditStatusIng AuditStatus = 2 // 审核中
|
|
AuditStatusAdopt AuditStatus = 3 // 审核通过
|
|
AuditStatusReject AuditStatus = 4 // 审核驳回
|
|
AuditStatusCancel AuditStatus = 5 // 审核撤回
|
|
)
|
|
|
|
type ProductMold = int64 // 产品类型
|
|
const (
|
|
ProductMoldSingle ProductMold = 1 // 单件
|
|
ProductMoldSuite ProductMold = 2 // 套件
|
|
)
|
|
|
|
type IsOpen = int64 // 开启状态
|
|
const (
|
|
IsOpenTrue IsOpen = 1 // 开启
|
|
IsOpenFalse IsOpen = 2 // 关闭
|
|
)
|
|
|
|
type ExportType = string // 导出类型
|
|
|
|
const (
|
|
ExportTypeSalePi = "salePi" // 销售pi导出
|
|
ExportTypeSaleBenefit = "saleBenefit" // 效益测算导出
|
|
ExportTypePurchase = "purchase" // 采购导出
|
|
ExportTypeShipment = "shipment" // 订舱导出
|
|
ExportTypeShipmentModify = "shipmentModify" // 订舱修改单导出
|
|
ExportTypeShipmentInfo = "shipmentInfo" // 出运明细导出
|
|
ExportTypeShipmentMixed = "shipmentMixed" // 订舱单混装导出
|
|
ExportTypeSerial = "serial" // 商检导出
|
|
ExportTypeCustoms = "customs" // 报关导出
|
|
ExportTypeExchangeSettlement = "exchangeSettlement" // 结汇导出
|
|
ExportTypeAccounting = "accounting" // 做账导出
|
|
ExportTypeAccountingFactory = "accountingFactory" // 做账工厂导出
|
|
ExportTypeAccountingV2 = "accountingV2" // 做账导出
|
|
ExportTypeAccountingFactoryV2 = "accountingFactoryV2" // 做账工厂导出
|
|
ExportTypePaymentList = "paymentList" // 采购付款单
|
|
ExportTypeRequestList = "requestList" // 费用申请单
|
|
ExportTypeExpense = "expense" // 费用报销单
|
|
ExportTypeExpenseList = "expenseList" // 费用报销单列表
|
|
)
|
|
|
|
type BanFlag = int64 // 出舱状态
|
|
const (
|
|
BanFlagDisabled BanFlag = 1 // 禁用
|
|
BanFlagEnabled BanFlag = 2 // 可用
|
|
)
|
|
|
|
type ExchangeSettlementType = int64 // 结汇单据类型
|
|
const (
|
|
ExchangeSettlementTypeMaster ExchangeSettlementType = 1 // 总票
|
|
ExchangeSettlementTypeSub ExchangeSettlementType = 2 // 分票
|
|
)
|
|
|
|
type Flag = int64 // 状态
|
|
const (
|
|
FlagTrue Flag = 1 // 是
|
|
FlagFalse Flag = 2 // 否
|
|
)
|
|
|
|
type DomesticFeeType = int64 // 国内扣费类型 1=外币 2=人民币
|
|
const (
|
|
DomesticFeeTypeForeign DomesticFeeType = 1 // 外币
|
|
DomesticFeeTypeRMB DomesticFeeType = 2 // 人民币
|
|
)
|
|
|
|
type Ik3cloudStatus = int64 // 金蝶推送状态
|
|
const (
|
|
Ik3cloudStatusNone Ik3cloudStatus = 1 // 未推送
|
|
Ik3cloudStatusIng Ik3cloudStatus = 2 // 推送中
|
|
Ik3cloudStatusSuccess Ik3cloudStatus = 3 // 推送成功
|
|
Ik3cloudStatusFail Ik3cloudStatus = 4 // 推送失败
|
|
)
|
|
|
|
type PaymentType = int64
|
|
|
|
const (
|
|
PaymentTypePurchase PaymentType = 1 // 采购付款单
|
|
PaymentTypeCost PaymentType = 2 // 费用付款单
|
|
)
|
|
|
|
type OrderItem struct {
|
|
Field OrderField
|
|
Sort string
|
|
}
|
|
|
|
type OrderField = string
|
|
|
|
const (
|
|
OrderFieldReceivableCreatedAt OrderField = "createdAt"
|
|
OrderFieldReceivableReceivedAmount OrderField = "receivedAmount"
|
|
OrderFieldReceivableReceivableAmount OrderField = "receivableAmount"
|
|
OrderFieldReceivableOutstandingAmount OrderField = "outstandingAmount"
|
|
|
|
OrderFieldReceiptReceiptSerial OrderField = "receiptSerial"
|
|
OrderFieldReceiptCreatedAt OrderField = "createdAt"
|
|
OrderFieldReceiptEntryAmount OrderField = "entryAmount"
|
|
OrderFieldReceiptReceivableFxAmount OrderField = "receivableFxAmount"
|
|
OrderFieldReceiptReceiptDate OrderField = "receiptDate"
|
|
OrderFieldReceiptPayCompany OrderField = "payCompany"
|
|
OrderFieldReceiptBankAccount OrderField = "bankAccount"
|
|
OrderFieldReceiptIk3cloudUpdatedAt OrderField = "ik3CloudUpdatedAt"
|
|
|
|
OrderFieldPayableCreatedAt OrderField = "createdAt"
|
|
OrderFieldPayableAmount OrderField = "amount"
|
|
|
|
OrderFieldRequestCreatedAt OrderField = "createdAt"
|
|
OrderFieldRequestPrepaidAmount OrderField = "prepaidAmount"
|
|
OrderFieldRequestAmount OrderField = "amount"
|
|
OrderFieldRequestPaidAmount OrderField = "paidAmount"
|
|
OrderFieldRequestPayAt OrderField = "payAt"
|
|
OrderFieldRequestFactoryName OrderField = "factoryName"
|
|
OrderFieldRequestInvoiceSerial OrderField = "invoiceSerial"
|
|
|
|
OrderFieldExpenseCreatedAt OrderField = "createdAt"
|
|
OrderFieldExpenseAmount OrderField = "amount"
|
|
OrderFieldExpenseExpenseStaffId OrderField = "expenseStaffId"
|
|
OrderFieldExpenseBankAccount OrderField = "bankAccount"
|
|
OrderFieldExpensePayAt OrderField = "payAt"
|
|
|
|
OrderFieldInvoiceSerial OrderField = "invoiceSerial"
|
|
)
|
|
|
|
type OrderSort = string
|
|
|
|
const (
|
|
OrderSortAsc OrderSort = "asc"
|
|
OrderSortDesc OrderSort = "desc"
|
|
)
|
|
|
|
type AccountingGenType = int64
|
|
|
|
const (
|
|
AccountingGenTypeSaleStaff AccountingGenType = 1 // 按销售生成做账单
|
|
AccountingGenTypeShipmentStaff AccountingGenType = 2 // 按订舱生成做账单
|
|
)
|
|
|
|
type ExpenseType = int64
|
|
|
|
const (
|
|
ExpenseTypeNormal ExpenseType = 1 // 普通费用
|
|
ExpenseTypeTrave ExpenseType = 2 // 差旅费
|
|
)
|