mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-03-12 09:10:19 +01:00
Bugfix
This commit is contained in:
parent
d497ebc4c9
commit
a0555ee4d3
11
bug.php
11
bug.php
@ -1,17 +1,18 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
use Modules\Emails\Account;
|
||||||
use Notifications\EmailNotification;
|
use Notifications\EmailNotification;
|
||||||
|
|
||||||
include_once __DIR__.'/core.php';
|
include_once __DIR__.'/core.php';
|
||||||
|
|
||||||
$mail = new EmailNotification();
|
$account = Account::where('predefined', true)->first();
|
||||||
$bug_email = 'info@openstamanager.com';
|
$bug_email = 'info@openstamanager.com';
|
||||||
|
|
||||||
$user = Auth::user();
|
$user = Auth::user();
|
||||||
|
|
||||||
if (filter('op') == 'send') {
|
if (filter('op') == 'send') {
|
||||||
// Preparazione email
|
// Preparazione email
|
||||||
$mail = new Mail();
|
$mail = new EmailNotification();
|
||||||
|
|
||||||
// Destinatario
|
// Destinatario
|
||||||
$mail->AddAddress($bug_email);
|
$mail->AddAddress($bug_email);
|
||||||
@ -77,13 +78,13 @@ $pageTitle = tr('Bug');
|
|||||||
|
|
||||||
include_once App::filepath('include|custom|', 'top.php');
|
include_once App::filepath('include|custom|', 'top.php');
|
||||||
|
|
||||||
if (empty($mail['from_address']) || empty($mail['server'])) {
|
if (empty($account['from_address']) || empty($account['server'])) {
|
||||||
echo '
|
echo '
|
||||||
<div class="alert alert-warning">
|
<div class="alert alert-warning">
|
||||||
<i class="fa fa-warning"></i>
|
<i class="fa fa-warning"></i>
|
||||||
<b>'.tr('Attenzione!').'</b> '.tr('Per utilizzare correttamente il modulo di segnalazione bug devi configurare alcuni parametri riguardanti le impostazione delle email').'.
|
<b>'.tr('Attenzione!').'</b> '.tr('Per utilizzare correttamente il modulo di segnalazione bug devi configurare alcuni parametri riguardanti le impostazione delle email').'.
|
||||||
|
|
||||||
'.Modules::link('Account email', $mail['id'], tr('Correggi account'), null, 'class="btn btn-warning pull-right"').'
|
'.Modules::link('Account email', $account['id'], tr('Correggi account'), null, 'class="btn btn-warning pull-right"').'
|
||||||
<div class="clearfix"></div>
|
<div class="clearfix"></div>
|
||||||
</div>';
|
</div>';
|
||||||
}
|
}
|
||||||
@ -101,7 +102,7 @@ echo '
|
|||||||
<table class="table table-bordered table-condensed table-striped table-hover">
|
<table class="table table-bordered table-condensed table-striped table-hover">
|
||||||
<tr>
|
<tr>
|
||||||
<th width="150" class="text-right">'.tr('Da').':</th>
|
<th width="150" class="text-right">'.tr('Da').':</th>
|
||||||
<td>'.$mail['from_address'].'</td>
|
<td>'.$account['from_address'].'</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<!-- A -->
|
<!-- A -->
|
||||||
|
@ -471,6 +471,8 @@ HAVING 2=2
|
|||||||
ORDER BY `co_documenti`.`data` DESC, CAST(`co_documenti`.`numero_esterno` AS UNSIGNED) DESC' WHERE `name` = 'Fatture di vendita';
|
ORDER BY `co_documenti`.`data` DESC, CAST(`co_documenti`.`numero_esterno` AS UNSIGNED) DESC' WHERE `name` = 'Fatture di vendita';
|
||||||
|
|
||||||
UPDATE `zz_views` SET `query` = 'righe.totale' WHERE `id_module` = (SELECT `id` FROM `zz_modules` WHERE `name` = 'Fatture di vendita') AND `name` = 'Totale';
|
UPDATE `zz_views` SET `query` = 'righe.totale' WHERE `id_module` = (SELECT `id` FROM `zz_modules` WHERE `name` = 'Fatture di vendita') AND `name` = 'Totale';
|
||||||
|
UPDATE `zz_views` SET `query` = 'IF(`email`.`id_email` IS NOT NULL, ''fa fa-envelope text-success'', '''')' WHERE `id_module` = (SELECT `id` FROM `zz_modules` WHERE `name` = 'Fatture di vendita') AND `name` = 'icon_Inviata';
|
||||||
|
UPDATE `zz_views` SET `query` = 'IF(`email`.`id_email` IS NOT NULL, ''Inviata via email'', '''')' WHERE `id_module` = (SELECT `id` FROM `zz_modules` WHERE `name` = 'Fatture di vendita') AND `name` = 'icon_title_Inviata';
|
||||||
|
|
||||||
-- Ottimizzazione Fatture di acquisto
|
-- Ottimizzazione Fatture di acquisto
|
||||||
UPDATE `zz_modules` SET `options` = 'SELECT |select| FROM `co_documenti`
|
UPDATE `zz_modules` SET `options` = 'SELECT |select| FROM `co_documenti`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user