1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-19 20:00:29 +01:00
openstamanager/modules/fatture/crea_documento.php
2020-02-14 17:02:16 +01:00

20 lines
404 B
PHP
Executable File

<?php
include_once __DIR__.'/../../core.php';
use Modules\Fatture\Fattura;
$documento = Fattura::find($id_record);
$options = [
'type' => 'nota_credito',
'op' => 'nota_credito',
'module' => 'Fatture di vendita',
'documento' => $documento,
'button' => tr('Aggiungi'),
'create_document' => true,
'allow-empty' => true,
];
echo App::load('importa.php', [], $options, true);