From e0cbf4c3fcfd3b2c8b623cc1a0d683f56473f9bf Mon Sep 17 00:00:00 2001 From: Jacopo Cappellato Date: Wed, 19 Sep 2007 18:11:58 +0000 Subject: [PATCH] Misc cleanups and refactoring for the issueProductionRunComponent* services; added ability to specify the location from where the materials are issued. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@577408 13f79535-47bb-0310-9956-ffa450edef68 --- .../jobshopmgt/ProductionRunServices.xml | 27 +++++++++---------- .../servicedef/services_production_run.xml | 8 ++++-- .../jobshopmgt/ProductionRunForms.xml | 3 +-- 3 files changed, 20 insertions(+), 18 deletions(-) diff --git a/applications/manufacturing/script/org/ofbiz/manufacturing/jobshopmgt/ProductionRunServices.xml b/applications/manufacturing/script/org/ofbiz/manufacturing/jobshopmgt/ProductionRunServices.xml index 6d830b7394..8c212aba67 100644 --- a/applications/manufacturing/script/org/ofbiz/manufacturing/jobshopmgt/ProductionRunServices.xml +++ b/applications/manufacturing/script/org/ofbiz/manufacturing/jobshopmgt/ProductionRunServices.xml @@ -31,20 +31,16 @@ under the License. - + + - - - - - @@ -52,11 +48,16 @@ under the License. - + - + + + + + + @@ -68,12 +69,7 @@ under the License. - - - - - - + @@ -97,6 +93,9 @@ under the License. + + + diff --git a/applications/manufacturing/servicedef/services_production_run.xml b/applications/manufacturing/servicedef/services_production_run.xml index d9f44f856b..718839652a 100644 --- a/applications/manufacturing/servicedef/services_production_run.xml +++ b/applications/manufacturing/servicedef/services_production_run.xml @@ -145,13 +145,17 @@ under the License. location="org/ofbiz/manufacturing/jobshopmgt/ProductionRunServices.xml" invoke="issueProductionRunTaskComponent" auth="false"> Issues the Inventory for a Production Run Task Component. For more info see the issueProductionRunTask service. + If fromDate is passed, then the WorkEffortGoodStandard record with pk composed of (workEffortId|productId|fromDate) + with type PRUNT_PROD_NEEDED is retrieved and used to get the quantity; its status is also updated to COMPLETED after + the issuance is done. + If locationSeqId is provided, then the items are only issued from the inventory items associated to the location. + - - + diff --git a/applications/manufacturing/webapp/manufacturing/jobshopmgt/ProductionRunForms.xml b/applications/manufacturing/webapp/manufacturing/jobshopmgt/ProductionRunForms.xml index b3c007cc2a..5ba6016850 100644 --- a/applications/manufacturing/webapp/manufacturing/jobshopmgt/ProductionRunForms.xml +++ b/applications/manufacturing/webapp/manufacturing/jobshopmgt/ProductionRunForms.xml @@ -635,8 +635,7 @@ under the License.
- - +