From 89f6873b03778d377d1d205e09e65a1ee48de83f Mon Sep 17 00:00:00 2001 From: wbuezas Date: Tue, 11 Jun 2024 22:40:07 -0300 Subject: [PATCH 01/15] WIP --- src/pages/Ticket/Card/TicketEditMana.vue | 150 ++++++++ src/pages/Ticket/Card/TicketSale.vue | 456 ++++++++++++++++++++++- src/pages/Ticket/locale/en.yml | 10 + src/pages/Ticket/locale/es.yml | 10 + 4 files changed, 625 insertions(+), 1 deletion(-) create mode 100644 src/pages/Ticket/Card/TicketEditMana.vue create mode 100644 src/pages/Ticket/locale/en.yml diff --git a/src/pages/Ticket/Card/TicketEditMana.vue b/src/pages/Ticket/Card/TicketEditMana.vue new file mode 100644 index 000000000..d563e49f7 --- /dev/null +++ b/src/pages/Ticket/Card/TicketEditMana.vue @@ -0,0 +1,150 @@ + + + + + + + +es: + Price: Precio + Discount: Descuento + New price: Nuevo precio + diff --git a/src/pages/Ticket/Card/TicketSale.vue b/src/pages/Ticket/Card/TicketSale.vue index 02cccaff2..ae737bfee 100644 --- a/src/pages/Ticket/Card/TicketSale.vue +++ b/src/pages/Ticket/Card/TicketSale.vue @@ -1 +1,455 @@ - + + + + + +es: + New item: Nuevo artículo + diff --git a/src/pages/Ticket/locale/en.yml b/src/pages/Ticket/locale/en.yml new file mode 100644 index 000000000..2b59eefd4 --- /dev/null +++ b/src/pages/Ticket/locale/en.yml @@ -0,0 +1,10 @@ +ticketSale: + id: Id + visible: Visible + available: Available + quantity: Quantity + item: Item + price: Price + discount: Disc + amount: Amount + packaging: Packaging diff --git a/src/pages/Ticket/locale/es.yml b/src/pages/Ticket/locale/es.yml index 5348b29b9..2c2bb8b05 100644 --- a/src/pages/Ticket/locale/es.yml +++ b/src/pages/Ticket/locale/es.yml @@ -1,2 +1,12 @@ Search ticket: Buscar ticket You can search by ticket id or alias: Puedes buscar por id o alias del ticket +ticketSale: + id: Id + visible: Visible + available: Disponible + quantity: Cantidad + item: Artículo + price: Precio + discount: Dto + amount: Cantidad + packaging: Encajado -- 2.40.1 From 975e8f06c0a7b4c4d700bc58132dc366fe20da3b Mon Sep 17 00:00:00 2001 From: wbuezas Date: Thu, 13 Jun 2024 13:56:19 -0300 Subject: [PATCH 02/15] WIP --- src/components/ui/ItemPicture.vue | 34 ++ src/filters/toPercentage.js | 10 +- src/pages/Ticket/Card/TicketEditMana.vue | 124 ++---- src/pages/Ticket/Card/TicketSale.vue | 483 +++++++++++++++++------ src/pages/Ticket/locale/en.yml | 9 + src/pages/Ticket/locale/es.yml | 11 +- 6 files changed, 451 insertions(+), 220 deletions(-) create mode 100644 src/components/ui/ItemPicture.vue diff --git a/src/components/ui/ItemPicture.vue b/src/components/ui/ItemPicture.vue new file mode 100644 index 000000000..e76414618 --- /dev/null +++ b/src/components/ui/ItemPicture.vue @@ -0,0 +1,34 @@ + + + + diff --git a/src/filters/toPercentage.js b/src/filters/toPercentage.js index d701cb9e7..e2b49ce22 100644 --- a/src/filters/toPercentage.js +++ b/src/filters/toPercentage.js @@ -1,6 +1,7 @@ import { useI18n } from 'vue-i18n'; export default function (value, fractionSize = 2) { + console.log('toPercentage value: ', value); if (value == null || value === '') return; const { locale } = useI18n(); @@ -8,11 +9,8 @@ export default function (value, fractionSize = 2) { const options = { style: 'percent', minimumFractionDigits: fractionSize, - maximumFractionDigits: fractionSize + maximumFractionDigits: fractionSize, }; - return new Intl.NumberFormat(locale, options) - .format(parseFloat(value)); - - -} \ No newline at end of file + return new Intl.NumberFormat(locale, options).format(parseFloat(value)); +} diff --git a/src/pages/Ticket/Card/TicketEditMana.vue b/src/pages/Ticket/Card/TicketEditMana.vue index d563e49f7..dc082d660 100644 --- a/src/pages/Ticket/Card/TicketEditMana.vue +++ b/src/pages/Ticket/Card/TicketEditMana.vue @@ -1,121 +1,73 @@