details: https://code.openbravo.com/erp/devel/pi/rev/a6433daf19d1
changeset: 25760:a6433daf19d1
user: Sandra Huguet <sandra.huguet <at> openbravo.com>
date: Tue Jan 27 17:19:36 2015 +0100
summary: Fixed bug 28780: Return to Vendor fails when unit price is zero or
empty
after refactoring, when Unit Price is empty in the pick&edit
in SRMOPickEditLines.java class UnitPrice value comes as empty string,
before refactoring this value was null.
diffstat:
src/org/openbravo/common/actionhandler/SRMOPickEditLines.java | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 0d3eae75816c -r a6433daf19d1
src/org/openbravo/common/actionhandler/SRMOPickEditLines.java
--- a/src/org/openbravo/common/actionhandler/SRMOPickEditLines.java Tue Jan
27 15:23:16 2015 +0100
+++ b/src/org/openbravo/common/actionhandler/SRMOPickEditLines.java Tue Jan
27 17:19:36 2015 +0100
@@ -11,7 +11,7 @@
* under the License.
* The Original Code is Openbravo ERP.
* The Initial Developer of the Original Code is Openbravo SLU
- * All portions are Copyright (C) 2011-2012 Openbravo SLU
+ * All portions are Copyright (C) 2011-2015 Openbravo SLU
* All Rights Reserved.
* Contributor(s): ______________________________________.
************************************************************************
@@ -218,7 +218,7 @@
final int pricePrecision =
order.getCurrency().getPricePrecision().intValue();
final int stdPrecision =
order.getCurrency().getStandardPrecision().intValue();
- if (selectedLine.get("unitPrice").equals(null)) {
+ if (selectedLine.get("unitPrice").equals(null) ||
"".equals(selectedLine.get("unitPrice"))) {
try {
final ProductPrice pp = FinancialUtils.getProductPrice(product,
order.getOrderDate(),
isSOTrx, order.getPriceList());
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits