package com.ruoyi.web.stock.service;

import com.ruoyi.web.stock.domain.WarehouseStockAdjust;
import com.ruoyi.web.stock.domain.vo.InventoryLineOptionVo;

import java.util.List;

/**
 * 仓库调整 Service。
 */
public interface IWarehouseStockAdjustService {

    WarehouseStockAdjust selectById(Long id);

    List<WarehouseStockAdjust> selectList(WarehouseStockAdjust query);

    /**
     * 提交调整：保存单据，并按明细将调整量累加到库存；成本变动 = 调整基本数量×单位成本。
     */
    int submitAdjust(WarehouseStockAdjust entity, String operator);

    int removeById(Long id, String operator);

    List<InventoryLineOptionVo> listInventoryLineOptions(String orgId);
}
