| Line 8673... |
Line 8673... |
| 8673 |
raise TransactionServiceException(115, "Split Quantity is greater than or equal to order quantity")
|
8673 |
raise TransactionServiceException(115, "Split Quantity is greater than or equal to order quantity")
|
| 8674 |
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]:
|
8674 |
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]:
|
| 8675 |
raise TransactionServiceException(115, "Order not allowed to be split")
|
8675 |
raise TransactionServiceException(115, "Order not allowed to be split")
|
| 8676 |
|
8676 |
|
| 8677 |
new_order = __clone_order(order, False, order.cod)
|
8677 |
new_order = __clone_order(order, False, order.cod)
|
| 8678 |
new_order.expected_delivery_time = order.expected_delivery_time
|
- |
|
| 8679 |
new_order.promised_delivery_time = order.promised_delivery_time
|
- |
|
| 8680 |
new_order.expected_shipping_time = order.expected_shipping_time
|
- |
|
| 8681 |
new_order.promised_shipping_time = order.promised_shipping_time
|
- |
|
| 8682 |
|
8678 |
|
| 8683 |
new_order.lineitems[0].quantity = split_order_quantity
|
8679 |
new_order.lineitems[0].quantity = split_order_quantity
|
| 8684 |
new_order.lineitems[0].total_price = new_order.lineitems[0].unit_price*split_order_quantity
|
8680 |
new_order.lineitems[0].total_price = new_order.lineitems[0].unit_price*split_order_quantity
|
| 8685 |
new_order.lineitems[0].total_weight = new_order.lineitems[0].unit_weight*split_order_quantity
|
8681 |
new_order.lineitems[0].total_weight = new_order.lineitems[0].unit_weight*split_order_quantity
|
| 8686 |
new_order.total_amount = new_order.lineitems[0].total_price
|
8682 |
new_order.total_amount = new_order.lineitems[0].total_price
|