|
@@ -1988,7 +1988,7 @@ public class SyPackingListTailoringServiceImpl extends ServiceImpl<SyPackingList
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 采购委外发票
|
|
|
+ * 采购委外发票 推送发票接口
|
|
|
* @param listTailorings
|
|
|
* @param maps
|
|
|
* @return
|
|
@@ -2648,7 +2648,7 @@ public class SyPackingListTailoringServiceImpl extends ServiceImpl<SyPackingList
|
|
|
if(syPackingListFabric.getRecordingCode()!=null){
|
|
|
String [] strs=syPackingListFabric.getRecordingCode().split(";");
|
|
|
for (String str : strs){
|
|
|
- if(str.indexOf(account)>-1&&str.indexOf("入库单")>-1&&(syPackingListFabric.getSaleInvoiceCode()==null||
|
|
|
+ if(str.indexOf(account)==0&&str.indexOf("入库单")>-1&&(syPackingListFabric.getSaleInvoiceCode()==null||
|
|
|
(syPackingListFabric.getSaleInvoiceCode().indexOf(account+"采购发票")==-1)&&(syPackingListFabric.getSaleInvoiceCode().indexOf(account+"委外发票")==-1))){
|
|
|
ids.add(str.split(":")[1]);
|
|
|
syPackingListFabric.setRdrecord32Code(str.split(":")[1]);
|
|
@@ -2665,7 +2665,7 @@ public class SyPackingListTailoringServiceImpl extends ServiceImpl<SyPackingList
|
|
|
if(syPackingListFabric.getRecordingCode()!=null){
|
|
|
String [] strs=syPackingListFabric.getRecordingCode().split(";");
|
|
|
for (String str : strs){
|
|
|
- if(str.indexOf(account+"账套销售出库单")>-1&&(syPackingListFabric.getSaleInvoiceCode()==null||syPackingListFabric.getSaleInvoiceCode().indexOf(account+"销售发票")==-1)){
|
|
|
+ if(str.indexOf(account+"账套销售出库单")==0&&(syPackingListFabric.getSaleInvoiceCode()==null||syPackingListFabric.getSaleInvoiceCode().indexOf(account+"销售发票")==-1)){
|
|
|
ids.add(str.split(":")[1]);
|
|
|
syPackingListFabric.setRdrecord32Code(str.split(":")[1]);
|
|
|
}
|