package com.utopiaindustries.service;

import com.utopiaindustries.dao.ctp.PackagingItemsDAO;
import com.utopiaindustries.model.ctp.FinishedItemWrapper;
import org.springframework.stereotype.Service;

@Service
public class StoreService {

    private final InventoryService inventoryService;

    public StoreService(InventoryService inventoryService, PackagingItemsDAO packagingItemsDAO) {
        this.inventoryService = inventoryService;
    }

    public void createStoreItems(FinishedItemWrapper wrapper ) {
        inventoryService.createStoreItemAndTransaction(wrapper, wrapper.getAccountId());
    }
}
