numerus/pkg
jordi fita mas 4131602fa3 Add tags for contacts too
With Oriol we agreed that contacts should have tags, too, and that the
“tag pool”, as it were, should be shared with the one for invoices (and
all future tags we might add).

I added the contact_tag relation and tag_contact function, just like
with invoices, and then realized that the SQL queries that Go had to
execute were becoming “complex” enough: i had to get not only the slug,
but the contact id to call tag_contact, and all inside a transaction.

Therefore, i opted to create the add_contact and edit_contact functions,
that mirror those for invoice and products, so now each “major” section
has these functions.  They also simplified a bit the handling of the
VATIN and phone numbers, because it is now encapsuled inside the
PL/pgSQL function and Go does not know how to assemble the parts.
2023-03-26 01:32:53 +01:00
..
company.go Show the tax details form in a dialog using HTMx 2023-03-21 11:58:54 +01:00
contacts.go Add tags for contacts too 2023-03-26 01:32:53 +01:00
db.go Properly register array and composite PostgreSQL types with pgtype 2023-02-20 11:42:21 +01:00
form.go Add tags for contacts too 2023-03-26 01:32:53 +01:00
invoices.go Add tags for contacts too 2023-03-26 01:32:53 +01:00
locale.go Add currency_pattern to language relation 2023-02-23 12:12:33 +01:00
logger.go Move source file to the root of pkg 2023-01-17 10:40:22 +01:00
login.go Replace default router with github.com/julienschmidt/httprouter 2023-02-03 12:30:56 +01:00
pgtypes.go Add the edit form for invoices 2023-03-13 15:00:35 +01:00
products.go Boost the main navigation links with HTMx 2023-03-23 10:55:02 +01:00
profile.go Show the profile form in a dialog using HTMx 2023-03-20 13:09:52 +01:00
recover.go Gofmt recover.go 2023-01-22 20:37:34 +01:00
router.go Boost the main navigation links with HTMx 2023-03-23 10:55:02 +01:00
template.go Boost the main navigation links with HTMx 2023-03-23 10:55:02 +01:00