2
0
mirror of https://github.com/frappe/books.git synced 2024-12-22 19:09:01 +00:00

fix: remove toast for already applied pricing rule

This commit is contained in:
AbleKSaju 2024-10-09 13:05:54 +05:30
parent 81cc3407f2
commit 683cd7a1f4

View File

@ -1355,14 +1355,6 @@ export abstract class Invoice extends Transactional {
); );
if (duplicatePricingRule && duplicatePricingRule?.length >= 2) { 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; continue;
} }