【采购订单】处理税率报错

This commit is contained in:
tanfengling@x-ri.com 2025-11-17 15:03:59 +08:00
parent 55dd8423ed
commit afaddaa18f
1 changed files with 2 additions and 1 deletions

View File

@ -271,8 +271,9 @@ public class PurorderEntryIntroPaybillPlugin extends AbstractBillPlugIn imple
JSONObject material = entry.getJSONObject("tqq9_material");//物料 JSONObject material = entry.getJSONObject("tqq9_material");//物料
DynamicObject tqq9_material = BusinessDataServiceHelper.loadSingle(material.getLong("id"),"bd_material","id,taxrate,number,name,baseunit,tqq9_xsyj1,tqq9_amountfield1,tqq9_amountfield4,tqq9_maxprice_sh,tqq9_maxprice_bj,tqq9_maxprice_gz");//物料 DynamicObject tqq9_material = BusinessDataServiceHelper.loadSingle(material.getLong("id"),"bd_material","id,taxrate,number,name,baseunit,tqq9_xsyj1,tqq9_amountfield1,tqq9_amountfield4,tqq9_maxprice_sh,tqq9_maxprice_bj,tqq9_maxprice_gz");//物料
DynamicObject taxrate1 = tqq9_material.getDynamicObject("taxrate"); DynamicObject taxrate1 = tqq9_material.getDynamicObject("taxrate");
BigDecimal taxrate2=null; BigDecimal taxrate2 = BigDecimal.ZERO;
if(taxrate1!=null){ if(taxrate1!=null){
taxrate1 = BusinessDataServiceHelper.loadSingle(taxrate1.getPkValue(), taxrate1.getDynamicObjectType().getName());
taxrate2 = taxrate1.getBigDecimal("taxrate"); taxrate2 = taxrate1.getBigDecimal("taxrate");
} }
String number = org.getString("number"); String number = org.getString("number");