mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-07 11:13:44 +01:00
Per elenco coda di invio aggiungo colonna Modulo (legata al template) e Destinatario
MIgliorie varie
This commit is contained in:
parent
6960e1a0b2
commit
4de46dfe34
@ -14,8 +14,6 @@ if ($options['dir'] == 'entrata') {
|
||||
$show_ritenuta_acconto = 1;
|
||||
}
|
||||
|
||||
$show_calcolo_ritenuta_acconto = $show_ritenuta_acconto;
|
||||
|
||||
// Percentuale rivalsa e Percentuale ritenuta d'acconto
|
||||
if ($options['action'] == 'edit') {
|
||||
$id_rivalsa_inps = $result['idrivalsainps'];
|
||||
@ -60,7 +58,7 @@ if ($show_rivalsa == 1 || $show_ritenuta_acconto == 1) {
|
||||
}
|
||||
|
||||
// Calcola ritenuta d'acconto su
|
||||
if ($show_calcolo_ritenuta_acconto == 1) {
|
||||
if ($show_ritenuta_acconto == 1) {
|
||||
echo '
|
||||
<div class="col-md-4">
|
||||
{[ "type": "select", "label": "'.tr("Calcola ritenuta d'acconto su").'", "name": "calcolo_ritenuta_acconto", "value": "'.$calcolo_ritenuta_acconto.'", "values": "list=\"IMP\":\"Imponibile\", \"IMP+RIV\":\"Imponibile + rivalsa\"", "required": "1" ]}
|
||||
|
@ -93,8 +93,8 @@ switch (post('op')) {
|
||||
if (!empty($idanagrafica)) {
|
||||
$array = explode(',', $idanagrafica);
|
||||
foreach ($array as $value) {
|
||||
flash()->warning(tr('Attenzione: il codice fiscale _COD_ è già stato censito _LINK_', [
|
||||
'_COD_' => post('codice_fiscale'),
|
||||
flash()->warning(tr('Attenzione: il codice fiscale _COD_ è già stato censito. _LINK_', [
|
||||
'_COD_' => '<b>'.post('codice_fiscale').'</b>',
|
||||
'_LINK_' => Modules::link('Anagrafiche', $value, null, null, ''),
|
||||
]));
|
||||
}
|
||||
@ -136,7 +136,7 @@ switch (post('op')) {
|
||||
|
||||
$check_vat_number = Validate::isValidVatNumber($partita_iva);
|
||||
if (empty($check_vat_number['valid-format'])) {
|
||||
flash()->warning(tr('Attenzione: la partita IVA _IVA_ potrebbe non essere valida', [
|
||||
flash()->warning(tr('Attenzione: la partita IVA _IVA_ potrebbe non essere valida.', [
|
||||
'_IVA_' => $partita_iva,
|
||||
]));
|
||||
}
|
||||
@ -145,7 +145,7 @@ switch (post('op')) {
|
||||
if ($anagrafica->tipo != 'Ente pubblico' and $anagrafica->codice_fiscale != $anagrafica->partita_iva) {
|
||||
$check_codice_fiscale = Validate::isValidTaxCode($anagrafica->codice_fiscale);
|
||||
if (empty($check_codice_fiscale)) {
|
||||
flash()->warning(tr('Attenzione: il codice fiscale _COD_ potrebbe non essere valido', [
|
||||
flash()->warning(tr('Attenzione: il codice fiscale _COD_ potrebbe non essere valido.', [
|
||||
'_COD_' => $anagrafica->codice_fiscale,
|
||||
]));
|
||||
}
|
||||
@ -183,7 +183,7 @@ switch (post('op')) {
|
||||
$array = explode(',', $idanagrafica);
|
||||
foreach ($array as $value) {
|
||||
flash()->warning(tr('Attenzione: il codice fiscale _COD_ è già stato censito. _LINK_', [
|
||||
'_COD_' => post('codice_fiscale'),
|
||||
'_COD_' => '<b>'.post('codice_fiscale').'</b>',
|
||||
'_LINK_' => Modules::link('Anagrafiche', $value, null, null, ''),
|
||||
]));
|
||||
}
|
||||
|
@ -13,6 +13,17 @@ if (!empty($google)) {
|
||||
<script src="//maps.googleapis.com/maps/api/js?libraries=places&key='.$google.'"></script>';
|
||||
}
|
||||
|
||||
if (!$is_cliente && !$is_fornitore && $is_tecnico) {
|
||||
$ignore = $dbo->fetchArray("SELECT id FROM zz_plugins WHERE name='Sedi' OR name='Referenti' OR name='Dichiarazioni d\'intento'");
|
||||
|
||||
foreach ($ignore as $plugin) {
|
||||
echo '
|
||||
<script>
|
||||
$("#link-tab_'.$plugin['id'].'").addClass("disabled");
|
||||
</script>';
|
||||
}
|
||||
}
|
||||
|
||||
if (!$is_cliente) {
|
||||
$ignore = $dbo->fetchArray("SELECT id FROM zz_plugins WHERE name='Impianti del cliente' OR name='Ddt del cliente'");
|
||||
|
||||
|
@ -38,6 +38,12 @@ echo '
|
||||
</div>
|
||||
</div>';
|
||||
|
||||
echo '
|
||||
<h4>'.tr('Account mittente').'</h4>
|
||||
<div class="well">
|
||||
'.$mail->template->account->from_name.' <'.$mail->template->account->from_address.'> - '.Modules::link('Account email', $mail->template->account->id, $mail->template->account->name).'
|
||||
</div>';
|
||||
|
||||
echo '
|
||||
<h4>'.tr('Oggetto').'</h4>
|
||||
<div class="well">
|
||||
|
@ -116,6 +116,11 @@ UPDATE `zz_widgets` SET `query` = 'SELECT COUNT(id) AS dato,
|
||||
FROM co_contratti WHERE idstato IN (SELECT id FROM co_staticontratti WHERE is_fatturabile = 1) AND rinnovabile = 1 AND YEAR(data_conclusione) > 1970 AND (SELECT id FROM co_contratti contratti WHERE contratti.idcontratto_prev = co_contratti.id) IS NULL
|
||||
HAVING (ore_rimanenti < ore_preavviso_rinnovo OR DATEDIFF(data_conclusione, NOW()) < ABS(giorni_preavviso_rinnovo))' WHERE `zz_widgets`.`name` = 'Contratti in scadenza';
|
||||
|
||||
|
||||
-- Impostazione "Filigrana stampe"
|
||||
INSERT INTO `zz_settings` (`id`, `nome`, `valore`, `tipo`, `editable`, `sezione`) VALUES (NULL, 'Filigrana stampe', '', 'string', '0', 'Generali');
|
||||
INSERT INTO `zz_settings` (`id`, `nome`, `valore`, `tipo`, `editable`, `sezione`) VALUES (NULL, 'Filigrana stampe', '', 'string', '0', 'Generali');
|
||||
|
||||
-- Per elenco coda di invio aggiungo colonna Modulo (legata al template) e Destinatario
|
||||
INSERT INTO `zz_views` (`id_module`, `name`, `query`, `order`, `search`, `slow`, `default`, `visible`, `format`) VALUES
|
||||
((SELECT `id` FROM `zz_modules` WHERE `name` = 'Stato email'), 'Modulo', '(SELECT zz_modules.title FROM zz_modules WHERE zz_modules.id = em_templates.id_module)', 3, 1, 0, 1, 1, 0),
|
||||
((SELECT `id` FROM `zz_modules` WHERE `name` = 'Stato email'), 'Destinatari', '(SELECT GROUP_CONCAT(address SEPARATOR "<br>") FROM em_email_receiver WHERE em_email_receiver.id_email = em_emails.id)', 1, 1, 0, 1, 1, 0);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user