支出合同结算单冲销功能开发
This commit is contained in:
		
							parent
							
								
									140bd6e3ac
								
							
						
					
					
						commit
						7e06fc62c6
					
				| 
						 | 
				
			
			@ -77,9 +77,12 @@ public class OutContractSettleReversalPlugin extends AbstractBillPlugIn implemen
 | 
			
		|||
        BigDecimal settleamount = BigDecimal.ZERO;
 | 
			
		||||
        BigDecimal taxamount = BigDecimal.ZERO;
 | 
			
		||||
        BigDecimal settleoftaxamount = BigDecimal.ZERO;
 | 
			
		||||
 | 
			
		||||
        DynamicObject payitem = BusinessDataServiceHelper.loadSingle("ec_payitem",  new QFilter[]{new QFilter("number", QCP.equals,"HTCX")});
 | 
			
		||||
        for (DynamicObject dynamicObject : itementry) {
 | 
			
		||||
            DynamicObject item = entryEntity1.addNew();
 | 
			
		||||
            item.set("payitem",dynamicObject.getDynamicObject("payitem"));
 | 
			
		||||
 | 
			
		||||
            item.set("payitem",payitem);
 | 
			
		||||
            BigDecimal oftaxamount = dynamicObject.getBigDecimal("oftaxamount").multiply(new BigDecimal("-1"));
 | 
			
		||||
            item.set("oftaxamount",oftaxamount);
 | 
			
		||||
            BigDecimal amount = dynamicObject.getBigDecimal("amount").multiply(new BigDecimal("-1"));
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue