details: https://code.openbravo.com/erp/devel/pi/rev/757f2add3027
changeset: 25767:757f2add3027
user: Reinaldo Guerra <reinaldo.guerra <at> peoplewalking.com>
date: Tue Jan 27 19:06:57 2015 -0500
summary: Fixed bug 28506: Create Credit does not work for closed return from
customer.
Creating invoice stored procedure, called from Create Credit process for a
closed Return From Customer document, was changed to take into account also
closed orders, not only documents with status completed and under way.
Now it is possible to create invoices, when Create Credit process is launched
from Return From Customer documents with status as closed.
This change also affects the Generate Invoices process called from application
menu.
diffstat:
src-db/database/model/functions/C_INVOICE_CREATE.xml | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r ab8f23f449c9 -r 757f2add3027
src-db/database/model/functions/C_INVOICE_CREATE.xml
--- a/src-db/database/model/functions/C_INVOICE_CREATE.xml Wed Jan 28
17:37:00 2015 +0100
+++ b/src-db/database/model/functions/C_INVOICE_CREATE.xml Tue Jan 27
19:06:57 2015 -0500
@@ -25,7 +25,7 @@
* parts created by ComPiere are Copyright (C) ComPiere, Inc.;
* All Rights Reserved.
* Contributor(s): Openbravo SLU
- * Contributions are Copyright (C) 2001-2014 Openbravo, S.L.U.
+ * Contributions are Copyright (C) 2001-2015 Openbravo, S.L.U.
*
* Specifically, this derivative work is based upon the following Compiere
* file and version.
@@ -282,7 +282,7 @@
WHERE (bp.customer_blocking='N' OR bp.so_invoice_blocking='N')
AND ((o.C_Order_ID=v_C_Order_ID
AND v_Selection = 'N'
- AND o.DocStatus IN('IP', 'CO')) -- OR all completed and closed
orders
+ AND o.DocStatus IN('IP', 'CO', 'CL')) -- OR all completed and
closed orders
OR(v_C_Order_ID IS NULL AND v_Selection = 'N'
AND o.DocStatus IN('CO', 'CL')
AND o.IsSOTrx='Y' -- not for InvoiceSchedule
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits