Openbravo Issue Tracking System - Retail Modules
View Issue Details
0023113Retail ModulesGift cards and gift voucherspublic2013-02-19 12:062013-03-04 10:55
jonalegriaesarte 
guilleaer 
normalmajoralways
closedfixed 
5
RMP19.1 
 
marvintm
No
0023113: PL OBDISC_XY_GIFT is referencing a column that does not exist
PL OBDISC_XY_GIFT is referencing a column that does not exist. Purchase and sales invoices can not be booked under some conditions
- il.qtyordered column does not exist

select floor(il.qtyordered / coalesce(op.em_obdisc_qty + op.em_obdisc_gifqty, 1))
into v_gift_chunks
from c_invoiceline il, m_offer_product op
where il.c_invoice_id = v_docId
and op.m_product_id = il.m_product_id
and op.m_offer_id = p_rule_id
and op.em_obdisc_is_gift = 'Y';
No tags attached.
related to defect 0023145 closed migueldejuana Function OBDISC_XY_GIFT Does not compile in Oracle 
Issue History
2013-02-19 12:06jonalegriaesarteNew Issue
2013-02-19 12:06jonalegriaesarteAssigned To => guilleaer
2013-02-19 21:49hgbotCheckin
2013-02-19 21:49hgbotNote Added: 0056553
2013-02-19 21:49hgbotStatusnew => resolved
2013-02-19 21:49hgbotResolutionopen => fixed
2013-02-19 21:49hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts/rev/0dc9623b7cff8cc65841c9cb70aad73a45f11973 [^]
2013-03-04 10:55marvintmReview Assigned To => marvintm
2013-03-04 10:55marvintmStatusresolved => closed
2013-03-13 17:16migueldejuanaRelationship addedrelated to 0023145

Notes
(0056553)
hgbot   
2013-02-19 21:49   
Repository: erp/pmods/org.openbravo.retail.discounts
Changeset: 0dc9623b7cff8cc65841c9cb70aad73a45f11973
Author: Guillermo Alvarez de Eulate <guillermo.alvarez <at> openbravo.com>
Date: Tue Feb 19 21:48:37 2013 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts/rev/0dc9623b7cff8cc65841c9cb70aad73a45f11973 [^]

fixed issue 23113: qtyinvoiced column is used instead of qtyordered wich not exists

---
M src-db/database/model/functions/OBDISC_XY_GIFT.xml
---