2
0
mirror of https://github.com/frappe/books.git synced 2024-12-22 02:49:03 +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;
setTimeout(() => {
(async () => {
void (async () => {
if (appliedPricingRuleCount !== applicablePricingRuleNames?.length) {
await sinvDoc.appendPricingRuleDetail(applicablePricingRuleNames);
await sinvDoc.applyProductDiscount();