mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-03 09:17:37 +01:00
Formattazione codice
This commit is contained in:
parent
cccd2b3c39
commit
1cc40b76e2
@ -156,7 +156,7 @@ function database(button) {
|
||||
}
|
||||
|
||||
function controlli(button) {
|
||||
openModal("'.tr('Controlli del gestionale').'", "'.$module->fileurl('controlli.php').'?id_module='.$id_module. '");
|
||||
openModal("'.tr('Controlli del gestionale').'", "'.$module->fileurl('controlli.php').'?id_module='.$id_module.'");
|
||||
}
|
||||
|
||||
function search(button) {
|
||||
@ -171,7 +171,7 @@ function search(button) {
|
||||
},
|
||||
success: function(data){
|
||||
if (data === "none" || !data) {
|
||||
$("#update-search").html("<i class=\"fa fa-check-circle text-success\" aria-hidden=\"true\"></i> '.tr('Nessun aggiornamento disponibile'). '.");
|
||||
$("#update-search").html("<i class=\"fa fa-check-circle text-success\" aria-hidden=\"true\"></i> '.tr('Nessun aggiornamento disponibile').'.");
|
||||
} else {
|
||||
let beta_warning = data.includes("beta") ? "<br><i class=\"fa-exclamation-triangle text-danger\" aria-hidden=\"true\"></i> <b class=\"text-danger\">'.tr('Attenzione: la versione individuata è in fase sperimentale e potrebbe pertanto presentare diversi malfunzionamenti. Se ne sconsiglia l\'aggiornamento in installazioni di produzione').'.</b>" : "";
|
||||
$("#update-search").html("'.tr("E' stato individuato un nuovo aggiornamento").': " + data + "." + beta_warning + "<br>'.tr('Scaricalo ora: _LINK_', [
|
||||
|
@ -34,7 +34,6 @@ class CausaleMovimento extends Model
|
||||
'title',
|
||||
];
|
||||
|
||||
|
||||
public function getModuleAttribute()
|
||||
{
|
||||
return 'Causali movimenti';
|
||||
|
@ -24,8 +24,8 @@ switch (filter('op')) {
|
||||
}
|
||||
$combinazione->setTranslation('title', $nome);
|
||||
$combinazione->codice = post('codice');
|
||||
$combinazione->id_categoria = post('id_categoria')?: null;
|
||||
$combinazione->id_sottocategoria = post('id_sottocategoria')?: null;
|
||||
$combinazione->id_categoria = post('id_categoria') ?: null;
|
||||
$combinazione->id_sottocategoria = post('id_sottocategoria') ?: null;
|
||||
$combinazione->save();
|
||||
|
||||
$id_record = $combinazione->id;
|
||||
|
@ -81,7 +81,7 @@ if (!empty($id_record)) {
|
||||
$fattura_acquisto_originale = null;
|
||||
|
||||
if (!empty($fattura)) {
|
||||
$reverse_charge = $fattura->getRighe()->first(fn($item, $key) => $item->aliquota != null && $item->aliquota->codice_natura_fe !== null && substr($item->aliquota->codice_natura_fe, 0, 2) == 'N6')->id;
|
||||
$reverse_charge = $fattura->getRighe()->first(fn ($item, $key) => $item->aliquota != null && $item->aliquota->codice_natura_fe !== null && substr($item->aliquota->codice_natura_fe, 0, 2) == 'N6')->id;
|
||||
$autofattura_vendita = Fattura::find($fattura->id_autofattura);
|
||||
|
||||
$abilita_autofattura = (($fattura->anagrafica->nazione->iso2 != 'IT' && !empty($fattura->anagrafica->nazione->iso2)) || $reverse_charge) && $dir == 'uscita' && $fattura->id_autofattura == null;
|
||||
|
@ -64,7 +64,7 @@ if (!empty($record['immagine'])) {
|
||||
<div class="clearfix"></div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<?php echo Modules::link('Anagrafiche', $record['idanagrafica'], null, null, 'class="pull-right"');?>
|
||||
<?php echo Modules::link('Anagrafiche', $record['idanagrafica'], null, null, 'class="pull-right"'); ?>
|
||||
{[ "type": "select", "label": "<?php echo tr('Cliente'); ?>", "name": "idanagrafica", "required": 1, "value": "$idanagrafica$", "extra": "", "ajax-source": "clienti" ]}
|
||||
</div>
|
||||
<?php
|
||||
@ -72,7 +72,7 @@ if (!empty($record['immagine'])) {
|
||||
<div class="col-md-4">
|
||||
{[ "type": "select", "label": "'.tr('Sede').'", "name": "idsede", "value": "$idsede$", "required": "1", "ajax-source": "sedi", "select-options": '.json_encode(['idanagrafica' => $record['idanagrafica']]).', "placeholder": "'.tr('Sede legale').'" ]}
|
||||
</div>';
|
||||
?>
|
||||
?>
|
||||
<div class="col-md-4">
|
||||
{[ "type": "select", "label": "<?php echo tr('Tecnico predefinito'); ?>", "name": "idtecnico", "ajax-source": "tecnici", "value": "$idtecnico$" ]}
|
||||
</div>
|
||||
|
@ -22,7 +22,7 @@ use Modules\Newsletter\Newsletter;
|
||||
|
||||
include_once __DIR__.'/../../core.php';
|
||||
|
||||
if (!empty(($id_record))) {
|
||||
if (!empty($id_record)) {
|
||||
$newsletter = Newsletter::find($id_record);
|
||||
|
||||
$record = $newsletter->toArray();
|
||||
|
@ -17,7 +17,7 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
use Modules\DDT\Porto;
|
||||
use Modules\DDT\Porto;
|
||||
|
||||
include_once __DIR__.'/../../core.php';
|
||||
|
||||
|
@ -17,7 +17,7 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
use Modules\DDT\Spedizione;
|
||||
use Modules\DDT\Spedizione;
|
||||
|
||||
include_once __DIR__.'/../../core.php';
|
||||
|
||||
|
@ -75,7 +75,7 @@ switch (filter('op')) {
|
||||
if (isset($nome)) {
|
||||
// Se non esiste già un tipo di scadenza con lo stesso nome
|
||||
if (empty(Tipo::where('id', '=', (new Tipo())->getByField('title', $descrizione))->where('id', '!=', $id_record)->first())) {
|
||||
$tipo = tipo::build();
|
||||
$tipo = Tipo::build();
|
||||
if (Models\Locale::getDefault()->id == Models\Locale::getPredefined()->id) {
|
||||
$tipo->name = $nome;
|
||||
}
|
||||
|
@ -386,7 +386,6 @@ class Database extends Util\Singleton
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Restituisce l'identificativo dell'ultimo elemento inserito.
|
||||
*
|
||||
|
@ -95,7 +95,7 @@ foreach ($righe as $riga) {
|
||||
if (in_array($riga->id, $riferimento)) {
|
||||
if ($riga->id === $riferimento[0]) {
|
||||
$riga_ordine = $database->fetchOne('SELECT numero_cliente, data_cliente FROM or_ordini WHERE id = '.prepare($riga->idordine));
|
||||
if (!(setting('Visualizza numero ordine cliente'))) {
|
||||
if (!setting('Visualizza numero ordine cliente')) {
|
||||
if (!empty($riga_ordine['numero_cliente']) && !empty($riga_ordine['data_cliente'])) {
|
||||
$text = $text.'<b>Ordine n. '.$riga_ordine['numero_cliente'].' del '.Translator::dateToLocale($riga_ordine['data_cliente']).'</b><br>';
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ if (empty($default)) {
|
||||
$fk = $database->fetchArray('SELECT * FROM `zz_plugins` WHERE `directory` = "distinta_base"');
|
||||
if (empty($fk)) {
|
||||
// File e cartelle deprecate
|
||||
delete(realpath(base_dir() . '/plugins/distinta_base/'));
|
||||
delete(realpath(base_dir().'/plugins/distinta_base/'));
|
||||
}
|
||||
|
||||
// Controllo se è presente il campo name in an_provenienze
|
||||
@ -202,7 +202,6 @@ if (database()->columnExists('dt_statiddt_lang', 'name')) {
|
||||
$database->query('ALTER TABLE `dt_statiddt_lang` DROP `name`');
|
||||
}
|
||||
|
||||
|
||||
// Controllo se è presente il campo name in dt_tipiddt
|
||||
$has_name = database()->columnExists('dt_tipiddt', 'name');
|
||||
if (!$has_name) {
|
||||
@ -223,7 +222,6 @@ if (database()->columnExists('em_lists_lang', 'name')) {
|
||||
$database->query('ALTER TABLE `em_lists_lang` DROP `name`');
|
||||
}
|
||||
|
||||
|
||||
// Controllo se è presente il campo name in em_templates
|
||||
$has_name = database()->columnExists('em_templates', 'name');
|
||||
if (!$has_name) {
|
||||
@ -329,7 +327,6 @@ if (database()->columnExists('mg_categorie_lang', 'name')) {
|
||||
$database->query('ALTER TABLE `mg_categorie_lang` DROP `name`');
|
||||
}
|
||||
|
||||
|
||||
// Rimozione categoria 'Componenti' se non collegata ad articoli
|
||||
$categoria = Categoria::find((new Categoria())->getByField('title', 'Componenti'));
|
||||
$articoli_collegati = $categoria->articoli()->count();
|
||||
|
Loading…
x
Reference in New Issue
Block a user