Subversion Repositories SmartDukaan

Rev

Rev 24264 | Rev 24807 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
23365 ashik.ali 1
package com.spice.profitmandi.service.order;
22859 ashik.ali 2
 
24271 amit.gupta 3
import java.time.LocalDate;
23891 amit.gupta 4
import java.time.LocalDateTime;
22859 ashik.ali 5
import java.util.List;
23202 ashik.ali 6
import java.util.Map;
22859 ashik.ali 7
 
8
import org.springframework.stereotype.Service;
9
 
23202 ashik.ali 10
import com.spice.profitmandi.common.enumuration.SearchType;
22859 ashik.ali 11
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
12
import com.spice.profitmandi.common.model.CartFofo;
13
import com.spice.profitmandi.common.model.CreateOrderRequest;
23654 amit.gupta 14
import com.spice.profitmandi.common.model.CreditNotePdfModel;
23582 ashik.ali 15
import com.spice.profitmandi.common.model.CustomCustomer;
23638 amit.gupta 16
import com.spice.profitmandi.common.model.FoiBadReturnRequest;
22859 ashik.ali 17
import com.spice.profitmandi.common.model.PdfModel;
18
import com.spice.profitmandi.dao.entity.fofo.CustomerAddress;
23654 amit.gupta 19
import com.spice.profitmandi.dao.entity.fofo.CustomerCreditNote;
22925 ashik.ali 20
import com.spice.profitmandi.dao.entity.fofo.FofoOrderItem;
22859 ashik.ali 21
 
22
@Service
23
public interface OrderService {
23823 amit.gupta 24
	public int createOrder(CreateOrderRequest createOrderRequest, int fofoId, boolean accessoriesDeals) throws ProfitMandiBusinessException;
23582 ashik.ali 25
	public void updateCustomerDetails(CustomCustomer customCustomer, String invoiceNumber) throws ProfitMandiBusinessException;
22859 ashik.ali 26
	public PdfModel getInvoicePdfModel(int fofoId, int orderId) throws ProfitMandiBusinessException;
23595 ashik.ali 27
	public PdfModel getInvoicePdfModel(int orderId) throws ProfitMandiBusinessException;
22859 ashik.ali 28
	public String getBillingAddress(CustomerAddress customerAddress);
29
	public List<CartFofo> cartCheckout(String cartJson) throws ProfitMandiBusinessException;
22925 ashik.ali 30
	public List<FofoOrderItem> getByOrderId(int orderId)throws ProfitMandiBusinessException;
23891 amit.gupta 31
	public Map<String, Object> getSaleHistory(int fofoId, SearchType searchType, String searchValue, LocalDateTime startDate, LocalDateTime endDate, int offset, int limit) throws ProfitMandiBusinessException;
32
	public Map<String, Object> getSaleHistoryPaginated(int fofoId, SearchType searchType, String searchValue, LocalDateTime startDate, LocalDateTime endDate, int offset, int limit) throws ProfitMandiBusinessException;
23654 amit.gupta 33
	public CustomerCreditNote badReturn(int fofoId, FoiBadReturnRequest foiBadReturnRequest) throws ProfitMandiBusinessException;
34
	public CreditNotePdfModel getCreditNotePdfModel(int customerCreditNoteId) throws ProfitMandiBusinessException;
24264 amit.gupta 35
	public void cancelOrder(List<String> invoiceNumbers)throws Exception;
24271 amit.gupta 36
	public float getSales(int fofoId, LocalDateTime startDate, LocalDateTime endDate);
37
	public float getSales(int fofoId, LocalDate onDate);
38
	public float getSales(LocalDateTime onDate);
39
	public float getSales(LocalDateTime startDate, LocalDateTime endDate);
22859 ashik.ali 40
}