Browse files

Merge pull request #122 from garyhgohoos/20806

Issue #20806:remove Job Costed item check
  • Loading branch information...
2 parents ecce98a + 937225b commit d43e77a89c266a8762a4f92730fb27cdf4a09992 @gpazo gpazo committed Feb 11, 2014
Showing with 13 additions and 8 deletions.
  1. +13 −8 dbscripts/functions/closewo.sql
View
21 dbscripts/functions/closewo.sql
@@ -25,15 +25,20 @@ DECLARE
BEGIN
+ --Comment this out
+ --In addition to IssueToShipping driving PostProduction,
+ --not PostProduction can drive IssueToShipping.
+ --Must allow closing of Job items
+
--If this is item type Job then we cannot close here
- SELECT itemsite_costmethod INTO _check
- FROM wo,itemsite
- WHERE ((wo_id=pWoid)
- AND (wo_itemsite_id=itemsite_id)
- AND (itemsite_costmethod = 'J'));
- IF (FOUND) THEN
- RAISE EXCEPTION 'Work orders for Job items are closed when all quantities are shipped';
- END IF;
+ --SELECT itemsite_costmethod INTO _check
+ --FROM wo,itemsite
+ --WHERE ((wo_id=pWoid)
+ --AND (wo_itemsite_id=itemsite_id)
+ --AND (itemsite_costmethod = 'J'));
+ --IF (FOUND) THEN
+ -- RAISE EXCEPTION 'Work orders for Job items are closed when all quantities are shipped';
+ --END IF;
SELECT formatWoNumber(pWoid) INTO _woNumber;

0 comments on commit d43e77a

Please sign in to comment.