mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-02 17:07:01 +01:00
Fix creazione nota di credito da ddt
This commit is contained in:
parent
b8c8c1539f
commit
c3f2569378
@ -20,19 +20,14 @@
|
||||
include_once __DIR__.'/../../core.php';
|
||||
|
||||
use Modules\DDT\DDT;
|
||||
use Modules\Fatture\Fattura;
|
||||
|
||||
$documento = DDT::find($id_record);
|
||||
$tipo_documento_finale = Fattura::class;
|
||||
|
||||
$module = Modules::get($id_module);
|
||||
if ($documento->reversed) {
|
||||
if ($module['name'] == 'Ddt di vendita') {
|
||||
$final_module = 'Fatture di acquisto';
|
||||
$dir = 'uscita';
|
||||
} else {
|
||||
$final_module = 'Fatture di vendita';
|
||||
$dir = 'entrata';
|
||||
}
|
||||
} elseif ($module['name'] == 'Ddt di vendita') {
|
||||
|
||||
if ($module['name'] == 'Ddt di vendita') {
|
||||
$final_module = 'Fatture di vendita';
|
||||
$dir = 'entrata';
|
||||
} else {
|
||||
|
@ -752,7 +752,7 @@ switch (post('op')) {
|
||||
|
||||
// Messaggio informativo
|
||||
$message = tr('_DOC_ aggiunto!', [
|
||||
'_DOC_' => $documento->getReference(),
|
||||
'_DOC_' => $fattura->getReference(),
|
||||
]);
|
||||
flash()->info($message);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user