Related to issue 23560
authorPandeeswari Ramakrishnan <pandeeswari.ramakrishnan@openbravo.com>
Tue, 28 May 2013 17:12:12 +0530
changeset 20485 5e89abb03c8d
parent 20484 d31e48e598fb
child 20486 f5a58673fad6
Related to issue 23560
src/org/openbravo/erpCommon/ad_actionButton/RMInsertOrphanLine.java
--- a/src/org/openbravo/erpCommon/ad_actionButton/RMInsertOrphanLine.java	Tue May 28 16:08:36 2013 +0530
+++ b/src/org/openbravo/erpCommon/ad_actionButton/RMInsertOrphanLine.java	Tue May 28 17:12:12 2013 +0530
@@ -95,7 +95,7 @@
               .negate());
           BigDecimal newUnitPrice = FinancialUtils.calculateNetFromGross(strTaxId,
               productPrice.getStandardPrice(), currency.getPricePrecision().intValue(),
-              newOrderLine.getTaxableAmount(), returnedQty);
+              newOrderLine.getTaxableAmount(), returnedQty).multiply(returnedQty);
           newOrderLine.setUnitPrice(newUnitPrice);
         }
       } else {