Skip to content

Commit

Permalink
Merge pull request #208 from janvi04/add-is-aggregate-on-shipment-ite…
Browse files Browse the repository at this point in the history
…m-seq-id-in-order-item-and-shipment

Added: is-aggregate on the shipmentItemSeqId field in OrderItemAndShipment view
  • Loading branch information
dixitdeepak authored Sep 18, 2024
2 parents 39abac0 + bb22c78 commit fe270ad
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions entity/OmsOrderViewEntities.xml
Original file line number Diff line number Diff line change
Expand Up @@ -739,9 +739,13 @@ under the License.
<alias entity-alias="OS" name="statusDatetime" function="max"/>
<alias entity-alias="PP" name="productId"/>
<alias entity-alias="PP" name="internalName"/>
<alias entity-alias="OSH" field="quantity" name="shippedQuantity"/>
<!-- Selecting the shippedQuantity from OrderItem instead of OrderShipment
this is because the Orders will always be exploded in HC and hence for each orderItem
a shipmentItem will be created and will be fulfilled so we can take the quantity of OrderItem
as the shipped quantity. -->
<alias entity-alias="OI" field="quantity" name="shippedQuantity"/>
<alias entity-alias="SHI" name="shipmentId"/>
<alias entity-alias="SHI" name="shipmentItemSeqId"/>
<alias entity-alias="SHI" name="shipmentItemSeqId" is-aggregate="true"/>
<alias entity-alias="SH" field="statusId" name="shipmentStatusId"/>
<alias entity-alias="SH" field="destinationContactMechId" name="shipToContactMechId"/>
<alias entity-alias="SH" field="destinationTelecomNumberId" name="shipToTelecomContactMechId"/>
Expand Down

0 comments on commit fe270ad

Please sign in to comment.