Refactor code structure for improved readability and maintainability
This commit is contained in:
@@ -253,6 +253,19 @@ export class SalesInvoicesService {
|
||||
}
|
||||
|
||||
async send(invoiceId: string, posInfo: IPosPayload) {
|
||||
await this.checkAccessToInvoice(posInfo.consumer_account_id, posInfo.pos_id)
|
||||
|
||||
const invoice = await this.salesInvoiceTaxService.originalSend(
|
||||
posInfo.pos_id,
|
||||
invoiceId,
|
||||
)
|
||||
|
||||
return ResponseMapper.single(invoice)
|
||||
}
|
||||
|
||||
async retry(invoiceId: string, posInfo: IPosPayload) {
|
||||
await this.checkAccessToInvoice(posInfo.consumer_account_id, posInfo.pos_id)
|
||||
|
||||
const invoice = await this.salesInvoiceTaxService.originalSend(
|
||||
posInfo.pos_id,
|
||||
invoiceId,
|
||||
|
||||
Reference in New Issue
Block a user