| Line 11... |
Line 11... |
| 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, AmazonFbaOrderReturns as amazonFbaOrderReturn, \
|
15 |
FlipkartOrder as flipkartOrder, AmazonFbaOrderReturns as amazonFbaOrderReturn, \
|
| 16 |
FlipkartAdvantageOrder as flipkartAdvantageOrder
|
16 |
FlipkartAdvantageOrder as flipkartAdvantageOrder, FlipkartFaSalesSnapshot as flipkartFaSalesSnapshot
|
| 17 |
|
17 |
|
| 18 |
|
18 |
|
| 19 |
from shop2020.utils.Utils import to_java_date
|
19 |
from shop2020.utils.Utils import to_java_date
|
| 20 |
from shop2020.model.v1.order.impl.DataService import Alert, Transaction
|
20 |
from shop2020.model.v1.order.impl.DataService import Alert, Transaction
|
| 21 |
import datetime
|
21 |
import datetime
|
| Line 125... |
Line 125... |
| 125 |
t_order.advanceAmount = order.advanceAmount
|
125 |
t_order.advanceAmount = order.advanceAmount
|
| 126 |
t_order.productCondition = order.productCondition
|
126 |
t_order.productCondition = order.productCondition
|
| 127 |
t_order.dataProtectionInsurer = order.dataProtectionInsurer
|
127 |
t_order.dataProtectionInsurer = order.dataProtectionInsurer
|
| 128 |
t_order.dataProtectionAmount = order.dataProtectionAmount
|
128 |
t_order.dataProtectionAmount = order.dataProtectionAmount
|
| 129 |
t_order.taxType = order.taxType
|
129 |
t_order.taxType = order.taxType
|
| - |
|
130 |
if order.logisticsTransactionId:
|
| - |
|
131 |
t_order.logisticsTransactionId = order.logisticsTransactionId
|
| 130 |
return t_order
|
132 |
return t_order
|
| 131 |
|
133 |
|
| 132 |
def to_t_lineitem(lineitem):
|
134 |
def to_t_lineitem(lineitem):
|
| 133 |
t_lineitem = T_LineItem()
|
135 |
t_lineitem = T_LineItem()
|
| 134 |
t_lineitem.id = lineitem.id
|
136 |
t_lineitem.id = lineitem.id
|
| Line 430... |
Line 432... |
| 430 |
fa_Order.cancelReason = faOrder.cancelReason
|
432 |
fa_Order.cancelReason = faOrder.cancelReason
|
| 431 |
fa_Order.returnReason = faOrder.returnReason
|
433 |
fa_Order.returnReason = faOrder.returnReason
|
| 432 |
fa_Order.freebieItemId = faOrder.freebieItemId
|
434 |
fa_Order.freebieItemId = faOrder.freebieItemId
|
| 433 |
fa_Order.productTitle = faOrder.productTitle
|
435 |
fa_Order.productTitle = faOrder.productTitle
|
| 434 |
|
436 |
|
| 435 |
return fa_Order
|
- |
|
| 436 |
|
437 |
return fa_Order
|
| - |
|
438 |
|
| - |
|
439 |
def to_t_flipkartFaSalesSnapshot(faSalesSnapshot):
|
| - |
|
440 |
fa_salesSnapshot = flipkartFaSalesSnapshot()
|
| - |
|
441 |
fa_salesSnapshot.dateOfSale = to_java_date(datetime.datetime.combine(faSalesSnapshot.dateOfSale,datetime.time(0,0)))
|
| - |
|
442 |
fa_salesSnapshot.item_id = faSalesSnapshot.item_id
|
| - |
|
443 |
fa_salesSnapshot.isOutOfStock = faSalesSnapshot.isOutOfStock
|
| - |
|
444 |
fa_salesSnapshot.totalOrderCount = faSalesSnapshot.totalOrderCount
|
| - |
|
445 |
fa_salesSnapshot.totalSale = faSalesSnapshot.totalSale
|
| - |
|
446 |
fa_salesSnapshot.ourPrice = faSalesSnapshot.ourPrice
|
| - |
|
447 |
|
| - |
|
448 |
return fa_salesSnapshot
|
| - |
|
449 |
|
| 437 |
|
450 |
|