numerus/test
jordi fita mas c453715ee1 Remove the number field from new invoice form
Initially, this field was meant to be left almost always blank, except
for when we deleted invoiced and had to “replace” its number with a new
invoice; using the automatic numbering in this cas would not “fill in”
the missing number in the sequence.

However, we decide to not allow removing invoicer not edit their
numbers, therefore, if everything goes as planned, there should not be
any gap in the sequence, and that field is rendered useless.

Oriol suggested making it a read-only field, both for new and edit
forms, but i do not think it makes sense to have a field if you can not
edit it at all, specially in the new invoice dialog, where it would
always be blank.  In the edit form we already show the number in the
title and breadcrumbs, thus no need for the read-only field as
reference.

I still keep a Number member to the form struct, but is now a string
(kind of “a read-only field”, in a way) and just to be written in the
title or breadcrumbs.  I did not like the idea of adding a new SQL
query just for that value.
2023-04-01 15:57:56 +02:00
..
add_contact.sql Add tags for products too 2023-03-26 13:51:57 +02:00
add_invoice.sql Remove the number field from new invoice form 2023-04-01 15:57:56 +02:00
add_product.sql Add tags for products too 2023-03-26 13:51:57 +02:00
build_cookie.sql Remove execution grant on build_cookie to guest 2023-01-23 21:40:22 +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 Use user’ß email for auth funcs and return cookie on email change 2023-01-23 21:18:55 +01:00
company.sql Add company’s default payment method 2023-03-04 22:15:52 +01:00
company_user.sql Add the company relation and read-only form to edit 2023-01-24 21:46:07 +01:00
compute_new_invoice_amount.sql Add company’s default payment method 2023-03-04 22:15:52 +01:00
contact.sql Add company’s default payment method 2023-03-04 22:15:52 +01:00
contact_tag.sql Add tags for contacts too 2023-03-26 01:32:53 +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 Remove an unnecessary truncate from a SQL test 2023-01-27 19:40:38 +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_contact.sql Add tags for contacts too 2023-03-26 01:32:53 +01:00
edit_invoice.sql Fix deletion of products with taxes on invoice edit 2023-03-13 14:32:02 +01:00
edit_product.sql Add tags for products too 2023-03-26 13:51:57 +02:00
edited_invoice_product.sql Add function to edit invoices 2023-03-11 20:58:20 +01:00
email.sql Allow guest access to user_profile with an empty profile 2023-01-23 01:18:47 +01:00
encrypt_password.sql Add the schema for all function’s tests 2023-01-18 14:13:58 +01:00
ensure_role_exists.sql Add the schema for all function’s tests 2023-01-18 14:13:58 +01:00
extensions.sql Add the company relation and read-only form to edit 2023-01-24 21:46:07 +01:00
invoice.sql Add the payment method to invoices 2023-03-05 18:50:57 +01:00
invoice_amount.sql Add the payment method to invoices 2023-03-05 18:50:57 +01:00
invoice_number_counter.sql Add company’s default payment method 2023-03-04 22:15:52 +01:00
invoice_product.sql Add the payment method to invoices 2023-03-05 18:50:57 +01:00
invoice_product_amount.sql Add the payment method to invoices 2023-03-05 18:50:57 +01:00
invoice_product_tax.sql Add the payment method to invoices 2023-03-05 18:50:57 +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_tag.sql Add invoice tags 2023-03-10 14:02:55 +01:00
invoice_tax_amount.sql Add the payment method to invoices 2023-03-05 18:50:57 +01:00
language.sql Add currency_pattern to language relation 2023-02-23 12:12:33 +01:00
login.sql Add the schema for all function’s tests 2023-01-18 14:13:58 +01:00
login_attempt.sql Implement login cookie, its verification, and logout 2023-01-17 20:58:13 +01:00
logout.sql Use user’ß email for auth funcs and return cookie on email change 2023-01-23 21:18:55 +01:00
new_invoice_amount.sql Show the invoice subtotal, taxes, and total when creating it 2023-02-23 15:31:57 +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 company’s default payment method 2023-03-04 22:15:52 +01:00
parse_price.sql Fix to_price and parse_price for negative values 2023-02-23 14:42:18 +01:00
payment_method.sql Add company’s default payment method 2023-03-04 22:15:52 +01:00
product.sql Add company’s default payment method 2023-03-04 22:15:52 +01:00
product_tag.sql Add tags for products too 2023-03-26 13:51:57 +02:00
product_tax.sql Add company’s default payment method 2023-03-04 22:15:52 +01:00
roles.sql Setup authentication schema and user relation 2023-01-13 20:30:21 +01:00
schemas.sql Move check_cookie to public and give access to authenticator 2023-01-18 14:12:59 +01:00
set_cookie.sql Use user’ß email for auth funcs and return cookie on email change 2023-01-23 21:18:55 +01:00
tag.sql Add invoice tags 2023-03-10 14:02:55 +01:00
tag_contact.sql Add tags for contacts too 2023-03-26 01:32:53 +01:00
tag_invoice.sql Add SQL and helper PL/pgSQL functions to tag invoices 2023-03-26 00:18:29 +01:00
tag_name.sql Add invoice tags 2023-03-10 14:02:55 +01:00
tag_product.sql Add tags for products too 2023-03-26 13:51:57 +02:00
tag_relation.sql Add SQL and helper PL/pgSQL functions to tag invoices 2023-03-26 00:18:29 +01:00
tax.sql Add company’s default payment method 2023-03-04 22:15:52 +01:00
tax_class.sql Add company’s default payment method 2023-03-04 22:15:52 +01:00
tax_rate.sql Correctly test negative tax_rate 2023-02-10 19:00:46 +01:00
to_price.sql Fix to_price and parse_price for negative values 2023-02-23 14:42:18 +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