feat(erp): 添加收汇公司名称字段并增加应收应付单修改功能
- 在 shipment bean 中添加 RecCompanyName 字段用于存储收汇公司名称 - 在 payable service 中新增 Edit 方法支持修改付款单业务日期 - 在 receivable service 中新增 Edit 方法支持修改收款单业务日期 - 更新 shipment 结构体定义添加收汇公司名称相关字段
This commit is contained in:
@@ -142,6 +142,21 @@ func (p *payable) Info(ctx context.Context, payableId int64) (reply ReplyPayable
|
||||
return
|
||||
}
|
||||
|
||||
type ArgsPayableEdit struct {
|
||||
PayableId int64 // 应付单ID
|
||||
BusinessDate *time.Time // 业务日期
|
||||
}
|
||||
|
||||
// Edit @TITLE 修改付款单
|
||||
func (p *payable) Edit(ctx context.Context, args ArgsPayableEdit) (err error) {
|
||||
xClient, err := client.GetClient(p)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
reply := 0
|
||||
return xClient.Call(ctx, "Edit", args, &reply)
|
||||
}
|
||||
|
||||
// Confirm @TITLE 确认
|
||||
func (p *payable) Confirm(ctx context.Context, payableId int64) (err error) {
|
||||
xClient, err := client.GetClient(p)
|
||||
|
||||
@@ -142,6 +142,22 @@ func (r *receivable) Info(ctx context.Context, receivableId int64) (reply ReplyR
|
||||
return
|
||||
}
|
||||
|
||||
type ArgsReceivableEdit struct {
|
||||
ReceivableId int64 // 应收单ID
|
||||
BusinessDate *time.Time // 业务日期
|
||||
}
|
||||
|
||||
// Edit @TITLE 修改
|
||||
func (r *receivable) Edit(ctx context.Context, args ArgsReceivableEdit) (err error) {
|
||||
xClient, err := client.GetClient(r)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
reply := 0
|
||||
err = xClient.Call(ctx, "Edit", args, &reply)
|
||||
return
|
||||
}
|
||||
|
||||
// Ik3cloud @TITLE 同步
|
||||
func (r *receivable) Ik3cloud(ctx context.Context, receivableId int64) (err error) {
|
||||
xClient, err := client.GetClient(r)
|
||||
|
||||
@@ -95,6 +95,7 @@ type ShipmentAdd struct {
|
||||
RecBankCardNo string // 收汇银行卡号
|
||||
RecBankCardName string // 收汇银行户名
|
||||
RecBankAddress string // 收汇银行地址
|
||||
RecCompanyName string // 收汇公司名称
|
||||
Shipper string // 托运人
|
||||
Consignee string // 收货人
|
||||
Notifier string // 通知人
|
||||
@@ -174,6 +175,7 @@ type ArgsShipmentData struct {
|
||||
RecBankCardNo string // 收款银行卡号
|
||||
RecBankCardName string // 收款银行卡名
|
||||
RecBankAddress string // 收汇银行地址
|
||||
RecCompanyName string // 收汇公司名称
|
||||
PaymentTerms string // 付款条件
|
||||
TradeCountry string // 贸易国
|
||||
PaymentType string // 付款方式
|
||||
|
||||
@@ -32,6 +32,7 @@ type ReplyShipmentInfo struct {
|
||||
RecBankCardNo string `json:"recBankCardNo"`
|
||||
RecBankCardName string `json:"recBankCardName"`
|
||||
RecBankAddress string `json:"recBankAddress"`
|
||||
RecCompanyName string `json:"recCompanyName"`
|
||||
Shipper string `json:"shipper"`
|
||||
Consignee string `json:"consignee"`
|
||||
Notifier string `json:"notifier"`
|
||||
|
||||
Reference in New Issue
Block a user