1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-02-09 08:08:39 +01:00

Eccezzione elaborazione della ricevuta nel caso il nuovo codice della ricevuta sia NE

This commit is contained in:
Luca 2019-05-24 16:31:00 +02:00
parent e74f5b294a
commit c18339d549
2 changed files with 9 additions and 8 deletions

View File

@ -457,7 +457,7 @@ if ($vista == 'mese') {
$(this).parent().parent().find('li input[type=checkbox]').each(function(i) { // loop through each checkbox $(this).parent().parent().find('li input[type=checkbox]').each(function(i) { // loop through each checkbox
this.checked = true; this.checked = true;
$.when (session_set_array( 'dashboard,idzone', this.value, 0 )).promise().then(function() { $.when (session_set_array( 'dashboard,idzone', this.value, 0 )).promise().then(function() {
$('#calendar').fullCalendar('refetchEvents'); $('#calendar').fullCalendar('refetchEvents');
}); });
@ -473,7 +473,7 @@ if ($vista == 'mese') {
$(this).parent().parent().find('li input[type=checkbox]').each(function() { // loop through each checkbox $(this).parent().parent().find('li input[type=checkbox]').each(function() { // loop through each checkbox
this.checked = false; this.checked = false;
$.when (session_set_array( 'dashboard,idstatiintervento', this.value, 1 )).promise().then(function() { $.when (session_set_array( 'dashboard,idstatiintervento', this.value, 1 )).promise().then(function() {
$('#calendar').fullCalendar('refetchEvents'); $('#calendar').fullCalendar('refetchEvents');
}); });
@ -487,7 +487,7 @@ if ($vista == 'mese') {
$(this).parent().parent().find('li input[type=checkbox]').each(function() { // loop through each checkbox $(this).parent().parent().find('li input[type=checkbox]').each(function() { // loop through each checkbox
this.checked = false; this.checked = false;
$.when (session_set_array( 'dashboard,idtipiintervento', this.value, 1 )).promise().then(function() { $.when (session_set_array( 'dashboard,idtipiintervento', this.value, 1 )).promise().then(function() {
$('#calendar').fullCalendar('refetchEvents'); $('#calendar').fullCalendar('refetchEvents');
}); });
@ -502,7 +502,7 @@ if ($vista == 'mese') {
$(this).parent().parent().find('li input[type=checkbox]').each(function() { // loop through each checkbox $(this).parent().parent().find('li input[type=checkbox]').each(function() { // loop through each checkbox
this.checked = false; this.checked = false;
$.when (session_set_array( 'dashboard,idtecnici', this.value, 1 )).promise().then(function() { $.when (session_set_array( 'dashboard,idtecnici', this.value, 1 )).promise().then(function() {
$('#calendar').fullCalendar('refetchEvents'); $('#calendar').fullCalendar('refetchEvents');
}); });

View File

@ -108,10 +108,11 @@ class Ricevuta
$fattura = $this->getFattura(); $fattura = $this->getFattura();
// Modifica lo stato solo se la fattura non è già stata consegnata (per evitare problemi da doppi invii) // Modifica lo stato solo se la fattura non è già stata consegnata (per evitare problemi da doppi invii)
// In realtà per le PA potrebbe esserci lo stato NE (che può essere positiva o negativa) successivo alla RC // In realtà per le PA potrebbe esserci lo stato NE (che può essere positiva o negativa) successivo alla RC,
//if ($fattura->codice_stato_fe == 'RC') { // quindi aggiungo eccezzione nel caso il nuovo codice della ricevuta sia NE
//return; if ($fattura->codice_stato_fe == 'RC' AND $codice != 'NE' ) {
//} return;
}
// Processo la ricevuta e salvo data ricezione, codice e messaggio // Processo la ricevuta e salvo data ricezione, codice e messaggio
$descrizione = $this->xml['Destinatario']['Descrizione']; $descrizione = $this->xml['Destinatario']['Descrizione'];