Subversion Repositories SmartDukaan

Rev

Rev 35716 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
35716 amit 1
package com.spice.profitmandi.service.warehouse;
2
 
3
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
4
import com.spice.profitmandi.common.model.WarehouseInvoiceModel;
5
import com.spice.profitmandi.dao.model.warehouse.WarehouseInvoicePurchaseModel;
6
import org.springframework.stereotype.Service;
7
 
8
@Service
9
public interface InvoiceService {
10
 
11
    void createInvoiceItem(WarehouseInvoiceModel invoiceModel);
12
 
13
    WarehouseInvoicePurchaseModel validateInvoiceDetail(WarehouseInvoiceModel invoiceModel) throws ProfitMandiBusinessException;
14
 
15
    void validateInvoiceDate(int supplierId, int warehouseId, java.time.LocalDate invoiceDate) throws ProfitMandiBusinessException;
37769 amit 16
 
17
    /**
18
     * The purchase orders a movement invoice may be received against: its own movement PO, or, when it was billed from
19
     * a warehouse other than that PO's source, the receive-only POs raised from the billing warehouse. Empty for an
20
     * invoice whose orders carry no movement PO (raised before POs recorded their transaction).
21
     */
22
    java.util.List<com.spice.profitmandi.dao.entity.warehouse.WarehousePurchaseOrder> resolveMovementPurchaseOrders(String invoiceNumber)
23
            throws ProfitMandiBusinessException;
24
 
25
    void validateMovementInvoice(String invoiceNumber, int supplierId, int warehouseId) throws ProfitMandiBusinessException;
26
 
27
    void validateMovementSerials(java.util.List<com.spice.profitmandi.common.model.GrnModel> grnModels) throws ProfitMandiBusinessException;
35716 amit 28
}