* Further improvements of Warehouse view
* Fixed issue with not saving Products updates
This commit is contained in:
@@ -24,6 +24,16 @@ public class WzHeaderController(IWzHeaderService service, IMaterialTransactionSe
|
||||
return Ok(materialTransactions);
|
||||
}
|
||||
|
||||
[HttpGet("all-wz-headers")]
|
||||
public async Task<ActionResult<IEnumerable<MaterialTransactionDto>>> GetHeadersByCustomerNumber(
|
||||
[FromQuery] string customerNumber, [FromQuery] int customerSequence)
|
||||
{
|
||||
IEnumerable<WzHeaderDto> wzHeaders =
|
||||
await service.GetByCustomerNumber(customerNumber, customerSequence);
|
||||
|
||||
return Ok(wzHeaders.OrderByDescending(x => x.CreatedDate));
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
public async Task<ActionResult> CreateHeader([FromBody] WzHeaderDto wzHeader)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user