Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0025843Openbravo ERP07. Sales managementpublic2014-02-26 11:122014-05-07 18:11
egoitz 
eduardo_Argal 
urgentmajoralways
closedfixed 
5
 
3.0PR14Q3pi 
Core
No
0025843: Incorrect validation on the document cancelled field on the document type definition
Incorrect validation on the document cancelled field on the document type definition.
Right now the validation only check that the gl category is not a credit memo category but it is not correct.
The validation should check if the gl category is the same than the gl category of the current document.

This is needed for example when defining a document cancelled for a credit memo documento.
When voiding that document the quatity is changed from positive to negative.
-Define a new document with gl category ar invoice and sales transaction.
-Define the previous document as document cancelled of a credit memo.
-Create a new sales invoice using the credit memo-
-Add a line with qty 1 and price 1 and complete it.
-Void the invoice.
*See that a new invoice is created with qty -1.
*This is not correct because a ar invoice with qty -1 is the same than a credit memo with qty 1.

IN that case the cancelled document should be also a credit memo.
No tags attached.
Issue History
2014-02-26 11:12egoitzNew Issue
2014-02-26 11:12egoitzAssigned To => dmiguelez
2014-02-26 11:12egoitzModules => Core
2014-02-26 11:12egoitzResolution time => 1394838000
2014-02-26 11:12egoitzTriggers an Emergency Pack => No
2014-03-14 13:13dmiguelezAssigned Todmiguelez => jonalegriaesarte
2014-03-20 12:25jonalegriaesarteAssigned Tojonalegriaesarte => pramakrishnan
2014-03-31 16:17jonalegriaesarteTarget VersionPR14Q2 => PR14Q3
2014-04-04 11:03eduardo_ArgalStatusnew => scheduled
2014-04-04 11:03eduardo_ArgalAssigned Topramakrishnan => eduardo_Argal
2014-04-04 11:03eduardo_Argalfix_in_branch => pi
2014-04-04 12:20hgbotCheckin
2014-04-04 12:20hgbotNote Added: 0066184
2014-04-04 12:20hgbotStatusscheduled => resolved
2014-04-04 12:20hgbotResolutionopen => fixed
2014-04-04 12:20hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/540012d74a89270c05ff603f6d5f0e2dc02af7b6 [^]
2014-04-11 12:40AtulOpenbravoNote Added: 0066354
2014-04-11 12:40AtulOpenbravoStatusresolved => closed
2014-04-11 12:40AtulOpenbravoFixed in Version => pi
2014-05-07 18:11hudsonbotCheckin
2014-05-07 18:11hudsonbotNote Added: 0066892

Notes
(0066184)
hgbot   
2014-04-04 12:20   
Repository: erp/devel/pi
Changeset: 540012d74a89270c05ff603f6d5f0e2dc02af7b6
Author: Eduardo Argal Guibert <eduardo.argal <at> openbravo.com>
Date: Fri Apr 04 12:20:12 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/540012d74a89270c05ff603f6d5f0e2dc02af7b6 [^]

Fixes bug 25843. Incorrect validation for document type

---
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_VAL_RULE.xml
---
(0066354)
AtulOpenbravo   
2014-04-11 12:40   
Code Review + Testing Ok.
(0066892)
hudsonbot   
2014-05-07 18:11   
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/02ca2648bcdc [^]
Maturity status: Test