Subversion Repositories SmartDukaan

Rev

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

Rev 8344 Rev 8355
Line 1283... Line 1283...
1283
            return "True"
1283
            return "True"
1284
        __amend_fulfilment_warehouse(order)
1284
        __amend_fulfilment_warehouse(order)
1285
        __update_transfer_price(order, order.fulfilmentWarehouseId)
1285
        __update_transfer_price(order, order.fulfilmentWarehouseId)
1286
        session.commit()
1286
        session.commit()
1287
        
1287
        
1288
        if order.logistics_provider_id != 7 and order.airwaybill_no is None:
1288
        if order.logistics_provider_id != 7 and order.airwaybill_no is None or order.airwaybill_no == "null":
1289
            logistics_client = LogisticsClient().get_client()
1289
            logistics_client = LogisticsClient().get_client()
1290
            if order.cod and order.total_amount > 1:
1290
            if order.cod and order.total_amount > 1:
1291
                airwaybillNo= logistics_client.getEmptyAWB(order.logistics_provider_id, DeliveryType.COD)
1291
                airwaybillNo= logistics_client.getEmptyAWB(order.logistics_provider_id, DeliveryType.COD)
1292
            else:
1292
            else:
1293
                airwaybillNo= logistics_client.getEmptyAWB(order.logistics_provider_id, DeliveryType.PREPAID)
1293
                airwaybillNo= logistics_client.getEmptyAWB(order.logistics_provider_id, DeliveryType.PREPAID)