fix:
出口发票保存报错
This commit is contained in:
parent
624899c8ca
commit
3faa038a3d
@ -83,17 +83,21 @@ public class ExportInvoiceSaveOP extends AbstractOperationServicePlugIn {
|
||||
DynamicObjectCollection yem_shipports = dataEntitie.getDynamicObjectCollection("yem_shipports");//起运港
|
||||
if (!YEM.isEmpty(yem_shipports) && !yem_shipports.isEmpty()) {
|
||||
for (DynamicObject yemShipport : yem_shipports) {
|
||||
if (yemShipport != null) {
|
||||
String ssa = yemShipport.getDynamicObject("fbasedataid").getString("name");//起运港
|
||||
yemShipports.append(ssa);
|
||||
}
|
||||
}
|
||||
}
|
||||
DynamicObjectCollection yem_Destports = dataEntitie.getDynamicObjectCollection("yem_destports");//目的港
|
||||
if (!YEM.isEmpty(yem_Destports) && !yem_Destports.isEmpty()) {
|
||||
for (DynamicObject yemShipport : yem_Destports) {
|
||||
if (yemShipport != null) {
|
||||
String string = yemShipport.getDynamicObject("fbasedataid").getString("name");
|
||||
yemDestports.append(string);//目的港
|
||||
}
|
||||
}
|
||||
}
|
||||
BigDecimal stripTrailingZeros = new BigDecimal(totalAmount.toPlainString().replaceAll("0*$", "").replaceAll("\\.$", ""));
|
||||
BigDecimal stripTrailingZeros1 = new BigDecimal(yemSeatransfee.toPlainString().replaceAll("0*$", "").replaceAll("\\.$", ""));
|
||||
BigDecimal stripTrailingZeros2 = new BigDecimal(yemInsurefee.toPlainString().replaceAll("0*$", "").replaceAll("\\.$", ""));
|
||||
|
Loading…
Reference in New Issue
Block a user