Commit Graph

4 Commits

Author SHA1 Message Date
jordi fita mas 0ee64f1905 Allow negative prices and quantities in invoices and quotes
This is necessary for credit forms, because it is “just” an invoice with
a negative amount, usually the inverse of an invoice that has to be
rectified.  This is a requirement for electronic invoicing too.

However, it is not the only use case: sometimes it is necessary to have
some lines with a negative quantity, even if the total is positive, to
emphasize discounts or to register expenses, like bank commissions in
autoinvoices.

Part of #61.
2025-01-21 23:11:29 +01:00
jordi fita mas 31ef3ea47a Add company’s default payment method
I had to use a deferrable foreign key because the payment methods have
a reference to the company, and the company now a circular reference to
payment method.
2023-03-04 22:15:52 +01:00
jordi fita mas 11d51df7fa Introduce the concept of tax class
We want to show the percentage of the tax as columns in the invoice,
but until now it was not possible to have a single VAT column when
products have different VAT (e.g., 4 % and 10 %), because, as far
as the application is concerned, these where ”different taxes”.  We
also think it would be hard later on to compute the tax due to the
government.

So, tax classes is just a taxonomy to be able to have different names
and rates for the same type of tax, mostly VAT and retention in our
case.
2023-02-28 12:02:27 +01:00
jordi fita mas 985f843e8e Show the invoice subtotal, taxes, and total when creating it 2023-02-23 15:31:57 +01:00