退换管理客户退款-p(debugger push)
源数据平台 | 旺店通·企业奇门数据对接 |
调用请求API | 查询退换管理 |
请求定时 | */3 8-23 * * * |
目标平台 | 用友BIP写入数据接口 |
调用执行API | 客户退款保存 |
执行定时 | 2-59/5 * * * * |
接口数据对接字段明细
序号 | 旺店通·企业奇门字段 | 旺店通·企业奇门字段名 | 用友BIP字段 | 用友BIP字段名 | 描述 |
---|---|---|---|---|---|
1 | refund_no | erp退换单号 | code | 单据编号 | 新增时无需填写,修改时必填 |
2 | 01 | 固定值 | exchangeRateType_code | 汇率类型档案编码 | |
3 | modified | 最后修改时间 | vouchdate | 单据日期 格式为:yyyy-MM-dd HH:mm:ss | |
4 | _findCollection find mapping_sale_org from 4769a428-14c4-33b8-91fd-e8da3b39d5cb where shop_no=shop_no | 关联查询函数 | accentity | 会计主体 | |
5 | _function round(refund_amount,2) | 计算函数 | oriSum | 付款金额 | |
6 | _function round(refund_amount,2) | 计算函数 | natSum | 本币金额 | |
7 | 固定值 | balance | 余额 | ||
8 | system_0001 | 固定值 | settlemode_code | 结算方式 | |
9 | creator_name | 建单员姓名 | operator_name | 业务员 | |
10 | 固定值 | dept_code | 部门 | ||
11 | _findCollection find mapping_customer from 4769a428-14c4-33b8-91fd-e8da3b39d5cb where shop_no=shop_no | 关联查询函数 | customer | 客户id | |
12 | 1480261131563434007 | 固定值 | natCurrency | 本币币种id | |
13 | 人民币 | 固定值 | currency_name | 币种 | |
14 | 2 | 固定值 | natCurrency_priceDigit | 本币币种单价精度 | |
15 | 2 | 固定值 | currency_moneyDigit | 币种金额精度 | |
16 | 2 | 固定值 | natCurrency_moneyDigit | 本币币种金额精度 | |
17 | 基准汇率 | 固定值 | exchangeRateType_name | 汇率类型名称 | |
18 | 1 | 固定值 | exchRate | 汇率 | |
19 | remark | 退款说明 | description | 备注 | |
20 | 2742928410236975 | 固定值 | tradetype | 交易类型id | |
21 | 销售退款 | 固定值 | tradetype_name | 交易类型名称 | |
22 | arap_payment_sale | 固定值 | tradetype_code | 交易类型编码 | |
23 | _findCollection find maping_sale_orgnumber from 4769a428-14c4-33b8-91fd-e8da3b39d5cb where shop_no=shop_no | 关联查询函数 | org_code | 销售组织编码 | |
24 | basebilltype_name | 固定值 | basebilltype_name | 事项类型名称 | |
25 | arap_payment | 固定值 | basebilltypecode | 事项类型编码 | |
26 | 1 | 固定值 | caobject | 收付款对象类型 | 1:客户 |
27 | 9 | 固定值 | billtype | 单据类型 固定为9 | 1:销售发票、2:其它应收事项、3:销售发票(红字)、4:其它应收事项(红字)、5:订单日报、6:内部交易结算单、7:收款单、8:其它应付事项、9:客户退款单、10:付款单、11:供应商退款单、12:转账单、13:汇率损益单、14:外币兑换单、id |
28 | 2022-07 | 固定值 | period_code | 会计期间编码 | |
29 | 2742928426767367 | 固定值 | period | 会计期间id | |
30 | 0 | 固定值 | returncount | 返回次数 | |
31 | sales_tid | 系统订单号 | orderno | 订单编号 | |
32 | CURRENT_TIME|datetime | 固定值 | pubts | 时间戳 | 格式为:yyyy-MM-dd HH:mm:ss |
33 | Insert | 固定值 | _status | 操作标识 | Insert:新增、Update:更新 |
34 | 固定值 | PayBillb | 客户退款明细 | ||
35 | 1 | 固定值 | PayBillb.quickType_code | 款项类型编码 | 1:预收款 |
36 | 01 | 固定值 | PayBillb.expenseitem_code | 费用项目编码 | |
37 | _function round(actual_refund_amount,2) | 计算函数 | PayBillb.oriSum | 金额 | |
38 | _function round(actual_refund_amount,2) | 计算函数 | PayBillb.natSum | 本币金额 | |
39 | _findCollection find mapping_customer from 4769a428-14c4-33b8-91fd-e8da3b39d5cb where shop_no=shop_no | 关联查询函数 | PayBillb.customer | 客户id | |
40 | 固定值 | PayBillb.customer_name | 客户名称 | ||
41 | _findCollection find maping_sale_orgnumber from 4769a428-14c4-33b8-91fd-e8da3b39d5cb where shop_no=shop_no | 关联查询函数 | PayBillb.org_code | 销售组织编码 | |
42 | refund_order_list.remark | 固定值 | PayBillb.description | 备注 | |
43 | Insert | 固定值 | PayBillb._status | 操作标识 | Insert:新增、Update:更新、Unchanged:不变 |