Compare commits
2 Commits
14cd13f5a7
...
7406f37764
| Author | SHA1 | Date | |
|---|---|---|---|
| 7406f37764 | |||
| f8355570e6 |
@@ -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)
|
||||||
@@ -123,6 +142,16 @@ func (p *paymentRefund) Edit(ctx context.Context, args ArgsPaymentRefundEdit) (e
|
|||||||
return xClient.Call(ctx, "Edit", args, &reply)
|
return xClient.Call(ctx, "Edit", args, &reply)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Cancel @TITLE 取消付款退款单
|
||||||
|
func (p *paymentRefund) Cancel(ctx context.Context, paymentRefundId int64) error {
|
||||||
|
xClient, err := client.GetClient(p)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
reply := 0
|
||||||
|
return xClient.Call(ctx, "Cancel", paymentRefundId, &reply)
|
||||||
|
}
|
||||||
|
|
||||||
// Ik3cloud @TITLE 金蝶同步
|
// Ik3cloud @TITLE 金蝶同步
|
||||||
func (p *paymentRefund) Ik3cloud(ctx context.Context, paymentRefundId int64) (err error) {
|
func (p *paymentRefund) Ik3cloud(ctx context.Context, paymentRefundId int64) (err error) {
|
||||||
xClient, err := client.GetClient(p)
|
xClient, err := client.GetClient(p)
|
||||||
|
|||||||
Reference in New Issue
Block a user