vpj-cd 2008-09-03 02:11:33 +00:00
parent bba26f85e0
commit 7de7553dac
2 changed files with 4 additions and 32 deletions

View File

@ -314,14 +314,7 @@ public class CalloutInvoice extends CalloutEngine
//
int M_PriceList_ID = Env.getContextAsInt(ctx, WindowNo, "M_PriceList_ID");
pp.setM_PriceList_ID(M_PriceList_ID);
// globalqss - fix reported bug [ 1643489 ] PriceListVersion misfunctionality
int M_PriceList_Version_ID;
// try to get the price list version from info product tab
M_PriceList_Version_ID = Env.getContextAsInt(Env.getCtx(), WindowNo, Env.TAB_INFO, "M_PriceList_Version_ID");
// if not found try to get from the context of window
if (M_PriceList_Version_ID == 0)
M_PriceList_Version_ID = Env.getContextAsInt(ctx, WindowNo, "M_PriceList_Version_ID");
// end globalqss
int M_PriceList_Version_ID = Env.getContextAsInt(ctx, WindowNo, "M_PriceList_Version_ID");
pp.setM_PriceList_Version_ID(M_PriceList_Version_ID);
Timestamp date = Env.getContextAsDate(ctx, WindowNo, "DateInvoiced");
pp.setPriceDate(date);
@ -518,14 +511,7 @@ public class CalloutInvoice extends CalloutEngine
boolean IsSOTrx = Env.getContext(ctx, WindowNo, "IsSOTrx").equals("Y");
MProductPricing pp = new MProductPricing (M_Product_ID, C_BPartner_ID, QtyInvoiced, IsSOTrx);
pp.setM_PriceList_ID(M_PriceList_ID);
// globalqss - fix reported bug [ 1643489 ] PriceListVersion misfunctionality
int M_PriceList_Version_ID;
// try to get the price list version from info product tab
M_PriceList_Version_ID = Env.getContextAsInt(Env.getCtx(), WindowNo, Env.TAB_INFO, "M_PriceList_Version_ID");
// if not found try to get from the context of window
if (M_PriceList_Version_ID == 0)
M_PriceList_Version_ID = Env.getContextAsInt(ctx, WindowNo, "M_PriceList_Version_ID");
// end globalqss
int M_PriceList_Version_ID = Env.getContextAsInt(ctx, WindowNo, "M_PriceList_Version_ID");
pp.setM_PriceList_Version_ID(M_PriceList_Version_ID);
Timestamp date = (Timestamp)mTab.getValue("DateInvoiced");
pp.setPriceDate(date);

View File

@ -707,14 +707,7 @@ public class CalloutOrder extends CalloutEngine
int M_PriceList_ID = Env.getContextAsInt(ctx, WindowNo, "M_PriceList_ID");
pp.setM_PriceList_ID(M_PriceList_ID);
/** PLV is only accurate if PL selected in header */
// globalqss - fix reported bug [ 1643489 ] PriceListVersion misfunctionality
int M_PriceList_Version_ID;
// try to get the price list version from info product tab
M_PriceList_Version_ID = Env.getContextAsInt(ctx, WindowNo, Env.TAB_INFO, "M_PriceList_Version_ID");
// if not found try to get from the context of window
if (M_PriceList_Version_ID == 0)
M_PriceList_Version_ID = Env.getContextAsInt(ctx, WindowNo, "M_PriceList_Version_ID");
// end globalqss
int M_PriceList_Version_ID = Env.getContextAsInt(ctx, WindowNo, "M_PriceList_Version_ID");
pp.setM_PriceList_Version_ID(M_PriceList_Version_ID);
Timestamp orderDate = (Timestamp)mTab.getValue("DateOrdered");
pp.setPriceDate(orderDate);
@ -973,14 +966,7 @@ public class CalloutOrder extends CalloutEngine
boolean IsSOTrx = Env.getContext(ctx, WindowNo, "IsSOTrx").equals("Y");
MProductPricing pp = new MProductPricing (M_Product_ID, C_BPartner_ID, QtyOrdered, IsSOTrx);
pp.setM_PriceList_ID(M_PriceList_ID);
// globalqss - fix reported bug [ 1643489 ] PriceListVersion misfunctionality
int M_PriceList_Version_ID;
// try to get the price list version from info product tab
M_PriceList_Version_ID = Env.getContextAsInt(ctx, WindowNo, Env.TAB_INFO, "M_PriceList_Version_ID");
// if not found try to get from the context of window
if (M_PriceList_Version_ID == 0)
M_PriceList_Version_ID = Env.getContextAsInt(ctx, WindowNo, "M_PriceList_Version_ID");
// end globalqss
int M_PriceList_Version_ID = Env.getContextAsInt(ctx, WindowNo, "M_PriceList_Version_ID");
pp.setM_PriceList_Version_ID(M_PriceList_Version_ID);
Timestamp date = (Timestamp)mTab.getValue("DateOrdered");
pp.setPriceDate(date);