Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #135 from garyhgohoos/22931

Issue #22931:account for all control/location combinations
  • Loading branch information...
commit 451cae8ce32a90538f84f979e6a40fc91312d44d 2 parents bc027e6 + 9b4b18c
@gpazo gpazo authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 dbscripts/metasql/issueToShipping-detail.mql
View
4 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") ?>)
Please sign in to comment.
Something went wrong with that request. Please try again.