| Line 4... |
Line 4... |
| 4 |
Line as TLine, MasterAffiliate as TMasterAffiliate, Affiliate as TAffiliate, \
|
4 |
Line as TLine, MasterAffiliate as TMasterAffiliate, Affiliate as TAffiliate, \
|
| 5 |
Tracker as TTracker, TrackLog as TTrackLog, Promotion as TPromotion, \
|
5 |
Tracker as TTracker, TrackLog as TTrackLog, Promotion as TPromotion, \
|
| 6 |
Coupon as TCoupon, Discount as TDiscount, \
|
6 |
Coupon as TCoupon, Discount as TDiscount, \
|
| 7 |
ItemCouponDiscount as TItemCouponDiscount, Voucher, CouponCategory, \
|
7 |
ItemCouponDiscount as TItemCouponDiscount, Voucher, CouponCategory, \
|
| 8 |
PrivateDealUser as TPrivateDealUser, Counter as TCounter, AccessTokenizer as TAccessTokenizer, \
|
8 |
PrivateDealUser as TPrivateDealUser, Counter as TCounter, AccessTokenizer as TAccessTokenizer, \
|
| 9 |
CounterOnlineInfo as TCounterOnlineInfo
|
9 |
CounterOnlineInfo as TCounterOnlineInfo, PostOffices as TPostOffices
|
| 10 |
from shop2020.utils.Utils import to_java_date
|
10 |
from shop2020.utils.Utils import to_java_date
|
| 11 |
|
11 |
|
| 12 |
|
12 |
|
| 13 |
def to_t_address(address, taxInvoice=False, credit_available=False):
|
13 |
def to_t_address(address, taxInvoice=False, credit_available=False):
|
| 14 |
t_address = TAddress()
|
14 |
t_address = TAddress()
|
| Line 300... |
Line 300... |
| 300 |
t_counterOnlineInfo.registrationStatus = counterInfo.registrationStatus
|
300 |
t_counterOnlineInfo.registrationStatus = counterInfo.registrationStatus
|
| 301 |
t_counterOnlineInfo.state = counterInfo.state
|
301 |
t_counterOnlineInfo.state = counterInfo.state
|
| 302 |
t_counterOnlineInfo.tinNumber = counterInfo.tinNumber
|
302 |
t_counterOnlineInfo.tinNumber = counterInfo.tinNumber
|
| 303 |
t_counterOnlineInfo.validatedTill = to_java_date(counterInfo.validatedTill)
|
303 |
t_counterOnlineInfo.validatedTill = to_java_date(counterInfo.validatedTill)
|
| 304 |
t_counterOnlineInfo.created = to_java_date(counterInfo.created)
|
304 |
t_counterOnlineInfo.created = to_java_date(counterInfo.created)
|
| 305 |
return t_counterOnlineInfo
|
- |
|
| 306 |
|
305 |
return t_counterOnlineInfo
|
| - |
|
306 |
|
| - |
|
307 |
def to_t_post_offices(postOffice):
|
| - |
|
308 |
t_postOffice = TPostOffices()
|
| - |
|
309 |
if postOffice is None:
|
| - |
|
310 |
return t_postOffice
|
| - |
|
311 |
t_postOffice.name = postOffice.name
|
| - |
|
312 |
t_postOffice.pincode = postOffice.pincode
|
| - |
|
313 |
t_postOffice.divisionName = postOffice.divisionname
|
| - |
|
314 |
t_postOffice.district = postOffice.district
|
| - |
|
315 |
t_postOffice.regionName = postOffice.regionname
|
| - |
|
316 |
t_postOffice.taluk = postOffice.taluk
|
| - |
|
317 |
t_postOffice.state = postOffice.state
|
| - |
|
318 |
t_postOffice.deliveryStatus = postOffice.deliverystatus
|
| - |
|
319 |
return t_postOffice
|
| - |
|
320 |
|
| 307 |
|
321 |
|