Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0025992Openbravo ERP07. Sales managementpublic2014-03-14 09:222014-12-26 13:15
ngarcia 
reinaldoguerra 
highminoralways
closedduplicate 
5
 
3.0PR15Q2pi 
umartirena
Core
No
0025992: Tax rate is not automatically selected in invoice lines for exempt customers
Tax rate is not automatically selected in invoice lines for exempt customers if there exists another tax rate defined for an organization not in the natural tree of the document's organization with a newest Valid From date
As group admin role:
   Define a Customer from F&B España, S.A. as Tax Exempt
   Check that there exists a Tax Rate for F&B España, S.A. set as Tax Exempt
   Create a Tax Rate for F&B US, Inc. set as Tax Exempt and with a Valid From date of today
   Create a Sales Invoice for F&B España, S.A., that business partner and Invoice date of today
   Add a line to it and check that when selecting a product the Tax field is not filled automatically
In C_GETTAX function the following query should be filtered by the organizations in the tree of the document's organization

SELECT t.C_Tax_ID
          FROM C_Tax t
          INNER JOIN AD_Org o
            ON(t.AD_Client_ID = o.AD_Client_ID)
          WHERE t.ISTAXEXEMPT = 'Y'
            AND o.AD_Org_ID = p_Org_ID
            AND t.ValidFrom <= p_shipDate
            AND t.isActive = 'Y'
            AND (t.sopotype = CASE WHEN (p_issotrx = 'Y')
                    THEN ('S')
                    ELSE ('P') END OR t.sopotype = 'B')
          ORDER BY t.VALIDFROM DESC
No tags attached.
duplicate of defect 00280533.0PR15Q1 closed reinaldoguerra Tax is not selected when the BP is set as exempt and there exists a tax with a newer valid from date and different organization 
Issue History
2014-03-14 09:22ngarciaNew Issue
2014-03-14 09:22ngarciaAssigned To => jonalegriaesarte
2014-03-14 09:22ngarciaModules => Core
2014-03-14 09:22ngarciaResolution time => 1401228000
2014-03-14 09:22ngarciaTriggers an Emergency Pack => No
2014-03-14 09:25ngarciaIssue Monitored: ngarcia
2014-06-30 13:46jonalegriaesarteTarget VersionPR14Q3 => PR14Q4
2014-10-02 11:01jonalegriaesarteTarget Version3.0PR14Q4 => 3.0PR15Q1
2014-12-22 12:36vmromanosTarget Version3.0PR15Q1 => 3.0PR15Q2
2014-12-24 15:32reinaldoguerraAssigned Tojonalegriaesarte => reinaldoguerra
2014-12-24 15:32reinaldoguerraStatusnew => scheduled
2014-12-26 13:14umartirenaRelationship addedduplicate of 0028053
2014-12-26 13:15umartirenaReview Assigned To => umartirena
2014-12-26 13:15umartirenaStatusscheduled => closed
2014-12-26 13:15umartirenaResolutionopen => duplicate
2014-12-26 13:15umartirenaFixed in Version => pi
2014-12-26 13:15umartirenaNote Added: 0072837

Notes
(0072837)
umartirena   
2014-12-26 13:15   
Issue duplicate of https://issues.openbravo.com/view.php?id=28053 [^]