1.付款申请供应商可抵扣金额bug修复
This commit is contained in:
		
							parent
							
								
									cd71a1578b
								
							
						
					
					
						commit
						30d334f87e
					
				|  | @ -103,7 +103,10 @@ public class PayApplyFormPlugin extends AbstractBillPlugIn implements Plugin { | ||||||
|                 DataSet dataSet = DB.queryDataSet(this.getClass().getName(), DBRoute.of("cas"), sql); |                 DataSet dataSet = DB.queryDataSet(this.getClass().getName(), DBRoute.of("cas"), sql); | ||||||
|                 DataSet copy = dataSet.copy(); |                 DataSet copy = dataSet.copy(); | ||||||
|                 DynamicObjectCollection dynamicObjects = ORM.create().toPlainDynamicObjectCollection(copy); |                 DynamicObjectCollection dynamicObjects = ORM.create().toPlainDynamicObjectCollection(copy); | ||||||
|                 BigDecimal qty = dynamicObjects.get(0).getBigDecimal("qty"); |                 BigDecimal qty=BigDecimal.ZERO; | ||||||
|  |                 if(dynamicObjects.size()>0){ | ||||||
|  |                      qty = dynamicObjects.get(0).getBigDecimal("qty"); | ||||||
|  |                 } | ||||||
|                 model.setValue("tqq9_gyskdkzje", qty); |                 model.setValue("tqq9_gyskdkzje", qty); | ||||||
|                 getView().updateView(); |                 getView().updateView(); | ||||||
|             } |             } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue