Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0033864 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
backport | [Openbravo ERP] 07. Sales management | major | always | 2016-08-31 09:32 | 2023-03-22 02:08 | |||
Reporter | ngarcia | View Status | public | |||||
Assigned To | AtulOpenbravo | |||||||
Priority | immediate | Resolution | fixed | Fixed in Version | 3.0PR16Q2.3 | |||
Status | closed | Fix in branch | Fixed in SCM revision | 9cb8c61838fb | ||||
Projection | none | ETA | none | Target Version | 3.0PR16Q2.3 | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Review Assigned To | aferraz | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0033864: Wrong Total Gross Amount in orders and invoices as the changes made in tax tab records do not recalculate it | |||||||
Description | Wrong Total Gross Amount in orders and invoices as the changes made in tax tab records do not recalculate it Should the user be able to edit or remove the records in tax tab with recalculate = 'Y'? | |||||||
Steps To Reproduce | As group admin role: Create a Sales Invoice Add a line with a product and a tax rate different from 0 Go to Tax tab and modify the tax amount. Check the recalculate checkbox is selected The total gross amount is not updated Complete it and check the total gross amount is not the total net amount plus tax amount Repeat the process with purchase invoice Repeat the process also by deleting the record in Tax tab instead of editing it In this case the problem is also reproducible in orders If you post the invoice the difference is posted in the Suspence Balancing Account | |||||||
Proposed Solution | It should not be posible to either modify or delete "Tax" set as "Recalculate" = Yes (the ones created automatically by Openbravo) New lines should be created manually in case a given adjustment is required. | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | ||||||||
|
Notes | |
(0089952) AtulOpenbravo (developer) 2016-09-14 13:07 |
Test Plan - Create a Sales Invoice for "Moon Light Restaurants, Co." in F&B US Inc Org. - Create Line with Product "Ale Beer", Quantity = 1, Unit Price 100, Tax = CA Sales Tax. - Check Header info: Total Gross Amount = 108.25, Total Net Amount = 100. - Go to Tax Tab: Select record with CA Sales Tax. - Check Tax, Tax Amount, Taxable Amount fields are not editable, Recalculate flag = Yes. - Try to delete above record: Error message is shown:"Cannot delete invoice tax record with recalculate flag = yes." - Add new record in Invoice Tax Tab with Tax "FL Sales Tax",Taxable amount=100. - Check Tax, Tax Amount, Taxable Amount fields are editable, Recalculate flag = No. Tax Amount = 6. - Check Header info: Total Gross Amount = 114.25, Total Net Amount = 100. - Try to delete above record. Record is deleted successfully. - Check Header info: Total Gross Amount = 108.25, Total Net Amount = 100. - Try to delete Invoice Header. Record is deleted successfully. |
(0090013) hgbot (developer) 2016-09-16 09:17 |
Repository: erp/backports/3.0PR16Q2.3 Changeset: 9cb8c61838fbe9c801b6e02b90f9e0858af52cd8 Author: Atul Gaware <atul.gaware <at> openbravo.com> Date: Wed Sep 14 15:36:20 2016 +0530 URL: http://code.openbravo.com/erp/backports/3.0PR16Q2.3/rev/9cb8c61838fbe9c801b6e02b90f9e0858af52cd8 [^] Fixes issue 33864: Wrong Total Gross Amount in orders and invoices Wrong Total Gross Amount in orders and invoices as the changes made in tax tab records do not recalculate it. For Purchase Order and Sales Order, Tax tab is made read only so only record are created, modified and deleted only through order lines. Manual insertion, updation and deletion is not possible. In case of Sales Invoice and Purchase Invoices, records created by invoice line are marked with recalculate flag = Yes. Read Only logic based on this flag does not allow user to modify fields tax, tax amount and taxable amount of invoice tax records. Event handler restricts user to delete invoice tax records with recalculate flag = Yes. To avoid event handlers interference with ReorderCascadingChildDeletionsHandler.java, on Invoice deletetion, before deleting invoice tax records, flag recalculate is set = No --- M modules/org.openbravo.client.application/src/org/openbravo/client/application/event/ReorderCascadingChildDeletionsHandler.java M src-db/database/sourcedata/AD_COLUMN.xml M src-db/database/sourcedata/AD_MESSAGE.xml M src-db/database/sourcedata/AD_TAB.xml A src/org/openbravo/event/InvoiceTaxEventHandler.java --- |
(0090026) aferraz (manager) 2016-09-16 09:32 |
Code review + Testing OK |
Issue History | |||
Date Modified | Username | Field | Change |
2016-08-31 12:22 | aferraz | Type | defect => backport |
2016-08-31 12:22 | aferraz | Target Version | => 3.0PR16Q2.3 |
2016-08-31 14:24 | ngarcia | Resolution time | 1505944800 => 1474408800 |
2016-09-14 13:07 | AtulOpenbravo | Note Added: 0089952 | |
2016-09-16 09:17 | hgbot | Checkin | |
2016-09-16 09:17 | hgbot | Note Added: 0090013 | |
2016-09-16 09:17 | hgbot | Status | scheduled => resolved |
2016-09-16 09:17 | hgbot | Resolution | open => fixed |
2016-09-16 09:17 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/backports/3.0PR16Q2.3/rev/9cb8c61838fbe9c801b6e02b90f9e0858af52cd8 [^] |
2016-09-16 09:32 | aferraz | Review Assigned To | => aferraz |
2016-09-16 09:32 | aferraz | Note Added: 0090026 | |
2016-09-16 09:32 | aferraz | Status | resolved => closed |
2016-09-16 09:32 | aferraz | Fixed in Version | => 3.0PR16Q2.3 |
2023-03-22 02:08 | okdwee | Note Added: 0147794 | |
2023-03-22 09:34 | shuehner | Note Deleted: 0147794 |
Copyright © 2000 - 2009 MantisBT Group |