details: /erp/devel/pi/rev/97f6f7605ebb
changeset: 11807:97f6f7605ebb
user: Ainhoa Pagola <ainhoa.pagola <at> openbravo.com>
date: Fri Apr 29 12:16:20 2011 +0200
summary: Fixes issue 16830. Invoice Line fixes when there are discounts
details: /erp/devel/pi/rev/0997551cd3c3
changeset: 11808:0997551cd3c3
user: Ainhoa Pagola <ainhoa.pagola <at> openbravo.com>
date: Fri Apr 29 12:17:13 2011 +0200
summary: Fixes issue 15982. Order Line fixed when there are discounts
diffstat:
src-db/database/model/functions/C_INVOICE_POST.xml | 4 ++--
src-db/database/model/functions/C_ORDER_POST1.xml | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diffs (42 lines):
diff -r e3cdfb6a481f -r 0997551cd3c3
src-db/database/model/functions/C_INVOICE_POST.xml
--- a/src-db/database/model/functions/C_INVOICE_POST.xml Fri Apr 29
12:27:59 2011 +0200
+++ b/src-db/database/model/functions/C_INVOICE_POST.xml Fri Apr 29
12:17:13 2011 +0200
@@ -22,7 +22,7 @@
* parts created by ComPiere are Copyright (C) ComPiere, Inc.;
* All Rights Reserved.
* Contributor(s): Openbravo SLU
- * Contributions are Copyright (C) 2001-2010 Openbravo, S.L.U.
+ * Contributions are Copyright (C) 2001-2011 Openbravo, S.L.U.
*
* Specifically, this derivative work is based upon the following Compiere
* file and version.
@@ -1068,7 +1068,7 @@
v_CumDiscount:=0;
v_OldCumDiscount:=0;
v_Line:=10;
- SELECT MAX(LINE) + 10 INTO v_InvoiceLineSeqNo
+ SELECT MAX(LINE) INTO v_InvoiceLineSeqNo
FROM C_INVOICELINE
WHERE C_INVOICE_ID=v_Record_ID;
FOR Cur_CInvoiceDiscount IN
diff -r e3cdfb6a481f -r 0997551cd3c3
src-db/database/model/functions/C_ORDER_POST1.xml
--- a/src-db/database/model/functions/C_ORDER_POST1.xml Fri Apr 29 12:27:59
2011 +0200
+++ b/src-db/database/model/functions/C_ORDER_POST1.xml Fri Apr 29 12:17:13
2011 +0200
@@ -19,7 +19,7 @@
* under the License.
* The Original Code is Openbravo ERP.
* The Initial Developer of the Original Code is Openbravo SLU
-* All portions are Copyright (C) 2001-2009 Openbravo SLU
+* All portions are Copyright (C) 2001-2011 Openbravo SLU
* All Rights Reserved.
* Contributor(s): ______________________________________.
************************************************************************/
@@ -658,7 +658,7 @@
v_OldCumDiscount:=0;
v_Line:=10;
v_precision:=0;
- SELECT MAX(LINE) +10
+ SELECT MAX(LINE)
INTO v_OrderLineSeqNo
FROM C_ORDERLINE
WHERE C_ORDER_ID=v_Record_ID;
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today. Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits