mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-16 19:40:44 +01:00
Rimozione informazioni di debug
This commit is contained in:
parent
d7c38aeefd
commit
fbd053c39b
@ -37,8 +37,6 @@ function get_new_numerosecondariofattura($data)
|
||||
|
||||
$anno = substr( $data, 0, 4);
|
||||
|
||||
|
||||
|
||||
$query = "SELECT numero_esterno FROM co_documenti WHERE DATE_FORMAT(data,'%Y')='".$anno."' AND id_sezionale='".$idsezionale."' ";
|
||||
// Marzo 2017
|
||||
// nel caso ci fossero lettere prima della maschera ### per il numero (es. FT-0001-2017)
|
||||
@ -53,17 +51,11 @@ function get_new_numerosecondariofattura($data)
|
||||
|
||||
$rs_ultima_fattura = $dbo->fetchArray( $query );
|
||||
|
||||
|
||||
|
||||
$numero_esterno = get_next_code( $rs_ultima_fattura[0]['numero_esterno'], 1, $maschera );
|
||||
|
||||
echo $numero_esterno;
|
||||
exit();
|
||||
|
||||
// sostituisco anno nella maschera
|
||||
$anno = substr( $anno, -strlen($m2[0]) ); // nel caso ci fosse YY
|
||||
$numero_esterno = str_replace( $m2[0], $anno, $numero_esterno );
|
||||
|
||||
|
||||
return $numero_esterno;
|
||||
}
|
||||
|
@ -176,7 +176,7 @@ echo '
|
||||
<input type="hidden" name="backto" value="record-edit">
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-md-6">
|
||||
{[ "type": "select", "name": "matricole[]", "multiple": 1, "value": "'.implode(',', $impianti).'", "values": "query=SELECT my_impianti.id, CONCAT(matricola, \' - \', nome) AS descrizione, CONCAT(nomesede, IF(my_impianti.citta IS NULL OR my_impianti.citta = \'\', \'\', CONCAT(\' (\', my_impianti.citta, \')\'))) AS optgroup FROM my_impianti JOIN (SELECT id, nomesede, citta FROM an_sedi UNION SELECT 0, \'Sede legale\', \'\') AS t ON t.id = my_impianti.idsede WHERE idanagrafica='.prepare($records[0]['idanagrafica']).' ORDER BY idsede ASC, matricola ASC", "extra": "'.$readonly.'" ]}
|
||||
{[ "type": "select", "name": "matricole[]", "multiple": 1, "value": "'.implode(',', $impianti).'", "values": "query=SELECT my_impianti.id, CONCAT(matricola, \' - \', nome) AS descrizione, CONCAT(nomesede, IF(citta IS NULL OR citta = \'\', \'\', CONCAT(\' (\', citta, \')\'))) AS optgroup FROM my_impianti JOIN (SELECT id, nomesede, citta FROM an_sedi UNION SELECT 0, \'Sede legale\', \'\') AS t ON t.id = my_impianti.idsede WHERE idanagrafica='.prepare($records[0]['idanagrafica']).' ORDER BY idsede ASC, matricola ASC", "extra": "'.$readonly.'" ]}
|
||||
</div>
|
||||
</div>
|
||||
<br><br>
|
||||
|
Loading…
x
Reference in New Issue
Block a user