mirror of
https://github.com/devcode-it/openstamanager.git
synced 2024-12-26 07:44:02 +01:00
28 lines
623 B
PHP
28 lines
623 B
PHP
<?php
|
|
|
|
include_once __DIR__.'/../../core.php';
|
|
|
|
$module = Modules::get($id_module);
|
|
|
|
$options = [
|
|
'op' => 'add_contratto',
|
|
'id_importazione' => 'id_contratto',
|
|
'final_module' => 'Fatture di vendita',
|
|
'original_module' => $module['name'],
|
|
'sql' => [
|
|
'table' => 'co_contratti',
|
|
'rows' => 'co_righe_contratti',
|
|
'id_rows' => 'idcontratto',
|
|
],
|
|
'button' => tr('Aggiungi'),
|
|
'dir' => 'entrata',
|
|
'create_document' => true,
|
|
];
|
|
|
|
$result = [
|
|
'id_record' => $id_record,
|
|
'id_documento' => get('iddocumento'),
|
|
];
|
|
|
|
echo App::load('importa.php', $result, $options, true);
|