Skip to content

Commit

Permalink
remove useless parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalfox committed Apr 15, 2024
1 parent 9ae2585 commit eac1f6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
1 change: 0 additions & 1 deletion crm/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,6 @@ def company_rates_margin(request, company_id):
_("profile"): str(consultant.profil),
_("subsidiary"): str(consultant.company),
_("client"): str(client),
_("type"): _("daily rate"),
_("period"): start_date.isoformat(),
_("amount"): turnover / prod_days
})
Expand Down
8 changes: 2 additions & 6 deletions templates/crm/_clientcompany_rates_margin.html
Original file line number Diff line number Diff line change
Expand Up @@ -106,17 +106,13 @@ <h2 class="mt-4">{% trans "Rates per consultant" %}</h2>
function graph_per_consultant() {
var cols = ["{% trans 'period' %}"];
var rows = ["{% trans 'consultant' %}"];
var options = {};
options['inclusions'] = { {% trans "type" %}: ['{% trans "daily rate" %}'] };
drawPivot(data, rows, cols, "Line Chart", '{% trans "Average" %}', ['{% trans "amount" %}'], options);
drawPivot(data, rows, cols, "Line Chart", '{% trans "Average" %}', ['{% trans "amount" %}']);
}

function graph_per_client() {
var cols = ["{% trans 'period' %}"];
var rows = ["{% trans 'client' %}"];
var options = {};
options['inclusions'] = { {% trans "type" %}: ['{% trans "daily rate" %}'] };
drawPivot(data, rows, cols, "Line Chart", '{% trans "Average" %}', ['{% trans "amount" %}'], options);
drawPivot(data, rows, cols, "Line Chart", '{% trans "Average" %}', ['{% trans "amount" %}']);
}

// default
Expand Down

0 comments on commit eac1f6b

Please sign in to comment.