Subversion Repositories SmartDukaan

Rev

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

Rev 3060 Rev 3226
Line 418... Line 418...
418
		2. Creates a return order for the warehouse executive to return the shipped material.
418
		2. Creates a return order for the warehouse executive to return the shipped material.
419
		3. Marks the current order as SALES_RET_REFUNDED, DOA_VALID_REFUNDED or DOA_INVALID_REFUNDED final states.
419
		3. Marks the current order as SALES_RET_REFUNDED, DOA_VALID_REFUNDED or DOA_INVALID_REFUNDED final states.
420
	
420
	
421
	If the order is in SUBMITTED_FOR_PROCESSING or INVENTORY_LOW state, it does the following:
421
	If the order is in SUBMITTED_FOR_PROCESSING or INVENTORY_LOW state, it does the following:
422
		1. Creates a refund request for batch processing.
422
		1. Creates a refund request for batch processing.
-
 
423
		2. Cancels the reservation of the item in the warehouse.
423
		2. Marks the current order as the REFUNDED final state.
424
		3. Marks the current order as the REFUNDED final state.
424
 
425
 
-
 
426
	For all COD orders, if the order is in INIT, SUBMITTED_FOR_PROCESSING or INVENTORY_LOW state, it does the following:
-
 
427
		1. Cancels the reservation of the item in the warehouse.
-
 
428
		2. Marks the current order as CANCELED.	
-
 
429
		
-
 
430
	In all cases, it updates the reason for cancellation or refund and the person who performed the action.
-
 
431
	 
425
	Returns True if it is successful, False otherwise.
432
	Returns True if it is successful, False otherwise.
426
 
433
 
427
	Throws an exception if the order with the given id couldn't be found.
434
	Throws an exception if the order with the given id couldn't be found.
428
	*/
435
	*/
429
	bool refundOrder(1:i64 orderId) throws (1:TransactionServiceException ex),
436
	bool refundOrder(1:i64 orderId, 2:string refundedBy, 3:string reason) throws (1:TransactionServiceException ex),
430
	
437
	
431
	/**
438
	/**
432
	Get all return orders created between the from and to dates for the given warehouse.
439
	Get all return orders created between the from and to dates for the given warehouse.
433
	Ignores the warehouse if it is passed as -1.
440
	Ignores the warehouse if it is passed as -1.
434
	*/
441
	*/