diff --git a/pos/static/js/pos.js b/pos/static/js/pos.js index 905df87..3caff55 100644 --- a/pos/static/js/pos.js +++ b/pos/static/js/pos.js @@ -181,20 +181,20 @@ const POS = (() => { return; } let html = '
'; - html += '
Efectivo inicial
$' + fmt(data.opening_amount) + '
'; - html += '
Ventas totales
$' + fmt(data.total_sales) + ' (' + data.total_sales_count + ')
'; - html += '
Efectivo en ventas
$' + fmt(data.cash_from_sales) + '
'; - html += '
Cambio entregado
-$' + fmt(data.change_given) + '
'; - html += '
Entradas de efectivo
+$' + fmt(data.cash_movements_in) + '
'; - html += '
Salidas de efectivo
-$' + fmt(data.cash_movements_out) + '
'; - html += '
Cancelaciones
' + data.cancelled_count + ' ($' + fmt(data.cancelled_amount) + ')
'; - html += '
Efectivo esperado
$' + fmt(data.expected_cash) + '
'; + html += '
Efectivo inicial
' + fmt(data.opening_amount) + '
'; + html += '
Ventas totales
' + fmt(data.total_sales) + ' (' + data.total_sales_count + ')
'; + html += '
Efectivo en ventas
' + fmt(data.cash_from_sales) + '
'; + html += '
Cambio entregado
-' + fmt(data.change_given) + '
'; + html += '
Entradas de efectivo
+' + fmt(data.cash_movements_in) + '
'; + html += '
Salidas de efectivo
-' + fmt(data.cash_movements_out) + '
'; + html += '
Cancelaciones
' + data.cancelled_count + ' (' + fmt(data.cancelled_amount) + ')
'; + html += '
Efectivo esperado
' + fmt(data.expected_cash) + '
'; html += '
'; if (data.sales_by_method && Object.keys(data.sales_by_method).length) { html += '
'; html += 'Por metodo de pago:
'; for (const [method, info] of Object.entries(data.sales_by_method)) { - html += '' + method + ': $' + fmt(info.amount) + ' (' + info.count + ')'; + html += '' + method + ': ' + fmt(info.amount) + ' (' + info.count + ')'; } html += '
'; } @@ -202,7 +202,7 @@ const POS = (() => { html += '
'; html += 'Movimientos de caja:
'; data.movement_detail.forEach(function(m) { - html += '
' + m.type + ' $' + fmt(m.amount) + ' — ' + (m.reason || '') + '
'; + html += '
' + m.type + ' ' + fmt(m.amount) + ' — ' + (m.reason || '') + '
'; }); html += '
'; } diff --git a/pos/templates/pos.html b/pos/templates/pos.html index b3f573b..2e97bcf 100644 --- a/pos/templates/pos.html +++ b/pos/templates/pos.html @@ -14,7 +14,7 @@ - + @@ -563,7 +563,7 @@ - +