Cost BOM Multi Level Review

http://sourceforge.net/tracker2/?func=detail&atid=879335&aid=2504885&group_id=176962

Fix T_BOMLine.Cost reference type (changed from table dir to cost+price)
This commit is contained in:
teo_sarca 2009-01-15 07:26:12 +00:00
parent 18f5fa4585
commit 3d24c7b8dd
4 changed files with 19 additions and 9 deletions

View File

@ -93,12 +93,12 @@ public interface I_T_BOMLine
/** Set Cost. /** Set Cost.
* Cost information * Cost information
*/ */
public void setCost (int Cost); public void setCost (BigDecimal Cost);
/** Get Cost. /** Get Cost.
* Cost information * Cost information
*/ */
public int getCost(); public BigDecimal getCost();
/** Column name CurrentCostPrice */ /** Column name CurrentCostPrice */
public static final String COLUMNNAME_CurrentCostPrice = "CurrentCostPrice"; public static final String COLUMNNAME_CurrentCostPrice = "CurrentCostPrice";

View File

@ -157,20 +157,20 @@ public class X_T_BOMLine extends PO implements I_T_BOMLine, I_Persistent
@param Cost @param Cost
Cost information Cost information
*/ */
public void setCost (int Cost) public void setCost (BigDecimal Cost)
{ {
set_Value (COLUMNNAME_Cost, Integer.valueOf(Cost)); set_Value (COLUMNNAME_Cost, Cost);
} }
/** Get Cost. /** Get Cost.
@return Cost information @return Cost information
*/ */
public int getCost () public BigDecimal getCost ()
{ {
Integer ii = (Integer)get_Value(COLUMNNAME_Cost); BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Cost);
if (ii == null) if (bd == null)
return 0; return Env.ZERO;
return ii.intValue(); return bd;
} }
/** Set Current Cost Price. /** Set Current Cost Price.

View File

@ -0,0 +1,5 @@
-- 14.01.2009 14:44:43 EET
-- FR [ 2457781 ] Introduce NoVendorForProductException
UPDATE AD_Column SET AD_Reference_ID=37,Updated=TO_DATE('2009-01-14 14:44:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56629
;

View File

@ -0,0 +1,5 @@
-- 14.01.2009 14:44:43 EET
-- FR [ 2457781 ] Introduce NoVendorForProductException
UPDATE AD_Column SET AD_Reference_ID=37,Updated=TO_TIMESTAMP('2009-01-14 14:44:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56629
;