From f0d46ccd6be257385a3d3ece1ada31c73904a299 Mon Sep 17 00:00:00 2001 From: teo_sarca Date: Mon, 18 Feb 2008 14:04:17 +0000 Subject: [PATCH] BF [ 1770177 ] Inventory Move Locator Error --- client/src/org/compiere/grid/ed/VPAttribute.java | 3 +++ client/src/org/compiere/grid/ed/VPAttributeDialog.java | 9 +++++++++ 2 files changed, 12 insertions(+) diff --git a/client/src/org/compiere/grid/ed/VPAttribute.java b/client/src/org/compiere/grid/ed/VPAttribute.java index cd1015993f..765b00bc1f 100644 --- a/client/src/org/compiere/grid/ed/VPAttribute.java +++ b/client/src/org/compiere/grid/ed/VPAttribute.java @@ -36,6 +36,7 @@ import org.compiere.util.*; * * @author Teo Sarca, SC ARHIPAC SERVICE SRL *
  • BF [ 1895041 ] NPE when move product with attribute set + *
  • BF [ 1770177 ] Inventory Move Locator Error */ public class VPAttribute extends JComponent implements VEditor, ActionListener @@ -351,6 +352,8 @@ public class VPAttribute extends JComponent { m_text.setText(vad.getM_AttributeSetInstanceName()); M_AttributeSetInstance_ID = vad.getM_AttributeSetInstance_ID(); + if (m_GridTab != null) + m_GridTab.setValue("M_Locator_ID", vad.getM_Locator_ID()); changed = true; } } diff --git a/client/src/org/compiere/grid/ed/VPAttributeDialog.java b/client/src/org/compiere/grid/ed/VPAttributeDialog.java index 701c773168..fbec700ef7 100644 --- a/client/src/org/compiere/grid/ed/VPAttributeDialog.java +++ b/client/src/org/compiere/grid/ed/VPAttributeDialog.java @@ -739,6 +739,15 @@ public class VPAttributeDialog extends CDialog { return m_M_AttributeSetInstanceName; } // getM_AttributeSetInstanceName + + /** + * Get Locator ID + * @return M_Locator_ID + */ + public int getM_Locator_ID() + { + return m_M_Locator_ID; + } /** * Value Changed