BF [3131227] - Product Price Vendor Break and UM conversion

https://sourceforge.net/tracker/index.php?func=detail&aid=3131227&group_id=176962&atid=879335
This commit is contained in:
Carlos Ruiz 2011-03-25 20:33:42 -05:00
parent 68c975a347
commit f3f4881409
2 changed files with 4 additions and 2 deletions

View File

@ -539,12 +539,13 @@ public class CalloutInvoice extends CalloutEngine
// Product Qty changed - recalc price
else if ((mField.getColumnName().equals("QtyInvoiced")
|| mField.getColumnName().equals("QtyEntered")
|| mField.getColumnName().equals("C_UOM_ID")
|| mField.getColumnName().equals("M_Product_ID"))
&& !"N".equals(Env.getContext(ctx, WindowNo, "DiscountSchema")))
{
int C_BPartner_ID = Env.getContextAsInt(ctx, WindowNo, "C_BPartner_ID");
if (mField.getColumnName().equals("QtyEntered"))
QtyInvoiced = MUOMConversion.convertProductTo (ctx, M_Product_ID,
QtyInvoiced = MUOMConversion.convertProductFrom (ctx, M_Product_ID,
C_UOM_To_ID, QtyEntered);
if (QtyInvoiced == null)
QtyInvoiced = QtyEntered;

View File

@ -1036,12 +1036,13 @@ public class CalloutOrder extends CalloutEngine
// Product Qty changed - recalc price
else if ((mField.getColumnName().equals("QtyOrdered")
|| mField.getColumnName().equals("QtyEntered")
|| mField.getColumnName().equals("C_UOM_ID")
|| mField.getColumnName().equals("M_Product_ID"))
&& !"N".equals(Env.getContext(ctx, WindowNo, "DiscountSchema")))
{
int C_BPartner_ID = Env.getContextAsInt(ctx, WindowNo, "C_BPartner_ID");
if (mField.getColumnName().equals("QtyEntered"))
QtyOrdered = MUOMConversion.convertProductTo (ctx, M_Product_ID,
QtyOrdered = MUOMConversion.convertProductFrom (ctx, M_Product_ID,
C_UOM_To_ID, QtyEntered);
if (QtyOrdered == null)
QtyOrdered = QtyEntered;