Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0024275Openbravo ERP04. Warehouse managementpublic2013-07-05 14:202013-09-27 03:11
jonalegriaesarte 
jonalegriaesarte 
normalminorhave not tried
closedfixed 
5
pi 
3.0MP293.0MP28 
egoitz
Core
No
0024275: Some brackets are missing in m_locator_trg, and the sql is not correct
Some brackets are missing in m_locator_trg, and the sql is not correct
- m_locator_trg
- Some brackets are missing in
select count(*)
into v_count
from m_storage_detail
where m_locator_id = old.m_locator_id
and COALESCE(qtyonhand,0) <> 0
or COALESCE(qtyorderonhand, 0) <> 0
or COALESCE(preqtyonhand, 0) <> 0
or COALESCE(preqtyorderonhand, 0) <> 0
Change:

select count(*)
into v_count
from m_storage_detail
where m_locator_id = old.m_locator_id
and COALESCE(qtyonhand,0) <> 0
or COALESCE(qtyorderonhand, 0) <> 0
or COALESCE(preqtyonhand, 0) <> 0
or COALESCE(preqtyorderonhand, 0) <> 0

by

select count(*)
into v_count
from m_storage_detail
where m_locator_id = old.m_locator_id
and (COALESCE(qtyonhand,0) <> 0
or COALESCE(qtyorderonhand, 0) <> 0
or COALESCE(preqtyonhand, 0) <> 0
or COALESCE(preqtyorderonhand, 0) <> 0);
No tags attached.
Issue History
2013-07-05 14:20jonalegriaesarteNew Issue
2013-07-05 14:20jonalegriaesarteAssigned To => jonalegriaesarte
2013-07-05 14:20jonalegriaesarteModules => Core
2013-07-05 14:20jonalegriaesarteTriggers an Emergency Pack => No
2013-08-19 16:47jonalegriaesarteTarget Version3.0MP27 => 3.0MP28
2013-09-16 13:18jonalegriaesarteTarget Version3.0MP28 => 3.0MP29
2013-09-26 17:51hgbotCheckin
2013-09-26 17:51hgbotNote Added: 0061426
2013-09-26 17:51hgbotStatusnew => resolved
2013-09-26 17:51hgbotResolutionopen => fixed
2013-09-26 17:51hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/3e69b0ee867b68ed20ccbcd3991e9f6512060035 [^]
2013-09-26 17:52jonalegriaesarteReview Assigned To => egoitz
2013-09-26 17:57egoitzStatusresolved => closed
2013-09-26 17:57egoitzFixed in Version => 3.0MP28
2013-09-27 03:11hudsonbotCheckin
2013-09-27 03:11hudsonbotNote Added: 0061436

Notes
(0061426)
hgbot   
2013-09-26 17:51   
Repository: erp/devel/pi
Changeset: 3e69b0ee867b68ed20ccbcd3991e9f6512060035
Author: Jon Alegría <jon.alegria <at> openbravo.com>
Date: Thu Sep 26 17:51:40 2013 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/3e69b0ee867b68ed20ccbcd3991e9f6512060035 [^]

Fixes issue 0024275: Some brackets are missing in m_locator_trg, and the sql is not correct

---
M src-db/database/model/triggers/M_LOCATOR_TRG.xml
---
(0061436)
hudsonbot   
2013-09-27 03: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/71a3ba7a4af8 [^]

Maturity status: Test