update to see consommables in BO

This commit is contained in:
Marion Muszynski 2016-03-16 15:47:25 +01:00
parent de06f70738
commit df4be5618d
2 changed files with 63 additions and 63 deletions

View File

@ -12,9 +12,9 @@ require_once('../modules/privatesales_extrafields/privatesales_extrafields.php')
if (isset($_GET['getSales'])){
$type = $_GET['type'];
if($type == 'finished'){
$sales = Sale::getSales(NULL, NULL, NULL, FALSE , FALSE, FALSE, '`position` DESC');
$sales = Sale::getSales(NULL, NULL, NULL, FALSE , FALSE, FALSE, '`position` DESC', NULL, NULL, FALSE, TRUE);
}else{
$sales = Sale::getSales(NULL, NULL, NULL, $type , FALSE, FALSE, '`position` DESC');
$sales = Sale::getSales(NULL, NULL, NULL, $type , FALSE, FALSE, '`position` DESC', NULL, NULL, FALSE, TRUE);
}
$ids = array();

View File

@ -655,7 +655,7 @@ class AdminPrivateSalesSales extends AdminTab {
';
echo ' <tbody id="saleActive" class="sortable">';
$sales = Sale::getSales(NULL, NULL, NULL, 'not_ended', FALSE, FALSE, '`position` DESC');
$sales = Sale::getSales(NULL, NULL, NULL, 'not_ended', FALSE, FALSE, '`position` DESC',NULL, NULL, FALSE, TRUE);
$ids = array();
foreach ($sales as $key => $sale) {
$ids[] = $sale->id;