From 5ed2a821940bfa6258cc7fe530be34a0d2eb263c Mon Sep 17 00:00:00 2001 From: Jon Date: Mon, 6 May 2024 14:50:15 +0200 Subject: [PATCH 01/72] feat: refs #6739 transferInvoice new checkbox and functionality --- src/components/TransferInvoiceForm.vue | 104 ++++++++++++++++++++++--- 1 file changed, 95 insertions(+), 9 deletions(-) diff --git a/src/components/TransferInvoiceForm.vue b/src/components/TransferInvoiceForm.vue index de3196e2c..637ebda64 100644 --- a/src/components/TransferInvoiceForm.vue +++ b/src/components/TransferInvoiceForm.vue @@ -1,5 +1,5 @@ From 975e8f06c0a7b4c4d700bc58132dc366fe20da3b Mon Sep 17 00:00:00 2001 From: wbuezas Date: Thu, 13 Jun 2024 13:56:19 -0300 Subject: [PATCH 20/72] 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 @@