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:
parent
18f5fa4585
commit
3d24c7b8dd
|
@ -93,12 +93,12 @@ public interface I_T_BOMLine
|
|||
/** Set Cost.
|
||||
* Cost information
|
||||
*/
|
||||
public void setCost (int Cost);
|
||||
public void setCost (BigDecimal Cost);
|
||||
|
||||
/** Get Cost.
|
||||
* Cost information
|
||||
*/
|
||||
public int getCost();
|
||||
public BigDecimal getCost();
|
||||
|
||||
/** Column name CurrentCostPrice */
|
||||
public static final String COLUMNNAME_CurrentCostPrice = "CurrentCostPrice";
|
||||
|
|
|
@ -157,20 +157,20 @@ public class X_T_BOMLine extends PO implements I_T_BOMLine, I_Persistent
|
|||
@param Cost
|
||||
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.
|
||||
@return Cost information
|
||||
*/
|
||||
public int getCost ()
|
||||
public BigDecimal getCost ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_Cost);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Cost);
|
||||
if (bd == null)
|
||||
return Env.ZERO;
|
||||
return bd;
|
||||
}
|
||||
|
||||
/** Set Current Cost Price.
|
||||
|
|
|
@ -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
|
||||
;
|
||||
|
|
@ -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
|
||||
;
|
||||
|
Loading…
Reference in New Issue