Subversion Repositories SmartDukaan

Rev

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

Rev 8115 Rev 8123
Line 1267... Line 1267...
1267
        __amend_fulfilment_warehouse(order)
1267
        __amend_fulfilment_warehouse(order)
1268
        __update_transfer_price(order, order.fulfilmentWarehouseId)
1268
        __update_transfer_price(order, order.fulfilmentWarehouseId)
1269
        session.commit()
1269
        session.commit()
1270
        
1270
        
1271
        if order.logistics_provider_id != 7 and order.airwaybill_no is None:
1271
        if order.logistics_provider_id != 7 and order.airwaybill_no is None:
1272
            logistics_client = LogisticsClient.get_client()
1272
            logistics_client = LogisticsClient().get_client()
1273
            if order.cod:
1273
            if order.cod:
1274
                airwaybillNo= logistics_client.getEmptyAWB(order.logistics_provider_id, DeliveryType.COD)
1274
                airwaybillNo= logistics_client.getEmptyAWB(order.logistics_provider_id, DeliveryType.COD)
1275
            else:
1275
            else:
1276
                airwaybillNo= logistics_client.getEmptyAWB(order.logistics_provider_id, DeliveryType.PREPAID)
1276
                airwaybillNo= logistics_client.getEmptyAWB(order.logistics_provider_id, DeliveryType.PREPAID)
1277
            
1277