Go to file
jordi fita mas 1c6375b51d Do not give “false ID” to invoice products that come from quotations
When adding “free-form products” to quotes they do not have a product
ID, but i has coalescing the NULL to zero because product_id is an
integer and can not coalesce a nullable integer to an empty string.

However, that causes problems when trying to create the invoice for that
quote, because it tries to add products that have an ID of 0 and the
foreign key, obviously, fail.

At first i modified NewInvoiceProductArray.EncodeBinary to check for
"0" as well as the empty string, but i realized this was wrong: the
problem was because i gave these products an ID when they do not have
any.  And the solution is to cast product_id to a text, which is what
will get converted anyway because i the only thing i do to it is to
store to a string-backed InputForm field.

Closes #73.
2023-08-11 19:47:10 +02:00
cmd/numerus Implement login cookie, its verification, and logout 2023-01-17 20:58:13 +01:00
debian Add the customer name to the invoice’s PDF file name 2023-07-07 11:34:34 +02:00
demo Add empty IBAN and BIC to demo contacts 2023-07-02 02:26:35 +02:00
deploy Compute the total amount, base plus taxes, of all expenses 2023-07-13 20:50:26 +02:00
pkg Do not give “false ID” to invoice products that come from quotations 2023-08-11 19:47:10 +02:00
po Add option to export the list of quotes, invoices, and expenses to ODS 2023-07-18 13:29:36 +02:00
revert Compute the total amount, base plus taxes, of all expenses 2023-07-13 20:50:26 +02:00
test Compute the total amount, base plus taxes, of all expenses 2023-07-13 20:50:26 +02:00
verify Compute the total amount, base plus taxes, of all expenses 2023-07-13 20:50:26 +02:00
web Add option to export the list of quotes, invoices, and expenses to ODS 2023-07-18 13:29:36 +02:00
.gitignore Ignore IntelliJ’s project files 2023-01-30 16:42:15 +01:00
COPYING Rename LICENSE to COPYING 2023-01-15 04:08:35 +01:00
Makefile Rename extension of templates to .gohtml 2023-01-30 16:48:21 +01:00
go.mod Add the customer name to the invoice’s PDF file name 2023-07-07 11:34:34 +02:00
go.sum Add the customer name to the invoice’s PDF file name 2023-07-07 11:34:34 +02:00
sqitch.conf Setup authentication schema and user relation 2023-01-13 20:30:21 +01:00
sqitch.plan Compute the total amount, base plus taxes, of all expenses 2023-07-13 20:50:26 +02:00