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