numerus/pkg
jordi fita mas 20827b2cfb Add IBAN and BIC fields to contacts
These two fields are just for information purposes, as Numerus does not
have any way to wire transfer using these, but people might want to keep
these in the contact’s info as a convenience.

Since not every contact should have an IBAN, e.g., customers, and inside
SEPA (European Union and some more countries) the BIC is not required,
they are in two different relations in order to be optional without
using NULL.

For the IBAN i found an already made PostgreSQL module, but for BIC i
had to write a regular expression based on the information i gathered
from Wikipedia, because the ISO standard is not free.

These two parameters for the add_contact and edit_contact functions are
TEXT because i realized that these functions are intended to be used
from the web application, that only deals with texts, so the
ValueOrNil() function was unnecessarily complex and PostreSQL’s
functions were better suited to “convert” from TEXT to IBAN or BIC.
The same is true for EMAIL and URI domains, so i changed their parameter
types to TEXT too.

Closes #54.
2023-07-02 02:08:45 +02:00
..
company.go Split contact relation into tax_details, phone, web, and email 2023-06-30 21:32:48 +02:00
contacts.go Add IBAN and BIC fields to contacts 2023-07-02 02:08:45 +02:00
dashboard.go Fix passing company ID to expenses chart query 2023-06-21 09:47:23 +02:00
db.go Add quote number formatting and next number field to tax details 2023-06-09 12:43:50 +02:00
expenses.go Split contact relation into tax_details, phone, web, and email 2023-06-30 21:32:48 +02:00
form.go Add IBAN and BIC fields to contacts 2023-07-02 02:08:45 +02:00
htmx.go Use HTMx to add product rows “inline” in the invoice form 2023-04-24 02:00:38 +02:00
invoices.go Split contact relation into tax_details, phone, web, and email 2023-06-30 21:32:48 +02:00
locale.go Add currency_pattern to language relation 2023-02-23 12:12:33 +01:00
logger.go Reduce the amount of useless data in request’s log 2023-06-13 16:05:40 +02:00
login.go Log the remote address, and only trust localhost proxies 2023-06-13 14:21:54 +02:00
pgtypes.go Split contact relation into tax_details, phone, web, and email 2023-06-30 21:32:48 +02:00
products.go There is no need for array_to_string() in tags 2023-05-27 21:36:10 +02:00
profile.go Create constants for the HTMX request and response headers used 2023-04-06 12:07:20 +02:00
quote.go Split contact relation into tax_details, phone, web, and email 2023-06-30 21:32:48 +02:00
recover.go Gofmt recover.go 2023-01-22 20:37:34 +01:00
router.go Add the most minimal home page design 2023-06-11 22:24:25 +02:00
template.go Internationalize and localize the home template 2023-06-16 10:58:40 +02:00