hungarodo / odoohu-plus

Odoo HU
https://hungarodo.hu/odoohu
Other
1 stars 0 forks source link

periodic delivery invoicing #7

Open gezzzan opened 5 months ago

gezzzan commented 5 months ago

it is a common scenario in Hungary to issue/receive invoices for a period. Something like subscriptions, but not really.

Customer invoice examples:

Vendor bill examples:

There are 3 main scenarios as defined by the VAT act 58.§ (1) (https://njt.hu/jogszabaly/2007-127-00-00) 1) by default delivery date is the end date of the period 2) if the due date is before period end date, than it is the invoice date (the date the invoice is issued) 3) if the due date is after the period end date, than the due date, BUT maximum 60 days

To support these we would need 2 fields to define the start and end date of the delivery period

It is also important to record these dates on account move so that the year end closing accounting can recognise which invoices need to be considered for accruals (aktív/passzív időbeli elhatárolás)

Maybe you can take a look at the “l10n_hu_get_invoice_delivery_date_info” method here: https://github.com/hungarodo/odoohu/blob/16.0-dev/l10n_hu_account/models/account_move.py It is bloated and should be reworked, but should give you an idea about this

NAV specification (https://onlineszamla.nav.gov.hu/files/container/download/Online%20Invoice%20System%203.0%20Interface%20Specification.pdf) as “periodicalSettlement”

Check invoiceDeliveryPeriodStart and invoiceDeliveryPeriodEnd fields in the specification

gezzzan commented 2 months ago

tesztelhető image