% include header %>
<% include navbar %><% var d = new Date(project.created); %> <%= d.getFullYear() + '-' + ('0' + (d.getMonth()+1)).slice(-2) + '-' + ('0' + d.getDate()).slice(-2) + ' ' + d.toLocaleTimeString().slice(0, 5) %>
Det er til sammen brukt <%= (pro.total).toFixed(2) %> <%= project.currency %>. Deltakerne skal altså betale <%= (pro.each).toFixed(2) %> <%= project.currency %> hver.
<% for (var i in pro.user) { %> <%- pro.user[i].name %> har betalt <%= pro.user[i].total %> <%= project.currency %>, og <%- pro.user[i].diff >= 0 ? 'skyldes ' + pro.user[i].diff : 'skylder ' + Math.abs(pro.user[i].diff) %> <%= project.currency %><% for (var p in pro.user) { %> <%- pro.user[p].coeff > 0 ? ' | ' + pro.user[p].name + ' | ' : '' %> <% } %>
<%- pro.user[u].name %> | <% for (var p in pro.user) { %> <%- pro.user[p].coeff > 0 ? '' + (Math.abs(pro.user[u].diff) * pro.user[p].coeff).toFixed(2) + ' | ' : '' %> <% } %>