     "ajax": {
          "url": "{{ API_HOST }}/api/1.0/price_per_unit/?entity_code={{ entity.code }}&date={{ date|date:'Y-m-d' }}&bnf_code={{ bnf_code }}&aggregate={{ aggregate }}&entity_type={{ entity_type }}&format=json",
          "dataSrc": function(data) {
            var total = data.reduce(function(memo, item) {
              return memo + item.possible_savings;
            }, 0);
            var formattedTotal = $.fn.dataTable.render.number(',').display(total);
            $('#total-savings').text(