Subversion Repositories SmartDukaan

Rev

Rev 20941 | Rev 21134 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 20941 Rev 21090
Line 28... Line 28...
28
    UserSanction as TUserSanction, CreditTxnType, LoanHistory as TLoanHistory, \
28
    UserSanction as TUserSanction, CreditTxnType, LoanHistory as TLoanHistory, \
29
    PaginatedCreditHistory as TPaginatedCreditHistory, \
29
    PaginatedCreditHistory as TPaginatedCreditHistory, \
30
    PaginatedLoanHistory as TPaginatedLoanHistory, \
30
    PaginatedLoanHistory as TPaginatedLoanHistory, \
31
    PaginatedUserSanction as TPaginatedUserSanction, \
31
    PaginatedUserSanction as TPaginatedUserSanction, \
32
    ShipmentLogisticsCostDetail as TShipmentLogisticsCostDetail, \
32
    ShipmentLogisticsCostDetail as TShipmentLogisticsCostDetail, \
33
    OutstandingPayments as TOutstandingPayments, WarehouseAddress
33
    OutstandingPayments as TOutstandingPayments, WarehouseAddress, Pmsa as TPmsa
34
from shop2020.utils.Utils import to_java_date
34
from shop2020.utils.Utils import to_java_date
35
 
35
 
36
 
36
 
37
cutoff_date = ConfigClient().get_property("warehouse_company_cutoff_date")
37
cutoff_date = ConfigClient().get_property("warehouse_company_cutoff_date")
38
cutoff_date = datetime.datetime.strptime(cutoff_date,'%Y-%m-%d')
38
cutoff_date = datetime.datetime.strptime(cutoff_date,'%Y-%m-%d')
Line 707... Line 707...
707
    t_ShipmentLogisticsCostDetail.createdAt = to_java_date(shipmentLogisticsCostDetail.createdAt)
707
    t_ShipmentLogisticsCostDetail.createdAt = to_java_date(shipmentLogisticsCostDetail.createdAt)
708
    if shipmentLogisticsCostDetail.updatedAt:
708
    if shipmentLogisticsCostDetail.updatedAt:
709
        t_ShipmentLogisticsCostDetail.updatedAt = to_java_date(shipmentLogisticsCostDetail.updatedAt)
709
        t_ShipmentLogisticsCostDetail.updatedAt = to_java_date(shipmentLogisticsCostDetail.updatedAt)
710
    t_ShipmentLogisticsCostDetail.packageDimensions = shipmentLogisticsCostDetail.packageDimensions
710
    t_ShipmentLogisticsCostDetail.packageDimensions = shipmentLogisticsCostDetail.packageDimensions
711
        
711
        
712
    return t_ShipmentLogisticsCostDetail
-
 
713
712
    return t_ShipmentLogisticsCostDetail
-
 
713
 
-
 
714
def to_t_pmsa(pmsa, l1_user_email="", l2_user_email=""):
-
 
715
    t_pmsa = TPmsa()
-
 
716
    if pmsa is None:
-
 
717
        return t_pmsa
-
 
718
    t_pmsa.id = pmsa.id
-
 
719
    t_pmsa.name = pmsa.name
-
 
720
    t_pmsa.pin = pmsa.pin
-
 
721
    t_pmsa.phone = pmsa.phone
-
 
722
    t_pmsa.emailId = pmsa.emailId
-
 
723
    t_pmsa.address = pmsa.address
-
 
724
    t_pmsa.state = pmsa.state
-
 
725
    t_pmsa.level = pmsa.level
-
 
726
    t_pmsa.activated = pmsa.activated
-
 
727
    t_pmsa.code = pmsa.code
-
 
728
    t_pmsa.createdAt = to_java_date(pmsa.createdAt)
-
 
729
    t_pmsa.l1_email = l1_user_email
-
 
730
    t_pmsa.l2_email = l2_user_email
-
 
731
    return t_pmsa
-
 
732
714
733