Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0020504Openbravo ERP03. Procurement managementpublic2012-05-15 13:232012-05-30 18:13
maite 
jecharri 
urgentmajoralways
closedfixed 
5
 
3.0MP12 
Core
No
0020504: "Copy Lines" process should shown proper error message instead of "Process failed during execution"
Problem is that tax can not be calculated, so when trying to save copied invoice line "c_invoiceline_check2" restriction is raised.

Proper error should be raised indicating what is missed configuration causing this problem so user can correct it.
1. Create new tax category "tc"
2. Go to GL Item window and create new gl item. Check "Enable in financial invoice" and set tax category= tc
3. Create new purchase invoice for any partner. Add line checking "Financial Invoice Line" and choosing your gl item. Set any price and tax and complete invoice.
4. Create new purchase invoice for same partner and press "Copy lines" button. Select invoice created previously and run process.

Error "Process failed during execution" will be raised.

If you have a look to log you can verify that "c_invoiceline_check2" restriction has been raised.

Possible missing configurations:
- tax category associated to product/glitem does not have tax rate associated

In that case, problem is that tax category "tc" associated to glitem does not have any tax rate associated.

Proper error should be raised indicating what is missed configuration causing this problem so user can correct it.
No tags attached.
Issue History
2012-05-15 13:23maiteNew Issue
2012-05-15 13:23maiteAssigned To => mirurita
2012-05-15 13:23maiteModules => Core
2012-05-15 13:29maiteSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=3461#r3461
2012-05-15 13:29maiteIssue Monitored: networkb
2012-05-15 13:37miruritaAssigned Tomirurita => jonalegriaesarte
2012-05-21 13:01jonalegriaesarteAssigned Tojonalegriaesarte => jecharri
2012-05-29 18:46hgbotCheckin
2012-05-29 18:46hgbotNote Added: 0049448
2012-05-29 18:46hgbotStatusnew => resolved
2012-05-29 18:46hgbotResolutionopen => fixed
2012-05-29 18:46hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/475e5dd573e7bb4d616613ab493d2f59d718c987 [^]
2012-05-30 13:11maiteNote Added: 0049485
2012-05-30 13:11maiteStatusresolved => closed
2012-05-30 18:13hudsonbotCheckin
2012-05-30 18:13hudsonbotNote Added: 0049511

Notes
(0049448)
hgbot   
2012-05-29 18:46   
Repository: erp/devel/pi
Changeset: 475e5dd573e7bb4d616613ab493d2f59d718c987
Author: Javier Etxarri <javier.echarri <at> openbravo.com>
Date: Tue May 29 18:41:57 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/475e5dd573e7bb4d616613ab493d2f59d718c987 [^]

Fixes issue 20504: "Copy Lines" process should
should shown proper error message instead of "Process failed during execution".
Issue 20336: Should not be possible to create several periods for same date range in different years. I have updated the message with id 0FF0EC6915A04F4EA5FB2FD09DA82F14, because now the previous message was incomplete to new code

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M src/org/openbravo/erpCommon/ad_actionButton/CopyFromInvoice.java
---
(0049485)
maite   
2012-05-30 13:11   
verified
(0049511)
hudsonbot   
2012-05-30 18:13   
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/3752a665362c [^]

Maturity status: Test