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;
|
||||
};
|
||||
|
||||
const lineSubtotal = line => {
|
||||
const discount = line.discount;
|
||||
return lineDiscountSubtotal(line) * ((100 - discount) / 100);
|
||||
};
|
||||
const lineSubtotal = line =>
|
||||
lineDiscountSubtotal(line) * ((100 - line.discount) / 100);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
|
Loading…
Reference in New Issue