/
New Exports Columns Implementation

New Exports Columns Implementation

1

Collection

Column Name

Values

Logic

2

Order 

Channel order ID

 

  fetch Customer Order Number from orders table

3

Order 

Customer order ID

The Customer order ID assigned to that order 

 fetch Vendor Order Number from orders table

4

Order 

Order item ID

The order item ID

 get id from orders _items table

5

Order

Shipment ID

The Shipment Id of a particular order

 get Shipment Id from shipment status logs

6

Order 

Invoice number

invoice number

Getting invoice Number Shipments Table  

get shipments.invoiceNumber

7

Order 

Sales channel

 

Getting channel_id From channels Table

Getting id From channels Table

Display Sales Channel as channels.channelLabel

8

Order 

Portal

 

Getting Portal Name From portals Table  

Getting channel_id Name From orders Table  

if(channel_id != 0 && channel_id != null )  

THEN

get portals.portal_name

9

Order 

Fulfilment center

 

Getting party_name from Party Table 

Getting warehouse_id from order_items Table 

fulfilmentCenterMap.get("facilityLabel")

10

Order 

Customer code

 

 gettting externalWmsChannelId

getting externalClientCode from external_wms_channel_account_mapping table
if (externalWmsChannelId != null && externalWmsChannelId != 0l)

Then

get externalClientCode From external_wms_channel_account_mapping table

11

Order 

Payment mode

COD
Prepaid

Getting isCOD from Shipments Table

