IDEMPIERE-113 Volume and Weights are not imported in Product importer

This commit is contained in:
Thomas Bayen 2012-04-06 16:46:59 +02:00
parent b3b69eca5d
commit 008acb6848
5 changed files with 39 additions and 21 deletions

View File

@ -0,0 +1,8 @@
-- Apr 6, 2012 4:08:25 PM CEST
-- IDEMPIERE-113 Volume and Weight are not imported in Product importer
UPDATE AD_Column SET AD_Reference_ID=12,Updated=TO_DATE('2012-04-06 16:08:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=7839
;
-- Apr 6, 2012 4:10:02 PM CEST
UPDATE AD_Column SET AD_Reference_ID=12,Updated=TO_DATE('2012-04-06 16:10:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=7832
;

View File

@ -0,0 +1,8 @@
-- Apr 6, 2012 4:08:25 PM CEST
-- IDEMPIERE-113 Volume and Weight are not imported in Product importer
UPDATE AD_Column SET AD_Reference_ID=12,Updated=TO_TIMESTAMP('2012-04-06 16:08:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=7839
;
-- Apr 6, 2012 4:10:02 PM CEST
UPDATE AD_Column SET AD_Reference_ID=12,Updated=TO_TIMESTAMP('2012-04-06 16:10:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=7832
;

View File

@ -22,7 +22,7 @@ import org.compiere.util.KeyNamePair;
/** Generated Interface for I_Product
* @author Adempiere (generated)
* @version Release 3.6.0LTS
* @version 360LTS.015
*/
public interface I_I_Product
{
@ -674,12 +674,12 @@ public interface I_I_Product
/** Set Volume.
* Volume of a product
*/
public void setVolume (int Volume);
public void setVolume (BigDecimal Volume);
/** Get Volume.
* Volume of a product
*/
public int getVolume();
public BigDecimal getVolume();
/** Column name Weight */
public static final String COLUMNNAME_Weight = "Weight";
@ -687,12 +687,12 @@ public interface I_I_Product
/** Set Weight.
* Weight of a product
*/
public void setWeight (int Weight);
public void setWeight (BigDecimal Weight);
/** Get Weight.
* Weight of a product
*/
public int getWeight();
public BigDecimal getWeight();
/** Column name X12DE355 */
public static final String COLUMNNAME_X12DE355 = "X12DE355";

View File

@ -263,6 +263,8 @@ public class MProduct extends X_M_Product
setProductType(impP.getProductType());
setImageURL(impP.getImageURL());
setDescriptionURL(impP.getDescriptionURL());
setVolume(impP.getVolume());
setWeight(impP.getWeight());
} // MProduct
/** Additional Downloads */

View File

@ -26,14 +26,14 @@ import org.compiere.util.KeyNamePair;
/** Generated Model for I_Product
* @author Adempiere (generated)
* @version Release 3.6.0LTS - $Id$ */
* @version 360LTS.015 - $Id$ */
public class X_I_Product extends PO implements I_I_Product, I_Persistent
{
/**
*
*/
private static final long serialVersionUID = 20100614L;
private static final long serialVersionUID = 20120406L;
/** Standard Constructor */
public X_I_Product (Properties ctx, int I_Product_ID, String trxName)
@ -952,40 +952,40 @@ public class X_I_Product extends PO implements I_I_Product, I_Persistent
@param Volume
Volume of a product
*/
public void setVolume (int Volume)
public void setVolume (BigDecimal Volume)
{
set_Value (COLUMNNAME_Volume, Integer.valueOf(Volume));
set_Value (COLUMNNAME_Volume, Volume);
}
/** Get Volume.
@return Volume of a product
*/
public int getVolume ()
public BigDecimal getVolume ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_Volume);
if (ii == null)
return 0;
return ii.intValue();
BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Volume);
if (bd == null)
return Env.ZERO;
return bd;
}
/** Set Weight.
@param Weight
Weight of a product
*/
public void setWeight (int Weight)
public void setWeight (BigDecimal Weight)
{
set_Value (COLUMNNAME_Weight, Integer.valueOf(Weight));
set_Value (COLUMNNAME_Weight, Weight);
}
/** Get Weight.
@return Weight of a product
*/
public int getWeight ()
public BigDecimal getWeight ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_Weight);
if (ii == null)
return 0;
return ii.intValue();
BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Weight);
if (bd == null)
return Env.ZERO;
return bd;
}
/** Set UOM Code.