Lines 178-183
Link Here
|
178 |
|
178 |
|
179 |
[% MACRO jsinclude BLOCK %] |
179 |
[% MACRO jsinclude BLOCK %] |
180 |
[% Asset.js("js/admin-menu.js") | $raw %] |
180 |
[% Asset.js("js/admin-menu.js") | $raw %] |
|
|
181 |
[% INCLUDE 'format_price.inc' %] |
181 |
[% INCLUDE 'datatables.inc' %] |
182 |
[% INCLUDE 'datatables.inc' %] |
182 |
[% Asset.js("lib/jquery/plugins/jquery.jeditable.mini.js") | $raw %] |
183 |
[% Asset.js("lib/jquery/plugins/jquery.jeditable.mini.js") | $raw %] |
183 |
<script> |
184 |
<script> |
Lines 269-276
Link Here
|
269 |
}, { |
270 |
}, { |
270 |
"aTargets": [-2], |
271 |
"aTargets": [-2], |
271 |
"mRender": function ( data, type, full ) { |
272 |
"mRender": function ( data, type, full ) { |
272 |
var price = Number.parseFloat(data).toFixed(2); |
273 |
var price = Number.parseFloat(data); |
273 |
return '£'+price; |
274 |
return price.format_price(); |
274 |
} |
275 |
} |
275 |
}, { |
276 |
}, { |
276 |
"aTargets": [-4], |
277 |
"aTargets": [-4], |
Lines 305-311
Link Here
|
305 |
}, |
306 |
}, |
306 |
"fnRowCallback": function( nRow, aData, iDisplayIndex, iDisplayIndexFull ) { |
307 |
"fnRowCallback": function( nRow, aData, iDisplayIndex, iDisplayIndexFull ) { |
307 |
var iTotal = aData[1] * aData[2]; |
308 |
var iTotal = aData[1] * aData[2]; |
308 |
this.fnUpdate( iTotal, nRow, 3, false, false ); |
309 |
this.fnUpdate( iTotal.format_price(), nRow, 3, false, false ); |
309 |
}, |
310 |
}, |
310 |
"fnFooterCallback": function(nFoot, aData, iStart, iEnd, aiDisplay) { |
311 |
"fnFooterCallback": function(nFoot, aData, iStart, iEnd, aiDisplay) { |
311 |
var iTotalPrice = 0; |
312 |
var iTotalPrice = 0; |
312 |
- |
|
|