Check wether payment is COD or Prepaid If orders.`isCOD

if 1 display cod otherwise Prepaid

12

Order 

Sold by

 

Getting party_name from Party Table 

Getting id from channels Table

Display Sold By as party.party_name

13

Order 

Shipment Zone

Local
Zonal
Metro
National
Remote Area

Getting region from Shipments Table

Getting isMetro from Shipments Table

Getting isSpecialplace from Shipments Table

if(region == “Local“)

THEN

Local

if(region == “Zonal“)

THEN

Zonal

if(region == “National“ && isMetro == 0)

THEN

Remote

if(region == “National“ && isMetro == 1)

THEN

Metro

Else

National

14

Order 

Replacement

Yes
No

Check wether the return shipment is  Exchange or not

return_shipments.isExchange AS isExchange

15

Order 

Replacement order item ID

 

Getting customerOrderNumber from orders Table

Getting original_order_item_id from order_items Table

Repalcement order item ID = orders .customerOrderNumber “- “ order_items .original_order_item_id

16

Order 

Sold as virtual kit

Yes
No

Check wether order is virtual kit or not 

get order_items.isVirtualKit from order_items Table

17

Order 

Virtual kit ESIN

 

  getting Virtual kit esin from Products api on the basis of product sku

18

Customer 

Shipping customer name

 

 get Shipping Customer Name from orders Table

19

Customer 

Shipping contact number

 

  get Shipping contact Number from orders Table

20

Customer 

Shipping email id

 

  get Shipping email id from orders Table

21

Customer 

Shipping address

 

  get Shipping Address from orders Table

22

Customer 

Shipping city

 

  get Shipping city from orders Table

23

Customer 

Shipping state

 

  get Shipping state from orders Table

24

Customer 

Shipping country

 

  get Shipping country from orders Table

25

Customer 

Billing customer Name

 

  get billing customer Name from orders Table

26

Customer 

Billing contact number

 

  get billing contact number from orders Table

27

Customer 

Billing email id

 

  get billing email id from orders Table

28

Customer 

Billing address

 

  get billing address from orders Table

29

Customer 

Billing pin code

 

  get billing pin code from orders Table

30

Customer 

Billing city

 

  get billing city from orders Table

31

Customer 

Billing state

 

  get billing state from orders Table

32

Customer 

Billing country

 

  get billing country from orders Table

33

Product

ESIN

 

Getting Product ESIN From Products API  

productInfoDto.getEsin()

34

Product

SKU

 

Getting Product SKU From Products API  

productInfoDto.getSku()

35

Product

EAN

 

Getting Product EAN From Products API  

productInfoDto.getEan()

36

Product

Product group code

 

Getting Product Group Code From Products API 

productInfoDto.getGroupCode()

37

Product

Title

 

Getting Product Description From Products API

 productInfoDto.getDescription()

38

Product

Brand

List of selling parties

Getting Product Brand Name From Products API 

productInfo.getBrand()

39

Product

Category

Category of the Order Item 

Getting Product Vertical Name From Products API

 productInfoDto.getVerticalName();

40

Product

Product weight

 

Getting Product Weight From Products API

productInfoDto.getWeight() / 1000

41

Product

HSN code

 

 Getting Product HSN code From Products API

get hsn From order_items Table

productInfoDto.getHsnCode()

42

Product

MRP

 

Getting Product mrp From Products API 

productInfoDto.getMrp()

43

Pricing

Invoice total

 

getting invoiceTotal from order_items Table

get order_items.invoiceTotal From order_items Table

44

Pricing

Selling price

 

Getting Product Details From Products API 

otherCharges = giftWrapCharges + codCharges;

get giftWrapCharges from order_items table with 2 decimal places

get cashOnDeliveryCharges from order_items with 2 decimal places

get invoiceTotal from above column

sellingPrice = dto.getInvoiceTotal() - dto.getShippingCharges() - otherCharges;

[upto 2 decimal places]

45

Pricing

Discount

 

Getting Product Details From Products API  

get selling Price from above column

get mrp from order_items with 2 decimal places

productInfoDto.getMrp()

discount = mrp - sellingPrice; [upto 2 decimal places]

46

Pricing

Discount percentage

 

Getting Product Details From Products API 

get discount logic from above column 

get mrp from order_items with 2 decimal places

productInfoDto.getMrp()

discountPercentage = (discount/mrp)*100; [upto 2 decimal places]

47

Pricing

Shipping charges

 

Getting Product Details on the basis of AccountId and product SKU From Products API 

get order_items.shippingCharges from order_items Table

48

Pricing

Other charges

 

Getting Product Details From Products API

get giftWrapCharges from order_items table with 2 decimal places

get cashOnDeliveryCharges from order_items with 2 decimal places 

otherCharges = giftWrapCharges + codCharges; [upto 2 decimal places]

49

Pricing

Tax amount

 

 

taxDetails.getTaxAmount()

50

Pricing

IGST rate

 

 

taxDetails.getIGST_Rate()

51

Pricing

IGST amount

 

 

taxDetails.getIGST_Amount()

52

Pricing

CGST rate

 

 

taxDetails.getCGST_Rate()

53

Pricing

CGST amount

 

 

taxDetails.getCGST_Amount()

54

Pricing

SGST rate

 

 

taxDetails.getSGST_Rate()

55

Pricing

SGST amount

 

 

 taxDetails.getSGST_Amount()

56

Pricing

UTGST rate

 

 

taxDetails.getUTGST_Rate()

57

Pricing

UTGST amount

 

 

taxDetails.getUTGST_Amount()

58

Shipping provider

Forward shipping provider

 

Getting Forward shipment courier Name from Shipments Table

get shipments.courierName From shipments Table

59

Shipping provider

Forward tracking ID

The Tracking ID assigned to that Order

Getting tracking ID from Shipments Table 

get tracking id from shipments.TrackingId

60

Shipping provider

Return shipping provider

 

Getting Return shipment courier Name from return_shipments Table  

get return_shipments.courierName

61

Shipping provider

Return tracking ID

 

Getting return tracking ID from return_shipments Table  

get Tracking id from return_shipments Table

62

Timeline

Order placed on channel

Date(dd-mm-yy)

Forward shipment courier Name

get orders.orderDate from orders table

63

Timeline

Order created in Eshopbox

 

 get order_items.created_at AS createdOnEshopbox

from order_items Table

64

Timeline

Order invoiced on

Date(dd-mm-yy)

get  shipments.invoiceDate from shipments table

65

Timeline

Expected order ready to ship on

Date(dd-mm-yy)

 get expectedShipDate From order_items

66

Timeline

Order ready to ship (RTS) on

Date(dd-mm-yy)

  getting packed Timestamp

67

Timeline

Time taken for order to ready to ship (RTS)

Date(dd-mm-yy)

getting created_at from order_items table

 difference between order_items.created_at AND packed TimeStamp

68

Timeline

Is order ready to ship on time

Yes
No

 Expected order ready to ship on Date > Order Ready to ship on (expected Ship Date) Date: Yes

else

No

69

Timeline

Reason for order ready to ship (RTS) delay

  • {Unfulfillable reason}

  • Order processing capacity exceeded at the fulfilment center

  • Delay in order processing

  • Order was on hold by seller

  pending [tbd]

70

Timeline

Is order ready to ship (RTS) SLA breached

Yes
No
SLA not applicable

  pending [tbd]

71

Timeline

Order handover done on

Date(dd-mm-yy)

 

72

Timeline

Expected order delivery date 

Date(dd-mm-yy)

Getting Expected Delivery Date from order_items Table

get order_items.expectedDeliveryDate

73

Timeline

Order delivered on

Date(dd-mm-yy)

 

74

Timeline

Time taken for order delivery 

 

Time Logic

→ If below 24 hrs then number hours must be displayed
→ If more than 24hr, then day and next set of hrs will be displayed.

For e.g. 1 day, 4 hrs
2 days, 3 hrs

Difference between  forwardDeliveredOn Timestamp and

fulfilledOn Timestamp

where fulfilledOn is ActualRTSOn and forwardDeliveredOn is forward shipment delivered date

if (forwardDeliveredOn > fulfilledOn )

int daysDiff = (int) (timeDiff / (1000 * 60 * 60 * 24))

75

Timeline

Is order delivered on time

Yes
No

 compare Deliverd Date Timestamp with Expected Delivery date

IF (Deliverd Date > Expected Delivery date )

THEN No

Else

Yes

76

Timeline

Is order delivery SLA breached

Yes
No
SLA not applicable

 pending [tbd]

77

Timeline

Number of delivery attempts done

0
1
2
3
4

This will be the out for delivery attempts  

forwardDeliveredOn.get("out_for_delivery_attempts")

78

Timeline

1st out for delivery attempt

Date(dd-mm-yy)

The first out for delivery attempt

79

Timeline

Latest out for delivery attempt

Date(dd-mm-yy)

The latest out for delivery attempt , ignoring the first attempt

80

Timeline

Order cancelled on

Date(dd-mm-yy)

 AND ( order_items.shipment_id IN ( :statusShipmentIds) OR "
(order_items.status = 'CANCELLED' AND order_items.shipment_id = 0 "
AND DATE(order_items.cancellationTime)>=(:cancelledOnStartRange) "
AND DATE(order_items.cancellationTime)<=(:cancelledOnEndRange)

81

Timeline

Return created on

Date(dd-mm-yy)

 AND (order_items.shipment_id IN (:statusShipmentIds) AND order_items.returnFlag = '1')

82

Timeline

Expected return pickup date

Date(dd-mm-yy)

  pending [tbd]

83

Timeline

Return picked on

Date(dd-mm-yy)

  pending [tbd]

84

Timeline

Number of attempt taken to pickup 

Date(dd-mm-yy)

 Pending [tbd]

85

Timeline

1st out for pickup attempt

Date(dd-mm-yy)

The first out for pickup attempt

86

Timeline

Latest out for pickup attempt

Date(dd-mm-yy)

The latest out for pickup attempt , ignoring the first attempt

87

Timeline

Is return pickup done on time

Yes
No

  pending [tbd]

88

Timeline

Is return pickup SLA breached

Yes
No
SLA not applicable

  pending [tbd]

89

Timeline

Return delivered on

Date(dd-mm-yy)

Getting Return Delivered On timestamp from return_shipments status _logs table where status = Delivered

90

Timeline

Return received on

Date(dd-mm-yy)

Scenario when return is received at the FC

order_items.shipment_id IN (:statusShipmentIds) AND order_items.returnFlag = '1'

91

Timeline

Return completed on

 

 order_items.warehouseInboundStatus IS/IS NOT
('COMPLETE') OR (order_items.shipment_id IN (:statusShipmentIds) AND order_items.status IN ('CANCELLED', 'REJECTED') )
OR (order_items.warehouseReversePickupReason IS/IS NOT
('lost') OR order_items.reversePickupReason IS/IS NOT
('lost')) ) );

92

Status

Current Status

New
Processing
Unfulfillable
On hold
Ready to ship
Handover done
On the way
Out for delivery
Delivered
Cancelled
Delivery cancelled
Order lost in transit
Awaiting pick up
Return on the way
Return in processing
Restocked
Quarantined
Return Lost in transit
Return lost in processing
Return Damaged

 Pending [tbd]

93

Status

Current status remark

 

 Pending [tbd]

94

Return 

Return ID

 

Getting Return Tracking Id from return_shipments table 

get return_shipments.`trackingID

