Skip to content

Commit

Permalink
Improved: Convert OrderServices.xml mini-lang to groovyDSL (OFBIZ-9984)
Browse files Browse the repository at this point in the history
Fix error in ensureRouteSegPackage
Migration of the services:
-recreateOrderAdjustments
-getOrderItemShipGroupEstimatedShipDate
-updateOrderNote
-getOrderStatus
-orderSequence_enforced
-createOrderHeader
-updateOrderHeader
-updateOrderItemShipGroup
-updateOrderContactMech
-addPaymentMethodToOrder
-checkOrderIsOnBackOrder
-createOrderItemChange
-createUpdateShippingAddress
-createUpdateBillingAddress
-createUpdateCreditCard
-setUnitPriceAsLastPrice
-cancelAllBackOrders
-updateShippingMethodAndCharges
-productAvailabalityByFacility
-createOrderPaymentApplication
-moveItemBetweenShipGroups
  • Loading branch information
Leila committed Dec 13, 2024
1 parent 80f61f1 commit 45d9b98
Show file tree
Hide file tree
Showing 6 changed files with 1,012 additions and 1,129 deletions.
90 changes: 0 additions & 90 deletions applications/order/minilang/customer/CheckoutMapProcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,96 +48,6 @@ under the License.
</process>
</simple-map-processor>

<simple-map-processor name="shipToAddress">
<process field="shipToContactMechId">
<copy to-field="contactMechId" set-if-null="false"/>
</process>
<process field="shipToName">
<copy to-field="toName" set-if-null="false"/>
</process>
<process field="shipToAttnName">
<copy to-field="attnName" set-if-null="false"/>
</process>
<process field="shipToAddress1">
<copy to-field="address1"/>
<not-empty>
<fail-property resource="PartyUiLabels" property="PartyAddressLine1MissingError"/>
</not-empty>
</process>
<process field="shipToAddress2">
<copy to-field="address2"/>
</process>
<process field="shipToCity">
<copy to-field="city"/>
<not-empty>
<fail-property resource="PartyUiLabels" property="PartyCityMissing"/>
</not-empty>
</process>
<process field="shipToStateProvinceGeoId">
<copy to-field="stateProvinceGeoId"/>
<not-empty>
<fail-property resource="PartyUiLabels" property="PartyStateMissingError"/>
</not-empty>
</process>
<process field="shipToPostalCode">
<copy to-field="postalCode"/>
<not-empty>
<fail-property resource="PartyUiLabels" property="PartyPostalInformationNotFound"/>
</not-empty>
</process>
<process field="shipToCountryGeoId">
<copy to-field="countryGeoId"/>
<not-empty>
<fail-property resource="PartyUiLabels" property="PartyCountryMissing"/>
</not-empty>
</process>
</simple-map-processor>

<simple-map-processor name="billToAddress">
<process field="billToContactMechId">
<copy to-field="contactMechId" set-if-null="false"/>
</process>
<process field="billToName">
<copy to-field="toName" set-if-null="false"/>
</process>
<process field="billToAttnName">
<copy to-field="attnName" set-if-null="false"/>
</process>
<process field="billToAddress1">
<copy to-field="address1"/>
<not-empty>
<fail-property resource="PartyUiLabels" property="PartyAddressLine1MissingError"/>
</not-empty>
</process>
<process field="billToAddress2">
<copy to-field="address2"/>
</process>
<process field="billToCity">
<copy to-field="city"/>
<not-empty>
<fail-property resource="PartyUiLabels" property="PartyCityMissing"/>
</not-empty>
</process>
<process field="billToStateProvinceGeoId">
<copy to-field="stateProvinceGeoId"/>
<not-empty>
<fail-property resource="PartyUiLabels" property="PartyStateMissingError"/>
</not-empty>
</process>
<process field="billToPostalCode">
<copy to-field="postalCode"/>
<not-empty>
<fail-property resource="PartyUiLabels" property="PartyPostalInformationNotFound"/>
</not-empty>
</process>
<process field="billToCountryGeoId">
<copy to-field="countryGeoId"/>
<not-empty>
<fail-property resource="PartyUiLabels" property="PartyCountryMissing"/>
</not-empty>
</process>
</simple-map-processor>

<simple-map-processor name="shipToPhone">
<process field="shipToCountryCode">
<copy to-field="countryCode"/>
Expand Down
Loading

0 comments on commit 45d9b98

Please sign in to comment.