mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-02 17:07:01 +01:00
Eccezzione elaborazione della ricevuta nel caso il nuovo codice della ricevuta sia NE
This commit is contained in:
parent
e74f5b294a
commit
c18339d549
@ -457,7 +457,7 @@ if ($vista == 'mese') {
|
||||
|
||||
$(this).parent().parent().find('li input[type=checkbox]').each(function(i) { // loop through each checkbox
|
||||
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');
|
||||
});
|
||||
|
||||
@ -473,7 +473,7 @@ if ($vista == 'mese') {
|
||||
|
||||
$(this).parent().parent().find('li input[type=checkbox]').each(function() { // loop through each checkbox
|
||||
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');
|
||||
});
|
||||
|
||||
@ -487,7 +487,7 @@ if ($vista == 'mese') {
|
||||
|
||||
$(this).parent().parent().find('li input[type=checkbox]').each(function() { // loop through each checkbox
|
||||
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');
|
||||
});
|
||||
|
||||
@ -502,7 +502,7 @@ if ($vista == 'mese') {
|
||||
|
||||
$(this).parent().parent().find('li input[type=checkbox]').each(function() { // loop through each checkbox
|
||||
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');
|
||||
});
|
||||
|
||||
|
@ -108,10 +108,11 @@ class Ricevuta
|
||||
$fattura = $this->getFattura();
|
||||
|
||||
// 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
|
||||
//if ($fattura->codice_stato_fe == 'RC') {
|
||||
//return;
|
||||
//}
|
||||
// In realtà per le PA potrebbe esserci lo stato NE (che può essere positiva o negativa) successivo alla RC,
|
||||
// quindi aggiungo eccezzione nel caso il nuovo codice della ricevuta sia NE
|
||||
if ($fattura->codice_stato_fe == 'RC' AND $codice != 'NE' ) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Processo la ricevuta e salvo data ricezione, codice e messaggio
|
||||
$descrizione = $this->xml['Destinatario']['Descrizione'];
|
||||
|
Loading…
x
Reference in New Issue
Block a user