IDEMPIERE-1081 Process Allocation processing wrongly against a charge

This commit is contained in:
Richard Morales 2013-06-20 19:36:37 -05:00
parent 91adf94efb
commit c3533a5dd9
1 changed files with 2 additions and 2 deletions

View File

@ -447,7 +447,7 @@ public class WAllocation extends Allocation
String name = e.getPropertyName();
Object value = e.getNewValue();
if (log.isLoggable(Level.CONFIG)) log.config(name + "=" + value);
if (value == null)
if (value == null && !name.equals("C_Charge_ID"))
return;
// Organization
@ -460,7 +460,7 @@ public class WAllocation extends Allocation
// Charge
else if (name.equals("C_Charge_ID") )
{
m_C_Charge_ID = ((Integer) value).intValue();
m_C_Charge_ID = value!=null? ((Integer) value).intValue() : 0;
setAllocateButton();
}