use line.discount directly
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details

This commit is contained in:
William Buezas 2024-08-14 08:39:51 -03:00
parent b66c47955c
commit a0fc1cfc07
1 changed files with 2 additions and 4 deletions

View File

@ -20,10 +20,8 @@ const lineDiscountSubtotal = line => {
return line.quantity * line.price;
};
const lineSubtotal = line => {
const discount = line.discount;
return lineDiscountSubtotal(line) * ((100 - discount) / 100);
};
const lineSubtotal = line =>
lineDiscountSubtotal(line) * ((100 - line.discount) / 100);
</script>
<template>