IDEMPIERE-1240 exception "java.lang.NullPointerException" throws when select a Shipper in Shipment>Packages.

This commit is contained in:
Heng Sin Low 2013-08-05 12:26:32 +08:00
parent 570b5dd012
commit 7badfa1db9
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ public class CalloutPackage extends CalloutEngine
String dutiesShipperAccount = null;
MInOut inout = new MInOut(ctx, inout_id, null);
if (inout.getFreightCharges().equals(MInOut.FREIGHTCHARGES_Prepaid) || inout.getFreightCharges().equals(MInOut.FREIGHTCHARGES_PrepaidAndBill))
if (MInOut.FREIGHTCHARGES_Prepaid.equals(inout.getFreightCharges()) || MInOut.FREIGHTCHARGES_PrepaidAndBill.equals(inout.getFreightCharges()))
{
// 2. For charging to Velocity
// ** If M_InOut.FreightCharges In ( D_PP, E_PPB) -- prepaid or prepaid and bill