details: https://code.openbravo.com/erp/devel/pi/rev/60f6ae5c306d
changeset: 19786:60f6ae5c306d
user: David Miguelez <david.miguelez <at> openbravo.com>
date: Fri Feb 22 14:04:03 2013 +0100
summary: Fixes Issue 23109: In Requisition lines the UOM is not updated if a
pricelist is null
diffstat:
src/org/openbravo/erpCommon/ad_callouts/SL_RequisitionLine_Product.java | 11
++++-----
1 files changed, 5 insertions(+), 6 deletions(-)
diffs (28 lines):
diff -r 589cef1e8c96 -r 60f6ae5c306d
src/org/openbravo/erpCommon/ad_callouts/SL_RequisitionLine_Product.java
--- a/src/org/openbravo/erpCommon/ad_callouts/SL_RequisitionLine_Product.java
Thu Feb 21 13:57:18 2013 +0100
+++ b/src/org/openbravo/erpCommon/ad_callouts/SL_RequisitionLine_Product.java
Fri Feb 22 14:04:03 2013 +0100
@@ -106,6 +106,11 @@
if (strPriceListId.equals(""))
strPriceListId = SLRequisitionLineProductData.selectPriceList(this,
strRequisition);
if (!strPriceListId.equals("")) {
+ if (OBDal.getInstance().get(PriceList.class,
strPriceListId).isPriceIncludesTax()) {
+ strResult.append("new Array(\"inpgrossprice\", \"Y\"),\n"); //
auxiliaryInput
+ } else {
+ strResult.append("new Array(\"inpgrossprice\", \"N\"),\n"); //
auxiliaryInput
+ }
String strPriceListVersion =
SLRequisitionLineProductData.selectPriceListVersion(this,
strPriceListId, strDueDate);
if (!strPriceListVersion.equals("")) {
@@ -154,12 +159,6 @@
}
}
- if (OBDal.getInstance().get(PriceList.class,
strPriceListId).isPriceIncludesTax()) {
- strResult.append("new Array(\"inpgrossprice\", \"Y\"),\n"); //
auxiliaryInput
- } else {
- strResult.append("new Array(\"inpgrossprice\", \"N\"),\n"); //
auxiliaryInput
- }
-
if (strChanged.equals("inpmProductId")) {
strResult.append("new Array(\"inpcUomId\", "
+ (strUOM.equals("") ? "\"\"" : "\"" + strUOM + "\"") + "),\n");
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits