feat(invoices): add public invoices module with controller and service

refactor: remove unused trigger logs module and related files
refactor: simplify good snapshot handling in sale invoice creation
This commit is contained in:
2026-05-21 21:35:36 +03:30
parent 9aa12184a1
commit 2dc9480170
13 changed files with 180 additions and 86 deletions
@@ -411,11 +411,7 @@ export class SharedSaleInvoiceCreateService {
sku_vat: goodsById.get(item.good_id!)?.sku.VAT || null,
payload: item.payload ? JSON.parse(JSON.stringify(item.payload)) : undefined,
good_snapshot: item.good_id
? JSON.parse(
JSON.stringify({
good: goodsById.get(item.good_id) || null,
}),
)
? JSON.parse(JSON.stringify(goodsById.get(item.good_id) || null))
: undefined,
})),
},