mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-02 17:07:01 +01:00
Migliorie grafiche e bugfix minori
This commit is contained in:
parent
83f48d5cff
commit
58e5d760d2
@ -38,17 +38,17 @@ echo '
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
{[ "type": "select", "label": "'.tr('Genitore').'", "name": "parent", "values": '.json_encode($list).' ]}
|
||||
{[ "type": "select", "label": "'.tr('Collega a').'", "name": "parent", "values": '.json_encode($list).' ]}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
{[ "type": "select", "label": "'.tr('Utente').'", "name": "assigned_users", "ajax-source": "utenti", "multiple": 1 ]}
|
||||
{[ "type": "select", "label": "'.tr('Utente assegnato').'", "name": "assigned_users", "ajax-source": "utenti", "multiple": 1 ]}
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
{[ "type": "select", "label": "'.tr('Gruppo').'", "name": "group_id", "values": "query=SELECT id, nome AS text FROM zz_groups" ]}
|
||||
{[ "type": "select", "label": "'.tr('Gruppo assegnato').'", "name": "group_id", "values": "query=SELECT id, nome AS text FROM zz_groups" ]}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -83,7 +83,7 @@ $(document).ready(function() {
|
||||
});
|
||||
|
||||
$("#assigned_users").change(function() {
|
||||
if ($(this).selectData()) {
|
||||
if ($(this).selectData() && $(this).val()!="") {
|
||||
$("#parent").val("").attr("disabled", true).attr("required", false);
|
||||
$("#group_id").val("").attr("disabled", true).attr("required", false);
|
||||
} else {
|
||||
|
@ -40,11 +40,11 @@ echo '
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
{[ "type": "select", "label": "'.tr('Utente').'", "name": "assigned_users", "ajax-source": "utenti", "multiple": 1 ]}
|
||||
{[ "type": "select", "label": "'.tr('Utente assegnato').'", "name": "assigned_users", "ajax-source": "utenti", "multiple": 1 ]}
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
{[ "type": "select", "label": "'.tr('Gruppo').'", "name": "group_id", "values": "query=SELECT id, nome AS text FROM zz_groups" ]}
|
||||
{[ "type": "select", "label": "'.tr('Gruppo assegnato').'", "name": "group_id", "values": "query=SELECT id, nome AS text FROM zz_groups" ]}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -69,7 +69,7 @@ $(document).ready(function() {
|
||||
});
|
||||
|
||||
$("#assigned_users").change(function() {
|
||||
if ($(this).selectData()) {
|
||||
if ($(this).selectData() && $(this).val()!="") {
|
||||
$("#group_id").val("").attr("disabled", true).attr("required", false);
|
||||
} else {
|
||||
$("#group_id").val("").attr("disabled", false).attr("required", true);
|
||||
|
@ -27,7 +27,7 @@ function renderChecklist($check, $level = 0)
|
||||
<input type="checkbox" value="'.(!empty($check->checked_at) ? '1' : '0').'" '.(!empty($check->checked_at) ? 'checked' : '').'>
|
||||
|
||||
<span class="text">'.$check->content.'</span>
|
||||
<span class="badge">'.(!empty($check->checked_at) ? timestampFormat($check->checked_at).' - '.$check->checkUser->username : '').'</span>';
|
||||
<span class="badge pull-right">'.(!empty($check->checked_at) ? 'Verificato da '.$check->checkUser->username.' il '.timestampFormat($check->checked_at) : '').'</span>';
|
||||
|
||||
if ($level == 0) {
|
||||
$result .= '
|
||||
|
@ -30,6 +30,7 @@ echo '
|
||||
<div class="panel panel-primary">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title">'.tr('Registri IVA').'</h3>
|
||||
<br>
|
||||
</div>
|
||||
|
||||
<div class="panel-body">';
|
||||
|
@ -42,11 +42,11 @@ if ($structure->permission == 'rw') {
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<a class="btn btn-sm btn-primary" data-href="'.$checklist_module->fileurl('components/add-check.php').'?id_module='.$id_module.'&id_record='.$id_record.'&id_plugin='.$id_plugin.'&manager_id='.$checks_id.'" data-toggle="tooltip" data-title="'.tr('Aggiungi check').'">
|
||||
<i class="fa fa-plus"></i> '.tr('Check').'
|
||||
<i class="fa fa-plus"></i> '.tr('Nuova').'
|
||||
</a>
|
||||
|
||||
<a class="btn btn-sm btn-primary" data-href="'.$checklist_module->fileurl('components/add-checklist.php').'?id_module='.$id_module.'&id_record='.$id_record.'&id_plugin='.$id_plugin.'&manager_id='.$checks_id.'" data-toggle="tooltip" data-title="'.tr('Aggiungi check').'">
|
||||
<i class="fa fa-plus"></i> '.tr('Checklist').'
|
||||
<i class="fa fa-plus"></i> '.tr('Checklist predefinite').'
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -48,9 +48,9 @@ if (!empty($dettaglio_predefinito)) {
|
||||
}
|
||||
|
||||
echo '
|
||||
<p>'.tr('Informazioni relative al fornitore _NAME_', [
|
||||
<p>'.tr('Informazioni relative al '.($direzione=='entrata' ? 'cliente:' : 'fornitore:').'<br><b><big> _NAME_', [
|
||||
'_NAME_' => $anagrafica->ragione_sociale,
|
||||
]).'.</p>
|
||||
]).'</big></b></p>
|
||||
|
||||
<form action="" method="post">
|
||||
<input type="hidden" name="backto" value="record-edit">
|
||||
@ -63,7 +63,7 @@ echo '
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<p>'.tr('Prezzo unitario predefinito: _TOT_', [
|
||||
<p>'.tr('Prezzo predefinito: _TOT_', [
|
||||
'_TOT_' => moneyFormat($prezzo_predefinito),
|
||||
]).'</p>
|
||||
</div>
|
||||
@ -78,11 +78,11 @@ echo '
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
{[ "type": "number", "label": "'.tr('Prezzo unitario predefinito').'", "name": "prezzo_unitario_fisso", "value": "'.($prezzi_ivati ? $dettaglio_predefinito->prezzo_unitario_ivato : $dettaglio_predefinito->prezzo_unitario).'", "icon-after": "'.currency().'", "help": "'.($prezzi_ivati ? tr('Importo IVA inclusa') : '').'" ]}
|
||||
{[ "type": "number", "label": "'.tr('Prezzo '.($direzione=='entrata' ? 'al cliente' : 'dal fornitore')).'", "name": "prezzo_unitario_fisso", "value": "'.($prezzi_ivati ? $dettaglio_predefinito->prezzo_unitario_ivato : $dettaglio_predefinito->prezzo_unitario).'", "icon-after": "'.currency().'", "help": "'.($prezzi_ivati ? tr('Importo IVA inclusa') : '').'" ]}
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
{[ "type": "number", "label": "'.tr('Sconto predefinito').'", "name": "sconto_percentuale", "value": "'.$dettaglio_predefinito->sconto_percentuale.'", "icon-after": "%"]}
|
||||
{[ "type": "number", "label": "'.tr('Sconto '.($direzione=='entrata' ? 'al cliente' : 'dal fornitore')).'", "name": "sconto_percentuale", "value": "'.$dettaglio_predefinito->sconto_percentuale.'", "icon-after": "%"]}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -40,7 +40,7 @@ echo '
|
||||
<div class="tab-pane active" id="clienti">
|
||||
<div class="box">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">'.tr('Aggiungi informazioni per cliente').'</h3>
|
||||
<h3 class="box-title">'.tr('Informazioni specifiche per cliente').'</h3>
|
||||
</div>
|
||||
|
||||
<div class="box-body">
|
||||
@ -157,7 +157,7 @@ echo '
|
||||
|
||||
<div class="box">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">'.tr('Aggiungi informazioni per fornitore').'</h3>
|
||||
<h3 class="box-title">'.tr('Informazioni specifiche per fornitore').'</h3>
|
||||
</div>
|
||||
|
||||
<div class="box-body">
|
||||
@ -357,7 +357,7 @@ function modificaPrezzi(button) {
|
||||
}
|
||||
|
||||
function gestionePrezzi(id_anagrafica, direzione) {
|
||||
openModal("Modifica dettagli prezzi", "'.$structure->fileurl('dettaglio_prezzi.php').'?id_plugin='.$id_plugin.'&id_module='.$id_module.'&id_parent='.$id_record.'&id_articolo='.$id_record.'&id_anagrafica=" + id_anagrafica + "&direzione=" + direzione);
|
||||
openModal("Gestisci prezzi specifici", "'.$structure->fileurl('dettaglio_prezzi.php').'?id_plugin='.$id_plugin.'&id_module='.$id_module.'&id_parent='.$id_record.'&id_articolo='.$id_record.'&id_anagrafica=" + id_anagrafica + "&direzione=" + direzione);
|
||||
}
|
||||
|
||||
function aggiungiPrezzi(button) {
|
||||
|
@ -47,4 +47,28 @@ ALTER TABLE `or_righe_ordini` CHANGE `descrizione` `descrizione` TEXT NULL;
|
||||
ALTER TABLE `zz_modules` CHANGE `options` `options` TEXT NULL;
|
||||
ALTER TABLE `zz_modules` CHANGE `options2` `options2` TEXT NULL;
|
||||
ALTER TABLE `zz_widgets` CHANGE `query` `query` TEXT NULL;
|
||||
ALTER TABLE `zz_widgets` CHANGE `text` `text` TEXT NULL;
|
||||
ALTER TABLE `zz_widgets` CHANGE `text` `text` TEXT NULL;
|
||||
|
||||
|
||||
|
||||
-- Aggiunto HAVING 2=2 nel modulo listini
|
||||
UPDATE `zz_modules` SET `options` = 'SELECT |select|\r\nFROM mg_prezzi_articoli\r\n INNER JOIN an_anagrafiche ON an_anagrafiche.idanagrafica = mg_prezzi_articoli.id_anagrafica\r\n INNER JOIN mg_articoli ON mg_articoli.id = mg_prezzi_articoli.id_articolo\r\nWHERE 1=1 AND mg_articoli.deleted_at IS NULL AND an_anagrafiche.deleted_at IS NULL HAVING 2=2\r\nORDER BY an_anagrafiche.ragione_sociale' WHERE `zz_modules`.`id` = (SELECT `id` FROM `zz_modules` WHERE `name` = 'Listini');
|
||||
|
||||
-- Aggiunti segmenti nel modulo listini
|
||||
INSERT INTO `zz_segments` (`id_module`, `name`, `clause`, `position`, `pattern`, `note`, `predefined`, `predefined_accredito`, `predefined_addebito`, `is_fiscale`) VALUES
|
||||
((SELECT `id` FROM `zz_modules` WHERE `name` = 'Listini'), 'Tutti', '1=1', 'WHR', '####', '', 1, 0, 0, 0),
|
||||
((SELECT `id` FROM `zz_modules` WHERE `name` = 'Listini'), 'Fornitori', 'mg_prezzi_articoli.dir=\"uscita\"', 'WHR', '####', '', 0, 0, 0, 0),
|
||||
((SELECT `id` FROM `zz_modules` WHERE `name` = 'Listini'), 'Clienti', 'mg_prezzi_articoli.dir=\"entrata\"', 'WHR', '####', '', 0, 0, 0, 0);
|
||||
|
||||
-- Aggiunto formattabile nel modulo listini ai campi numerici
|
||||
UPDATE `zz_views` SET `format` = '1' WHERE `id` = (SELECT `id` FROM `zz_views` WHERE `name` = 'Prezzo unitario');
|
||||
UPDATE `zz_views` SET `format` = '1' WHERE `id` = (SELECT `id` FROM `zz_views` WHERE `name` = 'Sconto percentuale');
|
||||
UPDATE `zz_views` SET `format` = '1' WHERE `id` = (SELECT `id` FROM `zz_views` WHERE `name` = 'Minimo');
|
||||
UPDATE `zz_views` SET `format` = '1' WHERE `id` = (SELECT `id` FROM `zz_views` WHERE `name` = 'Massimo');
|
||||
|
||||
|
||||
-- Sostituito icona Listini con ">"
|
||||
UPDATE `zz_modules` SET `icon` = 'fa fa-angle-right' WHERE `zz_modules`.`id` = (SELECT `id` FROM `zz_modules` WHERE `name` = 'Listini');
|
||||
|
||||
-- Modificato nome plugin dettagli in Prezzi specifici
|
||||
UPDATE `zz_plugins` SET `name` = 'Prezzi specifici articolo', `title` = 'Prezzi specifici' WHERE `zz_plugins`.`id` = (SELECT `id` FROM `zz_plugins` WHERE `name` = 'Dettagli articolo');
|
Loading…
x
Reference in New Issue
Block a user