summaryrefslogtreecommitdiff
path: root/list_movements.php
blob: c9aac3691b839dea94986980fa739da4341e201d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
/**
 * @package stock
 */

namespace Bitweaver\Stock;

require_once '../kernel/includes/setup_inc.php';

global $gBitSystem, $gBitSmarty;

$gBitSystem->verifyPermission( 'p_stock_view' );

$movement    = new StockMovement();
$listHash    = $_REQUEST;
$movementList = $movement->getList( $listHash );

$gBitSmarty->assign( 'listInfo',     $listHash['listInfo'] );
$gBitSmarty->assign( 'movementList', $movementList );
$gBitSmarty->assign( 'filterDir',    $_REQUEST['direction'] ?? '' );
$gBitSmarty->assign( 'filterStatus', $_REQUEST['status']    ?? '' );

$gBitSystem->display( 'bitpackage:stock/list_movements.tpl', 'Movements', [ 'display_mode' => 'list' ] );