|
@@ -220,9 +220,9 @@ public class SyPackingListFabricServiceImpl extends ServiceImpl<SyPackingListFab
|
|
|
|
|
|
|
|
|
|
|
|
- if((entity.getInventoryCcode().indexOf("03")!=-1&&!entity.getInventoryCcode().equals("0399")) ||
|
|
|
- (entity.getInventoryCcode().indexOf("02")!=-1&&!entity.getInventoryCcode().equals("0299"))||
|
|
|
- (entity.getInventoryCcode().indexOf("04")!=-1&&!entity.getInventoryCcode().equals("0499"))){
|
|
|
+ if((entity.getInventoryCcode().substring(0,2).equals("03")&&!entity.getInventoryCcode().equals("0399")) ||
|
|
|
+ (entity.getInventoryCcode().substring(0,2).equals("02")&&!entity.getInventoryCcode().equals("0299"))||
|
|
|
+ (entity.getInventoryCcode().substring(0,2).equals("04")&&!entity.getInventoryCcode().equals("0499"))){
|
|
|
if(entity.getMeter()!=null){
|
|
|
entity.setActualDeclaredQuantity(entity.getMeter());
|
|
|
}
|
|
@@ -569,13 +569,13 @@ public class SyPackingListFabricServiceImpl extends ServiceImpl<SyPackingListFab
|
|
|
if(syPackingListFabricItem.getExcessQuantity().intValue()<0){
|
|
|
syPackingListFabricItem.setExcessQuantity(new BigDecimal(0));
|
|
|
}
|
|
|
- if(syPackingListFabricItem.getVenId()!=null&&syPackingListFabricItem.getVenId().indexOf("04")>-1&&!syPackingListFabricItem.getVenId().equals("0499")){
|
|
|
+ if(syPackingListFabricItem.getVenId()!=null&&syPackingListFabricItem.getVenId().substring(0,2).equals("04")&&!syPackingListFabricItem.getVenId().equals("0499")){
|
|
|
|
|
|
SyShippingDetailsItem syShippingDetailsItem=syShippingDetailsItemMapper.selectById(syPackingListFabricItem.getSyShippingDetailsItemId());
|
|
|
syPackingListFabricItem.setSupplierCodeDyeingPlant(syShippingDetailsItem.getRSupplierCode());
|
|
|
syPackingListFabricItem.setSupplierDyeingPlant(syShippingDetailsItem.getRSupplier());
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
|
|
|
SyShippingDetailsItem syShippingDetailsItem=syShippingDetailsItemMapper.selectById(syPackingListFabricItem.getSyShippingDetailsItemId());
|
|
|
syPackingListFabricItem.setSupplierCodeDyeingPlant(syShippingDetailsItem.getRSupplierCode());
|
|
@@ -790,9 +790,9 @@ public class SyPackingListFabricServiceImpl extends ServiceImpl<SyPackingListFab
|
|
|
s1.setSupplier(item.getSupplier());
|
|
|
s1.setSupplierCode(item.getSupplierCode());
|
|
|
|
|
|
- if((s1.getInventoryCcode().indexOf("03")!=-1&&!s1.getInventoryCcode().equals("0399")) ||
|
|
|
- (s1.getInventoryCcode().indexOf("02")!=-1&&!s1.getInventoryCcode().equals("0299"))||
|
|
|
- (s1.getInventoryCcode().indexOf("04")!=-1&&!s1.getInventoryCcode().equals("0499"))){
|
|
|
+ if((s1.getInventoryCcode().substring(0,2).equals("03")&&!s1.getInventoryCcode().equals("0399")) ||
|
|
|
+ (s1.getInventoryCcode().substring(0,2).equals("02")&&!s1.getInventoryCcode().equals("0299"))||
|
|
|
+ (s1.getInventoryCcode().substring(0,2).equals("04")&&!s1.getInventoryCcode().equals("0499"))){
|
|
|
if(s1.getMeter()!=null){
|
|
|
s1.setActualDeclaredQuantity(s1.getNetWeight());
|
|
|
|
|
@@ -812,14 +812,14 @@ public class SyPackingListFabricServiceImpl extends ServiceImpl<SyPackingListFab
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if(item.getInventoryCcode()!=null&&item.getInventoryCcode().indexOf("04")>-1
|
|
|
+ if(item.getInventoryCcode()!=null&&item.getInventoryCcode().substring(0,2).equals("04")
|
|
|
&&!item.getInventoryCcode().equals("0499")){
|
|
|
s1.setSupplierCodeDyeingPlant(item.getRSupplierCode());
|
|
|
s1.setSupplierCodePrintingPlant(item.getSupplierCode());
|
|
|
s1.setSupplierCodePrintingPlant(item.getSupplierCode());
|
|
|
s1.setSupplierPrintingPlant(item.getSupplier());
|
|
|
}
|
|
|
- if(item.getInventoryCcode()!=null&&item.getInventoryCcode().indexOf("03")>-1
|
|
|
+ if(item.getInventoryCcode()!=null&&item.getInventoryCcode().substring(0,2).equals("03")
|
|
|
&&!item.getInventoryCcode().equals("0399")){
|
|
|
s1.setSupplierCodeDyeingPlant(item.getSupplierCode());
|
|
|
s1.setSupplierDyeingPlant(item.getSupplier());
|
|
@@ -923,9 +923,9 @@ public class SyPackingListFabricServiceImpl extends ServiceImpl<SyPackingListFab
|
|
|
item.setFactoryUnitPrice(syShippingDetailsItem.getFactoryUnitPrice());
|
|
|
item.setSyPackingListFabricId(syPackingListFabric.getId());
|
|
|
item.setOrderNumber(syShippingDetailsItem.getOrderNumber());
|
|
|
- if((syShippingDetailsItem.getInventoryCcode().indexOf("03")!=-1&&!syShippingDetailsItem.getInventoryCcode().equals("0399")) ||
|
|
|
- (syShippingDetailsItem.getInventoryCcode().indexOf("02")!=-1&&!syShippingDetailsItem.getInventoryCcode().equals("0299"))||
|
|
|
- (syShippingDetailsItem.getInventoryCcode().indexOf("04")!=-1&&!syShippingDetailsItem.getInventoryCcode().equals("0499"))){
|
|
|
+ if((item.getInventoryCcode().substring(0,2).equals("03")&&!item.getInventoryCcode().equals("0399")) ||
|
|
|
+ (item.getInventoryCcode().substring(0,2).equals("02")&&!item.getInventoryCcode().equals("0299"))||
|
|
|
+ (item.getInventoryCcode().substring(0,2).equals("04")&&!item.getInventoryCcode().equals("0499"))){
|
|
|
if(item.getMeter()!=null){
|
|
|
item.setActualDeclaredQuantity(item.getMeter());
|
|
|
}else{
|
|
@@ -945,14 +945,14 @@ public class SyPackingListFabricServiceImpl extends ServiceImpl<SyPackingListFab
|
|
|
|
|
|
}
|
|
|
}
|
|
|
- if(item.getInventoryCcode()!=null&&item.getInventoryCcode().indexOf("04")>-1
|
|
|
+ if(item.getInventoryCcode()!=null&&item.getInventoryCcode().substring(0,2).equals("04")
|
|
|
&&!item.getInventoryCcode().equals("0499")){
|
|
|
item.setSupplierCodeDyeingPlant(syShippingDetailsItem.getRSupplierCode());
|
|
|
item.setSupplierDyeingPlant(syShippingDetailsItem.getRSupplier());
|
|
|
item.setSupplierPrintingPlant(syShippingDetailsItem.getSupplier());
|
|
|
item.setSupplierCodePrintingPlant(syShippingDetailsItem.getSupplierCode());
|
|
|
}
|
|
|
- if(item.getInventoryCcode()!=null&&item.getInventoryCcode().indexOf("03")>-1
|
|
|
+ if(item.getInventoryCcode()!=null&&item.getInventoryCcode().substring(0,2).equals("03")
|
|
|
&&!item.getInventoryCcode().equals("0399")){
|
|
|
item.setSupplierCodeDyeingPlant(syShippingDetailsItem.getSupplierCode());
|
|
|
item.setSupplierDyeingPlant(syShippingDetailsItem.getSupplier());
|
|
@@ -1445,7 +1445,7 @@ public class SyPackingListFabricServiceImpl extends ServiceImpl<SyPackingListFab
|
|
|
|
|
|
mapItem5.put("IMONEY",orderDataItem.get("iNatMoney"));
|
|
|
}
|
|
|
- if(item.getInventoryCcode()!=null&&item.getInventoryCcode().indexOf("04")>-1
|
|
|
+ if(item.getInventoryCcode()!=null&&item.getInventoryCcode().substring(0,2).equals("04")
|
|
|
&&!item.getInventoryCcode().equals("0499")){
|
|
|
mapItem.put("CDEFINE26",item.getAfterHeavy());
|
|
|
}else{
|
|
@@ -2168,7 +2168,7 @@ public class SyPackingListFabricServiceImpl extends ServiceImpl<SyPackingListFab
|
|
|
sy1.setDeclarationName(syDeclarationElements.getDeclarationName());
|
|
|
}
|
|
|
}
|
|
|
- if(syShippingDetailsItem.getInventoryCcode()!=null&&syShippingDetailsItem.getInventoryCcode().indexOf("04")>-1
|
|
|
+ if(syShippingDetailsItem.getInventoryCcode()!=null&&syShippingDetailsItem.getInventoryCcode().substring(0,2).equals("04")
|
|
|
&&!syShippingDetailsItem.getInventoryCcode().equals("0499")){
|
|
|
|
|
|
sy1.setSupplierCodeDyeingPlant(syShippingDetailsItem.getRSupplierCode());
|
|
@@ -2176,7 +2176,7 @@ public class SyPackingListFabricServiceImpl extends ServiceImpl<SyPackingListFab
|
|
|
sy1.setSupplierCodePrintingPlant(syShippingDetailsItem.getSupplierCode());
|
|
|
sy1.setSupplierPrintingPlant(syShippingDetailsItem.getSupplier());
|
|
|
}
|
|
|
- if(syShippingDetailsItem.getInventoryCcode()!=null&&syShippingDetailsItem.getInventoryCcode().indexOf("03")>-1
|
|
|
+ if(syShippingDetailsItem.getInventoryCcode()!=null&&syShippingDetailsItem.getInventoryCcode().substring(0,2).equals("03")
|
|
|
&&!syShippingDetailsItem.getInventoryCcode().equals("0399")){
|
|
|
|
|
|
sy1.setSupplierCodeDyeingPlant(syShippingDetailsItem.getSupplierCode());
|
|
@@ -2206,9 +2206,9 @@ public class SyPackingListFabricServiceImpl extends ServiceImpl<SyPackingListFab
|
|
|
if(sy1.getPrice()!=null&&sy1.getActualDeclaredQuantity()!=null){
|
|
|
sy1.setTotalPrice(sy1.getActualDeclaredQuantity().multiply(sy1.getPrice()));
|
|
|
}
|
|
|
- if((sy1.getInventoryCcode().indexOf("03")!=-1&&!sy1.getInventoryCcode().equals("0399")) ||
|
|
|
- (sy1.getInventoryCcode().indexOf("02")!=-1&&!sy1.getInventoryCcode().equals("0299"))||
|
|
|
- (sy1.getInventoryCcode().indexOf("04")!=-1&&!sy1.getInventoryCcode().equals("0499"))){
|
|
|
+ if((sy1.getInventoryCcode().substring(0,2).equals("03")&&!sy1.getInventoryCcode().equals("0399")) ||
|
|
|
+ (sy1.getInventoryCcode().substring(0,2).equals("02")&&!sy1.getInventoryCcode().equals("0299"))||
|
|
|
+ (sy1.getInventoryCcode().substring(0,2).equals("04")&&!sy1.getInventoryCcode().equals("0499"))){
|
|
|
if(!sy1.getMasterMetering().equals("KG")){
|
|
|
sy1.setActualDeclaredQuantity(sy1.getInventoryQuantity());
|
|
|
sy1.setMeter(sy1.getInventoryQuantity());
|