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

chore: fixed floating promise warning when linting

This commit is contained in:
akshayitzme 2024-11-04 12:31:29 +05:30
parent 24023b4bb6
commit 47ed0f9397

View File

@ -1201,7 +1201,7 @@ export async function updatePricingRule(sinvDoc: SalesInvoice) {
).length; ).length;
setTimeout(() => { setTimeout(() => {
(async () => { void (async () => {
if (appliedPricingRuleCount !== applicablePricingRuleNames?.length) { if (appliedPricingRuleCount !== applicablePricingRuleNames?.length) {
await sinvDoc.appendPricingRuleDetail(applicablePricingRuleNames); await sinvDoc.appendPricingRuleDetail(applicablePricingRuleNames);
await sinvDoc.applyProductDiscount(); await sinvDoc.applyProductDiscount();