Subversion Repositories SmartDukaan

Rev

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

Rev 1251 Rev 1433
Line 36... Line 36...
36
        dest_code = str(dest_code)
36
        dest_code = str(dest_code)
37
        sld = ServiceableLocationDetails()
37
        sld = ServiceableLocationDetails()
38
        sld.provider = provider
38
        sld.provider = provider
39
        sld.dest_pincode = dest_pincode
39
        sld.dest_pincode = dest_pincode
40
        sld.dest_code = dest_code
40
        sld.dest_code = dest_code
41
        sld.exp = True if exp == 1 else False
41
        sld.exp = True if exp in [1, 'Yes'] else False
42
        sld.cod = True if cod == 1 else False
42
        sld.cod = True if cod in [1, 'Yes'] else False
43
        if station_type in ["Aramex Own Station", "A"]:
43
        if station_type in ["Aramex Own Station", "A"]:
44
            sld.station_type = StationType.OWN_STATION
44
            sld.station_type = StationType.OWN_STATION
45
        if station_type in ["Associate Station", "B"]:
45
        if station_type in ["Associate Station", "B"]:
46
            sld.station_type = StationType.ASSOCIATE_STATION
46
            sld.station_type = StationType.ASSOCIATE_STATION
47
        
47