95

Return 

Return type

Customer initiated return
Failed delivery return

 get warehouseInboundStatus from order_items Table

get return_shipment_id from order_items Table

get returnFlag from order_items Table

if(warehouseInboundStatus != null && return_shipment_id !=null && )

THEN Customer initiated return

if(warehouseInboundStatus != null && return_shipment_id !=null && returnFlag != 0)

THEN

Failed delivery return

96

Return 

Return reason

 

Getting Return reason from order_items table 

get order_items.`returnReason

97

Return 

Return sub reason

 

 Getting Return Sub reason from order_items table 

get order_items.`returnSubReason

98

Return 

Return resolution

Refund
Exchange

 Getting isExchange from return_shipments table 

if(isExchange.return_shipments == 0)

THEN

Refund

Else If(isExchange.return_shipments == 1)

THEN

Exchange

99

Return 

Return resolution details

For Prepaid Refund

  • {Refund to the original payment mode}

For COD Refund

  • Refund details: {Bank account details}

For Store credit refund

  • {Refund as store credit}

For Exchange
-{New Variant details}

Getting repaymentType from return_shipments table 

return_shipments.repaymentType AS repaymentType

If(repaymentType is bank)

IF ( beneficiaryAccountType = savings or s )

then get Beneficiary bank Account details from refunds

