+
{[ "type": "number", "label": "", "name": "qta", "required": 1, "value": "$qta$", "readonly": 1, "decimals": "qta", "min-value": "undefined" ]}
@@ -93,10 +93,13 @@ $_SESSION['superselect']['id_categoria'] = $record['id_categoria'];
{[ "type": "checkbox", "label": "", "name": "abilita_serial", "value": "$abilita_serial$", "help": "", "placeholder": "", "extra": " 0) ? 'readonly' : ''; ?>" ]}
+
{[ "type": "checkbox", "label": "", "name": "attivo", "help": "", "value": "$attivo$", "placeholder": "" ]}
+
+ {[ "type": "text", "label": "", "name": "ubicazione", "value": "$ubicazione$" ]}
+
diff --git a/modules/articoli/import.php b/modules/articoli/import.php
index c78d2a8ea..c337c34e5 100644
--- a/modules/articoli/import.php
+++ b/modules/articoli/import.php
@@ -8,8 +8,8 @@ switch (post('op')) {
$module = filter('module');
$list = [
- ['Codice', 'Descrizione', 'Quantità', 'Unità di misura', 'Prezzo acquisto', 'Prezzo vendita', 'Peso lordo (KG)', 'Volume (M3)', 'Categoria', 'Note'],
- ['00004', 'Articolo', '10', 'Kg', '5,25', '12,72', '10,2', '500', 'Categoria4', 'Articolo di prova'],
+ ['Codice', 'Descrizione', 'Quantità', 'Unità di misura', 'Prezzo acquisto', 'Prezzo vendita', 'Peso lordo (KG)', 'Volume (M3)', 'Categoria', 'Ubicazione', 'Note'],
+ ['00004', 'Articolo', '10', 'Kg', '5,25', '12,72', '10,2', '500', 'Categoria4', 'Scaffale 1', 'Articolo di prova'],
];
directory('../../files/'.$module);
@@ -185,6 +185,10 @@ return [
'idiva_vendita',
],
],
+ [
+ 'field' => 'ubicazione',
+ 'label' => 'Ubicazione',
+ ],
[
'field' => 'note',
'label' => 'Note',
diff --git a/modules/fatture/actions.php b/modules/fatture/actions.php
index 600709ac6..49841b0af 100644
--- a/modules/fatture/actions.php
+++ b/modules/fatture/actions.php
@@ -118,31 +118,31 @@ switch (post('op')) {
if ($stato_fe && empty($checks)) {
try {
$fattura_pa = new FatturaElettronica($id_record);
- $file = $fattura_pa->save(DOCROOT . '/' . FatturaElettronica::getDirectory());
+ $file = $fattura_pa->save(DOCROOT.'/'.FatturaElettronica::getDirectory());
flash()->info(tr('Fattura elettronica generata correttamente!'));
if (!$fattura_pa->isValid()) {
$errors = $fattura_pa->getErrors();
- flash()->warning(tr('La fattura elettronica potrebbe avere delle irregolarità!') . ' ' . tr('Controllare i seguenti campi: _LIST_', [
+ flash()->warning(tr('La fattura elettronica potrebbe avere delle irregolarità!').' '.tr('Controllare i seguenti campi: _LIST_', [
'_LIST_' => implode(', ', $errors),
- ]) . '.');
+ ]).'.');
}
} catch (UnexpectedValueException $e) {
}
} elseif (!empty($checks)) {
- $message = tr('La fattura elettronica non è stata generata a causa di alcune informazioni mancanti') . ':';
+ $message = tr('La fattura elettronica non è stata generata a causa di alcune informazioni mancanti').':';
foreach ($checks as $check) {
$message .= '
-
' . $check['name'] . ' ' . $check['link'] . '
+
'.$check['name'].' '.$check['link'].'
';
foreach ($check['errors'] as $error) {
if (!empty($error)) {
$message .= '
- - ' . $error . '
';
+ - '.$error.'
';
}
}
@@ -154,7 +154,6 @@ switch (post('op')) {
}
}
-
aggiorna_sedi_movimenti('documenti', $id_record);
flash()->info(tr('Fattura modificata correttamente!'));
diff --git a/update/2_4_12.sql b/update/2_4_12.sql
index a3cc15956..d35cfee31 100644
--- a/update/2_4_12.sql
+++ b/update/2_4_12.sql
@@ -27,4 +27,6 @@ UPDATE `zz_prints` SET `title` = 'Contratto (senza prezzi)' WHERE `name` = 'Cont
UPDATE `zz_prints` SET `title` = 'Consuntivo contratto (senza prezzi)' WHERE `name` = 'Consuntivo contratto (senza costi)';
UPDATE `zz_prints` SET `title` = 'Ordine cliente (senza prezzi)' WHERE `name` = 'Ordine cliente (senza costi)';
UPDATE `zz_prints` SET `title` = 'Ordine fornitore (senza prezzi)' WHERE `name` = 'Ordine fornitore (senza costi)';
-UPDATE `zz_prints` SET `title` = 'Ddt di vendita (senza prezzi)' WHERE `name` = 'Ddt di vendita (senza costi)';
\ No newline at end of file
+UPDATE `zz_prints` SET `title` = 'Ddt di vendita (senza prezzi)' WHERE `name` = 'Ddt di vendita (senza costi)';
+-- Aggiunta campo "Ubicazione" per gli articoli
+ALTER TABLE `mg_articoli` ADD `ubicazione` VARCHAR(255) NOT NULL AFTER `threshold_qta`;