Subversion Repositories SmartDukaan

Rev

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

Rev 6990 Rev 7019
Line 2133... Line 2133...
2133
            order.status = OrderStatus.RTO_LOST_IN_TRANSIT
2133
            order.status = OrderStatus.RTO_LOST_IN_TRANSIT
2134
            order.statusDescription = "RTO lost in transit"
2134
            order.statusDescription = "RTO lost in transit"
2135
        order.received_return_timestamp = datetime.datetime.now()
2135
        order.received_return_timestamp = datetime.datetime.now()
2136
    else:
2136
    else:
2137
        return False
2137
        return False
2138
    
-
 
2139
    if order.insurer > 0:
-
 
2140
        detail = InsuranceDetailForOrder.get_by(order_id = order.id)
-
 
2141
        detail.expiryDate = datetime.datetime.now()
-
 
2142
 
2138
 
2143
    # For OUR warehouses, we need to scan in items for every return
2139
    # For OUR warehouses, we need to scan in items for every return
2144
    inventoryClient = InventoryClient().get_client()
2140
    inventoryClient = InventoryClient().get_client()
2145
    warehouse = inventoryClient.getWarehouse(order.warehouse_id)
2141
    warehouse = inventoryClient.getWarehouse(order.warehouse_id)
2146
    if warehouse.billingType == BillingType.OURS or warehouse.billingType == BillingType.OURS_EXTERNAL:
2142
    if warehouse.billingType == BillingType.OURS or warehouse.billingType == BillingType.OURS_EXTERNAL: