* Extended CustomerOrdersController and CustomerOrderService

This commit is contained in:
2025-12-23 12:00:28 +01:00
parent c4b1561cbc
commit e9a3e91082
3 changed files with 15 additions and 0 deletions

View File

@@ -55,6 +55,13 @@ namespace FaKrosnoApi.Controllers
await service.GetByCustomerAndPo(customerNumber, customerSequence, poNumber);
return customerOrder != null ? Ok(customerOrder) : NotFound();
}
[HttpGet("by-po")]
public async Task<ActionResult<CustomerOrderDto?>> GetByPo([FromQuery] string poNumber)
{
CustomerOrderDto? customerOrder = await service.GetByPo(poNumber);
return customerOrder != null ? Ok(customerOrder) : NotFound();
}
[HttpGet("list-by-customer-and-po")]
public async Task<ActionResult<IList<CustomerOrderDto?>>> GetListByCustomerAndPo(