Invoice flow #82

Merged
DeepnaPooja merged 12 commits from feat-notification into dev 2026-10-21 13:13:21 +05:30
Showing only changes of commit f26557a66e - Show all commits
@@ -217,6 +217,9 @@ public class ShopPOService(
try
{
await invoiceRepo.AddAsync(invoice);
var lines = InvoiceService.BuildItemsFromShopPO(po, invoice.Id);
await invoiceRepo.AddItemsAsync(lines);
await invoiceRepo.AddVersionAsync(InvoiceService.BuildVersion(invoice, lines, 1, InvoiceVersionStage.Created, userId));
po.InvoiceId = invoice.Id;
repo.Update(po);
await uow.CommitAsync(ct);