feat(erp): 添加收汇公司名称字段并增加应收应付单修改功能

- 在 shipment bean 中添加 RecCompanyName 字段用于存储收汇公司名称
- 在 payable service 中新增 Edit 方法支持修改付款单业务日期
- 在 receivable service 中新增 Edit 方法支持修改收款单业务日期
- 更新 shipment 结构体定义添加收汇公司名称相关字段
This commit is contained in:
2026-06-26 16:00:05 +08:00
parent 47b521845d
commit 0df497b389
4 changed files with 34 additions and 0 deletions

View File

@@ -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)