|
@@ -223,6 +223,14 @@ public class MultiSelectDialog extends UIDialog {
|
|
|
UFDouble norigtaxmnys = new UFDouble(total == null ? 0.00 : Double.parseDouble(total),2);//发票价税合计
|
|
|
UFDouble norigmnys = new UFDouble(amount == null ? 0.00 : Double.parseDouble(amount),2);//发票无税金额
|
|
|
UFDouble ntaxs = new UFDouble(ttax == null ? 0.00 : Double.parseDouble(ttax),2);//发票税额
|
|
|
+
|
|
|
+ if("电子发票(航空运输电子客票行程单)".equals(cname)) {
|
|
|
+ UFDouble fuel_surcharge = new UFDouble(extobj.get("fuel_surcharge") == null ? 0.00 : Double.valueOf(extobj.get("fuel_surcharge").toString()),2);//燃油附加费
|
|
|
+ UFDouble caac_development_fund = new UFDouble(extobj.get("caac_development_fund") == null ? 0.00 : Double.valueOf(extobj.get("caac_development_fund").toString()),2);//民航发展基金
|
|
|
+ norigmnys = norigmnys.add(fuel_surcharge).add(caac_development_fund);
|
|
|
+ amount = norigmnys.toString();
|
|
|
+ }
|
|
|
+
|
|
|
DefdocVO defvo = new DefdocVO();
|
|
|
long l = System.currentTimeMillis();
|
|
|
//发票可以重复获取,避免自定义档案保存保存,加上时间戳保证唯一
|
|
@@ -256,6 +264,7 @@ public class MultiSelectDialog extends UIDialog {
|
|
|
Boolean blen = QryOCRNumber(code, "1") == null ? false : true;
|
|
|
String url = noauth+furl+"&fid="+fid;
|
|
|
String link = "<html><a href="+url+">"+name+"</a></html>";
|
|
|
+ //可用无税金额norigmnys.sub(norigmny) 无税金额amount
|
|
|
Object[] obj = {blen,cname,norigtaxmnys.sub(norigtaxmny),norigmnys.sub(norigmny),ntaxs.sub(ntax),total,amount,trate
|
|
|
,ttax,dtax,codenumber,memo,link,mnecode,name2,name3,name4,kind,date,code};
|
|
|
dataList.add(obj);
|