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:
@@ -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,
|
||||
})),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user