|
@@ -231,7 +231,9 @@ public class SyPackingListTailoringServiceImpl extends ServiceImpl<SyPackingList
|
|
|
s1.setId(null);
|
|
|
s1.setDelFlag("0");
|
|
|
System.out.println("actualPackingQty数量\t"+s1.getActualPackingQty());
|
|
|
+ BigDecimal total=s1.getTotal();
|
|
|
s1.setTotal(s1.getActualPackingQty().multiply(s1.getBoxNumber()));
|
|
|
+ s1.setActualPackingQty(total);
|
|
|
s1.setSyPackingListTailoringId(syPackingListTailoring.getId());
|
|
|
s1.setSyPreAssembledPackingListId(syPackingListTailoring.getSyPreAssembledPackingListId());
|
|
|
|
|
@@ -917,6 +919,9 @@ public class SyPackingListTailoringServiceImpl extends ServiceImpl<SyPackingList
|
|
|
}
|
|
|
mapt.put("itemSort",mapSort);
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
text(mapList,"采购入库单");
|
|
|
text(mapList3,"销售发货单");
|
|
|
text(mapList5,"采购发票单");
|
|
@@ -1090,7 +1095,12 @@ public class SyPackingListTailoringServiceImpl extends ServiceImpl<SyPackingList
|
|
|
public String result(SyPackingListTailoring main,JSONArray jsonArray,String tableName ,String account,String index){
|
|
|
JSONObject jsonObject=jsonArray.getJSONObject(0);
|
|
|
if(jsonObject.get("Result").equals("F")){
|
|
|
- throw new JeecgBootException(account+"账套"+tableName+"接口"+","+ jsonObject.get("Description")+"!");
|
|
|
+ throw new JeecgBootException("账套"+account+"接口"+tableName+",原因"+ jsonObject.get("Description"));
|
|
|
+ }
|
|
|
+ if(main.getRecordingCode()!=null){
|
|
|
+ main.setRecordingCode(main.getRecordingCode()+";"+account+"账套"+tableName+":"+jsonObject.get("ReceiptNo"));
|
|
|
+ }else{
|
|
|
+ main.setRecordingCode(account+"账套"+tableName+":"+jsonObject.get("ReceiptNo"));
|
|
|
}
|
|
|
return account+"-"+index+"-"+jsonObject.get("ReceiptNo");
|
|
|
}
|