Subversion Repositories SmartDukaan

Rev

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

Rev 4478 Rev 4484
Line 25... Line 25...
25
	CANCELLED_ON_CUSTOMER_REQUEST,
25
	CANCELLED_ON_CUSTOMER_REQUEST,
26
	CANCELLED_DUE_TO_LOW_INVENTORY,
26
	CANCELLED_DUE_TO_LOW_INVENTORY,
27
	COMPLETED,                  //Not Used
27
	COMPLETED,                  //Not Used
28
	CANCELED,
28
	CANCELED,
29
	FAILED,
29
	FAILED,
30
	SALES_RETURN_IN_TRANSIT,
30
	RTO_IN_TRANSIT,
31
	SALES_RET_RECEIVED,
31
	RTO_RECEIVED_PRESTINE,
32
	DOA_PICKUP_REQUEST_RAISED,
32
	DOA_PICKUP_REQUEST_RAISED,
33
	DOA_PICKUP_CONFIRMED,
33
	DOA_PICKUP_CONFIRMED,
34
	DOA_RETURN_IN_TRANSIT,
34
	DOA_RETURN_IN_TRANSIT,
35
	DOA_RECEIVED_PRESTINE,
35
	DOA_RECEIVED_PRESTINE,
36
	DOA_CERT_INVALID,
36
	DOA_CERT_INVALID,
37
	DOA_CERT_VALID,
37
	DOA_CERT_VALID,
38
	SALES_RET_RESHIPPED,
38
	RTO_RESHIPPED,
39
	DOA_INVALID_RESHIPPED,
39
	DOA_INVALID_RESHIPPED,
40
	DOA_VALID_RESHIPPED,
40
	DOA_VALID_RESHIPPED,
41
	SALES_RET_REFUNDED,
41
	RTO_REFUNDED,
42
	DOA_VALID_REFUNDED,
42
	DOA_VALID_REFUNDED,
43
	DOA_INVALID_REFUNDED,
43
	DOA_INVALID_REFUNDED,
44
	REFUNDED,
44
	REFUNDED,
45
	LOW_INV_PO_RAISED,
45
	LOW_INV_PO_RAISED,
46
	LOW_INV_REVERSAL_IN_PROCESS,
46
	LOW_INV_REVERSAL_IN_PROCESS,
Line 483... Line 483...
483
	*/
483
	*/
484
	list<Order> markDoasAsPickedUp(1:i64 providerId, 2:map<string, string> pickupDetails),
484
	list<Order> markDoasAsPickedUp(1:i64 providerId, 2:map<string, string> pickupDetails),
485
	
485
	
486
	/**
486
	/**
487
	If the order status is DOA_PICKUP_CONFIRMED or DOA_RETURN_IN_TRANSIT, marks the order status as DOA_RECEIVED_PRESTINE and returns true.
487
	If the order status is DOA_PICKUP_CONFIRMED or DOA_RETURN_IN_TRANSIT, marks the order status as DOA_RECEIVED_PRESTINE and returns true.
488
	If the order status is SALES_RETURN_IN_TRANSIT, marks the order status as SALES_RET_RECEIVED and returns true.
488
	If the order status is RTO_IN_TRANSIT, marks the order status as RTO_RECEIVED_PRESTINE and returns true.
489
	If the order is in any other state, it returns false.
489
	If the order is in any other state, it returns false.
490
	Throws an exception if the order with the given id couldn't be found.
490
	Throws an exception if the order with the given id couldn't be found.
491
	*/
491
	*/
492
	bool receiveReturn(1:i64 orderId, 2:i64 receiveCondition) throws (1:TransactionServiceException ex),
492
	bool receiveReturn(1:i64 orderId, 2:i64 receiveCondition) throws (1:TransactionServiceException ex),
493
	
493
	
Line 498... Line 498...
498
	Throws an exception if the order with the given id couldn't be found.
498
	Throws an exception if the order with the given id couldn't be found.
499
	*/
499
	*/
500
	bool validateDoa(1:i64 orderId, 2:bool isValid) throws (1:TransactionServiceException ex),
500
	bool validateDoa(1:i64 orderId, 2:bool isValid) throws (1:TransactionServiceException ex),
501
	
501
	
502
	/**
502
	/**
503
	If the order is in SALES_RET_RECEIVED or DOA_CERT_INVALID state, it does the following:
503
	If the order is in RTO_RECEIVED_PRESTINE or DOA_CERT_INVALID state, it does the following:
504
		1. Creates a new order for processing in the BILLED state. All billing information is saved.
504
		1. Creates a new order for processing in the BILLED state. All billing information is saved.
505
		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.
505
		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.
506
		
506
		
507
	If the order is in DOA_CERT_VALID state, it does the following:
507
	If the order is in DOA_CERT_VALID state, it does the following:
508
		1. Creates a new order for processing in the SUBMITTED_FOR_PROCESSING state.
508
		1. Creates a new order for processing in the SUBMITTED_FOR_PROCESSING state.
509
		2. Creates a return order for the warehouse executive to return the DOA material.
509
		2. Creates a return order for the warehouse executive to return the DOA material.
510
		3. Marks the current order as the final DOA_VALID_RESHIPPED state.
510
		3. Marks the current order as the final DOA_VALID_RESHIPPED state.
Line 514... Line 514...
514
	Throws an exception if the order with the given id couldn't be found.
514
	Throws an exception if the order with the given id couldn't be found.
515
	*/
515
	*/
516
	i64 reshipOrder(1:i64 orderId) throws (1:TransactionServiceException ex),
516
	i64 reshipOrder(1:i64 orderId) throws (1:TransactionServiceException ex),
517
	
517
	
518
	/**
518
	/**
519
	If the order is in SALES_RET_RECEIVED, DOA_CERT_VALID or DOA_CERT_INVALID state, it does the following:
519
	If the order is in RTO_RECEIVED_PRESTINE, DOA_CERT_VALID or DOA_CERT_INVALID state, it does the following:
520
		1. Creates a refund request for batch processing.
520
		1. Creates a refund request for batch processing.
521
		2. Creates a return order for the warehouse executive to return the shipped material.
521
		2. Creates a return order for the warehouse executive to return the shipped material.
522
		3. Marks the current order as SALES_RET_REFUNDED, DOA_VALID_REFUNDED or DOA_INVALID_REFUNDED final states.
522
		3. Marks the current order as RTO_REFUNDED, DOA_VALID_REFUNDED or DOA_INVALID_REFUNDED final states.
523
	
523
	
524
	If the order is in SUBMITTED_FOR_PROCESSING or INVENTORY_LOW state, it does the following:
524
	If the order is in SUBMITTED_FOR_PROCESSING or INVENTORY_LOW state, it does the following:
525
		1. Creates a refund request for batch processing.
525
		1. Creates a refund request for batch processing.
526
		2. Cancels the reservation of the item in the warehouse.
526
		2. Cancels the reservation of the item in the warehouse.
527
		3. Marks the current order as the REFUNDED final state.
527
		3. Marks the current order as the REFUNDED final state.