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:
parent
24023b4bb6
commit
47ed0f9397
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user