| Line 346... |
Line 346... |
| 346 |
*/
|
346 |
*/
|
| 347 |
public List<Order> markDoasAsPickedUp(long providerId, Map<String,String> pickupDetails) throws org.apache.thrift.TException;
|
347 |
public List<Order> markDoasAsPickedUp(long providerId, Map<String,String> pickupDetails) throws org.apache.thrift.TException;
|
| 348 |
|
348 |
|
| 349 |
/**
|
349 |
/**
|
| 350 |
* If the order status is DOA_PICKUP_CONFIRMED or DOA_RETURN_IN_TRANSIT, marks the order status as DOA_RECEIVED_PRESTINE and returns true.
|
350 |
* If the order status is DOA_PICKUP_CONFIRMED or DOA_RETURN_IN_TRANSIT, marks the order status as DOA_RECEIVED_PRESTINE and returns true.
|
| 351 |
* If the order status is SALES_RETURN_IN_TRANSIT, marks the order status as SALES_RET_RECEIVED and returns true.
|
351 |
* If the order status is RTO_IN_TRANSIT, marks the order status as RTO_RECEIVED_PRESTINE and returns true.
|
| 352 |
* If the order is in any other state, it returns false.
|
352 |
* If the order is in any other state, it returns false.
|
| 353 |
* Throws an exception if the order with the given id couldn't be found.
|
353 |
* Throws an exception if the order with the given id couldn't be found.
|
| 354 |
*
|
354 |
*
|
| 355 |
* @param orderId
|
355 |
* @param orderId
|
| 356 |
* @param receiveCondition
|
356 |
* @param receiveCondition
|
| Line 367... |
Line 367... |
| 367 |
* @param isValid
|
367 |
* @param isValid
|
| 368 |
*/
|
368 |
*/
|
| 369 |
public boolean validateDoa(long orderId, boolean isValid) throws TransactionServiceException, org.apache.thrift.TException;
|
369 |
public boolean validateDoa(long orderId, boolean isValid) throws TransactionServiceException, org.apache.thrift.TException;
|
| 370 |
|
370 |
|
| 371 |
/**
|
371 |
/**
|
| 372 |
* If the order is in SALES_RET_RECEIVED or DOA_CERT_INVALID state, it does the following:
|
372 |
* If the order is in RTO_RECEIVED_PRESTINE or DOA_CERT_INVALID state, it does the following:
|
| 373 |
* 1. Creates a new order for processing in the BILLED state. All billing information is saved.
|
373 |
* 1. Creates a new order for processing in the BILLED state. All billing information is saved.
|
| 374 |
* 2. Marks the current order as one of the final states SALES_RET_RESHIPPED and DOA_INVALID_RESHIPPED depending on what state the order started in.
|
374 |
* 2. Marks the current order as one of the final states RTO_RESHIPPED and DOA_INVALID_RESHIPPED depending on what state the order started in.
|
| 375 |
*
|
375 |
*
|
| 376 |
* If the order is in DOA_CERT_VALID state, it does the following:
|
376 |
* If the order is in DOA_CERT_VALID state, it does the following:
|
| 377 |
* 1. Creates a new order for processing in the SUBMITTED_FOR_PROCESSING state.
|
377 |
* 1. Creates a new order for processing in the SUBMITTED_FOR_PROCESSING state.
|
| 378 |
* 2. Creates a return order for the warehouse executive to return the DOA material.
|
378 |
* 2. Creates a return order for the warehouse executive to return the DOA material.
|
| 379 |
* 3. Marks the current order as the final DOA_VALID_RESHIPPED state.
|
379 |
* 3. Marks the current order as the final DOA_VALID_RESHIPPED state.
|
| Line 385... |
Line 385... |
| 385 |
* @param orderId
|
385 |
* @param orderId
|
| 386 |
*/
|
386 |
*/
|
| 387 |
public long reshipOrder(long orderId) throws TransactionServiceException, org.apache.thrift.TException;
|
387 |
public long reshipOrder(long orderId) throws TransactionServiceException, org.apache.thrift.TException;
|
| 388 |
|
388 |
|
| 389 |
/**
|
389 |
/**
|
| 390 |
* If the order is in SALES_RET_RECEIVED, DOA_CERT_VALID or DOA_CERT_INVALID state, it does the following:
|
390 |
* If the order is in RTO_RECEIVED_PRESTINE, DOA_CERT_VALID or DOA_CERT_INVALID state, it does the following:
|
| 391 |
* 1. Creates a refund request for batch processing.
|
391 |
* 1. Creates a refund request for batch processing.
|
| 392 |
* 2. Creates a return order for the warehouse executive to return the shipped material.
|
392 |
* 2. Creates a return order for the warehouse executive to return the shipped material.
|
| 393 |
* 3. Marks the current order as SALES_RET_REFUNDED, DOA_VALID_REFUNDED or DOA_INVALID_REFUNDED final states.
|
393 |
* 3. Marks the current order as RTO_REFUNDED, DOA_VALID_REFUNDED or DOA_INVALID_REFUNDED final states.
|
| 394 |
*
|
394 |
*
|
| 395 |
* If the order is in SUBMITTED_FOR_PROCESSING or INVENTORY_LOW state, it does the following:
|
395 |
* If the order is in SUBMITTED_FOR_PROCESSING or INVENTORY_LOW state, it does the following:
|
| 396 |
* 1. Creates a refund request for batch processing.
|
396 |
* 1. Creates a refund request for batch processing.
|
| 397 |
* 2. Cancels the reservation of the item in the warehouse.
|
397 |
* 2. Cancels the reservation of the item in the warehouse.
|
| 398 |
* 3. Marks the current order as the REFUNDED final state.
|
398 |
* 3. Marks the current order as the REFUNDED final state.
|