| 
					
				 | 
			
			
				@@ -185,10 +185,14 @@ public class SyCostAllocationServiceImpl extends ServiceImpl<SyCostAllocationMap 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         FabricLoss fabricLoss1 = null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (syLossReport1 != null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            //人民币面料含税成本和不含税成本 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             fabricLoss1 = JSON.parseObject(JSON.toJSONString(syLossReport1.getContent()), FabricLoss.class); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             syCostAllocation.setFabriccostIncludestax(new BigDecimal(fabricLoss1.getActualMoney())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             syCostAllocation.setFabriccostNotincludestax(new BigDecimal(fabricLoss1.getFabricCostInvoiceList().stream(). 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     filter(item->item.getINoTaxMoney()!=null).mapToDouble(FabricCostInvoice::getINoTaxMoney).sum())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            //美元面料含税成本和不含税成本 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            syCostAllocation.setFabriccostIncludestaxUsd(syCostAllocation.getFabriccostNotincludestax().divide(syCostAllocation.getExchangeRate(),2,BigDecimal.ROUND_HALF_UP)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            syCostAllocation.setFabriccostNotincludestaxUsd(syCostAllocation.getFabriccostNotincludestax().divide(syCostAllocation.getExchangeRate(),2,BigDecimal.ROUND_HALF_UP)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         /*如果出现多供应商的情况拼接 供应商*/ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -291,23 +295,31 @@ public class SyCostAllocationServiceImpl extends ServiceImpl<SyCostAllocationMap 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     Ingredient.setSyRemaining(remaininglist); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            //辅料含税成本 美元 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            //辅料含税成本 美元和人民币 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if(Ingredient.getUsdAmount()!=null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 if(syCostAllocation.getExcipiencostIncludestax()==null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     syCostAllocation.setExcipiencostIncludestax(BigDecimal.ZERO); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    syCostAllocation.setExcipiencostIncludestaxUsd(BigDecimal.ZERO); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 syCostAllocation.setExcipiencostIncludestax(Ingredient.getUsdAmount().add(syCostAllocation.getExcipiencostIncludestax())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                syCostAllocation.setExcipiencostIncludestaxUsd(syCostAllocation.getExcipiencostIncludestax().divide(syCostAllocation.getExchangeRate(),2,BigDecimal.ROUND_HALF_UP)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 syCostAllocation.setExcipiencostIncludestax(BigDecimal.ZERO); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                syCostAllocation.setExcipiencostIncludestaxUsd(BigDecimal.ZERO); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            //辅料不含税成本 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            //辅料不含税成本 美元和人民币 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if(Ingredient.getPriceExcludingtax()!=null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 if(syCostAllocation.getExcipiencostNotincludestax()==null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     syCostAllocation.setExcipiencostNotincludestax(BigDecimal.ZERO); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    syCostAllocation.setExcipiencostNotincludestaxUsd(BigDecimal.ZERO); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 syCostAllocation.setExcipiencostNotincludestax(Ingredient.getPriceExcludingtax().add(syCostAllocation.getExcipiencostNotincludestax())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                syCostAllocation.setExcipiencostNotincludestaxUsd(syCostAllocation.getExcipiencostNotincludestax().divide(syCostAllocation.getExchangeRate(),2,BigDecimal.ROUND_HALF_UP)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 syCostAllocation.setExcipiencostNotincludestax(BigDecimal.ZERO); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                syCostAllocation.setExcipiencostNotincludestaxUsd(BigDecimal.ZERO); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -343,14 +355,17 @@ public class SyCostAllocationServiceImpl extends ServiceImpl<SyCostAllocationMap 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 syCostAllocation.setUsdTotalexportprice(BigDecimal.ZERO); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            //加工费 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            //人民币加工费和美元加工费 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if(ship.getProcessCost()!=null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 if(syCostAllocation.getRmbProcesscost()==null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     syCostAllocation.setRmbProcesscost(BigDecimal.ZERO); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    syCostAllocation.setUsdProcesscost(BigDecimal.ZERO); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 syCostAllocation.setRmbProcesscost(ship.getProcessCost().add(syCostAllocation.getRmbProcesscost())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                syCostAllocation.setUsdProcesscost(ship.getProcessCostUsd().add(syCostAllocation.getUsdProcesscost())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 ship.setProcessCost(BigDecimal.ZERO); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                ship.setProcessCostUsd(BigDecimal.ZERO); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         //短出数 
			 |