暂无
任务描述
需求描述
背景:现有Ebay 广告费用,后台数据有关联的客户订单,但ERP 同步数据 缺少订单关联。
需求:
现状:
1.EBay 客户订单 费用项
产品销售收入 / 交易佣金 / 头程运费/ 销售VAT / 采购价格/ 汇率折损/ 海外仓派送费 / 仓库管理成本/ 税费收入/扣除客户支付税费/ 人工导入费 /
2.利润表 OrderDescription 由 RB_Ebay_Account_Fee ID 组合填充
调整:
1.EBay 客户订单 费用项
产品销售收入 / 交易佣金 / 头程运费/ 销售VAT / 采购价格/ 汇率折损/ 海外仓派送费 / 仓库管理成本/ 税费收入/扣除客户支付税费/ 人工导入费 / 广告费
2.利润表 OrderDescription 由 RB_Ebay_Account_Fee 费用类型 + 费用子类 平台费用编号组合
逻辑:
1.费用类型 = 广告费用, 费用来源 = 平台费用明细真实值; 当月数据重跑,其他历史数据不做处理
2.利润表 OrderDescription = Ebay 接口下载 TransactionType +FeeType + TransactionID
参考
费用类型 https://developer.ebay.com/api-docs/sell/finances/types/pay:TransactionTypeEnum
子类 https://developer.ebay.com/api-docs/sell/finances/types/api:FeeTypeEnum


验收标准
暂无
测试环境:主干1商户
前置条件
SELECTClientOrderCode,
DownLoadUpdateTime,
a.OrderSourceID,
a.CustomerID,
orderitemid
orderid,
itemid,
a.OrderSourceid,
c.TransactionID,
ComeSource,*
from RB_OrderInfo a
LEFT JOIN RB_OrderList b
on a.ordercode = b.OrderCode
LEFT JOIN RB_Ebay_Account_Fee c
on a.ClientOrderCode = c.orderid
and b.orderitemid = c.itemid
and a.OrderSourceID = c.OrderSourceID
and a.CustomerID = c.CustomerID
where
a.OrderCode = '202204261455825474'
and c.AccountDetailsEntryType='FeeAd'
AND A.DownLoadUpdateTime > '2000-01-01 00:00:00.000'
满足条件则ebay客户订单新增广告费用项