Commit 35894349 authored by 胡晓雅's avatar 胡晓雅

issue: 更新 ISS-yanlong-3270 sap_status: 未开始→已完成

parent 41018d80
......@@ -11,10 +11,11 @@ system: SAP
registered: 2026-09-01
category: 数据问题
priority:
sap_status: 未开始
sap_status: 已完成
acceptance: NA
plan_date: 2026-09-02
developer: ""
evidence: []
attachments: []
source: Unanswered
linked: []
......@@ -29,3 +30,14 @@ linked: []
## 进展日志
- 2026-09-01 · huxiaoya · [Unanswered] · 创建问题;sap_status=未开始, acceptance=NA;owner=huxiaoya→huxiaoya <xiaoya.hu@boscloud.cn>(新建指派)
- 2026-09-02 · huxiaoya · [Unanswered] · 已完成;(sap_status: 未开始→已完成)
- 2026-09-02 · huxiaoya · [checklist:chk-complete-required] · 解决方案=正向订单核对开票情况:
① 导出 I_BillingDocumentItem(开票明细CDS),I_DeliveryDocumentItem(交货明细CDS),I_DeliveryDocument(交货单抬头CDS)
② 从 交货单抬头CDS中 V出【售达方】和【销售组织】至 交货明细CDS,这两个字段用于过滤;
③ 对 开票明细CDS 做数据处理,以【参考凭证的凭证编号+行号】为唯一号,对开票数量做合计,得到【交货行的开票总数】,需要注意,开票类型为S1和S2的数量要改为负数;
④ 交货明细CDS和开票明细CDS之间做数据匹配,将【交货行的开票总数】V到交货明细CDS中,关联条件:交货明细CDS中的【交货单号+行号】 和 开票明细CDS中的【参考凭证的凭证编号+行号】,如果开票数量为空,则未开票;
⑤ 此时交货明细CDS中,有交货行的交货数量,和交货行的开票数量。用交货数量-开票数量。等于0,则完全开票;大于0则部分开票。
退货订单核对开票情况:
① 用VA05过滤出GA2类型的销售订单(退货的贷项凭证申请);
② 放出总体状态字段;
② 通过总体状态去判断是否已开票。由于贷项凭证不能拆分开票,没有部分开票的状态。所以状态是已完成的则是全部开票,状态为未处理的是没开票。;工时(hours)=10h
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment