fix(so): 修复销售订单产品编号同步错误

- 将头部的 Vdef6 字段改为使用身体的 Vbdef1 字段
- 确保产品编号同步规则正确执行
This commit is contained in:
张明 2025-06-10 08:49:08 +08:00
parent 1e7099c9c1
commit f5ed9588d5
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ public class AfterApprovingSynchronizeRuleMES implements IRule<SaleOrderVO> {
if (bodys != null) { if (bodys != null) {
for (SaleOrderBVO body : bodys) { for (SaleOrderBVO body : bodys) {
JSONObject detailItem = new JSONObject(); JSONObject detailItem = new JSONObject();
detailItem.put("productNum", head.getVdef6()); detailItem.put("productNum", body.getVbdef1());
// 以下字段需要表体的字段 // 以下字段需要表体的字段
// 需求日期 表体dreceivedate // 需求日期 表体dreceivedate
UFDate dreceivedate = body.getDreceivedate(); UFDate dreceivedate = body.getDreceivedate();