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:
parent
81cc3407f2
commit
683cd7a1f4
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user