Commit 04835112 authored by Nicolas Wavrant's avatar Nicolas Wavrant

erp5_payroll_l10n_fr: fixup dates for getInventory requests in DSN reports

parent 4ff40a9e
......@@ -117,7 +117,7 @@ if len(payment_transaction_list):
amount_list = []
for i in range(3):
start_date = addToDate(first_date_of_month, month=-i)
stop_date = addToDate(last_date_of_month, month=-i) + 1
stop_date = getLastDateOfMonth(addToDate(last_date_of_month, month=-i)) + 1
amount = -1. * portal.portal_simulation.getInventory(
from_date=start_date,
to_date=stop_date,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment