Skip to content

Commit

Permalink
fix: remove toast for already applied pricing rule
Browse files Browse the repository at this point in the history
  • Loading branch information
AbleKSaju committed Oct 9, 2024
1 parent 1d77a0b commit ac8310c
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions models/baseModels/Invoice/Invoice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1355,14 +1355,6 @@ export abstract class Invoice extends Transactional {
);

if (duplicatePricingRule && duplicatePricingRule?.length >= 2) {
const { showToast } = await import('src/utils/interactive');
const message = t`Pricing Rule '${
duplicatePricingRule[0]?.referenceName as string
}' is already applied to item '${
item.item as string
}' in another batch.`;
showToast({ type: 'error', message });

continue;
}

Expand Down

0 comments on commit ac8310c

Please sign in to comment.