feat(expense): 添加打款金额修改功能
- 定义 ArgsExpensePaymentAmountChange 结构体用于传递报销单ID、打款金额和汇率参数 - 实现 PaymentAmountChange 方法用于修改报销单的打款金额 - 添加远程调用逻辑以支持打款金额变更操作 - 集成客户端调用机制确保服务间通信正常
This commit is contained in:
@@ -197,6 +197,22 @@ func (r *expense) BatchChange(ctx context.Context, args ArgsExpenseChange) (err
|
||||
return xClient.Call(ctx, "BatchChange", args, &reply)
|
||||
}
|
||||
|
||||
type ArgsExpensePaymentAmountChange struct {
|
||||
ExpenseId int64 // 报销单id
|
||||
PaymentAmount decimal.Decimal // 打款金额
|
||||
CurrencyRate decimal.Decimal // 汇率
|
||||
}
|
||||
|
||||
// PaymentAmountChange @TITLE 打款金额修改
|
||||
func (r *expense) PaymentAmountChange(ctx context.Context, args ArgsExpensePaymentAmountChange) (err error) {
|
||||
xClient, err := client.GetClient(r)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
reply := 0
|
||||
return xClient.Call(ctx, "PaymentAmountChange", args, &reply)
|
||||
}
|
||||
|
||||
// Ik3cloud @TITLE 同步
|
||||
func (r *expense) Ik3cloud(ctx context.Context, expenseId int64) (err error) {
|
||||
xClient, err := client.GetClient(r)
|
||||
|
||||
Reference in New Issue
Block a user