mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-16 19:40:44 +01:00
Fix pagamento default in creazione documento
This commit is contained in:
parent
8cc6b0e8e8
commit
bdca50707a
@ -690,7 +690,12 @@ switch (post('op')) {
|
||||
|
||||
$fattura = Fattura::build($documento->anagrafica, $tipo, post('data'), post('id_segment'));
|
||||
|
||||
$fattura->idpagamento = $documento->idpagamento;
|
||||
if(!empty($documento->idpagamento)){
|
||||
$fattura->idpagamento = $documento->idpagamento;
|
||||
}else{
|
||||
$fattura->idpagamento = setting('Tipo di pagamento predefinito');
|
||||
}
|
||||
|
||||
$fattura->idsede_destinazione = $documento->idsede;
|
||||
$fattura->id_ritenuta_contributi = post('id_ritenuta_contributi') ?: null;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user