mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
fix toast presupuesto
This commit is contained in:
@ -55,7 +55,6 @@ export const toastPresupuestoSummary = (value, target = 'body') => {
|
|||||||
popup: 'bg-primary text-white',
|
popup: 'bg-primary text-white',
|
||||||
},
|
},
|
||||||
target: target,
|
target: target,
|
||||||
height : "100px",
|
|
||||||
width : "200px",
|
width : "200px",
|
||||||
padding : '1px',
|
padding : '1px',
|
||||||
allowEscapeKey: false,
|
allowEscapeKey: false,
|
||||||
|
|||||||
@ -307,7 +307,7 @@ class Resumen {
|
|||||||
$('#descuentoTotal').attr('val', (totalDescuento).toFixed(2))
|
$('#descuentoTotal').attr('val', (totalDescuento).toFixed(2))
|
||||||
$('#totalDespuesDecuento').attr('val', (totalPresupuesto).toFixed(2))
|
$('#totalDespuesDecuento').attr('val', (totalPresupuesto).toFixed(2))
|
||||||
$('#precioUnidadPresupuesto').attr('val', (precioUnidad).toFixed(4))
|
$('#precioUnidadPresupuesto').attr('val', (precioUnidad).toFixed(4))
|
||||||
|
$('#totalDespuesDecuento').trigger("change")
|
||||||
|
|
||||||
$('#factor').text(this.addSeparatorsNF(((totalPresupuesto - totalEnvios - margenEnvios) / sumForFactor).toFixed(2), ".", ",", "."))
|
$('#factor').text(this.addSeparatorsNF(((totalPresupuesto - totalEnvios - margenEnvios) / sumForFactor).toFixed(2), ".", ",", "."))
|
||||||
$('#factor').attr('val', ((totalPresupuesto - totalEnvios - margenEnvios) / sumForFactor).toFixed(2))
|
$('#factor').attr('val', ((totalPresupuesto - totalEnvios - margenEnvios) / sumForFactor).toFixed(2))
|
||||||
@ -367,7 +367,7 @@ class Resumen {
|
|||||||
|
|
||||||
this.toastPresupuestoTotal = toastPresupuestoSummary($("#totalDespuesDecuento").text() ?? 0)
|
this.toastPresupuestoTotal = toastPresupuestoSummary($("#totalDespuesDecuento").text() ?? 0)
|
||||||
this.toastPresupuestoTotal.fire().then((result) => {
|
this.toastPresupuestoTotal.fire().then((result) => {
|
||||||
if(result.isDismissed){
|
if(result.isDismissed && result.dismiss == 'close'){
|
||||||
this.updateToastSummary()
|
this.updateToastSummary()
|
||||||
$('html, body').animate(
|
$('html, body').animate(
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user