mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-03-10 16:20:24 +01:00
parent
9e357a360c
commit
3f0ac67612
@ -21,6 +21,8 @@ var isMobile = {
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
// Aggiunta dell'ingranaggio all'unload della pagina
|
||||
$(window).on("beforeunload", function () {
|
||||
$("#main_loading").show();
|
||||
@ -420,6 +422,7 @@ function launch_modal(title, href, init_modal, id) {
|
||||
id = '#bs-popup';
|
||||
}
|
||||
|
||||
|
||||
if (init_modal == null) {
|
||||
init_modal = 1;
|
||||
}
|
||||
@ -427,9 +430,13 @@ function launch_modal(title, href, init_modal, id) {
|
||||
$('html').addClass('modal-open');
|
||||
|
||||
$(id).on('hidden.bs.modal', function () {
|
||||
$('html').removeClass('modal-open');
|
||||
$(this).html('');
|
||||
$(this).data('modal', null);
|
||||
|
||||
if ($('.modal-backdrop').length < 1 ) {
|
||||
$('html').removeClass('modal-open');
|
||||
$(this).html('');
|
||||
$(this).data('modal', null);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
// Lettura contenuto div
|
||||
|
@ -34,7 +34,7 @@ if (empty($idriga)) {
|
||||
|
||||
$listino = $dbo->fetchArray('SELECT prc_guadagno FROM mg_listini WHERE id = (SELECT idlistino_vendite FROM an_anagrafiche WHERE idanagrafica = '.prepare($idanagrafica).')');
|
||||
if (!empty($listino[0]['prc_guadagno'])) {
|
||||
$sconto = $listino[0]['prc_guadagno'];
|
||||
$sconto_unitario = $listino[0]['prc_guadagno'];
|
||||
$tipo_sconto = 'PRC';
|
||||
}
|
||||
} else {
|
||||
|
@ -21,7 +21,7 @@ if (empty($idriga)) {
|
||||
$prezzo_acquisto = '0';
|
||||
|
||||
if (!empty($rs[0]['prc_guadagno'])) {
|
||||
$sconto = $rs[0]['prc_guadagno'];
|
||||
$sconto_unitario = $rs[0]['prc_guadagno'];
|
||||
$tipo_sconto = 'PRC';
|
||||
}
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user