1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-11 16:06:20 +01:00
openstamanager/modules/fatture/crea_documento.php

33 lines
741 B
PHP
Raw Normal View History

<?php
include_once __DIR__.'/../../core.php';
$module = Modules::get($id_module);
2019-02-14 17:49:58 +01:00
$options = [
'op' => 'nota_credito',
'id_importazione' => 'id_documento',
'final_module' => $module['name'],
'original_module' => $module['name'],
'sql' => [
'table' => 'co_documenti',
'rows' => 'co_righe_documenti',
2019-02-14 17:49:58 +01:00
'id_rows' => 'iddocumento',
],
'serials' => [
'id_riga' => 'id_riga_documento',
'condition' => '(1 = 2)',
],
2019-02-14 17:49:58 +01:00
'button' => tr('Aggiungi'),
'dir' => $dir,
'create_document' => true,
'allow-empty' => true,
];
2019-02-14 17:49:58 +01:00
$result = [
'id_record' => $id_record,
'id_documento' => get('iddocumento'),
];
2019-02-14 17:49:58 +01:00
echo App::load('importa.php', $result, $options, true);