Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0037823Openbravo ERP03. Procurement managementpublic2018-02-02 12:562018-02-22 18:19
ngarcia 
markmm82 
urgentmajoralways
closedfixed 
5
 
3.0PR18Q2 
dmiguelez
OBPS
Core
121
No
0037823: Sales tax selected in Return To Vendor if the returned goods receipt does not have a purchase order related
Sales tax selected in Return To Vendor if the returned goods receipt does not have a purchase order related
As group admin role:
   Create a Purchase Order for F&B España Region Norte, add a product and book it
   Create a Goods Receipt from it
   Create a Return to Vendor and select the previously created goods receipt
   Check 'Adquisiciones IVA 21%' tax rate is selected. This is correct

   Create a Goods Receipt for F&B España Region Norte, add a product and complete it
   Create a Return to Vendor and select the previously created goods receipt
   Check 'Entregas IVA 21%' tax rate is selected. This is wrong
No tags attached.
Issue History
2018-02-02 12:56ngarciaNew Issue
2018-02-02 12:56ngarciaAssigned To => Triage Finance
2018-02-02 12:56ngarciaOBNetwork customer => Yes
2018-02-02 12:56ngarciaModules => Core
2018-02-02 12:56ngarciaSupport ticket => 121
2018-02-02 12:56ngarciaResolution time => 1519340400
2018-02-02 12:56ngarciaTriggers an Emergency Pack => No
2018-02-02 12:57ngarciaIssue Monitored: networkb
2018-02-06 11:20dmiguelezAssigned ToTriage Finance => markmm82
2018-02-06 17:18markmm82Statusnew => scheduled
2018-02-06 21:04markmm82Note Added: 0102230
2018-02-09 10:16hgbotCheckin
2018-02-09 10:16hgbotNote Added: 0102294
2018-02-09 10:16hgbotStatusscheduled => resolved
2018-02-09 10:16hgbotResolutionopen => fixed
2018-02-09 10:16hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/9bf627820d9ede8ecc7470126eef1f35ba019647 [^]
2018-02-09 10:17dmiguelezReview Assigned To => dmiguelez
2018-02-09 10:17dmiguelezNote Added: 0102295
2018-02-09 10:17dmiguelezStatusresolved => closed
2018-02-09 10:17dmiguelezFixed in Version => 3.0PR18Q2
2018-02-22 18:19hudsonbotCheckin
2018-02-22 18:19hudsonbotNote Added: 0102738

Notes
(0102230)
markmm82   
2018-02-06 21:04   
Test Plan
As group admin role:
   Create a Purchase Order for F&B España Region Norte, add a product and book it
   Create a Goods Receipt from it
   Create a Return to Vendor and select the previously created goods receipt
   Check 'Adquisiciones IVA 21%' tax rate is selected. This is correct

   Create a Goods Receipt for F&B España Region Norte, add a product and complete it
   Create a Return to Vendor and select the previously created goods receipt
   Check 'Adquisiciones IVA 21%' tax rate is selected. This is correct

As group admin role:
   Create a Sales Order for F&B España Region Norte, add a product and book it
   Create a Goods Shipment from it
   Create a Return from Customer and select the previously created goods shipment
   Check 'Entregas IVA 21%' tax rate is selected. This is correct

   Create a Goods Shipment for F&B España Region Norte, add a product and complete it
   Create a Return from Customer and select the previously created goods shipment
   Check 'Entregas IVA 21%' tax rate is selected. This is correct
(0102294)
hgbot   
2018-02-09 10:16   
Repository: erp/devel/pi
Changeset: 9bf627820d9ede8ecc7470126eef1f35ba019647
Author: Mark <markmm82 <at> gmail.com>
Date: Fri Feb 09 09:43:33 2018 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/9bf627820d9ede8ecc7470126eef1f35ba019647 [^]

Fixes issue 37823: Sales tax selected in Return To Vendor if the returned goods
receipt does not have a purchase order related

A wrong sales tax was selected in Return To Vendor if the returned goods receipt
does not have a purchase order related.

The Tax field has the Tax Id value of the receipt line being copied, in case
that the good receipt line was created from an order then it will have the tax id
used on the order line. But in case the goods receipt line was created manually, as
it lines aren't related to any order lines, the tax received will be NULL, so it is
needed to get the default Tax to be used in the new generated returned line.

In the case of a Return to Vendor is needed to return the default Purchase Tax of the
product. In the case of Return from Customer is neede to use the default Sales tax
of the product. It was fixed passing this parameter taking into account the processed
order is sales transaction or not.

---
M src/org/openbravo/common/actionhandler/SRMOPickEditLines.java
---
(0102295)
dmiguelez   
2018-02-09 10:17   
Code Review + Testing Ok
(0102738)
hudsonbot   
2018-02-22 18:19   
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/980a6ad5bbf5 [^]
Maturity status: Test