numerus/verify
jordi fita mas 8dbf8ef2d0 Add currency_pattern to language relation
The design calls for rendering all amounts with their currency symbol,
but golang.org/x/text’s currency package always render the symbol in
front, which is wrong in Catalan and Spanish, and a lot of other
languages.

Consulting the Internet, the most popular package for that is
accounting[0], which is almost as useless because they confuse locale
with the currency’s country of origin’s “usual locale” (e.g., en-US for
USD), which is also wrong: in Catalan i need to write USD prices as
"1.234,56 $" regardless of what Americans do.

With accounting i have the recourse of initializing the struct that
holds all the “locale” information, which is also wrong because i have
to define the decimal and thousands separators, something that depends
only on the locale, next to the currency’s precision, that is
locale-independent.  But, since all CLDR data from golang.org/x/text
is inside an internal package, i can not access it and would need to
define all that information myself, which defeats the purpose of using
an external package.

Since for now i only need the format pattern for currency, i just saved
it into the database of available languages, that i do not expect to
grow too much.

[0]: https://github.com/leekchan/accounting
2023-02-23 12:12:33 +01:00
..
add_invoice.sql Add PL/pgSQL function to add invoices 2023-02-16 23:09:10 +01:00
add_product.sql Add PL/pgSQL functions to add and edit products 2023-02-14 12:39:54 +01:00
available_countries.sql Use a select for company’s country field 2023-01-27 21:30:14 +01:00
available_currencies.sql Add the company relation and read-only form to edit 2023-01-24 21:46:07 +01:00
available_invoice_status.sql Add the invoice_status relation and its i18n 2023-02-07 16:45:27 +01:00
available_languages.sql Add currency_pattern to language relation 2023-02-23 12:12:33 +01:00
build_cookie.sql Use user’ß email for auth funcs and return cookie on email change 2023-01-23 21:18:55 +01:00
change_password.sql Add function to change the current user’s password 2023-01-23 21:41:14 +01:00
check_cookie.sql Move check_cookie to public and give access to authenticator 2023-01-18 14:12:59 +01:00
company.sql Add the function to get the next invoice number 2023-02-17 14:48:24 +01:00
company_user.sql Verify, not just test, that company has RLS with policy 2023-01-28 13:10:30 +01:00
contact.sql Add the contact relation and a rough first form 2023-01-29 15:14:31 +01:00
country.sql Use a select for company’s country field 2023-01-27 21:30:14 +01:00
country_code.sql Use a select for company’s country field 2023-01-27 21:30:14 +01:00
country_i18n.sql Use a select for company’s country field 2023-01-27 21:30:14 +01:00
currency.sql Add the company relation and read-only form to edit 2023-01-24 21:46:07 +01:00
currency_code.sql Add the company relation and read-only form to edit 2023-01-24 21:46:07 +01:00
current_user_cookie.sql Use user’ß email for auth funcs and return cookie on email change 2023-01-23 21:18:55 +01:00
current_user_email.sql Use user’ß email for auth funcs and return cookie on email change 2023-01-23 21:18:55 +01:00
discount_rate.sql Add discount_rate domain and invoice_product relation 2023-02-10 19:02:04 +01:00
edit_product.sql Add PL/pgSQL functions to add and edit products 2023-02-14 12:39:54 +01:00
email.sql Setup authentication schema and user relation 2023-01-13 20:30:21 +01:00
encrypt_password.sql Setup authentication schema and user relation 2023-01-13 20:30:21 +01:00
ensure_role_exists.sql Setup authentication schema and user relation 2023-01-13 20:30:21 +01:00
extension_citext.sql Setup authentication schema and user relation 2023-01-13 20:30:21 +01:00
extension_pg_libphonenumber.sql Add the company relation and read-only form to edit 2023-01-24 21:46:07 +01:00
extension_pgcrypto.sql Setup authentication schema and user relation 2023-01-13 20:30:21 +01:00
extension_uri.sql Add the company relation and read-only form to edit 2023-01-24 21:46:07 +01:00
extension_vat.sql Add the company relation and read-only form to edit 2023-01-24 21:46:07 +01:00
invoice.sql Add the invoice relation 2023-02-09 11:42:31 +01:00
invoice_amount.sql Add views to compute taxes and total amount of invoices 2023-02-22 14:39:38 +01:00
invoice_number_counter.sql Add the function to get the next invoice number 2023-02-17 14:48:24 +01:00
invoice_product.sql Add discount_rate domain and invoice_product relation 2023-02-10 19:02:04 +01:00
invoice_product_tax.sql Add invoice product tax relation 2023-02-15 14:49:06 +01:00
invoice_status.sql Add the invoice_status relation and its i18n 2023-02-07 16:45:27 +01:00
invoice_status_i18n.sql Add the invoice_status relation and its i18n 2023-02-07 16:45:27 +01:00
invoice_tax_amount.sql Add views to compute taxes and total amount of invoices 2023-02-22 14:39:38 +01:00
language.sql Add currency_pattern to language relation 2023-02-23 12:12:33 +01:00
login.sql Implement login cookie, its verification, and logout 2023-01-17 20:58:13 +01:00
login_attempt.sql Implement login cookie, its verification, and logout 2023-01-17 20:58:13 +01:00
logout.sql Implement login cookie, its verification, and logout 2023-01-17 20:58:13 +01:00
new_invoice_product.sql Add PL/pgSQL function to add invoices 2023-02-16 23:09:10 +01:00
next_invoice_number.sql Add the function to get the next invoice number 2023-02-17 14:48:24 +01:00
parse_price.sql Convert from cents to “price” and back 2023-02-05 13:55:12 +01:00
product.sql Allow multiple taxes, and even not tax, for products 2023-02-08 13:47:36 +01:00
product_tax.sql Allow multiple taxes, and even not tax, for products 2023-02-08 13:47:36 +01:00
roles.sql Setup authentication schema and user relation 2023-01-13 20:30:21 +01:00
schema_auth.sql Setup authentication schema and user relation 2023-01-13 20:30:21 +01:00
schema_numerus.sql Setup authentication schema and user relation 2023-01-13 20:30:21 +01:00
schema_public.sql Setup authentication schema and user relation 2023-01-13 20:30:21 +01:00
set_cookie.sql Add a function to set request settings and the role 2023-01-19 13:07:32 +01:00
tax.sql Add the tax relation with very rough form and handler 2023-01-28 14:18:58 +01:00
tax_rate.sql Add the tax relation with very rough form and handler 2023-01-28 14:18:58 +01:00
to_price.sql Convert from cents to “price” and back 2023-02-05 13:55:12 +01:00
user.sql Add user_profile view to update the profile with form 2023-01-22 02:23:09 +01:00
user_profile.sql Add cross-request forgery detection 2023-02-02 11:39:34 +01:00