[
https://issues.apache.org/jira/browse/OFBIZ-1222?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sharan Foga updated OFBIZ-1222:
-------------------------------
Sprint: Bug Crush Event - 21/2/2015
> Improvements while creating invoice for order
> ---------------------------------------------
>
> Key: OFBIZ-1222
> URL: https://issues.apache.org/jira/browse/OFBIZ-1222
> Project: OFBiz
> Issue Type: Improvement
> Components: accounting
> Reporter: Rashko Rejmer
> Priority: Minor
> Attachments: InvoiceServices.patch
>
>
> I have made patch that adds 2 improvements to the
> InvoiceServices.createInvoiceForOrder service:
> - this method doesn't checks if the billItems Map contains already invoiced
> items. This is not visible through the UI. In all places where this service
> is invoked they are passed not invoiced order items. This improvement will
> prevent double invoicing if only part of one order item was invoiced and we
> try to invoice the second part(e.g if we bought 5 x GZ-1000 products and we
> invoice only 2 of them, then we try to invoice the rest - 3);
> - now quantities of rental order items are calculated correctly. If one
> order items rents fixed asset for 2 days the quantity of the invoice item
> should be multiplied by 2. The same is valid for adjustment quantities for
> additional charges for second and n-th person;
> - some cleanups - variables that are not used any more;
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)