Permalink
Browse files

Merge pull request #137 from garyhgohoos/22421

Issue #22421:add columns
  • Loading branch information...
2 parents 976331a + b198eb8 commit 29a47a2da9aaa6a74583f1195227350e3623d4cf @gpazo gpazo committed Mar 5, 2014
Showing with 4 additions and 2 deletions.
  1. +4 −2 dbscripts/metasql/purchase-purchaserequests.mql
@@ -4,8 +4,8 @@
-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
-SELECT pr_id, itemsite_id, item_number,
- (item_descrip1 || ' ' || item_descrip2) AS description,
+SELECT pr_id, itemsite_id, itemsite_qtyonhand, itemsite_reorderlevel,
+ item_number, (item_descrip1 || ' ' || item_descrip2) AS description,
pr.*,
CASE WHEN (pr_order_type='W') THEN ('W/O ' || ( SELECT formatWoNumber(womatl_wo_id)
FROM womatl
@@ -15,6 +15,8 @@ SELECT pr_id, itemsite_id, item_number,
WHEN (pr_order_type='M') THEN <? value("manual") ?>
ELSE <? value("other") ?>
END AS parent,
+ 'qty' AS itemsite_qtyonhand_xtnumericrole,
+ 'qty' AS itemsite_reorderlevel_xtnumericrole,
'qty' AS pr_qtyreq_xtnumericrole
FROM pr, itemsite, item
WHERE ((pr_itemsite_id=itemsite_id)

0 comments on commit 29a47a2

Please sign in to comment.