Skip to content

Commit

Permalink
Update Order.xml
Browse files Browse the repository at this point in the history
Simplify changes to use templates where possible.
  • Loading branch information
Jwager-SBRx committed Dec 16, 2020
1 parent a3bf467 commit b46e857
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions screen/PopCommerceAdmin/Order.xml
Expand Up @@ -38,24 +38,10 @@ along with this software (see the LICENSE.md file). If not, see
<actions>
<if condition="orderId">
<entity-find-one entity-name="mantle.order.OrderPart" value-field="orderPart"/>
<entity-find-one entity-name="mantle.party.PartyDetail" value-field="vPartyDetail">
<field-map field-name="partyId" from="orderPart.vendorPartyId"/>
</entity-find-one>
<entity-find-one entity-name="mantle.party.PartyDetail" value-field="cPartyDetail">
<field-map field-name="partyId" from="orderPart.customerPartyId"/>
</entity-find-one>
<if condition="orderPart.customerPartyId == 'Company'">
<then>
<set field="displayName" value="${vPartyDetail.partyId}: ${vPartyDetail.organizationName}"/>
</then>
<else>
<set field="displayName" value="${cPartyDetail.partyId}: ${cPartyDetail.firstName} ${cPartyDetail.lastName}"/>
</else>
</if>
</if>
</actions>
<widgets>
<label text="${orderId} - ${displayName}" type="h3" condition="orderId"/>
<label text="OrderNameTemplate" text-map="orderPart" type="strong" condition="orderPart"/>
<subscreens-panel id="OrderPanel" type="tab"/>
</widgets>
</screen>

0 comments on commit b46e857

Please sign in to comment.