Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0032844
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Modules] Mass Invoicingmajoralways2016-05-03 18:522016-08-26 14:44
ReporterngarciaView Statuspublic 
Assigned Tomarkmm82 
PriorityimmediateResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revisionb0bb4dae12b5
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Regression date
Regression introduced by commit
Regression level
Review Assigned Toaferraz
Regression introduced in release
Summary

0032844: Wrong total net and gross amounts when generating an invoice with the Mass Invoicing process

DescriptionWrong total net and gross amounts when generating an invoice with the Mass Invoicing process
Steps To ReproduceAs 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 SolutionCheck 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
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0032428 closedmarkmm82 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 closedmarkmm82 Modules Purchase Invoices with Total Gross Amount of 0 created from Procurement Contract Billing Process 
caused by feature request 0028366 closedadrianromero Openbravo ERP Add new functionality to calculate taxes per product BOM 

-  Notes
(0086223)
markmm82 (developer)
2016-05-05 19:37

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 (developer)
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 (developer)
2016-05-06 16:02

Repository: erp/pmods/org.openbravo.document.massinvoicing
Changeset: 2b65dd6a70611f3dfb893d2e1007f456a542872d
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Fri May 06 16:01:48 2016 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.document.massinvoicing/rev/2b65dd6a70611f3dfb893d2e1007f456a542872d [^]

Related to issue 32844: Update module version

---
M src-db/database/sourcedata/AD_MODULE.xml
---
(0086282)
aferraz (manager)
2016-05-06 16:12

Code review + Testing OK

- 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


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker