From 9fba3330ec49350411cfe2e23a4638a5981e8860 Mon Sep 17 00:00:00 2001 From: Luca Date: Thu, 12 Nov 2020 10:13:23 +0100 Subject: [PATCH] Migliorie minori operazioni bulk --- modules/articoli/bulk.php | 2 +- modules/contratti/bulk.php | 6 +++--- modules/ddt/bulk.php | 15 ++++++++++----- modules/interventi/bulk.php | 18 +++++++++--------- modules/preventivi/bulk.php | 6 +++--- 5 files changed, 26 insertions(+), 21 deletions(-) diff --git a/modules/articoli/bulk.php b/modules/articoli/bulk.php index a482883c4..dc860a912 100644 --- a/modules/articoli/bulk.php +++ b/modules/articoli/bulk.php @@ -68,7 +68,7 @@ if (App::debug()) { } $operations['change_acquisto'] = [ - 'text' => tr('Aggiorna prezzo di acquisto'), + 'text' => ' '.tr('Aggiorna prezzo di acquisto').'', 'data' => [ 'title' => tr('Aggiornare il prezzo di acquisto per gli articoli selezionati?'), 'msg' => 'Per indicare uno sconto inserire la percentuale con il segno meno, al contrario per un rincaro inserire la percentuale senza segno.

{[ "type": "number", "label": "'.tr('Percentuale sconto/rincaro').'", "name": "percentuale", "required": 1, "icon-after": "%" ]}', diff --git a/modules/contratti/bulk.php b/modules/contratti/bulk.php index 38a91c449..f05b09c2e 100755 --- a/modules/contratti/bulk.php +++ b/modules/contratti/bulk.php @@ -116,10 +116,10 @@ switch (post('op')) { } $operations['crea_fattura'] = [ - 'text' => tr('Fattura documenti'), + 'text' => ' '.tr('Fattura _TYPE_', [ '_TYPE_' => strtolower($module['name'])]), 'data' => [ - 'title' => tr('Vuoi davvero fatturare questi documenti?'), - 'msg' => '{[ "type": "checkbox", "label": "'.tr('Aggiungere alle fatture esistenti non ancora emesse?').'", "placeholder": "'.tr('Aggiungere alle fatture esistenti non ancora emesse?').'", "name": "accodare" ]}
{[ "type": "select", "label": "'.tr('Sezionale').'", "name": "id_segment", "required": 1, "values": "query=SELECT id, name AS descrizione FROM zz_segments WHERE id_module=\''.$id_fatture.'\' AND is_fiscale = 1 ORDER BY name", "value": "'.$id_segment.'" ]}', + 'title' => tr('Fatturare i _TYPE_ selezionati?', [ '_TYPE_' => strtolower($module['name'])]), + 'msg' => '{[ "type": "checkbox", "label": "'.tr('Aggiungere alle fatture di vendita non ancora emesse?').'", "placeholder": "'.tr('Aggiungere alle fatture esistenti non ancora emesse?').'", "name": "accodare" ]}
{[ "type": "select", "label": "'.tr('Sezionale').'", "name": "id_segment", "required": 1, "values": "query=SELECT id, name AS descrizione FROM zz_segments WHERE id_module=\''.$id_fatture.'\' AND is_fiscale = 1 ORDER BY name", "value": "'.$id_segment.'" ]}', 'button' => tr('Procedi'), 'class' => 'btn btn-lg btn-warning', 'blank' => false, diff --git a/modules/ddt/bulk.php b/modules/ddt/bulk.php index 4ca071bf3..43c138b9b 100755 --- a/modules/ddt/bulk.php +++ b/modules/ddt/bulk.php @@ -137,16 +137,21 @@ switch (post('op')) { } if (App::debug()) { - $operations = [ - 'delete-bulk' => tr('Elimina selezionati'), + $operations['delete-bulk'] = [ + 'text' => ' '.tr('Elimina selezionati').'', + 'data' => [ + 'msg' => tr('Vuoi davvero eliminare i ddt selezionati?'), + 'button' => tr('Procedi'), + 'class' => 'btn btn-lg btn-danger', + ], ]; } $operations['crea_fattura'] = [ - 'text' => tr('Fattura documenti'), + 'text' => ' '.tr('Fattura _TYPE_', [ '_TYPE_' => strtolower($module['name'])]), 'data' => [ - 'title' => tr('Vuoi davvero fatturare questi documenti?'), - 'msg' => '{[ "type": "checkbox", "label": "'.tr('Aggiungere alle fatture esistenti non ancora emesse?').'", "placeholder": "'.tr('Aggiungere alle fatture esistenti non ancora emesse?').'", "name": "accodare" ]} + 'title' => tr('Fatturare i _TYPE_ selezionati?', [ '_TYPE_' => strtolower($module['name'])]), + 'msg' => '{[ "type": "checkbox", "label": "'.tr('Aggiungere alle _TYPE_ non ancora emesse?', [ '_TYPE_' => strtolower($module_fatture) ]).'", "placeholder": "'.tr('Aggiungere alle _TYPE_ nello stato bozza?', [ '_TYPE_' => strtolower($module_fatture) ]).'", "name": "accodare" ]}
{[ "type": "select", "label": "'.tr('Sezionale').'", "name": "id_segment", "required": 1, "values": "query=SELECT id, name AS descrizione FROM zz_segments WHERE id_module=\''.$id_fatture.'\' AND is_fiscale = 1 ORDER BY name", "value": "'.$id_segment.'" ]}', 'button' => tr('Procedi'), 'class' => 'btn btn-lg btn-warning', diff --git a/modules/interventi/bulk.php b/modules/interventi/bulk.php index aebc0149c..f4c46634a 100755 --- a/modules/interventi/bulk.php +++ b/modules/interventi/bulk.php @@ -229,21 +229,21 @@ return [ 'export-bulk' => [ 'text' => ' '.tr('Esporta stampe'), 'data' => [ - 'title' => tr('Vuoi davvero esportare queste stampe in un archivio?'), + 'title' => tr('Vuoi davvero esportare queste stampe in un archivio ZIP?'), 'msg' => '', - 'button' => tr('Crea archivio'), + 'button' => tr('Procedi'), 'class' => 'btn btn-lg btn-warning', 'blank' => true, ], ], 'crea_fattura' => [ - 'text' => ' '.tr('Fattura documenti'), + 'text' => ' '.tr('Fattura _TYPE_', [ '_TYPE_' => strtolower($module['name'])]), 'data' => [ - 'title' => tr('Vuoi davvero generare le fatture per questi interventi?'), - 'msg' => tr('Verranno fatturati gli interventi completati non inseriti in preventivi e contratti').'.
{[ "type": "checkbox", "placeholder": "'.tr('Aggiungere alle fatture esistenti non ancora emesse?').'", "name": "accodare" ]} -
{[ "type": "select", "label": "'.tr('Sezionale').'", "name": "id_segment", "required": 1, "values": "query=SELECT id, name AS descrizione FROM zz_segments WHERE id_module=\''.$id_fatture.'\' AND is_fiscale = 1 ORDER BY name", "value": "'.$id_segment.'" ]}', - 'button' => tr('Crea fatture'), + 'title' => tr('Fatturare gli _TYPE_ selezionati?', [ '_TYPE_' => strtolower($module['name'])]).' ', + 'msg' =>'{[ "type": "checkbox", "label": "'.tr('Aggiungere alle fatture di vendita non ancora emesse?').'", "placeholder": "'.tr('Aggiungere alle fatture di vendita nello stato bozza?').'", "name": "accodare" ]}
+ {[ "type": "select", "label": "'.tr('Sezionale').'", "name": "id_segment", "required": 1, "values": "query=SELECT id, name AS descrizione FROM zz_segments WHERE id_module=\''.$id_fatture.'\' AND is_fiscale = 1 ORDER BY name", "value": "'.$id_segment.'" ]}', + 'button' => tr('Procedi'), 'class' => 'btn btn-lg btn-warning', 'blank' => false, ], @@ -255,7 +255,7 @@ return [ 'title' => tr('Vuoi davvero cambinare le stato per questi interventi?'), 'msg' => tr('Seleziona lo stato in cui spostare tutti gli interventi non completati').'.

{[ "type": "select", "label": "'.tr('Stato').'", "name": "id_stato", "required": 1, "values": "query=SELECT idstatointervento AS id, descrizione, colore AS _bgcolor_ FROM in_statiintervento WHERE deleted_at IS NULL" ]}', - 'button' => tr('Sposta'), + 'button' => tr('Procedi'), 'class' => 'btn btn-lg btn-warning', 'blank' => false, ], @@ -269,7 +269,7 @@ return [
{[ "type": "select", "label": "'.tr('Stato').'", "name": "idstatointervento", "required": 1, "values": "query=SELECT idstatointervento AS id, descrizione, colore AS _bgcolor_ FROM in_statiintervento WHERE deleted_at IS NULL", "value": "" ]}
{[ "type":"checkbox", "label":"'.tr('Duplica righe').'", "name":"righe", "value":"" ]}
{[ "type":"checkbox", "label":"'.tr('Duplica sessioni').'", "name":"sessioni", "value":"" ]}', - 'button' => tr('Duplica attività'), + 'button' => tr('Procedi'), 'class' => 'btn btn-lg btn-warning', 'blank' => false, ], diff --git a/modules/preventivi/bulk.php b/modules/preventivi/bulk.php index e6ff6ec7a..9397652a4 100755 --- a/modules/preventivi/bulk.php +++ b/modules/preventivi/bulk.php @@ -116,10 +116,10 @@ switch (post('op')) { } $operations['crea_fattura'] = [ - 'text' => ' '.tr('Fattura documenti'), + 'text' => ' '.tr('Fattura _TYPE_', [ '_TYPE_' => strtolower($module['name'])]), 'data' => [ - 'title' => tr('Vuoi davvero fatturare questi documenti?'), - 'msg' => '{[ "type": "checkbox", "label": "'.tr('Aggiungere alle fatture esistenti non ancora emesse?').'", "placeholder": "'.tr('Aggiungere alle fatture di vendita nello stato bozza?').'", "name": "accodare" ]}
{[ "type": "select", "label": "'.tr('Sezionale').'", "name": "id_segment", "required": 1, "values": "query=SELECT id, name AS descrizione FROM zz_segments WHERE id_module=\''.$id_fatture.'\' AND is_fiscale = 1 ORDER BY name", "value": "'.$id_segment.'" ]}', + 'title' => tr('Fatturare i _TYPE_ selezionati?', [ '_TYPE_' => strtolower($module['name'])]), + 'msg' => '{[ "type": "checkbox", "label": "'.tr('Aggiungere alle fatture di vendita non ancora emesse?').'", "placeholder": "'.tr('Aggiungere alle fatture di vendita nello stato bozza?').'", "name": "accodare" ]}
{[ "type": "select", "label": "'.tr('Sezionale').'", "name": "id_segment", "required": 1, "values": "query=SELECT id, name AS descrizione FROM zz_segments WHERE id_module=\''.$id_fatture.'\' AND is_fiscale = 1 ORDER BY name", "value": "'.$id_segment.'" ]}', 'button' => tr('Procedi'), 'class' => 'btn btn-lg btn-warning', 'blank' => false,