diff --git a/pkg/quote.go b/pkg/quote.go index 5c4c080..21a931f 100644 --- a/pkg/quote.go +++ b/pkg/quote.go @@ -993,7 +993,7 @@ func (form *quoteProductForm) Validate() bool { validator.CheckValidDecimal(form.Price, -math.MaxFloat64, math.MaxFloat64, gettext("Price must be a decimal number.", form.locale)) } if validator.CheckRequiredInput(form.Quantity, gettext("Quantity can not be empty.", form.locale)) { - validator.CheckValidInteger(form.Quantity, math.MinInt32, math.MaxInt32, gettext("Quantity must be an integer.", form.locale)) + validator.CheckValidInteger(form.Quantity, math.MinInt32, math.MaxInt32, gettext("Quantity must be an integer number.", form.locale)) } if validator.CheckRequiredInput(form.Discount, gettext("Discount can not be empty.", form.locale)) { validator.CheckValidInteger(form.Discount, 0, 100, gettext("Discount must be a percentage between 0 and 100.", form.locale)) diff --git a/po/ca.po b/po/ca.po index 2ae58e3..3a4f6f7 100644 --- a/po/ca.po +++ b/po/ca.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: numerus\n" "Report-Msgid-Bugs-To: jordi@tandem.blog\n" -"POT-Creation-Date: 2025-01-23 19:28+0100\n" +"POT-Creation-Date: 2025-01-23 19:33+0100\n" "PO-Revision-Date: 2023-01-18 17:08+0100\n" "Last-Translator: jordi fita mas \n" "Language-Team: Catalan \n" @@ -1337,8 +1337,8 @@ msgstr "El preu ha de ser un número decimal." msgid "Quantity can not be empty." msgstr "No podeu deixar la quantitat en blanc." -#: pkg/quote.go:996 -msgid "Quantity must be an integer." +#: pkg/quote.go:996 pkg/invoices.go:1267 +msgid "Quantity must be an integer number." msgstr "La quantitat ha de ser un número enter." #: pkg/quote.go:998 pkg/invoices.go:1269 @@ -1620,10 +1620,6 @@ msgstr "DD/MM/YYYY" msgid "Invoice product ID must be a number greater than zero." msgstr "L’ID del producte de factura ha de ser un número major a zero." -#: pkg/invoices.go:1267 -msgid "Quantity must be an integer number." -msgstr "La quantitat ha de ser un número enter." - #: pkg/contacts.go:290 msgctxt "input" msgid "Need to input tax details" @@ -1651,6 +1647,9 @@ msgctxt "input" msgid "Holded Excel file" msgstr "Fitxer Excel del Holded" +#~ msgid "Quantity must be an integer." +#~ msgstr "La quantitat ha de ser un número enter." + #~ msgctxt "link" #~ msgid "Login" #~ msgstr "Entrada" diff --git a/po/es.po b/po/es.po index e6dea4b..fd7df16 100644 --- a/po/es.po +++ b/po/es.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: numerus\n" "Report-Msgid-Bugs-To: jordi@tandem.blog\n" -"POT-Creation-Date: 2025-01-23 19:28+0100\n" +"POT-Creation-Date: 2025-01-23 19:33+0100\n" "PO-Revision-Date: 2023-01-18 17:45+0100\n" "Last-Translator: jordi fita mas \n" "Language-Team: Spanish \n" @@ -1337,8 +1337,8 @@ msgstr "El precio tiene que ser un número decimal." msgid "Quantity can not be empty." msgstr "No podéis dejar la cantidad en blanco." -#: pkg/quote.go:996 -msgid "Quantity must be an integer." +#: pkg/quote.go:996 pkg/invoices.go:1267 +msgid "Quantity must be an integer number." msgstr "La cantidad tiene que ser un número entero." #: pkg/quote.go:998 pkg/invoices.go:1269 @@ -1620,10 +1620,6 @@ msgstr "DD/MM/YYYY" msgid "Invoice product ID must be a number greater than zero." msgstr "El ID de producto de factura tiene que ser un número mayor a cero." -#: pkg/invoices.go:1267 -msgid "Quantity must be an integer number." -msgstr "La cantidad tiene que ser un número entero." - #: pkg/contacts.go:290 msgctxt "input" msgid "Need to input tax details" @@ -1651,6 +1647,9 @@ msgctxt "input" msgid "Holded Excel file" msgstr "Archivo Excel de Holded" +#~ msgid "Quantity must be an integer." +#~ msgstr "La cantidad tiene que ser un número entero." + #~ msgctxt "link" #~ msgid "Login" #~ msgstr "Entrada"