details:   https://code.openbravo.com/erp/devel/pi/rev/83103c66d7ac
changeset: 19424:83103c66d7ac
user:      Ioritz Cia <ioritz.cia <at> openbravo.com>
date:      Thu Jan 24 11:50:58 2013 +0100
summary:   Fixes issue 22416: Wrong payment details distribution,
when invoice amount is higher than pre-payment amount.

diffstat:

 
modules/org.openbravo.advpaymentmngt/src-db/database/model/functions/APRM_GEN_PAYMENTSCHEDULE_INV.xml
 |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 0748646d63bb -r 83103c66d7ac 
modules/org.openbravo.advpaymentmngt/src-db/database/model/functions/APRM_GEN_PAYMENTSCHEDULE_INV.xml
--- 
a/modules/org.openbravo.advpaymentmngt/src-db/database/model/functions/APRM_GEN_PAYMENTSCHEDULE_INV.xml
     Thu Jan 24 11:40:04 2013 +0100
+++ 
b/modules/org.openbravo.advpaymentmngt/src-db/database/model/functions/APRM_GEN_PAYMENTSCHEDULE_INV.xml
     Thu Jan 24 11:50:58 2013 +0100
@@ -427,7 +427,7 @@
 
               --When difference amount is not 0 the payment schedule detail of 
the order has to be split. The difference
               --amount is the amount of the new psd that is not related to any 
invoice.
-              IF (v_differenceamount <> 0) THEN
+              IF (v_differenceamount > 0) THEN
                 v_new_scheduledetailid := get_uuid();
                 INSERT INTO fin_payment_scheduledetail
                 (

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to