use line.discount directly
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good
Details
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good
Details
This commit is contained in:
parent
b66c47955c
commit
a0fc1cfc07
|
@ -20,10 +20,8 @@ const lineDiscountSubtotal = line => {
|
||||||
return line.quantity * line.price;
|
return line.quantity * line.price;
|
||||||
};
|
};
|
||||||
|
|
||||||
const lineSubtotal = line => {
|
const lineSubtotal = line =>
|
||||||
const discount = line.discount;
|
lineDiscountSubtotal(line) * ((100 - line.discount) / 100);
|
||||||
return lineDiscountSubtotal(line) * ((100 - discount) / 100);
|
|
||||||
};
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|
Loading…
Reference in New Issue