1.1. 背景
背景:现有财务计算 平台其他费用时, 该费用项结构混乱,导致每次计算利润时需要重新组合。
1.2. 验收目标
1.亚马逊--平台其他费用,不含广告费(广告费收入,广告费退款)
2.亚马逊--广告费,计入支出项(广告费收入,广告费退款)
2. 功能设计
2.1. 业务流程
无
2.2.1 操作路径
1. 报告中心--订单利润报告
2.2.2 功能点清单
1.亚马逊--平台其他费用,不含广告费(广告费收入,广告费退款)
2.亚马逊--广告费,计入支出项(广告费收入,广告费退款)
2.2.3 亚马逊--平台其他费用,不含广告费(广告费收入,广告费退款)
2.2.3.1 功能点描述:
现状:非精品 亚马逊广告费退款,计算在 订单利润报告---平台其他支出 字段中,并且作为收入项计算在 总收入 字段。
调整:所有的,亚马逊广告费退款,计算在订单利润报告--- 广告费字段中,并且作为支出项计算在 总支出。
---补充逻辑:广告费正负,都放在 支出上。2.2.4 亚马逊--广告费,计入支出项(广告费收入,广告费退款)
2.2.4.1 功能点描述:
现状:精品店铺属性,亚马逊广告费退款,计算在广告费字段中,并且作为收入项计算在 总收入 字段。
调整:所有的,亚马逊广告费退款,计算在广告费字段中,并且作为支出项计算在 总支出。
---补充逻辑:广告费正负,都放在 支出上。




测试环境:
http://10.158.158.22:8080/Manager/index.aspx
验证场景:
当指定得数据:
SELECT CurrencyAmount,* FROM RB_Amazon_ListFinancialEvents(NOLOCK)
WHERE FinancialEventType='ProductAdsPaymentEvents'
AND EventDetailType='Refund'
ORDER BY ID DESC
(即亚马逊广告费退款得数据)
跑到利润表时,相关得RB_Amazon_ListFinancialEvents.CurrencyAmount 金额会放在总支出字段中
SELECT
AddTime,
UpdateTime,
OrderDescription,
Profits,
incomes,
Expenses,
CostOfAdvertising,
OrderSourceOtherDebits,*
from RB_Report_OrderSettlement
where CustomerID = 1
ORDER BY id desc
测试步骤:
一、下载相关报告
二、查看表数据
SELECT
FinancialEventType,
EventDetailType,
IsBuildFee,
CurrencyAmount,
OrderSourceID,
SellerId,
AddTime
FROM
RB_Amazon_ListFinancialEvents ( NOLOCK )
WHERE
FinancialEventType = 'ProductAdsPaymentEvents'
AND EventDetailType = 'Refund'
ORDER BY
ID DESC
二、找到
SELECT * FROM RB_OrderSource_EbayAmazonAPI(NOLOCK) WHERE DevIDSellerId in (
SELECT
SellerId
FROM
RB_Amazon_ListFinancialEvents ( NOLOCK )
WHERE
FinancialEventType = 'ProductAdsPaymentEvents'
AND EventDetailType = 'Refund'
and AddTime >'2022-06-29')
and CustomerID = 1
替换RB_Amazon_ListFinancialEvents.OrderSourceID
--UPDATE RB_Amazon_ListFinancialEvents set OrderSourceID = 5404 WHERE

FinancialEventType = 'ProductAdsPaymentEvents'
AND EventDetailType = 'Refund'
and AddTime >'2022-06-29'
三、执行服务
四、查看利润表
SELECT
AddTime,
UpdateTime,
OrderDescription,
Profits,
incomes,
Expenses,
CostOfAdvertising,
OrderSourceOtherDebits,*
from RB_Report_OrderSettlement
where CustomerID = 1
and AddTime>'2022-06-29 15:00'
ORDER BY id desc
(之前会回写到字段OrderSourceOtherDebits,现在调整不写入)