package com.utopiaindustries.service;

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

@Service
public class PackagingService {

    private final InventoryService inventoryService;
    private final PackagingItemsDAO packagingItemsDAO;

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

    public void createPackagingItem(FinishedItemWrapper wrapper){
        inventoryService.createPackagingItemAndTransaction(wrapper, wrapper.getAccountId());
    }

}
