From ac6854387313f8cfa89b44d4fd5b86971f8cda28 Mon Sep 17 00:00:00 2001 From: Gurveen Bagga Date: Fri, 17 Feb 2023 12:49:05 +0530 Subject: [PATCH 1/2] Improved: Included ReturnItemReponse in OrderPaymentPreferenceAndType view This is done for below scenario 1. The view should include ReturnItemResponse entity with join-optional true as for Sales, this entity does not hold records, but it contains records for Returns and Appeasements. 2. Now for Sales Items, we can fetch payment details using order Id and statusId = 'PAYMENT_SETTLED'. 3. For Return Items, we can fetch payment details using return Id and statusId = 'PAYMENT_REFUNDED'. 4. For Appeasements, we can fetch payment details using return Id and statusId = 'PAYMENT_REFUNDED'. 5. This way we can correctly fetch details for the scenario when the same order has a return and an appeasement. --- entity/OmsOrderViewEntities.xml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/entity/OmsOrderViewEntities.xml b/entity/OmsOrderViewEntities.xml index 7ef2d67..6a8e13c 100644 --- a/entity/OmsOrderViewEntities.xml +++ b/entity/OmsOrderViewEntities.xml @@ -391,11 +391,20 @@ under the License. + + @@ -403,6 +412,7 @@ under the License. + From c5b45d6d1388dba2d48cea143e70737f4afad521 Mon Sep 17 00:00:00 2001 From: Gurveen Bagga Date: Fri, 17 Feb 2023 13:01:39 +0530 Subject: [PATCH 2/2] Fixed typo in the member entity definition --- entity/OmsOrderViewEntities.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/entity/OmsOrderViewEntities.xml b/entity/OmsOrderViewEntities.xml index 6a8e13c..b68466c 100644 --- a/entity/OmsOrderViewEntities.xml +++ b/entity/OmsOrderViewEntities.xml @@ -405,6 +405,8 @@ under the License. + +