[OFBiz] SVN: r6918 - trunk/applications/accounting/src/org/ofbiz/accounting/invoice

sichen@svn.ofbiz.org sichen at svn.ofbiz.org
Fri Mar 3 17:00:25 CST 2006


Author: sichen
Date: 2006-03-03 17:00:21 -0600 (Fri, 03 Mar 2006)
New Revision: 6918

Modified:
   trunk/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java
Log:
Use some of the new BigDecimal methods from OrderReadHelper to get values for InvoiceServices.

Modified: trunk/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java
===================================================================
--- trunk/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java	2006-03-03 22:52:24 UTC (rev 6917)
+++ trunk/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java	2006-03-03 23:00:21 UTC (rev 6918)
@@ -171,11 +171,11 @@
             String billFromVendorPartyId = orh.getBillFromParty().getString("partyId");
 
             // get some quantity totals
-            BigDecimal totalItemsInOrder = new BigDecimal(orh.getTotalOrderItemsQuantity());
+            BigDecimal totalItemsInOrder = orh.getTotalOrderItemsQuantityBd();
 
             // get some price totals
-            BigDecimal shippableAmount = new BigDecimal(orh.getShippableTotal(null));
-            BigDecimal orderSubTotal = new BigDecimal(orh.getOrderItemsSubTotal());
+            BigDecimal shippableAmount = orh.getShippableTotalBd(null);
+            BigDecimal orderSubTotal = orh.getOrderItemsSubTotalBd();
 
             BigDecimal invoiceShipProRateAmount = ZERO;
             BigDecimal invoiceSubTotal = ZERO;



More information about the Svn mailing list