Fix is_reversed per abilitazione pulsante crea fattura
This commit is contained in:
parent
7994264fd2
commit
835457ba55
|
@ -3,10 +3,7 @@
|
||||||
include_once __DIR__.'/../../core.php';
|
include_once __DIR__.'/../../core.php';
|
||||||
|
|
||||||
echo '
|
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" >
|
||||||
|
|
||||||
|
|
||||||
<button type="button" class="btn btn-primary ask btn-primary" '.(empty($record['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').'
|
<i class="fa fa-copy"></i> '.tr('Duplica fattura').'
|
||||||
</button>';
|
</button>';
|
||||||
|
|
||||||
|
@ -22,7 +19,7 @@ if ($module->name == 'Fatture di vendita') {
|
||||||
if ($dir == 'entrata') {
|
if ($dir == 'entrata') {
|
||||||
echo '
|
echo '
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<button type="button" class="btn btn-primary unblockable dropdown-toggle '.(((!empty($record['ref_documento']) || $record['stato'] != 'Bozza') and empty($record['reversed'])) ? '' : 'disabled').'" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
<button type="button" class="btn btn-primary unblockable dropdown-toggle '.(((!empty($record['ref_documento']) || $record['stato'] != 'Bozza') and empty($record['is_reversed'])) ? '' : 'disabled').'" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||||
<i class="fa fa-magic"></i> '.tr('Crea').' <span class="caret"></span>
|
<i class="fa fa-magic"></i> '.tr('Crea').' <span class="caret"></span>
|
||||||
<span class="sr-only">Toggle Dropdown</span>
|
<span class="sr-only">Toggle Dropdown</span>
|
||||||
</button>
|
</button>
|
||||||
|
|
Loading…
Reference in New Issue