activate dign purchase after invoice payment
Build and Deploy Docker Images / build_and_deploy (push) Has been cancelled

This commit is contained in:
2026-06-07 16:01:54 +03:30
parent 3bdb303101
commit 9e65be2c58
2 changed files with 36 additions and 2 deletions
@@ -948,7 +948,9 @@ export class InvoicesService {
await this.addNotifyForWalletDeduction(invoice, user, userWallet, WalletMessage.SUPPORT_PLAN_WALLET_TRANSFER);
//
} else if (invoice.isExternal) {
if (invoice.items[0]?.name == 'purchase_new_catalogue') {
if (invoice.items[0]?.name == 'purchase_design') {
this.dpageService.finishPurchaseDesign(invoice.externalBusinessId!, invoice.id)
} else if (invoice.items[0]?.name == 'purchase_new_catalogue') {
// call dpage api
const businessId = invoice.externalBusinessId
if (!businessId) {
@@ -1475,7 +1477,7 @@ export class InvoicesService {
//*********************************** */
async findInvoicesByCustomerIds(custmerIds: string[], query: SearchResellerInvoicesQueryDto) {
return this.invoiceRepository.findPaginatedListByUserIds(query, custmerIds)
}