diff --git a/modules/fatture/edit.php b/modules/fatture/edit.php
index 99f422482..473cf7fab 100644
--- a/modules/fatture/edit.php
+++ b/modules/fatture/edit.php
@@ -117,8 +117,21 @@ if (empty($record['is_fiscale'])) {
- {[ "type": "date", "label": "", "name": "data_competenza", "required": 0, "value": "$data_competenza$" ]}
+ {[ "type": "date", "label": "", "name": "data_competenza", "required": 0, "value": "$data_competenza$", "min-date": "$data_registrazione$" ]}
+
+
diff --git a/plugins/importFE/actions.php b/plugins/importFE/actions.php
index d9d1a83a8..9e27ce6a4 100644
--- a/plugins/importFE/actions.php
+++ b/plugins/importFE/actions.php
@@ -5,6 +5,7 @@ include_once __DIR__.'/../../core.php';
use Plugins\ImportFE\FatturaElettronica;
use Plugins\ImportFE\Interaction;
+$file = null;
switch (filter('op')) {
case 'save':
$content = file_get_contents($_FILES['blob']['tmp_name']);
@@ -13,7 +14,7 @@ switch (filter('op')) {
// no break
case 'prepare':
if (!isset($file)) {
- $name = get('name');
+ $name = filter('name');
$file = Interaction::getImportXML($name);
}
diff --git a/plugins/importFE/list.php b/plugins/importFE/list.php
index 4f98bba67..cd70702d4 100644
--- a/plugins/importFE/list.php
+++ b/plugins/importFE/list.php
@@ -19,6 +19,7 @@ if (!empty($list)) {
'.tr('Descrizione').' |
'.tr('Fornitore').' |
+ '.tr('Data di registrazione').' |
'.tr('Totale imponibile').' |
# |
@@ -27,15 +28,18 @@ if (!empty($list)) {
foreach ($list as $element) {
$name = $element['name'];
+ $data = $element['date_sent'] ?: '';
echo '
';
+
if (file_exists($directory.'/'.$name)) {
echo '
'.$name.'
|
+ - |
- |
- |
@@ -76,6 +80,7 @@ if (!empty($list)) {
'.$element['sender'].' |
+ '.dateFormat($element['date_sent']).' |
'.moneyFormat($element['amount']).' |
@@ -86,7 +91,7 @@ if (!empty($list)) {
echo '
- |
@@ -103,7 +108,7 @@ if (!empty($list)) {
echo '