Vistas sección pedidos #77

Merged
jsegarra merged 14 commits from wbuezas/hedera-web-mindshore:feature/Pedidos into 4922-vueMigration 2024-08-16 06:52:22 +00:00
1 changed files with 2 additions and 4 deletions
Showing only changes of commit a0fc1cfc07 - Show all commits

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>
jsegarra marked this conversation as resolved
Review

porque no haces line.discount en vez de crear una variable?

porque no haces line.discount en vez de crear una variable?
Review

Modificado.

Commit: a0fc1cfc07

Modificado. Commit: https://gitea.verdnatura.es/verdnatura/hedera-web/commit/a0fc1cfc070cd790923b7067580aabb77be7a0fd
<template>