1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-06-05 22:09:38 +02:00

Miglioramento della gestione delle referenze eliminate

This commit is contained in:
Thomas Zilio
2017-09-15 15:03:27 +02:00
parent fa1dcef03c
commit 20b9869d64
9 changed files with 46 additions and 62 deletions

View File

@@ -15,7 +15,7 @@ $numero = !empty($records[0]['numero_esterno']) ? $records[0]['numero_esterno']
if (empty($records[0]['numero_esterno'])) {
$numero = 'pro-forma '.$numero;
$tipo_doc = 'DDT PRO-FORMA';
$tipo_doc = tr('Ddt pro-forma', [], ['upper' => true]);
}
// Leggo i dati della destinazione (se 0=sede legale, se!=altra sede da leggere da tabella an_sedi)
@@ -42,7 +42,7 @@ if (!empty($records[0]['idsede'])) {
// Sostituzioni specifiche
$custom = [
'tipo_doc' => strtoupper($tipo_doc),
'tipo_doc' => $tipo_doc,
'numero_doc' => $numero,
'data' => Translator::dateToLocale($records[0]['data']),
'pagamento' => $records[0]['tipo_pagamento'],

View File

@@ -19,7 +19,7 @@ $tipo_doc = $records[0]['tipo_doc'];
if ($records[0]['stato_doc'] != 'Bozza') {
$numero = !empty($records[0]['numero_esterno']) ? $records[0]['numero_esterno'] : $records[0]['numero'];
} else {
$tipo_doc = 'Fattura pro forma';
$tipo_doc = tr('Fattura pro forma');
$numero = 'PRO-'.$records[0]['numero'];
}
@@ -47,7 +47,7 @@ if (!empty($records[0]['idsede'])) {
// Sostituzioni specifiche
$custom = [
'tipo_doc' => strtoupper($tipo_doc),
'tipo_doc' => Stringy\Stringy::create($tipo_doc)->toUpperCase(),
'numero_doc' => $numero,
'data' => Translator::dateToLocale($records[0]['data']),
'pagamento' => $records[0]['tipo_pagamento'],

View File

@@ -15,7 +15,6 @@ $numero = !empty($records[0]['numero_esterno']) ?$records[0]['numero_esterno'] :
// Sostituzioni specifiche
$custom = [
'tipo_doc' => strtoupper($records[0]['tipo_doc']),
'numero_doc' => $numero,
'data' => Translator::dateToLocale($records[0]['data']),
'pagamento' => $records[0]['tipo_pagamento'],