Permalink
Browse files

Merge pull request #135 from garyhgohoos/22931

Issue #22931:account for all control/location combinations
  • Loading branch information...
2 parents bc027e6 + 9b4b18c commit 451cae8ce32a90538f84f979e6a40fc91312d44d @gpazo gpazo committed Feb 28, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 dbscripts/metasql/issueToShipping-detail.mql
@@ -70,7 +70,7 @@ FROM coitem JOIN itemsite ON (itemsite_id=coitem_itemsite_id)
JOIN itemloc ON (itemloc_id=reserve_supply_id)
WHERE ( (coitem_status NOT IN ('C','X'))
AND (item_type != 'K')
- AND (itemsite_controlmethod IN ('L', 'S'))
+ AND ((itemsite_controlmethod IN ('L', 'S')) OR (itemsite_loccntrl))
<? if exists("warehous_id") ?>
AND (itemsite_warehous_id=<? value("warehous_id") ?>)
<? endif ?>
@@ -96,7 +96,7 @@ FROM coitem JOIN itemsite ON (itemsite_id=coitem_itemsite_id)
JOIN site() ON (warehous_id=itemsite_warehous_id)
WHERE ( (coitem_status NOT IN ('C','X'))
AND (item_type != 'K')
- AND (itemsite_controlmethod = 'R')
+ AND ((itemsite_controlmethod = 'R') AND (NOT itemsite_loccntrl))
AND (coitem_qtyreserved > 0.0)
<? if exists("warehous_id") ?>
AND (itemsite_warehous_id=<? value("warehous_id") ?>)

0 comments on commit 451cae8

Please sign in to comment.