| Line 10... |
Line 10... |
| 10 |
Attribute as T_Attribute, EmiScheme as T_EmiScheme, RechargeTransaction as T_rechargeTransaction, \
|
10 |
Attribute as T_Attribute, EmiScheme as T_EmiScheme, RechargeTransaction as T_rechargeTransaction, \
|
| 11 |
FRC as T_FRC, HotspotStore as T_HotSpotStore, SourceDetail as T_SourceDetail , \
|
11 |
FRC as T_FRC, HotspotStore as T_HotSpotStore, SourceDetail as T_SourceDetail , \
|
| 12 |
AmazonOrder as T_AmazonOrder, StoreOrderDetail as T_StoreOrderDetail, StoreOrderCollection as T_StoreOrderCollection, \
|
12 |
AmazonOrder as T_AmazonOrder, StoreOrderDetail as T_StoreOrderDetail, StoreOrderCollection as T_StoreOrderCollection, \
|
| 13 |
HotspotServiceMatrix as T_HotspotServiceMatrix, EbayOrder as T_EbayOrder, \
|
13 |
HotspotServiceMatrix as T_HotspotServiceMatrix, EbayOrder as T_EbayOrder, \
|
| 14 |
AmazonFbaSalesSnapshot as T_AmazonFbaSalesSnapshot, SnapdealOrder as T_SnapdealOrder, \
|
14 |
AmazonFbaSalesSnapshot as T_AmazonFbaSalesSnapshot, SnapdealOrder as T_SnapdealOrder, \
|
| 15 |
FlipkartOrder as flipkartOrder
|
15 |
FlipkartOrder as flipkartOrder, AmazonFbaOrderReturns as amazonFbaOrderReturn
|
| 16 |
|
16 |
|
| 17 |
|
17 |
|
| 18 |
from shop2020.utils.Utils import to_java_date
|
18 |
from shop2020.utils.Utils import to_java_date
|
| 19 |
from shop2020.model.v1.order.impl.DataService import Alert, Transaction
|
19 |
from shop2020.model.v1.order.impl.DataService import Alert, Transaction
|
| 20 |
import datetime
|
20 |
import datetime
|
| Line 390... |
Line 390... |
| 390 |
order.flipkartOrderId = flipkartorder.flipkartOrderId
|
390 |
order.flipkartOrderId = flipkartorder.flipkartOrderId
|
| 391 |
order.flipkartSubOrderId = flipkartorder.flipkartSubOrderId
|
391 |
order.flipkartSubOrderId = flipkartorder.flipkartSubOrderId
|
| 392 |
order.flipkartTxnDate = to_java_date(flipkartorder.flipkartTxnDate)
|
392 |
order.flipkartTxnDate = to_java_date(flipkartorder.flipkartTxnDate)
|
| 393 |
order.shippingPrice = flipkartorder.shippingPrice
|
393 |
order.shippingPrice = flipkartorder.shippingPrice
|
| 394 |
order.maxNlc = flipkartorder.maxNlc
|
394 |
order.maxNlc = flipkartorder.maxNlc
|
| 395 |
return order
|
395 |
return order
|
| - |
|
396 |
|
| - |
|
397 |
def to_t_amazonFbaOrderReturn(amazonfbaOrderReturn):
|
| - |
|
398 |
orderReturn = amazonFbaOrderReturn()
|
| - |
|
399 |
if amazonfbaOrderReturn:
|
| - |
|
400 |
orderReturn.amazonOrderId = amazonfbaOrderReturn.amazonOrderId
|
| - |
|
401 |
orderReturn.insertionTimestamp = to_java_date(amazonfbaOrderReturn.insertionTimestamp)
|
| - |
|
402 |
orderReturn.sku = amazonfbaOrderReturn.sku
|
| - |
|
403 |
orderReturn.creationTimestamp = to_java_date(amazonfbaOrderReturn.creationTimestamp)
|
| - |
|
404 |
orderReturn.shippedQuantity = amazonfbaOrderReturn.shippedQuantity
|
| - |
|
405 |
orderReturn.sellableReturnQuantity = amazonfbaOrderReturn.sellableReturnQuantity
|
| - |
|
406 |
orderReturn.nonSellableReturnQuantity = amazonfbaOrderReturn.nonSellableReturnQuantity
|
| - |
|
407 |
return orderReturn
|
| 396 |
|
408 |
|
| 397 |
|
409 |
|
| 398 |
|
410 |
|
| 399 |
|
411 |
|
| 400 |
|
412 |
|