Skip to content

Commit

Permalink
add fiscal year to bill delay reports
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalfox committed Nov 16, 2024
1 parent 8eb2021 commit 0e48209
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions billing/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
from crm.models import Subsidiary
from crm.utils import get_subsidiary_from_session
from core.utils import get_fiscal_years_from_qs, get_parameter, user_has_feature
from core.utils import COLORS, nextMonth, previousMonth
from core.utils import COLORS, nextMonth, previousMonth, get_fiscal_year
from core.decorator import pydici_non_public, PydiciNonPublicdMixin, pydici_feature, PydiciFeatureMixin
from billing.forms import BillDetailInlineFormset, BillExpenseFormSetHelper, BillExpenseInlineFormset, BillExpenseForm
from billing.forms import ClientBillForm, BillDetailForm, BillDetailFormSetHelper, SupplierBillForm
Expand Down Expand Up @@ -158,7 +158,8 @@ def bill_delay(request):
_("creation lag"): bill.creation_lag() or "null",
_("payment delay"): bill.payment_delay(),
_("payment wait"): bill.payment_wait(),
_("creation date"): bill.creation_date.replace(day=1).isoformat()}
_("creation date"): bill.creation_date.replace(day=1).isoformat(),
_("fiscal year"): get_fiscal_year(bill.creation_date)}
)
return render(request, "billing/payment_delay.html",
{"data": data,
Expand Down

0 comments on commit 0e48209

Please sign in to comment.