Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0035393Openbravo ERPA. Platformpublic2017-03-01 10:262017-03-02 14:06
aferraz 
platform 
normalmajoralways
closedduplicate 
30Professional Appliance
 
 
Core
No
0035393: IN clause in view not properly exported using postgresql
IN clause in view not properly exported using postgresql
Open c_invoice_candidate_v view with pgAdmin.

Change in the view:
(o.docstatus = 'CO' OR o.docstatus = 'CL' OR o.docstatus = 'IP')
with:
o.docstatus IN ('CO', 'CL', 'IP')

Save it and run ant export.database. Check view is correctly exported.

Revert previous change.

Change in the view:
AND ( dt.docsubtypeso <> 'ON'
AND dt.docsubtypeso <> 'OB'
AND dt.docsubtypeso <> 'WR' )
with:
AND dt.docsubtypeso NOT IN ('ON', 'OB', 'WR')

Save it and run ant export.database. Check view is correctly exported.

Revert previous change.

Now, make both changes together in the view, export them and check they are not correctly exported:

Instead of:
o.docstatus IN ('CO', 'CL', 'IP')
we get:
(o.docstatus IN ('CO', 'CL', 'IP']))

Instead of:
AND dt.docsubtypeso NOT IN ('ON', 'OB', 'WR')
we get:
(dt.docsubtypeso <> ALL (ARRAY['ON', 'OB', 'WR'))
No tags attached.
duplicate of design defect 0029492 closed alostale Wrong export of a view 
related to defect 0035341 closed mcobas Wrong orders shown in "Create Invoices From Orders" window 
Issue History
2017-03-01 10:26aferrazNew Issue
2017-03-01 10:26aferrazAssigned To => platform
2017-03-01 10:26aferrazModules => Core
2017-03-01 10:26aferrazTriggers an Emergency Pack => No
2017-03-01 10:28aferrazRelationship addedrelated to 0035341
2017-03-02 14:06alostaleRelationship addedduplicate of 0029492
2017-03-02 14:06alostaleStatusnew => closed
2017-03-02 14:06alostaleResolutionopen => duplicate

There are no notes attached to this issue.