Compare commits

...

3 Commits

Author SHA1 Message Date
Luca d0f2746d01 Fix add ddt fattura di vendita 2021-08-04 20:42:12 +02:00
Dasc3er ace439068d Merge remote-tracking branch 'origin/master' 2021-08-04 16:42:58 +02:00
Dasc3er 573a67d46a Fix minori 2021-08-04 16:42:49 +02:00
3 changed files with 3 additions and 3 deletions

View File

@ -673,7 +673,7 @@ if (!$block_edit) {
$ddt = $dbo->fetchArray($ddt_query)[0]['tot']; $ddt = $dbo->fetchArray($ddt_query)[0]['tot'];
echo ' echo '
<div class="tip"> <div class="tip">
<a class="btn btn-sm btn-primary'.(!empty($ddt) ? '' : ' disabled').'" data-href="'.$structure->fileurl('add_ddt.php').'.php?id_module='.$id_module.'&id_record='.$id_record.'" data-toggle="tooltip" data-title="'.tr('Aggiungi ddt').'"> <a class="btn btn-sm btn-primary'.(!empty($ddt) ? '' : ' disabled').'" data-href="'.$structure->fileurl('add_ddt.php').'?id_module='.$id_module.'&id_record='.$id_record.'" data-toggle="tooltip" data-title="'.tr('Aggiungi ddt').'">
<i class="fa fa-plus"></i> '.tr('Ddt').' <i class="fa fa-plus"></i> '.tr('Ddt').'
</a> </a>
</div>'; </div>';

View File

@ -53,7 +53,7 @@ class Sessione extends Model
public static function build(Intervento $intervento, Anagrafica $anagrafica, $inizio, $fine) public static function build(Intervento $intervento, Anagrafica $anagrafica, $inizio, $fine)
{ {
if (!$anagrafica->isTipo('Tecnico')) { if (!$anagrafica->isTipo('Tecnico')) {
throw new InvalidArgumentException(); throw new InvalidArgumentException("Anagrafica di tipo diverso da Tecnico");
} }
$model = new static(); $model = new static();

View File

@ -19,7 +19,7 @@
include_once __DIR__.'/../core.php'; include_once __DIR__.'/../core.php';
if (!$notes->isEmpty()) { if (!empty($notes) && !$notes->isEmpty()) {
echo ' echo '
<div class="box box-info direct-chat direct-chat-info"> <div class="box box-info direct-chat direct-chat-info">
<div class="box-header with-border"> <div class="box-header with-border">