|
@@ -1172,7 +1172,7 @@ public class SyPackingListTailoringServiceImpl extends ServiceImpl<SyPackingList
|
|
|
if(mapt.get("account").equals("101")){
|
|
|
map5.put("CDEFINE4",main.getLatestDateOfShipment2().substring(0,10));
|
|
|
}
|
|
|
-
|
|
|
+ mapt.put("ordertype","委外");
|
|
|
if(mapt.get("account").equals("103")){
|
|
|
orderData=syPackingListTailoringMapper.getOmOrPo("om_momain","cCode='"+mapt.get("mpOrder")+"'","moid");
|
|
|
map.put("CRDCODE","12");
|
|
@@ -1189,6 +1189,7 @@ public class SyPackingListTailoringServiceImpl extends ServiceImpl<SyPackingList
|
|
|
map5.put("CGLTYPE","委外订单");
|
|
|
map6.put("CGLTYPE","销售出库单");
|
|
|
}else{
|
|
|
+ mapt.put("ordertype","采购");
|
|
|
if(mapt.get("orderNumber").equals("one")){
|
|
|
orderData=syPackingListTailoringMapper.getOmOrPo("PO_POMAIN","cPOID='"+mapt.get("mpOrder")+"'","POID");
|
|
|
}else{
|
|
@@ -1452,7 +1453,7 @@ public class SyPackingListTailoringServiceImpl extends ServiceImpl<SyPackingList
|
|
|
mapt.put("itemSort",mapSort);
|
|
|
System.out.println("获取循环后当前是第几个账套\t"+mapt.get("account"));
|
|
|
}
|
|
|
- text(mapList,"采购入库单");
|
|
|
+ text(mapList,mapt.get("ordertype")+"入库单");
|
|
|
|
|
|
return null;
|
|
|
}*/
|
|
@@ -1467,10 +1468,11 @@ public class SyPackingListTailoringServiceImpl extends ServiceImpl<SyPackingList
|
|
|
maps.put(recordings[i].split("-")[0],map);
|
|
|
}
|
|
|
String account=mapList.getJSONObject(0).get("CACCID").toString();
|
|
|
+
|
|
|
if (maps.containsKey(account)){
|
|
|
switch (maps.get(account).get("index")){
|
|
|
case "1":
|
|
|
- if(!account.equals("102")||mapt.get("customerCode").equals("T020001")){
|
|
|
+ if(!account.equals("102")){
|
|
|
|
|
|
String purchaseinName=maps.get(account).get("code");
|
|
|
|
|
@@ -1492,12 +1494,12 @@ public class SyPackingListTailoringServiceImpl extends ServiceImpl<SyPackingList
|
|
|
}
|
|
|
text(mapList3,"销售发货单");
|
|
|
JSONArray resturn5 = InterfaceConnUtils.doPost(mapList5,"purinvoice_import");
|
|
|
- recording=result(main,resturn5,"采购发票单",((Map) mapList.get(0)).get("CACCID").toString(),"2");
|
|
|
+ recording=result(main,resturn5,mapt.get("ordertype")+"发票单",((Map) mapList.get(0)).get("CACCID").toString(),"2");
|
|
|
recording(main,recording);
|
|
|
this.purchaseWarehousingMapper.updateVoucherHistoryCNumber(org.jeecg.modules.system.util.oConvertUtils.maxNumber(resturn5.getJSONObject(0).get("U8ReceiptNo").toString()),"109");
|
|
|
}
|
|
|
case "2":
|
|
|
- text(mapList5,"采购发票单");
|
|
|
+ text(mapList5,mapt.get("ordertype")+"发票单");
|
|
|
JSONArray resturn3 = InterfaceConnUtils.doPost(mapList3,"consignment_import");
|
|
|
recording=result(main,resturn3,"销售发货单",((Map) mapList.get(0)).get("CACCID").toString(),"3");
|
|
|
maps.get(account).put("code",resturn3.getJSONObject(0).get("U8ReceiptNo").toString());
|
|
@@ -1555,7 +1557,7 @@ public class SyPackingListTailoringServiceImpl extends ServiceImpl<SyPackingList
|
|
|
}
|
|
|
|
|
|
JSONArray resturn1 = InterfaceConnUtils.doPost(mapList,"purchasein_import");
|
|
|
- recording=result(main,resturn1,"采购入库单",((Map) mapList.get(0)).get("CACCID").toString(),"1");
|
|
|
+ recording=result(main,resturn1,mapt.get("ordertype")+"入库单",((Map) mapList.get(0)).get("CACCID").toString(),"1");
|
|
|
recording(main,recording);
|
|
|
this.purchaseWarehousingMapper.updateVoucherHistoryCNumber(org.jeecg.modules.system.util.oConvertUtils.maxNumber(resturn1.getJSONObject(0).get("U8ReceiptNo").toString()),"107");
|
|
|
|
|
@@ -1577,10 +1579,10 @@ public class SyPackingListTailoringServiceImpl extends ServiceImpl<SyPackingList
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if(!((Map) mapList.get(0)).get("CACCID").toString().equals("102")||mapt.get("customerCode").equals("T020001")){
|
|
|
- text(mapList5,"采购发票单");
|
|
|
+ if(!((Map) mapList.get(0)).get("CACCID").toString().equals("102")){
|
|
|
+ text(mapList5,mapt.get("ordertype")+"发票单");
|
|
|
JSONArray resturn5 = InterfaceConnUtils.doPost(mapList5,"purinvoice_import");
|
|
|
- recording=result(main,resturn5,"采购发票单",((Map) mapList.get(0)).get("CACCID").toString(),"2");
|
|
|
+ recording=result(main,resturn5,mapt.get("ordertype")+"发票单",((Map) mapList.get(0)).get("CACCID").toString(),"2");
|
|
|
recording(main,recording);
|
|
|
this.purchaseWarehousingMapper.updateVoucherHistoryCNumber(org.jeecg.modules.system.util.oConvertUtils.maxNumber(resturn5.getJSONObject(0).get("U8ReceiptNo").toString()),"109");
|
|
|
}
|