numerus/pkg
jordi fita mas 8efae0485e Add the edit form for invoices
I had to change the way /invoices/new and /invoices/batch are handled,
because httprouter was not happy with the new POST /invoices/:slug/edit
route, claiming that /invoices/:slug conflicts with the previously
existing routes.

I also could not make it work with the PATCH method, even though i
correctly added the patchMethod override function, therefore editing
invoices is also weird because i have to take into account the “quick”
invoice status change.

I use the same form for both new and edit invoices, because the only
changes are that we can not edit the invoice date and number, by
Oriol’s design, but must be able to change the status; very similar
forms.
2023-03-13 15:00:35 +01:00
..
company.go Add the payment method relation and corresponding form 2023-03-03 16:49:06 +01:00
contacts.go Refactor checking for pgx.ErrNoRows in a function 2023-02-14 12:46:11 +01:00
db.go Properly register array and composite PostgreSQL types with pgtype 2023-02-20 11:42:21 +01:00
form.go Add the String() method to InputField 2023-03-13 14:55:10 +01:00
invoices.go Add the edit form for invoices 2023-03-13 15:00:35 +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 Add validation of single tax from each class 2023-03-01 11:55:26 +01:00
profile.go Allow multiple taxes, and even not tax, for products 2023-02-08 13:47:36 +01:00
recover.go Gofmt recover.go 2023-01-22 20:37:34 +01:00
router.go Add the edit form for invoices 2023-03-13 15:00:35 +01:00
template.go Add discount and tax classes columns to invoice 2023-03-01 14:08:12 +01:00