@@ -, +, @@ (EnablePointOfSale + UseCashRegisters system preferences) (Home > Point of sale > Cash registers > New cash register) (Home > Point of sale > Purchase items > New debit type) (Home > Point of sale > click 'Add' next to the item to purchase) purchase which affects the other calculations check that the change calculation is correct. --- koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt @@ -313,7 +313,7 @@ }, "fnRowCallback": function( nRow, aData, iDisplayIndex, iDisplayIndexFull ) { var iTotal = aData[1] * aData[2]; - this.fnUpdate( iTotal.format_price(), nRow, 3, false, false ); + this.fnUpdate( iTotal, nRow, 3, false, false ); }, "fnFooterCallback": function(nFoot, aData, iStart, iEnd, aiDisplay) { var iTotalPrice = 0; @@ -321,9 +321,7 @@ { iTotalPrice += aData[i][3]*1; } - - iTotalPrice = Number.parseFloat(iTotalPrice).toFixed(2); - nFoot.getElementsByTagName('td')[1].innerHTML = iTotalPrice; + nFoot.getElementsByTagName('td')[1].innerHTML = iTotalPrice.format_price(); $('#paid').val(iTotalPrice); $('#paid').trigger('change'); } --