Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0019836Openbravo ERP03. Procurement managementpublic2012-02-22 10:362012-04-02 06:12
VictorVillar 
jecharri 
highminoralways
closedfixed 
5
3.0MP7.1 
3.0MP10 
Core
No
0019836: Purchase Invoices do not take into account tax rate: Alternate Tax Base Amount
A purchase Invoice does not take into account a Alternate Tax Base Amount if the lines has been created from a Goods Receipt.
As group admin role,
Go to Tax rate window:
   - select Adquisiciones IVA 18%
        - Base amount: Alternate Tax Base Amount
Save it
Go to Purchase Order
   - Create a new register
Go to lines tab:
   - Create a new one: Cerveza Ale, qty:1000
       Tax: Adquisiciones IVA 18%
Save it and book it. Total Gross AMount: 1604, Total Net Amount: 1360

Go to Goods REceipt window:
   - Create a new one:
        Create Lines from Purchase Order before
Save it and complete it.
Go to Purchase Invoice window:
   - Create a new one
   - create lines from Goods Receipt
We realise that the Alternate Taxable Amount is in blank --> Total gross amount:1360; Total net amount: 1360

If we remove the line, and create lines from Purchase Order:
We realise that the Alternate Taxable Amount is 1360 --> Total gross amount:1604; Total net amount: 1360, this is the expected behaviour.
No tags attached.
Issue History
2012-02-22 10:36VictorVillarNew Issue
2012-02-22 10:36VictorVillarAssigned To => vmromanos
2012-02-22 10:36VictorVillarModules => Core
2012-02-22 10:36VictorVillarResolution time => 1335996000
2012-02-22 10:36VictorVillarIssue Monitored: networkb
2012-03-02 17:31eduardo_ArgalAssigned Tovmromanos => jonalegriaesarte
2012-03-06 18:28jonalegriaesarteAssigned Tojonalegriaesarte => jecharri
2012-03-14 17:47hgbotCheckin
2012-03-14 17:47hgbotNote Added: 0046426
2012-03-14 17:47hgbotStatusnew => resolved
2012-03-14 17:47hgbotResolutionopen => fixed
2012-03-14 17:47hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/0b1b4777bae06300264e682beb8c94e0b4a378a5 [^]
2012-03-16 09:15jecharriNote Added: 0046492
2012-03-29 12:30hgbotCheckin
2012-03-29 12:30hgbotNote Added: 0046877
2012-03-29 17:44VictorVillarNote Added: 0046937
2012-03-29 17:44VictorVillarStatusresolved => closed
2012-04-02 06:10hudsonbotCheckin
2012-04-02 06:10hudsonbotNote Added: 0047141
2012-04-02 06:12hudsonbotCheckin
2012-04-02 06:12hudsonbotNote Added: 0047266

Notes
(0046426)
hgbot   
2012-03-14 17:47   
Repository: erp/devel/pi
Changeset: 0b1b4777bae06300264e682beb8c94e0b4a378a5
Author: Javier Etxarri <javier.echarri <at> openbravo.com>
Date: Wed Mar 14 17:46:21 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/0b1b4777bae06300264e682beb8c94e0b4a378a5 [^]

Fixes issue 19836: Purchase Invoices do not take into account tax rate: Alternate Tax Base Amount

---
M src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Invoice_data.xsql
---
(0046492)
jecharri   
2012-03-16 09:15   
test case:
-the best way to verifie are the steps to reproduce.
-verifie that with normal taxes is working all like before:
  -create an invoice and copy lines from order.
  -create an invoice and copy lines from shipment.
(0046877)
hgbot   
2012-03-29 12:30   
Repository: erp/devel/pi
Changeset: eb3fdc5cecf267ed8e1794e32164d5e90c67870d
Author: Javier Etxarri <javier.echarri <at> openbravo.com>
Date: Thu Mar 29 12:30:20 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/eb3fdc5cecf267ed8e1794e32164d5e90c67870d [^]

Issue 19836: Purchase Invoices do not take into account tax rate: Alternate Tax Base Amount.
Now the Generate invoice from Receipt process take into account the value of tax base amount of the lines. Apart from that I have added one coalesce to value co.taxbaseamt if it has null value

---
M src-db/database/model/functions/M_INOUT_CREATEINVOICE.xml
M src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Invoice_data.xsql
---
(0046937)
VictorVillar   
2012-03-29 17:44   
Verified
(0047141)
hudsonbot   
2012-04-02 06:10   
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/7814864461ac [^]

Maturity status: Test
(0047266)
hudsonbot   
2012-04-02 06:12   
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/7814864461ac [^]

Maturity status: Test