Skip to content

Commit

Permalink
Update commande.php
Browse files Browse the repository at this point in the history
  • Loading branch information
frederic34 committed Oct 25, 2014
1 parent 6a1d5ed commit 68fa6ce
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions htdocs/admin/commande.php
Expand Up @@ -222,6 +222,18 @@
}
}

//Activate Set Shippable Icon In List
else if ($action=="setshippableiconinlist") {
$setshippableiconinlist = GETPOST('value','int');
$res = dolibarr_set_const($db, "SHIPPABLE_ORDER_ICON_IN_LIST", $setshippableiconinlist,'yesno',0,'',$conf->entity);
if (! $res > 0) $error++;
if (! $error) {
setEventMessage($langs->trans("SetupSaved"));
} else {
setEventMessage($langs->trans("Error"), 'errors');
}
}


/*
* View
Expand Down Expand Up @@ -548,6 +560,22 @@
print "</td></tr>\n";
print '</form>';

// Shippable Icon in List
$var=!$var;
print "<tr ".$bc[$var].">";
print '<td>'.$langs->trans("ShippableOrderIconInList").'</td>';
print '<td>&nbsp</td>';
print '<td align="center">';
if (!empty($conf->global->SHIPPABLE_ORDER_ICON_IN_LIST)) {
print '<a href="'.$_SERVER['PHP_SELF'].'?action=setshippableiconinlist&value=0">';
print img_picto($langs->trans("Activated"),'switch_on');
} else {
print '<a href="'.$_SERVER['PHP_SELF'].'?action=setshippableiconinlist&value=1">';
print img_picto($langs->trans("Disabled"),'switch_off');
}
print '</a></td>';
print '</tr>';

print '</table>';

print '<br>';
Expand Down

0 comments on commit 68fa6ce

Please sign in to comment.