Subversion Repositories SmartDukaan

Rev

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

Rev 17487 Rev 17500
Line 8646... Line 8646...
8646
    if split_order_quantity >=order.lineitems[0].quantity:
8646
    if split_order_quantity >=order.lineitems[0].quantity:
8647
        raise TransactionServiceException(115, "Split Quantity is greater than or equal to order quantity")
8647
        raise TransactionServiceException(115, "Split Quantity is greater than or equal to order quantity")
8648
    if order.status not in [OrderStatus.SUBMITTED_FOR_PROCESSING, OrderStatus.INVENTORY_LOW, OrderStatus.LOW_INV_PO_RAISED, OrderStatus.LOW_INV_REVERSAL_IN_PROCESS, OrderStatus.LOW_INV_NOT_AVAILABLE_AT_HOTSPOT, OrderStatus.CAPTURE_IN_PROCESS, OrderStatus.REJECTED, OrderStatus.ACCEPTED]:
8648
    if order.status not in [OrderStatus.SUBMITTED_FOR_PROCESSING, OrderStatus.INVENTORY_LOW, OrderStatus.LOW_INV_PO_RAISED, OrderStatus.LOW_INV_REVERSAL_IN_PROCESS, OrderStatus.LOW_INV_NOT_AVAILABLE_AT_HOTSPOT, OrderStatus.CAPTURE_IN_PROCESS, OrderStatus.REJECTED, OrderStatus.ACCEPTED]:
8649
        raise TransactionServiceException(115, "Order not allowed to be split")
8649
        raise TransactionServiceException(115, "Order not allowed to be split")
8650
    
8650
    
8651
    new_order = __clone_order(order, False, False)
8651
    new_order = __clone_order(order, False, order.cod)
8652
    new_order.expected_delivery_time = order.expected_delivery_time
8652
    new_order.expected_delivery_time = order.expected_delivery_time
8653
    new_order.promised_delivery_time = order.promised_delivery_time
8653
    new_order.promised_delivery_time = order.promised_delivery_time
8654
    new_order.expected_shipping_time = order.expected_shipping_time
8654
    new_order.expected_shipping_time = order.expected_shipping_time
8655
    new_order.promised_shipping_time = order.promised_shipping_time
8655
    new_order.promised_shipping_time = order.promised_shipping_time
8656
    
8656