Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0025792Openbravo ERP07. Sales managementpublic2014-02-21 09:232014-05-07 18:11
jonalegriaesarte 
pramakrishnan 
normalminorhave not tried
closedfixed 
5
pi 
3.0PR14Q3pi 
Core
No
0025792: Voiding a good shipment is failing when the user assigns a freight cost
Voiding a good shipment is failing when the user assigns a freight cost. The error given is: With freight amount greater than zero please select a freight currency.
- Show freight fields in good shipment header
- Create a freight category
- Good shipment create a header
- Select Calculated freight cost and add freight category, freight amount and freight currency
- Create one line and book it
- Void the shipment. Error given:
With freight amount greater than zero please select a freight currency.
The issue is in m_inout_post process. When the process creates the voided shipment, it is not creating (or copying) the currency and the constraint m_inout_currency_check CHECK is raising the error:

m_inout_currency_check CHECK (freightamt = 0::numeric OR freightamt IS NULL
OR freight_currency_id IS NOT NULL);
No tags attached.
Issue History
2014-02-21 09:23jonalegriaesarteNew Issue
2014-02-21 09:23jonalegriaesarteAssigned To => jonalegriaesarte
2014-02-21 09:23jonalegriaesarteModules => Core
2014-02-21 09:23jonalegriaesarteTriggers an Emergency Pack => No
2014-03-11 13:15jonalegriaesarteResolution time => 1399500000
2014-03-20 12:26jonalegriaesarteAssigned Tojonalegriaesarte => pramakrishnan
2014-03-31 16:17jonalegriaesarteTarget VersionPR14Q2 => PR14Q3
2014-04-20 22:28pramakrishnanStatusnew => scheduled
2014-04-20 22:28pramakrishnanfix_in_branch => pi
2014-04-21 11:40hgbotCheckin
2014-04-21 11:40hgbotNote Added: 0066511
2014-04-21 11:40hgbotStatusscheduled => resolved
2014-04-21 11:40hgbotResolutionopen => fixed
2014-04-21 11:40hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/875ccb64c6c516df63c144c9651bafe79640695a [^]
2014-04-21 12:59AtulOpenbravoNote Added: 0066515
2014-04-21 12:59AtulOpenbravoStatusresolved => closed
2014-04-21 12:59AtulOpenbravoFixed in Version => pi
2014-05-07 18:11hudsonbotCheckin
2014-05-07 18:11hudsonbotNote Added: 0066950

Notes
(0066511)
hgbot   
2014-04-21 11:40   
Repository: erp/devel/pi
Changeset: 875ccb64c6c516df63c144c9651bafe79640695a
Author: Pandeeswari Ramakrishnan <pandeeswari.ramakrishnan <at> openbravo.com>
Date: Mon Apr 21 15:07:52 2014 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/875ccb64c6c516df63c144c9651bafe79640695a [^]

Fixes Issue 25792: Voiding a good shipment is failing when the user assigns a freight cost

---
M src-db/database/model/functions/M_INOUT_POST.xml
---
(0066515)
AtulOpenbravo   
2014-04-21 12:59   
Code Review + Testing OK.
(0066950)
hudsonbot   
2014-05-07 18:11   
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/02ca2648bcdc [^]
Maturity status: Test