Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0012277Openbravo ERP09. Financial managementpublic2010-02-15 13:442012-09-14 09:42
plujan 
naiaramartinez 
highminorhave not tried
scheduledopen 
5
pi 
 
Core
No
0012277: A tax using Tax Amount for calculation can be saved leaving Tax Base field blank
I can create a Tax using Tax Amount as calculation base, but if I do not choose a Tax Base, I can save anyway. Resulting tax will be zero always. See steps.
1. Create a new tax
2. Select Tax Amount as base
3. Leave Tax Base field blank
4. Save
5. Create a Sales Order using this product. As calculation is made on a non existent base, result is always zero.
Trigger a message when saving a Tax using Tax Amount, asking for choosing a Tax Base.
No tags attached.
Issue History
2010-02-15 13:44plujanNew Issue
2010-02-15 13:44plujanAssigned To => eduardo_Argal
2010-02-15 13:45plujanStatusnew => scheduled
2010-02-15 13:45plujanfix_in_branch => pi
2012-05-16 12:59naiaramartinezNote Added: 0048694
2012-09-14 09:42naiaramartinezAssigned Toeduardo_Argal => naiaramartinez

Notes
(0048694)
naiaramartinez   
2012-05-16 12:59   
Test Plan (trigger):
   Go to Tax Rate window
   Create a new record. Fill:
       Base Amount field: tax amount
   Save it. Notice that you get an error.
   Choose a parent tax rate and after that choose a tax base.
   Save it. Notice that you can save it after filling tax base field.

Test Plan (build validation)
   Before applying the fix go to Tax Rate window.
   Create a new record with base amount: Tax amount.
   Apply the fix
   Run ant smartbuild -Dlocal=no
   The compilation should fail
   Go to application, as client admin role
   A new alert is created
   Browse to the wrong Tax Rate and add a tax base.
   Run ant smartbuild -Dlocal=no again
   The compilation should go fine