details: /erp/devel/pi-engdev/rev/c7a386b64971
changeset: 6470:c7a386b64971
user: Gorka Ion Damián <gorkaion.damian <at> openbravo.com>
date: Thu Feb 25 19:18:38 2010 +0100
summary: Fixed an issue in FIN_GEN_PAYMENTSCHEDULE_INV.
diffstat:
src-db/database/model/functions/FIN_GEN_PAYMENTSCHEDULE_INV.xml | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r af78da35506c -r c7a386b64971
src-db/database/model/functions/FIN_GEN_PAYMENTSCHEDULE_INV.xml
--- a/src-db/database/model/functions/FIN_GEN_PAYMENTSCHEDULE_INV.xml Thu Feb
25 19:09:02 2010 +0530
+++ b/src-db/database/model/functions/FIN_GEN_PAYMENTSCHEDULE_INV.xml Thu Feb
25 19:18:38 2010 +0100
@@ -196,7 +196,7 @@
AND ps_ord.c_order_id = order_schdet.order_id;
v_notassignedamount := COALESCE(v_invoicedamount,0) -
COALESCE(v_assignedamount,0);
END IF;
- IF (v_notassignedamount != 0) THEN
+ IF (v_notassignedamount <= 0) THEN
next_order := TRUE;
END IF;
--create a new payment schedule detail if necessary
@@ -252,7 +252,7 @@
FETCH cur_order_schdet INTO order_schdet;
EXIT WHEN cur_order_schdet%NOTFOUND;
END LOOP;
- IF (v_scheduledamount > 0 ) THEN
+ IF (v_scheduledamount != 0 ) THEN
-- no orders, insert payment schdule detail with remaining amount
INSERT INTO fin_payment_scheduledetail
(
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits