销售订单添加自定义行号属性
- 在同步规则中为每个明细项添加自定义行号属性 - 新增 properties 字段,包含行号的 property- 行号属性的字段名为 vbillcode,值为 crowno
This commit is contained in:
parent
2118f0e3b7
commit
a1b5f52ae8
|
@ -192,6 +192,14 @@ public class AfterApprovingSynchronizeRuleMES implements IRule<SaleOrderVO> {
|
|||
detailItem.put("customNo", null);
|
||||
detailItem.put("customSN", null);
|
||||
detailItem.put("remarks", null);
|
||||
// 添加自定义行号
|
||||
JSONArray properties = new JSONArray();
|
||||
JSONObject property = new JSONObject();
|
||||
// 行号
|
||||
property.put("propertyFiled", head.getVbillcode());
|
||||
property.put("propertyValue", body.getCrowno());
|
||||
properties.add(property);
|
||||
detailItem.put("properties", properties);
|
||||
details.add(detailItem);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue