From c3533a5dd9241be97689c8247781e77d20280bf6 Mon Sep 17 00:00:00 2001 From: Richard Morales Date: Thu, 20 Jun 2013 19:36:37 -0500 Subject: [PATCH] IDEMPIERE-1081 Process Allocation processing wrongly against a charge --- .../src/org/adempiere/webui/apps/form/WAllocation.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/form/WAllocation.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/form/WAllocation.java index 63fefa2b78..85e5390d95 100755 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/form/WAllocation.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/form/WAllocation.java @@ -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(); }