10.
CI/CD - ERP Distribution / Build & Deploy Frontend (pull_request) Failing after 13m39s
CI/CD - ERP Distribution / Build & Deploy Backend (pull_request) Failing after 15m1s

Implementation
A partner, not just software
HexDive Technologies' local team handles setup, data migration, training and ongoing support — in Sinhala, Tamil and English. [confirm]

1
Discovery
Map your network, products and processes.

2
Configuration
Set up depots, pricing, schemes, routes and users.

3
Migration & training
Move your data and train every team.

4
Go-live & support
Dedicated account manager and local support desk.
This commit is contained in:
Kalana B. Thilakarathna
2026-10-22 17:47:49 +05:30
parent 6e4bebb89b
commit c775146b64
52 changed files with 12003 additions and 53 deletions
@@ -0,0 +1,35 @@
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
namespace Distribution.Features.Expense;
[ApiController]
public class ExpenseAttachmentController(ExpenseAttachmentService service) : ControllerBase
{
[HttpPost("api/expenses/{expenseId:guid}/attachments")]
[Authorize("expense.create")]
[RequestSizeLimit(10 * 1024 * 1024)]
public async Task<IActionResult> Upload(Guid expenseId, IFormFile file, CancellationToken ct)
{
try
{
var result = await service.UploadAsync(expenseId, file, ct);
return result is null ? NotFound() : Ok(result);
}
catch (InvalidOperationException ex) { return BadRequest(new { error = ex.Message }); }
}
[HttpGet("api/expense-attachments/{id:guid}/download")]
[Authorize("expense.view")]
public async Task<IActionResult> Download(Guid id, CancellationToken ct)
{
var result = await service.DownloadAsync(id, ct);
if (result is null) return NotFound();
return File(result.Value.Stream, result.Value.ContentType, result.Value.FileName);
}
[HttpDelete("api/expense-attachments/{id:guid}")]
[Authorize("expense.create")]
public async Task<IActionResult> Delete(Guid id, CancellationToken ct) =>
await service.DeleteAsync(id, ct) ? NoContent() : NotFound();
}