details: https://code.openbravo.com/erp/devel/pi/rev/988629436d33
changeset: 21099:988629436d33
user: Pandeeswari Ramakrishnan <pandeeswari.ramakrishnan <at>
openbravo.com>
date: Mon Aug 26 19:57:58 2013 +0530
summary: Fixes Issue 0024190: Impossible to book an order with discounts and
promotions
diffstat:
src-db/database/model/functions/M_PROMOTION_CALCULATE.xml | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diffs (11 lines):
diff -r 50ad9716cf5a -r 988629436d33
src-db/database/model/functions/M_PROMOTION_CALCULATE.xml
--- a/src-db/database/model/functions/M_PROMOTION_CALCULATE.xml Fri Sep 06
10:56:33 2013 +0200
+++ b/src-db/database/model/functions/M_PROMOTION_CALCULATE.xml Mon Aug 26
19:57:58 2013 +0530
@@ -80,6 +80,7 @@
from c_orderline
where c_order_id = p_doc_id
and p_type = 'O'
+ and qtyinvoiced = 0 -- Can't change prices on invoiced
lines
union
select c_invoiceline_id, gross_unit_price, c_tax_id, 'N',
M_Product_ID, ad_client_id, ad_org_id,
c_orderline_id, line
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits