Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0005815Openbravo ERPA. Platformpublic2008-11-04 11:262008-11-05 10:16
villind 
rafaroda 
immediatemajoralways
closedno change required 
5
2.40 
 
OBPS
Core
No
0005815: Inactive document types are shown and the default selection is no honored
Inactive document types are shown and the default selection is no honored. For example if POS Order is marked as not active it is still shown on "Sales Order" document type selection.

Also the default document type is not selected by default.
- Incativate some document types
- Make some document types as default
- Test if these settings are honored.
No tags attached.
related to defect 0005830 new jonalegriaesarte Preferences overwrite document types defined 
png DocDefinition.png (106,031) 2008-11-04 18:54
https://issues.openbravo.com/file_download.php?file_id=390&type=bug
png
Issue History
2008-11-04 11:26villindNew Issue
2008-11-04 11:26villindAssigned To => rafaroda
2008-11-04 11:26villindsf_bug_id0 => 2220348
2008-11-04 11:26villindOBNetwork customer => Yes
2008-11-04 11:26villindRegression testing => No
2008-11-04 18:54rafarodaNote Added: 0009980
2008-11-04 18:54rafarodaStatusnew => feedback
2008-11-04 18:54rafarodaFile Added: DocDefinition.png
2008-11-04 18:55rafarodaPrioritynormal => immediate
2008-11-05 00:05villindNote Added: 0009981
2008-11-05 10:16rafarodaStatusfeedback => closed
2008-11-05 10:16rafarodaNote Added: 0009990
2008-11-05 10:16rafarodaResolutionopen => no change required
2008-11-05 10:17rafarodaRelationship addedrelated to 0005830

Notes
(0009980)
rafaroda   
2008-11-04 18:54   
1) Go to 'Financial Management || Accounting || Setup || Document Type'.
2) Deactivate the following registers: 'Warehouse Order', 'POS Order', 'On Credit Order'
3) Go to 'Sales Management || Transactions || Sales Order' and create a new record.
4) The registers de-activated in 2) are not shown in 'Document Type' drop-down list.
5) Go to 'Financial Management || Accounting || Setup || Document Type' again.
6) Set 'Proposal' record as default and un-check default for any other record with default ticked for the same table.
7) Log out and log in again to refresh default values.
8) Go to 'Sales Management || Transactions || Sales Order' and create a new record.
9) 'Proposal' is selected by default in 'Document Type' drop-down list.

See document type configuration for Sale order window in the attached image.
(0009981)
villind   
2008-11-05 00:05   
The reason for this issue was:

General Setup || Application || Preference || Preference

In default setup, the default C_DocTypeTarget_ID for Salses Order was POS Order.

When the POS Order is de-activated it is still shown, as the filter uses the default also, regardless if it is active.

The functionality seems to be working, but the defaults are defined in two distinct locations, and the Preference setting overrides the isactive flag for document type.

I think that this issue can be fixed with proper documentation and maybe removing the automatic preference settings and honoring the default setting in Document Type

If the more detailed preferences are just documented and not applied by default it will save lot of debugging time.
(0009990)
rafaroda   
2008-11-05 10:16   
This is not a bug but an configuration miss-understanding. A new documentation issue has been registered at this subject: https://issues.openbravo.com/view.php?id=5830 [^]