Openbravo Issue Tracking System - Modules |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0032844 | Modules | Mass Invoicing | public | 2016-05-03 18:52 | 2016-08-26 14:44 |
|
Reporter | ngarcia | |
Assigned To | markmm82 | |
Priority | immediate | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | | |
Merge Request Status | |
Regression date | |
Regression introduced by commit | |
Regression level | |
Review Assigned To | aferraz |
Support ticket | |
OBNetwork customer | |
Regression introduced in release | |
|
Summary | 0032844: Wrong total net and gross amounts when generating an invoice with the Mass Invoicing process |
Description | Wrong total net and gross amounts when generating an invoice with the Mass Invoicing process |
Steps To Reproduce | As group admin role:
Create an Invoice Template
Add a Invoice Template Line
Open the Mass Invoicing form and select the previously created template
Select the products to use in the invoices and click Next
Click Generate and OK
Go to Sales Invoice window and check the Total Net Amount and Total Gross Amount are not correct |
Proposed Solution | Check if setting the SummedLineAmount to 0 (instead of adding the line net amount to it) in the setInvoicePropertiesAdminMode function of InvoicePropertySetter class solves the problem |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | defect | 0032428 | | closed | markmm82 | Openbravo ERP | Wrong Tax Amount and Total Gross Amount in orders created by the Copy Record process if price list includes taxes | related to | defect | 0032472 | | closed | markmm82 | Modules | Purchase Invoices with Total Gross Amount of 0 created from Procurement Contract Billing Process | caused by | feature request | 0028366 | | closed | adrianromero | Openbravo ERP | Add new functionality to calculate taxes per product BOM |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2016-05-03 18:52 | ngarcia | New Issue | |
2016-05-03 18:52 | ngarcia | Assigned To | => Triage Finance |
2016-05-03 18:52 | ngarcia | Resolution time | => 1465855200 |
2016-05-03 18:52 | ngarcia | Issue Monitored: networkb | |
2016-05-03 18:53 | ngarcia | Relationship added | caused by 0028366 |
2016-05-04 10:04 | aferraz | Relationship added | related to 0032428 |
2016-05-04 10:04 | aferraz | Relationship added | related to 0032472 |
2016-05-04 13:32 | ngarcia | Proposed Solution updated | |
2016-05-04 16:31 | jfrances | Issue Monitored: jfrances | |
2016-05-05 09:29 | aferraz | Assigned To | Triage Finance => markmm82 |
2016-05-05 19:36 | markmm82 | Status | new => scheduled |
2016-05-05 19:37 | markmm82 | Note Added: 0086223 | |
2016-05-06 16:02 | hgbot | Checkin | |
2016-05-06 16:02 | hgbot | Note Added: 0086279 | |
2016-05-06 16:02 | hgbot | Status | scheduled => resolved |
2016-05-06 16:02 | hgbot | Resolution | open => fixed |
2016-05-06 16:02 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.document.massinvoicing/rev/b0bb4dae12b5b416c8d8947ee84694786e687f41 [^] |
2016-05-06 16:02 | hgbot | Checkin | |
2016-05-06 16:02 | hgbot | Note Added: 0086280 | |
2016-05-06 16:12 | aferraz | Review Assigned To | => aferraz |
2016-05-06 16:12 | aferraz | Note Added: 0086282 | |
2016-05-06 16:12 | aferraz | Status | resolved => closed |
2016-05-09 13:38 | aferraz | File Added: 32844.txt | |
2016-05-09 13:39 | aferraz | File Deleted: 32844.txt | |
2016-05-09 13:42 | aferraz | File Added: 32844.sql | |
2016-05-09 13:43 | aferraz | Note Added: 0086312 | |
2016-08-26 14:25 | aferraz | File Deleted: 32844.sql | |
2016-08-26 14:25 | aferraz | Note Deleted: 0086312 | |
Notes |
|
|
Test Plan:
As group admin role:
Create an Invoice Template
Organization: España - Región Norte
Document type: AR Invoice
Price List: Tarifa de ventas
Payment method: Transferencia
Payment Terms: 30 days
Add a Invoice Template Line
Product: Cerveza Ale 0,5 L
Open the Mass Invoicing form
Organization: España - Región Norte
Invoice Date: Today
Business Partner: Any
Template: and select the previously created template
Select the products to use in the invoices.
Select Cerveza Ale 0,5 L
Quantity: 10
Click Next
Notice in the grid the price and total was automatic calculated:
Product: Cerveza Ale 0,5 L
Quantity: 10
Price: 2.04
Total: 20.40
Click Generate and OK
Notice that a new Invoice was generated (for instance 1000187) with a total 20.40 and a Grand Total of 24.68.
Go to Sales Invoice window and select the previously created invoice.
Check the Total Net Amount and Total Gross Amount are correct! |
|
|
(0086279)
|
hgbot
|
2016-05-06 16:02
|
|
Repository: erp/pmods/org.openbravo.document.massinvoicing
Changeset: b0bb4dae12b5b416c8d8947ee84694786e687f41
Author: Mark <markmm82 <at> gmail.com>
Date: Fri May 06 15:56:30 2016 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.document.massinvoicing/rev/b0bb4dae12b5b416c8d8947ee84694786e687f41 [^]
Fixes issue 32844: Fixed amounts when generating an invoice with Mass Invoicing
Fixed using the proposal solution in the issue description:
Setting the SummedLineAmount to 0 (instead of adding the line net amount to it) in the setInvoicePropertiesAdminMode function of InvoicePropertySetter class solves the problem.
---
M src/org/openbravo/document/massinvoicing/InvoicePropertySetter.java
---
|
|
|
(0086280)
|
hgbot
|
2016-05-06 16:02
|
|
|
|
|
|