Subversion Repositories SmartDukaan

Rev

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

Rev 7792 Rev 13146
Line 9... Line 9...
9
    t_provider.name = provider.name
9
    t_provider.name = provider.name
10
    t_provider.pickup = provider.pickup
10
    t_provider.pickup = provider.pickup
11
    t_provider.details = []
11
    t_provider.details = []
12
    for detail in provider.details:
12
    for detail in provider.details:
13
        t_provider.details.append(to_t_proivder_details(detail))
13
        t_provider.details.append(to_t_proivder_details(detail))
-
 
14
    if provider.bundleWeightLimit:
-
 
15
        t_provider.bundleWeightLimit = provider.bundleWeightLimit
-
 
16
    t_provider.groupShipmentAllowed = provider.groupShipmentAllowed
-
 
17
    t_provider.maxCodLimit = provider.maxCodLimit
14
    return t_provider
18
    return t_provider
15
 
19
 
16
def to_t_proivder_details(detail):
20
def to_t_proivder_details(detail):
17
    t_provider_details = TProviderDetails()
21
    t_provider_details = TProviderDetails()
18
    t_provider_details.accountNo = detail.accountNo
22
    t_provider_details.accountNo = detail.accountNo