#6074 (Review discount & unit_price of trading.InvoiceItem)
by Luc Saffre · in Developers · assigned to Luc Saffre
Kurzbeschreibung
A change in order to align Lino's invoice structure with that of Peppol: Add a field for the absolute discount amount. The discount must not get applied to the unit_price but to the total_base. Modifying the discount no longer updates the unit_price.
Kinder
Kommentare
- 1 Jahr, 5 Monate ago von Luc Saffre about #6074 (Review discount & unit_price of trading.InvoiceItem) : TODO: Add discounts to lino_xl/lib/trading/fixtures/demo_bookings.py, but only when the test suite is stable because this will cause existing doctests to break because many accounting numbers will change.
- 1 Jahr, 5 Monate ago von Luc Saffre about #6074 (Review discount & unit_price of trading.InvoiceItem) : Make the column layout of the ItemsByInvoice table configurable per journal. Using the same approach as in lin_welfare.modlib.debts where we use a choicelist to use in get_column_names()
- 1 Jahr, 5 Monate ago von Luc Saffre about #6074 (Review discount & unit_price of trading.InvoiceItem) : Another side effect: we now also need the column layout of the ItemsByInvoice table to be configurable per journal.
- 1 Jahr, 5 Monate ago von Luc Saffre about #6074 (Review discount & unit_price of trading.InvoiceItem) : Side effects: Lino now has a InvoiceItem.as_paragraph(), and we started using Site.format_currency().
- 1 Jahr, 5 Monate ago von Luc Saffre about #6074 (Review discount & unit_price of trading.InvoiceItem) : Created new Ticket #6074 (Review dicount & unit_price of trading.InvoiceItem).