Files
Distribution_GL/Interfaces/Repositories/IFixedAssetRepository.cs
T

17 lines
697 B
C#

using General_Ledger_Service.Models;
namespace General_Ledger_Service.Interfaces.Repositories
{
public interface IFixedAssetRepository
{
Task<FixedAsset?> GetByIdAsync(long assetId);
Task<FixedAsset?> GetByCodeAsync(string assetCode);
Task<FixedAsset> AddAsync(FixedAsset asset);
Task<List<FixedAsset>> GetAllAsync();
Task<DepreciationSchedule?> GetLatestScheduleByAssetIdAsync(long assetId);
Task<DepreciationSchedule> AddScheduleAsync(DepreciationSchedule schedule);
Task<AssetDisposal> AddDisposalAsync(AssetDisposal disposal);
Task<decimal> GetDepreciationAddBackAsync(DateOnly periodStart, DateOnly periodEnd);
}
}