numerus/pkg
jordi fita mas 1bb6870f26 Keep products in invoices/quotes sorted by (roughly) insertion order
There was no explicit `order by` in the queries that list the products
of quotes and invoices, so PostgreSQL was free to use any order it
wanted.  In this case, since was am grouping first by name, the result
was sorted by product name.

This is not an issue in most cases, albeit a bit rude to the user,
except for when the products *have* to in the same order the user
entered them, because they are monthly fees or something like that, that
must be ordered by month _number_, not by their _name_; the user will
usually input them in the correct order they want them on the invoice or
quote.

Sorting by *_product_id does *not* guarantee that they will always be
in insertion order, because the sequence can “wrap”, but i think i am
going to have bigger problems at that point.

Closes #63
2023-07-07 11:34:26 +02:00
..
company.go Create validation function for SQL domains and for phones 2023-07-03 11:31:59 +02:00
contacts.go Create validation function for SQL domains and for phones 2023-07-03 11:31:59 +02:00
dashboard.go Fix passing company ID to expenses chart query 2023-06-21 09:47:23 +02:00
db.go Allow importing contacts from Holded 2023-07-03 00:05:47 +02:00
expenses.go Remove unused company parameter from mustCollectExpenseEntries 2023-07-02 20:06:45 +02:00
form.go Create validation function for SQL domains and for phones 2023-07-03 11:31:59 +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 Keep products in invoices/quotes sorted by (roughly) insertion order 2023-07-07 11:34:26 +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 Keep products in invoices/quotes sorted by (roughly) insertion order 2023-07-07 11:34:26 +02:00
recover.go Gofmt recover.go 2023-01-22 20:37:34 +01:00
router.go Allow importing contacts from Holded 2023-07-03 00:05:47 +02:00
template.go Internationalize and localize the home template 2023-06-16 10:58:40 +02:00