| Line 2409... |
Line 2409... |
| 2409 |
|
2409 |
|
| 2410 |
if order.status in [OrderStatus.DOA_PICKUP_CONFIRMED, OrderStatus.DOA_RETURN_IN_TRANSIT]:
|
2410 |
if order.status in [OrderStatus.DOA_PICKUP_CONFIRMED, OrderStatus.DOA_RETURN_IN_TRANSIT]:
|
| 2411 |
if receiveCondition == 0:
|
2411 |
if receiveCondition == 0:
|
| 2412 |
order.status = OrderStatus.DOA_RECEIVED_PRESTINE
|
2412 |
order.status = OrderStatus.DOA_RECEIVED_PRESTINE
|
| 2413 |
order.statusDescription = "DOA package received"
|
2413 |
order.statusDescription = "DOA package received"
|
| - |
|
2414 |
scanFreebie = receiveFreebie
|
| 2414 |
elif receiveCondition == 1:
|
2415 |
elif receiveCondition == 1:
|
| 2415 |
order.status = OrderStatus.DOA_RECEIVED_DAMAGED
|
2416 |
order.status = OrderStatus.DOA_RECEIVED_DAMAGED
|
| 2416 |
order.statusDescription = "DOA received damaged"
|
2417 |
order.statusDescription = "DOA received damaged"
|
| 2417 |
elif receiveCondition == 2:
|
2418 |
elif receiveCondition == 2:
|
| 2418 |
order.status = OrderStatus.DOA_LOST_IN_TRANSIT
|
2419 |
order.status = OrderStatus.DOA_LOST_IN_TRANSIT
|
| Line 2420... |
Line 2421... |
| 2420 |
order.received_return_timestamp = datetime.datetime.now()
|
2421 |
order.received_return_timestamp = datetime.datetime.now()
|
| 2421 |
elif order.status in [OrderStatus.RET_PICKUP_CONFIRMED, OrderStatus.RET_RETURN_IN_TRANSIT]:
|
2422 |
elif order.status in [OrderStatus.RET_PICKUP_CONFIRMED, OrderStatus.RET_RETURN_IN_TRANSIT]:
|
| 2422 |
if receiveCondition == 0:
|
2423 |
if receiveCondition == 0:
|
| 2423 |
order.status = OrderStatus.RET_RECEIVED_PRESTINE
|
2424 |
order.status = OrderStatus.RET_RECEIVED_PRESTINE
|
| 2424 |
order.statusDescription = "RETURN package received"
|
2425 |
order.statusDescription = "RETURN package received"
|
| - |
|
2426 |
scanFreebie = receiveFreebie
|
| 2425 |
elif receiveCondition == 1:
|
2427 |
elif receiveCondition == 1:
|
| 2426 |
order.status = OrderStatus.RET_RECEIVED_DAMAGED
|
2428 |
order.status = OrderStatus.RET_RECEIVED_DAMAGED
|
| 2427 |
order.statusDescription = "RETURN received damaged"
|
2429 |
order.statusDescription = "RETURN received damaged"
|
| 2428 |
elif receiveCondition == 2:
|
2430 |
elif receiveCondition == 2:
|
| 2429 |
order.status = OrderStatus.RET_LOST_IN_TRANSIT
|
2431 |
order.status = OrderStatus.RET_LOST_IN_TRANSIT
|