Run the createInvoicesForX services as system when shipments are updated. Shippers and packers might not have accounting permissions to create an invoice.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@540264 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -25,7 +25,7 @@ under the License.
|
||||
<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 @@ under the License.
|
||||
<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 @@ under the License.
|
||||
<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 @@ under the License.
|
||||
<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 @@ under the License.
|
||||
<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 -->
|
||||
|
||||
Reference in New Issue
Block a user