jordi fita mas jfita
  • Joined on 2023-01-13
jfita pushed to master at tandem/numerus 2023-02-19 22:53:11 +00:00
98ac17a129 Call add_invoice when adding invoice from Go
jfita pushed to master at tandem/numerus 2023-02-18 13:49:38 +00:00
697f821310 Call next_invoice_number from add_invoice
jfita pushed to master at tandem/numerus 2023-02-17 13:50:05 +00:00
880c4f53b2 Add the function to get the next invoice number
de7d167e65 Add constraints to reject empty product and companies names
Compare 2 commits »
jfita pushed to master at tandem/numerus 2023-02-16 22:09:16 +00:00
245cccd85a Add PL/pgSQL function to add invoices
jfita pushed to master at tandem/numerus 2023-02-15 13:49:11 +00:00
9bddb548a2 Add invoice product tax relation
jfita pushed to master at tandem/numerus 2023-02-14 11:56:31 +00:00
045bf7ff6a Add the formnovalidate attribute to update and add products buttons
4463c7ee0b Use array_agg to get the taxes for the product’s form
4db0a8fb5a Refactor checking for pgx.ErrNoRows in a function
13fa1d6b89 Add PL/pgSQL functions to add and edit products
989c1717e5 Rename mustGetInvoiceEntries to mustCollectInvoiceEntries
Compare 5 commits »
jfita pushed to master at tandem/numerus 2023-02-13 09:35:02 +00:00
e94e3f6ebc Fix time layout in FormValidator.CheckValidDate
3891a01fd5 Fix use of API methods not available in Go 1.16
Compare 2 commits »
jfita pushed to master at tandem/numerus 2023-02-12 20:06:53 +00:00
4903c8a3b9 Add the form to add products to an invoice and create invoices too
72fbed68ac Add a missing StatusUnprocessableEntity HTTP response code
c2d8006748 Make FormValidator.CheckValidDate method public
Compare 3 commits »
jfita pushed to master at tandem/numerus 2023-02-11 21:16:54 +00:00
5c15b9de20 Add the bare-bones form for invoices
jfita pushed to master at tandem/numerus 2023-02-10 18:03:52 +00:00
6bf51d5eeb Add discount_rate domain and invoice_product relation
96cfee6f56 Correctly test negative tax_rate
fa3ffdf19b Truncate relation invoice in its test suite
d5fb5a4326 Fix comment on domain tax_rate
Compare 4 commits »
jfita pushed to master at tandem/numerus 2023-02-09 10:42:37 +00:00
aad0d33c47 Add the invoice relation
jfita pushed to master at tandem/numerus 2023-02-08 13:12:50 +00:00
b2971e3a09 Fix product taxes in demo SQL
jfita pushed to master at tandem/numerus 2023-02-08 12:47:42 +00:00
4be2597a86 Allow multiple taxes, and even not tax, for products
jfita pushed to master at tandem/numerus 2023-02-07 15:59:06 +00:00
2a98b9c0af Restart sequences for the demo
44e8f030b3 Add the invoice_status relation and its i18n
608ea16152 Document the requirement between product and tax
73ca559209 Add template for InputField of type textarea
Compare 4 commits »
jfita pushed to master at tandem/numerus 2023-02-06 12:36:01 +00:00
043bd9cc3f Add demo products
jfita pushed to master at tandem/numerus 2023-02-05 13:06:38 +00:00
ae1949024b Allow optional select with empty label
60f9792e58 Convert from cents to “price” and back
Compare 2 commits »
jfita pushed to master at tandem/numerus 2023-02-04 10:32:45 +00:00
e9cc331ee0 Add products section
f611162b0e Move contacts templates in their own directory
2799fdb8db Add companyURI for Go code too, not just templates
Compare 3 commits »
jfita pushed to master at tandem/numerus 2023-02-03 13:17:13 +00:00
55980367bc Add sample contacts to the demo
a0a3a5561d Add breadcrumbs
7d17620f48 Add the edit contact page
1ab48cfcbc Replace default router with github.com/julienschmidt/httprouter
80f14d5818 Use MustGetText to get the company’s slug
Compare 5 commits »
jfita pushed to master at tandem/numerus 2023-02-02 10:39:44 +00:00
917db31227 Add cross-request forgery detection
jfita pushed to master at tandem/numerus 2023-02-01 13:34:52 +00:00
7a439a40cc Use a proper struct for the contact’s form
e8523e373f “Fix” the province for the demo’s company tax details
2883438157 Handle tax details and new tax forms with structs and validation
4f13fa58dc Add autocomplete attributes to profile fields
b8b3d73e95 Refactor form validation into a new type
Compare 7 commits »