details:   https://code.openbravo.com/erp/devel/pi/rev/9780a5222687
changeset: 28591:9780a5222687
user:      Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
date:      Fri Feb 05 12:02:24 2016 +0100
summary:   Fixes issue 32089: Reservations with stock in second UOM will not be 
created

M_RESERVE_STOCK_AUTO will exclude lines from m_storage_detail with second uom 
to avoid create stock reservation lines for products with stock in second UOM, 
as it is done in M_CREATE_RESERVE_FROM_SOL.

diffstat:

 src-db/database/model/functions/M_RESERVE_STOCK_AUTO.xml |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r f8d4bab7045b -r 9780a5222687 
src-db/database/model/functions/M_RESERVE_STOCK_AUTO.xml
--- a/src-db/database/model/functions/M_RESERVE_STOCK_AUTO.xml  Wed Feb 10 
17:08:23 2016 +0100
+++ b/src-db/database/model/functions/M_RESERVE_STOCK_AUTO.xml  Fri Feb 05 
12:02:24 2016 +0100
@@ -22,7 +22,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) 2012-2015 Openbravo SLU
+* All portions are Copyright (C) 2012-2016 Openbravo SLU
 * All Rights Reserved.
 * Contributor(s):  ______________________________________.
 ************************************************************************/
@@ -93,6 +93,7 @@
         JOIN m_locator l ON sd.m_locator_id = l.m_locator_id
         JOIN m_warehouse w ON l.m_warehouse_id = w.m_warehouse_id
     WHERE sp.ad_pinstance_id = v_pinstance_id
+    AND sd.m_product_uom_id IS NULL
     ORDER BY sp.priority
   ) LOOP
     v_qty := LEAST(cur_stock.quantity, v_pendingqty);

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Openbravo-commits mailing list
Openbravo-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to