Table of Contents

Class InventoryReportsController

Namespace
KadicErp.WebApi.Controllers.Reports
Assembly
KadicErp.WebApi.dll
[ApiController]
[Authorize]
[Route("api/v1/reports/inventory")]
public sealed class InventoryReportsController : ControllerBase
Inheritance
object
ControllerBase
InventoryReportsController

Constructors

InventoryReportsController(IMediator, ITenantIdContext, ICurrentUser)

public InventoryReportsController(IMediator mediator, ITenantIdContext tenantContext, ICurrentUser currentUser)

Parameters

mediator IMediator
tenantContext ITenantIdContext
currentUser ICurrentUser

Methods

GetStockSummary(Guid?)

[HttpGet("stock-summary")]
[Authorize(Policy = "ADMIN_REPORTING_REPORTS_VIEW")]
public Task<IActionResult> GetStockSummary(Guid? branchId)

Parameters

branchId Guid?

Returns

Task<IActionResult>

GetTopItems(Guid?, DateOnly?, DateOnly?)

[HttpGet("top-items")]
[Authorize(Policy = "ADMIN_REPORTING_REPORTS_VIEW")]
public Task<IActionResult> GetTopItems(Guid? branchId, DateOnly? dateFrom, DateOnly? dateTo)

Parameters

branchId Guid?
dateFrom DateOnly?
dateTo DateOnly?

Returns

Task<IActionResult>