@Wahson
2018-07-01T09:55:25.000000Z
字数 4669
阅读 937
未分类
总部退货计划
列表查询:
http://localhost:8198/api/method/PurchaseQueryService/1.0.0/listRefundPlanQuery.htm
接口增加计划截止日期字段(createdAt + deliveryTime)
增加计划起止日期查询条件(refundPlanStart, refundPlanEnd)
详情查询:
http://localhost:8198/api/method/PurchaseQueryService/1.0.0/listRefundPlanDetailQuery.htm
详情接口请求参数增加storeId:String,
接口逻辑调整:增加TRefundPlanItemExt 扩展类, 增加门店售价字段,保留原有数据层次结构 (OpenSkuPriceService#listEffectiveStoreSkuPrice)
店内库存查询:
http://openapi.sandbox5.today.cn/api/method/StockService/1.0.0/listStockByStoreId.htm
退货计划提交:
http://openapi.sandbox5.today.cn/api/method/PurchaseService/1.0.0/confirmRefundPlan.htm
简化接口参数,ConfirmRefundPlanRequest.skuList 去除多余入参,仅保留货号,数量字段,其余商品数据由接口反查。
增加店内库存校验(店内库存 >= 退货数)
退货单生成逻辑,需按商品温层、配送方式拆单
退货计划修改:??? http://openapi.sandbox5.today.cn/api/method/PurchaseService/1.0.0/updateStoreRefundPlan
退货计划失效后不能修改
增加退货计划定时器
退货计划到达截止日期后状态改为已失效
调整退货计划为新状态
自主退仓申请
列表查询
提交:
http://openapi.sandbox5.today.cn/api/method/PurchaseService/1.0.0/createStoreRefundOrder.htm)
增加店内库存校验(店内库存 >= 退货数)
增加校验:总部退货计划生成的退货单中是否包含了自主退仓申请中的商品,如果退货申请中存在于当前生效的总部退货计划产生的退货单中的sku, 则返回这些sku,结束处理。
修改:
http://openapi.sandbox5.today.cn/api/method/PurchaseService/1.0.0/updateStoreRefundOrder.htm
自主退供应商
商品只能是直纳和巡回的商品
增加店内库存校验(店内库存 >= 退货数)
增加校验:总部退货计划生成的退货单中是否包含了自主退仓申请中的商品,如果退货申请中存在于当前生效的总部退货计划产生的退货单中的sku, 则返回这些sku,结束处理。
退货单管理
查询:
http://openapi.sandbox5.today.cn/api/method/PurchaseQueryService/1.0.0/listRefundQuery.htm
listFactoryRefundQuery
退仓库和退供应商退货单整合
参考
(select dlo.id id, dlo.code code, dlo.created_at created_at from delivery_order dlo) union
(select po.id id, po.code code, po.created_at created_at from purchase_order po) order by created_at desc limit 100, 10;
返回字段
增加退货计划编号 optional string refundPlanCode
增加退货申请编号 optional string refundApplicationCode
增加修正单编号 optional string correctOrderCode
查看修正单接口 PurchaseQueryService#listCorrectOrder 传入code=${correctOrderCode}
转货作业
提交:
http://openapi.sandbox5.today.cn/api/method/PurchaseService/1.0.0/createTransferOrder.htm
增加店内库存校验
作废:
http://openapi.sandbox5.today.cn/api/method/PurchaseService/1.0.0/invalidTransferOrder.htm
修改:
http://openapi.sandbox5.today.cn/api/method/PurchaseService/1.0.0/updateTransferOrder.htm
增加店内库存校验
验收:
http://openapi.sandbox5.today.cn/api/method/PurchaseService/1.0.0/acceptTransferOrder.htm
已完成
香烟收货
常规收货
配送单验收