feat(paymentRefund): 新增支付退款生成功能
- 添加 ArgsPaymentRefundGen 结构体定义生成参数 - 新增 Gen 方法通过 RPC 调用生成支付退款 - 参数包含员工id、收汇单id、工厂id、发票号及原付款用途信息
This commit is contained in:
@@ -98,6 +98,25 @@ func (p *paymentRefund) Add(ctx context.Context, args ArgsPaymentRefundAdd) (pay
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type ArgsPaymentRefundGen struct {
|
||||||
|
StaffId int64 // 员工id
|
||||||
|
ReceiptId int64 // 收汇单id
|
||||||
|
FactoryId int64 // 工厂id
|
||||||
|
InvoiceSerial string // 发票号
|
||||||
|
PaymentPurposeNumber string // 原付款用途编码
|
||||||
|
PaymentPurpose string // 原付款用途
|
||||||
|
}
|
||||||
|
|
||||||
|
// Gen @TITLE 生成
|
||||||
|
func (p *paymentRefund) Gen(ctx context.Context, args ArgsPaymentRefundGen) (err error) {
|
||||||
|
xClient, err := client.GetClient(p)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
reply := 0
|
||||||
|
return xClient.Call(ctx, "Gen", args, &reply)
|
||||||
|
}
|
||||||
|
|
||||||
// Info @TITLE 详情
|
// Info @TITLE 详情
|
||||||
func (p *paymentRefund) Info(ctx context.Context, paymentRefundId int64) (reply PaymentRefundItem, err error) {
|
func (p *paymentRefund) Info(ctx context.Context, paymentRefundId int64) (reply PaymentRefundItem, err error) {
|
||||||
xClient, err := client.GetClient(p)
|
xClient, err := client.GetClient(p)
|
||||||
|
|||||||
Reference in New Issue
Block a user