If ( repaymentType is originalpaymentmode)

THEN print “Account Used in Payment”

 Getting isExchange from return_shipments table 

If ( repaymentType is storeCredits)

THEN print “Store Credits”

return_shipments.exchangeSize AS exchangeSize

100

Return 

Action taken on return item

Restocked
Quarantined

Getting reversePickupReason from order_items table 

if( reversePickupReason ==”good_inventory”)

THEN

Restocked

if(reversePickupReason ==”bad_inventory”)

THEN

Quarantined

else

BLANK

101

Return 

Return item condition

Item is Sellable
Item is Non Sellable
Item is missing

 WHERE order_items.returnFlag = '1' AND order_items.reversePickupReason IN ('good_inventory', 'bad_inventory', 'lost')

102

Return 

Return rejection reason

(Reason provided for rejection)

Getting qcRejectionReason from order_items table 

103

Return 

Incorrect return items in the shipment

Yes
No

Getting unexpectedItemQty from unexpected_order_items table  

return_shipment_unexpected.unexpectedItemQty AS rsh_unexpectedItemsQuantity

104

Return

Incorrect return items details

(Details/SKU of incorrect item)

 Getting unexpectedItemSKUs from unexpected_order_items table

105

Cancellation

Cancelled by

Customer
Seller

  Pending [tbd]

106

Cancellation

Cancellation reason

 

 get order_items.`cancellationReason

107

Cancellation

Cancellation sub reason

 

  Pending [tbd]

108

Cancellation

Cancel resolution

For prepaid order

  • Refund

In case of COD, there will be no resolution

  getting

109

Cancellation

Cancel resolution details

For Prepaid Refund

  • {Refund to the original payment mode}

In case of COD, there will be no resolution details

  Pending [tbd]

110

Failed delivery 

Order Failed to deliver on

Date(dd-mm-yy)

Pending [tbd]

111

Failed delivery 

Reason for failed delivery 

Address Issue
Customer Unavailable
Customer Unreachable
Customer Wants Open Delivery
Delivery Rescheduled
Exception
No Attempt
Out Of Delivery Area
Payment Issue
Rejected By Customer
Self Collect

Pending [tbd]

112

Failed Delivery 

Courier partner remark for failed delivery 

Courier partner remarks for failed delivery 

Pending [tbd]

113

Failed delivery 

Number of failed delivery attempts done

1
2
3
4

Pending [tbd]

114

Failed delivery 

Failed delivery action status

Pending
Requested

Pending [tbd]

115

Failed delivery 

Failed delivery action

Reattempt delivery requested for “date”
Reschedule delivery requested for “date”
Delivery cancelled

Pending [tbd]

116

Failed delivery

Failed delivery action taken by

Customer
Seller

 Pending [tbd]

117

Failed pickup

Return failed to pick on

 

 Pending [tbd]

118

Failed pickup

Reason for failed pickup

 

 Pending [tbd]

119

Failed pickup

Courier partner remark for failed pickup

 

 Pending [tbd]

120

Failed pickup

Number of failed delivery attempts done

1
2
3

 Pending [tbd]

121

Failed pickup

Failed pickup action status

Pending
Requested

 Pending [tbd]

122

Failed pickup

Failed pickup action

Reattempt pickup requested for “date”
Reschedule pickup requested for “date”
Pickup cancelled

 Pending [tbd]

123

Failed pickup 

Failed pickup action taken by

Customer
Seller

 Pending [tbd]

Add label

Related content