mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-06-05 22:09:38 +02:00
Merge branch 'master' of https://github.com/devcode-it/openstamanager
This commit is contained in:
@@ -50,12 +50,6 @@ echo '
|
||||
|
||||
// Duplica contratto
|
||||
echo '
|
||||
<button type="button" class="btn btn-primary" onclick="if( confirm(\''.tr('Duplicare questo contratto?').'\') ){ $(\'#copia-contratto\').submit(); }">
|
||||
<button type="button" class="btn btn-primary ask" data-title="'.tr('Duplicare questo contratto?').'" data-msg="'.tr('Clicca su tasto duplica per procedere.').'" data-op="copy" data-button="'.tr('Duplica').'" data-class="btn btn-lg btn-primary" data-backto="record-edit">
|
||||
<i class="fa fa-copy"></i> '.tr('Duplica contratto').'
|
||||
</button>';
|
||||
|
||||
echo '
|
||||
<form action="" method="post" id="copia-contratto">
|
||||
<input type="hidden" name="backto" value="record-edit">
|
||||
<input type="hidden" name="op" value="copy">
|
||||
</form>';
|
||||
</button>';
|
@@ -315,8 +315,8 @@ WHERE (SELECT COUNT(*) FROM in_interventi_tecnici WHERE in_interventi_tecnici.id
|
||||
|
||||
|
||||
if (checkdate($data->format('m'), $data->format('d'), $data->format('Y'))){
|
||||
echo '
|
||||
<option value="'.$chiave.'">'.ucfirst($testo).'</option>';
|
||||
echo '
|
||||
<option value="'.$chiave.'">'.ucfirst($testo).'</option>';
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -80,12 +80,7 @@ echo '
|
||||
|
||||
// Duplica ddt
|
||||
echo '
|
||||
<button type="button" class="btn btn-primary" onclick="if( confirm(\''.tr('Duplicare questo ddt?').'\') ){ $(\'#copia-ddt\').submit(); }">
|
||||
<button type="button" class="btn btn-primary ask" data-title="'.tr('Duplicare questo Ddt?').'" data-msg="'.tr('Clicca su tasto duplica per procedere.').'" data-op="copy" data-button="'.tr('Duplica').'" data-class="btn btn-lg btn-primary" data-backto="record-edit">
|
||||
<i class="fa fa-copy"></i> '.tr('Duplica ddt').'
|
||||
</button>';
|
||||
|
||||
echo '
|
||||
<form action="" method="post" id="copia-ddt">
|
||||
<input type="hidden" name="backto" value="record-edit">
|
||||
<input type="hidden" name="op" value="copy">
|
||||
</form>';
|
||||
|
@@ -19,11 +19,6 @@
|
||||
|
||||
include_once __DIR__.'/../../core.php';
|
||||
|
||||
echo '
|
||||
<button type="button" class="btn btn-primary ask btn-primary" '.(empty($record['is_reversed']) ? '' : 'disabled').' data-msg="'.tr('Duplicare questa fattura?').'" data-op="copy" data-button="'.tr('Duplica').'" data-class="btn btn-lg btn-warning" data-backto="record-edit" >
|
||||
<i class="fa fa-copy"></i> '.tr('Duplica fattura').'
|
||||
</button>';
|
||||
|
||||
if ($module->name == 'Fatture di vendita') {
|
||||
$attributi_visibili = $record['dati_aggiuntivi_fe'] != null || $record['stato'] == 'Bozza';
|
||||
|
||||
@@ -118,4 +113,10 @@ if (!empty($record['is_fiscale'])) {
|
||||
<i class="fa fa-folder-open"></i> '.tr('Riapri documento').'...
|
||||
</button>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Duplica fattura
|
||||
echo '
|
||||
<button type="button" class="btn btn-primary ask" '.(empty($record['is_reversed']) ? '' : 'disabled').' data-title="'.tr('Duplicare questa fattura?').'" data-msg="'.tr('Clicca su tasto duplica per procedere.').'" data-op="copy" data-button="'.tr('Duplica').'" data-class="btn btn-lg btn-primary" data-backto="record-edit" >
|
||||
<i class="fa fa-copy"></i> '.tr('Duplica fattura').'
|
||||
</button>';
|
||||
|
@@ -19,11 +19,6 @@
|
||||
|
||||
include_once __DIR__.'/../../core.php';
|
||||
|
||||
echo '
|
||||
<button type="button" class="btn btn-primary" onclick="if( confirm(\'Duplicare questo preventivo?\') ){ $(\'#copia-preventivo\').submit(); }">
|
||||
<i class="fa fa-copy"></i> '.tr('Duplica preventivo').'
|
||||
</button>';
|
||||
|
||||
$stati_abilitati = $dbo->fetchOne('SELECT GROUP_CONCAT(`descrizione` SEPARATOR ", ") AS stati_abilitati FROM `co_statipreventivi` WHERE `is_revisionabile` = 1 ')['stati_abilitati'];
|
||||
|
||||
// Crea revisione
|
||||
@@ -92,7 +87,6 @@ echo '
|
||||
|
||||
// Duplica preventivo
|
||||
echo '
|
||||
<form action="" method="post" id="copia-preventivo">
|
||||
<input type="hidden" name="backto" value="record-edit">
|
||||
<input type="hidden" name="op" value="copy">
|
||||
</form>';
|
||||
<button type="button" class="btn ask btn-primary" data-title="'.tr('Duplicare questo preventivo?').'" data-msg="'.tr('Clicca su tasto duplica per procedere.').'" data-op="copy" data-button="'.tr('Duplica').'" data-class="btn btn-lg btn-primary" data-backto="record-edit" >
|
||||
<i class="fa fa-copy"></i> '.tr('Duplica preventivo').'
|
||||
</button>';
|
||||
|
@@ -631,17 +631,10 @@ class Validator
|
||||
|
||||
// Formattazione testo
|
||||
elseif ($info['type'] == 'string' || $info['type'] == 'normalizedString') {
|
||||
/**
|
||||
* Sostituzione dei caratteri speciali del linguaggio.
|
||||
*
|
||||
* @source https://stackoverflow.com/a/3373364
|
||||
*/
|
||||
/*$replace_chars = ['Š' => 'S', 'š' => 's', 'Ž' => 'Z', 'ž' => 'z', 'À' => 'A', 'Á' => 'A', 'Â' => 'A', 'Ã' => 'A', 'Ä' => 'A', 'Å' => 'A', 'Æ' => 'A', 'Ç' => 'C', 'È' => 'E', 'É' => 'E', 'Ê' => 'E', 'Ë' => 'E', 'Ì' => 'I', 'Í' => 'I', 'Î' => 'I', 'Ï' => 'I', 'Ñ' => 'N', 'Ò' => 'O', 'Ó' => 'O', 'Ô' => 'O', 'Õ' => 'O', 'Ö' => 'O', 'Ø' => 'O', 'Ù' => 'U', 'Ú' => 'U', 'Û' => 'U', 'Ü' => 'U', 'Ý' => 'Y', 'Þ' => 'B', 'ß' => 'Ss', 'à' => 'a', 'á' => 'a', 'â' => 'a', 'ã' => 'a', 'ä' => 'a', 'å' => 'a', 'æ' => 'a', 'ç' => 'c', 'è' => 'e', 'é' => 'e', 'ê' => 'e', 'ë' => 'e', 'ì' => 'i', 'í' => 'i', 'î' => 'i', 'ï' => 'i', 'ð' => 'o', 'ñ' => 'n', 'ò' => 'o', 'ó' => 'o', 'ô' => 'o', 'õ' => 'o', 'ö' => 'o', 'ø' => 'o', 'ù' => 'u', 'ú' => 'u', 'û' => 'u', 'ý' => 'y', 'þ' => 'b', 'ÿ' => 'y'];
|
||||
$output = replace($output, $replace_chars);*/
|
||||
|
||||
// Sostituzione tag e contenuti specifici per XML
|
||||
|
||||
// Sostituzione tag e contenuti specifici per XML (non sembra essere eseguita)
|
||||
$output = htmlspecialchars($output, ENT_NOQUOTES | ENT_XML1 | ENT_SUBSTITUTE, 'UTF-8', false);
|
||||
|
||||
|
||||
// Sostituzione per caratteri personalizzati
|
||||
$output = replace($output, [
|
||||
'€' => 'euro',
|
||||
@@ -649,9 +642,15 @@ class Validator
|
||||
'…' => '...',
|
||||
'~' => '-',
|
||||
'®' => '',
|
||||
'Š' => 'S',
|
||||
'š' => 's',
|
||||
'Ž' => 'Z',
|
||||
'ž' => 'z',
|
||||
]);
|
||||
|
||||
//$output = self::sanitizeXML($output);
|
||||
$output = str_replace(array("\r", "\n"), '', $output);
|
||||
|
||||
//$output = self::sanitizeXML($output);
|
||||
}
|
||||
|
||||
// Riduzione delle dimensioni
|
||||
@@ -692,6 +691,8 @@ class Validator
|
||||
/**
|
||||
* Removes invalid characters from a UTF-8 XML string
|
||||
*
|
||||
* @deprecated 2.4.34
|
||||
*
|
||||
* @param string a XML string potentially containing invalid characters
|
||||
* @return string
|
||||
*/
|
||||
|
Reference in New Issue
Block a user