svn commit: r540264 - /ofbiz/trunk/applications/product/servicedef/secas_shipment.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r540264 - /ofbiz/trunk/applications/product/servicedef/secas_shipment.xml

sichen
Author: sichen
Date: Mon May 21 13:19:19 2007
New Revision: 540264

URL: http://svn.apache.org/viewvc?view=rev&rev=540264
Log:
Run the createInvoicesForX services as system when shipments are updated.  Shippers and packers might not have accounting permissions to create an invoice.

Modified:
    ofbiz/trunk/applications/product/servicedef/secas_shipment.xml

Modified: ofbiz/trunk/applications/product/servicedef/secas_shipment.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/servicedef/secas_shipment.xml?view=diff&rev=540264&r1=540263&r2=540264
==============================================================================
--- ofbiz/trunk/applications/product/servicedef/secas_shipment.xml (original)
+++ ofbiz/trunk/applications/product/servicedef/secas_shipment.xml Mon May 21 13:19:19 2007
@@ -25,7 +25,7 @@
         <condition-field field-name="statusId" operator="not-equals" to-field-name="oldStatusId"/>
         <condition field-name="statusId" operator="equals" value="SHIPMENT_PACKED"/>
         <condition field-name="shipmentTypeId" operator="equals" value="SALES_SHIPMENT"/>        
-        <action service="createInvoicesFromShipment" mode="sync"/>        
+        <action service="createInvoicesFromShipment" mode="sync" run-as-user="system"/>        
     </eca>
 
     <!-- if new statusId of a PURCHASE_SHIPMENT is PURCH_SHIP_RECEIVED, create invoice -->
@@ -34,7 +34,7 @@
         <condition field-name="statusId" operator="equals" value="PURCH_SHIP_RECEIVED"/>
         <condition field-name="shipmentTypeId" operator="equals" value="PURCHASE_SHIPMENT"/>
         <action service="balanceItemIssuancesForShipment" mode="sync"/>
-        <action service="createInvoicesFromShipment" mode="sync"/>
+        <action service="createInvoicesFromShipment" mode="sync" run-as-user="system"/>
     </eca>
     
     <!-- if new statusId of a DROP_SHIPMENT is PURCH_SHIP_SHIPPED, create purchase invoice -->
@@ -42,7 +42,7 @@
         <condition-field field-name="statusId" operator="not-equals" to-field-name="oldStatusId"/>
         <condition field-name="statusId" operator="equals" value="PURCH_SHIP_SHIPPED"/>
         <condition field-name="shipmentTypeId" operator="equals" value="DROP_SHIPMENT"/>
-        <action service="createInvoicesFromShipment" mode="sync"/>
+        <action service="createInvoicesFromShipment" mode="sync" run-as-user="system"/>
     </eca>
 
     <!-- if new statusId of a DROP_SHIPMENT is PURCH_SHIP_RECEIVED, create sales invoice -->
@@ -50,7 +50,7 @@
         <condition-field field-name="statusId" operator="not-equals" to-field-name="oldStatusId"/>
         <condition field-name="statusId" operator="equals" value="PURCH_SHIP_RECEIVED"/>
         <condition field-name="shipmentTypeId" operator="equals" value="DROP_SHIPMENT"/>
-        <action service="createSalesInvoicesFromDropShipment" mode="sync"/>
+        <action service="createSalesInvoicesFromDropShipment" mode="sync" run-as-user="system"/>
     </eca>
 
     <!-- if new statusId of a SALES_RETURN is PURCH_SHIP_RECEIVED, create a return invoice.
@@ -60,7 +60,7 @@
         <condition-field field-name="statusId" operator="not-equals" to-field-name="oldStatusId"/>
         <condition field-name="statusId" operator="equals" value="PURCH_SHIP_RECEIVED"/>
         <condition field-name="shipmentTypeId" operator="equals" value="SALES_RETURN"/>
-        <action service="createInvoicesFromReturnShipment" mode="sync"/>
+        <action service="createInvoicesFromReturnShipment" mode="sync" run-as-user="system"/>
     </eca>
 
     <!-- if new statusId is SHIPMENT_SCHEDULED, send notification -->