1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-18 19:23:10 +01:00
openstamanager/modules/contratti/crea_documento.php

19 lines
381 B
PHP

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