Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
28493 tejbeer 1
package com.spice.profitmandi.service.warehouse;
2
 
33247 ranu 3
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
4
import com.spice.profitmandi.common.model.ItemDescriptionModel;
33239 amit.gupta 5
import com.spice.profitmandi.common.model.ItemQtyModel;
36016 amit 6
import com.spice.profitmandi.dao.entity.catalog.Item;
7
import com.spice.profitmandi.dao.entity.inventory.InventoryWarehouse;
36309 amit 8
import com.spice.profitmandi.dao.entity.inventory.Warehouse;
33247 ranu 9
import com.spice.profitmandi.dao.entity.transaction.WarehouseAddressMaster;
33239 amit.gupta 10
import com.spice.profitmandi.dao.entity.warehouse.WarehouseInventoryItem;
11
import com.spice.profitmandi.dao.entity.warehouse.WarehousePurchaseOrder;
33247 ranu 12
import com.spice.profitmandi.dao.enumuration.inventory.InventoryType;
13
import com.spice.profitmandi.dao.enumuration.inventory.WarehouseType;
33239 amit.gupta 14
import com.spice.profitmandi.dao.model.transaction.OrderBillingModel;
33384 amit.gupta 15
import in.shop2020.warehouse.ScanType;
33239 amit.gupta 16
import org.springframework.beans.factory.annotation.Autowired;
32194 tejbeer 17
import org.springframework.stereotype.Service;
18
 
33247 ranu 19
import java.util.List;
28493 tejbeer 20
 
21
@Service
22
public interface WarehouseService {
23
 
32194 tejbeer 24
    public List<Integer> getAuthWarehouses(String email) throws ProfitMandiBusinessException;
28493 tejbeer 25
 
32194 tejbeer 26
    public void createVendorWarehouse(WarehouseType warehouseType, InventoryType inventoryType, String label, int warehouseId, WarehouseAddressMaster wam, int vendorId);
30826 amit.gupta 27
 
36309 amit 28
    /**
29
     * Returns the Dummy/GOOD/OURS warehouse for a billing region, creating it if missing.
30
     * Used by phantom allocation to guarantee a deterministic routing target.
31
     */
32
    Warehouse ensureDummyForBillingRegion(int billingWarehouseId);
33
 
32194 tejbeer 34
    public List<ItemDescriptionModel> getAllPartnerItemStringDescription(int vendorId);
33239 amit.gupta 35
 
36
    @Autowired
33247 ranu 37
    void billing(List<OrderBillingModel> orderBillingModels) throws ProfitMandiBusinessException;
33239 amit.gupta 38
 
39
    //TODO - NEED TO Implement
40
    WarehouseInventoryItem addInventoryItem(int purchaseId, WarehousePurchaseOrder warehousePurchaseOrder, ItemQtyModel itemQtyModel) throws ProfitMandiBusinessException;
33384 amit.gupta 41
 
36016 amit 42
    WarehouseInventoryItem addInventoryItem(int purchaseId, WarehousePurchaseOrder warehousePurchaseOrder, ItemQtyModel itemQtyModel, Item item, InventoryWarehouse supplierWarehouse) throws ProfitMandiBusinessException;
43
 
33384 amit.gupta 44
    List<String>  moveToGood(List<String> serialNumbers) throws ProfitMandiBusinessException;
45
 
46
    List<String>  moveToBad(List<String> serialNumbers, ScanType badScanType) throws ProfitMandiBusinessException;
28493 tejbeer 47
}