mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-18 12:30:35 +01:00
In fase di duplicazione di una fattura non deve essere calcolato il numero progressivo
This commit is contained in:
parent
460030b99f
commit
90a09c7869
@ -304,9 +304,13 @@ switch (post('op')) {
|
|||||||
|
|
||||||
$new = $fattura->replicate();
|
$new = $fattura->replicate();
|
||||||
$new->numero = Fattura::getNextNumero($new->data, $new->direzione, $new->id_segment);
|
$new->numero = Fattura::getNextNumero($new->data, $new->direzione, $new->id_segment);
|
||||||
if (!empty($fattura->numero_esterno)) {
|
//if (!empty($fattura->numero_esterno)) {
|
||||||
$new->numero_esterno = Fattura::getNextNumeroSecondario($new->data, $new->direzione, $new->id_segment);
|
//$new->numero_esterno = Fattura::getNextNumeroSecondario($new->data, $new->direzione, $new->id_segment);
|
||||||
}
|
//}
|
||||||
|
|
||||||
|
// In fase di duplicazione di una fattura non deve essere calcolato il numero progressivo ma questo deve
|
||||||
|
// essere generato in fase di emissione della stessa.
|
||||||
|
$new->numero_esterno = '';
|
||||||
|
|
||||||
$new->codice_stato_fe = null;
|
$new->codice_stato_fe = null;
|
||||||
$new->progressivo_invio = null;
|
$new->progressivo_invio = null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user