mirror of
https://github.com/devcode-it/openstamanager.git
synced 2024-12-29 09:11:11 +01:00
Merge branch 'master' of https://github.com/devcode-it/openstamanager
This commit is contained in:
commit
72857f2de7
@ -176,7 +176,7 @@ if (!empty($type) && $type != 'menu' && $type != 'custom') {
|
||||
|
||||
<div class="col-md-2 dropdown">';
|
||||
|
||||
if (!empty($bulk) && $structure->permission == 'rw') {
|
||||
if (!empty($bulk) && $structure->permission == 'rw' && empty($id_plugin)) {
|
||||
echo '
|
||||
<button class="btn btn-primary btn-block dropdown-toggle actions-container disabled" type="button" data-toggle="dropdown" disabled>'.tr('Azioni di gruppo').' <span class="caret"></span></button>
|
||||
<ul class="dropdown-menu" data-target="'.$table_id.'" role="menu">';
|
||||
|
@ -560,7 +560,7 @@ switch (filter('op')) {
|
||||
|
||||
// Aggiornamento stato degli ordini presenti in questa fattura in base alle quantità totali evase
|
||||
if (!empty($id_record) && setting('Cambia automaticamente stato ordini fatturati')) {
|
||||
$rs = $dbo->fetchArray('SELECT idordine FROM dt_righe_ddt WHERE idddt='.prepare($id_record));
|
||||
$rs = $dbo->fetchArray('SELECT idordine FROM dt_righe_ddt WHERE idddt='.prepare($id_record).' AND idordine!=0');
|
||||
|
||||
for ($i = 0; $i < sizeof($rs); ++$i) {
|
||||
$dbo->query('UPDATE or_ordini SET idstatoordine=(SELECT id FROM or_statiordine WHERE descrizione="'.get_stato_ordine($rs[$i]['idordine']).'") WHERE id = '.prepare($rs[$i]['idordine']));
|
||||
|
Loading…
Reference in New Issue
Block a user