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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0035699
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 07. Sales managementmajoralways2017-04-05 09:562017-05-29 17:43
ReporterngarciaView Statuspublic 
Assigned ToAtulOpenbravo 
PriorityimmediateResolutionfixedFixed in Version3.0PR17Q3
StatusclosedFix in branchFixed in SCM revision024c93615355
ProjectionnoneETAnoneTarget Version
OSAnyDatabasePostgreSQLJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Toaferraz
Web browser
ModulesCore
Regression levelProduction - Confirmed Stable
Regression date2015-07-16
Regression introduced in release3.0PR15Q4
Regression introduced by commithttps://code.openbravo.com/erp/devel/pi/rev/8860b648abb2 [^]
Triggers an Emergency PackNo
Summary

0035699: Wrong total gross amount when reactivating an order or a invoice which includes a basic discount of 100%

DescriptionWrong total gross amount when reactivating an order or a invoice which includes a basic discount of 100%
Steps To ReproduceAs group admin role:
   Create a Basic Discount of 100%
   Assign it to Hoteles Buenas Noches, S.A. business partner
   Create a sales invoice to it
   Check the discount is shown in the Basic Discounts tab
   Add a product to it with a tax rate different from 0 and check the Total Net Amount and Total Gross Amounts are correct (Total Gross Amount = Total Net Amount + Tax Amount
   Complete it and check both Total Gross Amount and Total Net Amount are 0 (discount is applied)
   Reactivate it and check the Total Gross Amount is wrong, it does not include the tax amount (Total Gross Amount = Total Net Amount)
   If you now remove the discount and complete the invoice again, the total gross amount will remain wrong
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0035785 closedcollazoandy4 Discounts line in processed invoices not rounded in database 
depends on backport 00357153.0PR17Q2 closedAtulOpenbravo Wrong total gross amount when reactivating an order or a invoice which includes a basic discount of 100% 
depends on backport 00357163.0PR17Q1.1 closedAtulOpenbravo Wrong total gross amount when reactivating an order or a invoice which includes a basic discount of 100% 
depends on backport 00357173.0PR16Q4.4 closedAtulOpenbravo Wrong total gross amount when reactivating an order or a invoice which includes a basic discount of 100% 
caused by feature request 0028366 closedadrianromero Add new functionality to calculate taxes per product BOM 
related to defect 0037890 scheduledcollazoandy4 Wrong total gross amount when reactivating an order or a invoice which includes two basic discount of 100% 

-  Notes
(0095857)
AtulOpenbravo (developer)
2017-04-06 08:38

Test Plan:-
- Login as Group Admin role.
- Create a Basic Discount of 100%.
- Assign it to Hoteles Buenas Noches, S.A. business partner.
- Create a sales invoice for above business partner.
- Add the discount of 100% in the Basic Discounts tab.
- Add a product to it with a tax rate different from 0 and check the Total Net Amount and Total Gross Amounts are correct. (Total Gross Amount = Total Net Amount + Tax Amount.
- Complete it and check both Total Gross Amount and Total Net Amount are 0 (as discount is applied).
- Reactivate it and check the Total Gross Amount is wrong, it does not include the tax amount (Total Gross Amount = Total Net Amount).
- Remove the discount and complete the invoice again, check that total gross amount is set properly.

Test Plan:-
- Login as Group Admin role.
- Create a Basic Discount of 100%
- Assign it to Hoteles Buenas Noches, S.A. business partner.
- Create a sales order for above business partner.
- Check that the discount of 100% is added in the Basic Discounts tab
- Add a product to it with a tax rate different from 0 and check the Total Net Amount and Total Gross Amounts are correct. (Total Gross Amount = Total Net Amount + Tax Amount.
- Complete it and check both Total Gross Amount and Total Net Amount are 0 (as discount is applied).
- Reactivate it and check the Total Gross Amount is wrong, it does not include the tax amount (Total Gross Amount = Total Net Amount).
- Remove the discount and complete the order again, check that total gross amount is set properly.
(0095903)
AtulOpenbravo (developer)
2017-04-07 12:02

Test Plan

- Login as Group Admin role.
- Create a Basic Discount of 100%.
- Create a Purchase Price List with price includes tax flag = Yes.
- Create a version for Purchase Price List.
- Add Product Price for product "Vino Blanco 0,75L" and Unit Price = List Price = 10.
- Create a Purchase Order for business partner "Bebidas Alegres, S.L." with pricelist "Purchase Price List".
- Add product "Vino Blanco 0,75L", Ordered Qty = 1000.
- As Price List Includes Tax, Unit Price is set as 8.26.
- Add 100% Discount in Basic Discount Tab.
- Check Gross Amount = 10000, Total Net Amount = 8264.46.
- Complete the Order.
- Check Gross Amount = 0, Total Net Amount = 0.
- Reactivate the Order.
- Check Gross Amount = 10000, Total Net Amount = 8264.46.
- Delete the Basic Discount record.
- Complete the Order again.
- Check Gross Amount = 10000, Total Net Amount = 8264.46.

Repeat same test plan for Purchase Invoice.

Test Plan

- Login as Group Admin role.
- Create a Purchase Order for business partner "La Fruta es la Vida, S.L." with pricelist "Tarifa La Fruta es la Vida".
- Add product "Zumo de Pera 0,5L", Ordered Qty = 1000, Unit Price = 0.75
- Add product "Zumo de Pera 0,5L", Ordered Qty = 1000, Unit Price = 0.75
- Add 5% Discount in Basic Discount Tab.
- Check Gross Amount = 1815, Total Net Amount = 1500.
- Complete the Order.
- Check Gross Amount = 1724.25, Total Net Amount = 1425.
- Reactivate the Order.
- Check Gross Amount = 1815, Total Net Amount = 1500.
- Delete the Basic Discount record.
- Complete the Order again.
- Check Gross Amount = 1815, Total Net Amount = 1500.

Repeat same test plan for Purchase Invoice.
(0095954)
hgbot (developer)
2017-04-10 21:04

Repository: erp/devel/pi
Changeset: 024c93615355c3e0243d18e0d7a353ce8a6acb50
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Fri Apr 07 00:50:19 2017 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/024c93615355c3e0243d18e0d7a353ce8a6acb50 [^]

Fixes Issue 35699:Wrong total gross amount when reactivating an order or a
invoice which includes a basic discount of 100%

In PostgreSQL instance to achieve trigger execution in order to update
c_invoicetax, c_ordertax properly before deleting discount invoice and
order lines, c_invoicelinetax and c_orderlinetax lines are deleted.

---
M src-db/database/model/functions/C_INVOICE_POST.xml
M src-db/database/model/functions/C_ORDER_POST1.xml
---
(0095964)
aferraz (manager)
2017-04-11 10:09

Code review + Testing OK
(0096368)
hgbot (developer)
2017-05-04 09:32

Repository: erp/devel/pi
Changeset: c4b090768bd10ffe61da1b04c0065764f0d65a1d
Author: Armaignac <collazoandy4 <at> gmail.com>
Date: Sun Apr 16 23:23:43 2017 -0400
URL: http://code.openbravo.com/erp/devel/pi/rev/c4b090768bd10ffe61da1b04c0065764f0d65a1d [^]

Related to issue 35699: Add some automated tests.

Incluided support for taxes test with discount lines
Two new products, and 10% and 100% discount was added to the dataset of QA Client
Code refactoring for test taxes with discount lines
Two taxes test group with 10% and 100% discount was added

---
M referencedata/sampledata/QA_Testing/C_DISCOUNT.xml
M referencedata/sampledata/QA_Testing/M_PRODUCT.xml
M referencedata/sampledata/QA_Testing/M_PRODUCT_ACCT.xml
M src-test/src/org/openbravo/test/taxes/TaxesTest.java
M src-test/src/org/openbravo/test/taxes/data/ProductDataConstants.java
A referencedata/sampledata/QA_Testing/C_INVOICE_DISCOUNT.xml
A referencedata/sampledata/QA_Testing/C_ORDER_DISCOUNT.xml
A src-test/src/org/openbravo/test/taxes/data/TaxesTestData185.java
A src-test/src/org/openbravo/test/taxes/data/TaxesTestData186.java
A src-test/src/org/openbravo/test/taxes/data/TaxesTestData187.java
A src-test/src/org/openbravo/test/taxes/data/TaxesTestData188.java
A src-test/src/org/openbravo/test/taxes/data/TaxesTestData189.java
A src-test/src/org/openbravo/test/taxes/data/TaxesTestData190.java
A src-test/src/org/openbravo/test/taxes/data/TaxesTestData191.java
A src-test/src/org/openbravo/test/taxes/data/TaxesTestData192.java
A src-test/src/org/openbravo/test/taxes/data/TaxesTestData193.java
A src-test/src/org/openbravo/test/taxes/data/TaxesTestData194.java
A src-test/src/org/openbravo/test/taxes/data/TaxesTestData195.java
A src-test/src/org/openbravo/test/taxes/data/TaxesTestData196.java
A src-test/src/org/openbravo/test/taxes/data/TaxesTestData197.java
A src-test/src/org/openbravo/test/taxes/data/TaxesTestData198.java
A src-test/src/org/openbravo/test/taxes/data/TaxesTestData199.java
A src-test/src/org/openbravo/test/taxes/data/TaxesTestData200.java
---
(0096883)
hudsonbot (developer)
2017-05-29 17:43

A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/1ee70113bdc4 [^]
Maturity status: Test
(0096933)
hudsonbot (developer)
2017-05-29 17:43

A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/1ee70113bdc4 [^]
Maturity status: Test

- Issue History
Date Modified Username Field Change
2017-04-05 09:56 ngarcia New Issue
2017-04-05 09:56 ngarcia Assigned To => Triage Finance
2017-04-05 09:56 ngarcia Modules => Core
2017-04-05 09:56 ngarcia Resolution time => 1493157600
2017-04-05 09:56 ngarcia Triggers an Emergency Pack => No
2017-04-05 09:57 ngarcia Issue Monitored: networkb
2017-04-05 10:06 heccam Issue Monitored: heccam
2017-04-05 10:18 ngarcia Priority urgent => immediate
2017-04-05 10:18 ngarcia Relationship added caused by 0028366
2017-04-05 10:20 ngarcia Summary Wrong total gross amount when reactivating a sales invoice which includes a basic discount of 100% => Wrong total gross amount when reactivating an order or a invoice which includes a basic discount of 100%
2017-04-05 10:20 ngarcia Description Updated View Revisions
2017-04-05 13:46 AtulOpenbravo Status new => scheduled
2017-04-06 08:38 AtulOpenbravo Note Added: 0095857
2017-04-06 09:53 aferraz Status scheduled => feedback
2017-04-06 09:53 aferraz Status feedback => new
2017-04-06 11:11 aferraz Steps to Reproduce Updated View Revisions
2017-04-06 11:36 aferraz Assigned To Triage Finance => AtulOpenbravo
2017-04-06 16:59 AtulOpenbravo Status new => scheduled
2017-04-06 17:02 AtulOpenbravo Regression level => Production - Confirmed Stable
2017-04-06 17:02 AtulOpenbravo Regression date => 2015-07-16
2017-04-06 17:02 AtulOpenbravo Regression introduced in release => 3.0PR15Q4
2017-04-06 17:02 AtulOpenbravo Regression introduced by commit => https://code.openbravo.com/erp/devel/pi/rev/8860b648abb2 [^]
2017-04-07 12:02 AtulOpenbravo Note Added: 0095903
2017-04-10 21:04 hgbot Checkin
2017-04-10 21:04 hgbot Note Added: 0095954
2017-04-10 21:04 hgbot Status scheduled => resolved
2017-04-10 21:04 hgbot Resolution open => fixed
2017-04-10 21:04 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/024c93615355c3e0243d18e0d7a353ce8a6acb50 [^]
2017-04-11 10:09 aferraz Review Assigned To => aferraz
2017-04-11 10:09 aferraz Note Added: 0095964
2017-04-11 10:09 aferraz Status resolved => closed
2017-04-11 10:09 aferraz Fixed in Version => 3.0PR17Q3
2017-05-02 16:59 aferraz Relationship added related to 0035785
2017-05-04 09:32 hgbot Checkin
2017-05-04 09:32 hgbot Note Added: 0096368
2017-05-29 17:43 hudsonbot Checkin
2017-05-29 17:43 hudsonbot Note Added: 0096883
2017-05-29 17:43 hudsonbot Checkin
2017-05-29 17:43 hudsonbot Note Added: 0096933
2018-02-12 16:05 ngarcia Relationship added related to 0037890


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker