summaryrefslogtreecommitdiff
path: root/list_movements.php
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-06-01 09:21:30 +0100
committerLester Caine <lester@lsces.co.uk>2026-06-01 09:21:30 +0100
commit54efaa8253c48fb5597b5e477b20a4127365d7c7 (patch)
tree326dfb7310575392e18e235d9aebff7a6727a561 /list_movements.php
parentac18ebb5879a49a63e0bf624fc25c8e9d36820b0 (diff)
downloadstock-54efaa8253c48fb5597b5e477b20a4127365d7c7.tar.gz
stock-54efaa8253c48fb5597b5e477b20a4127365d7c7.tar.bz2
stock-54efaa8253c48fb5597b5e477b20a4127365d7c7.zip
Rewrite StockMovement as pure LibertyContent; CSV import; bom grid
stock_movement/stock_movement_item tables retired. StockMovement now a pure LibertyContent subclass — direction from reference xref (REQN=out, TRANS/ORDER=in), received state from lc.event_time, items as quantity xrefs with explicit xorder. loadXrefList() enriches component names. schema_inc.php: full stockmovement xref seed — reference group (REQN/TRANS/ORDER) and quantity group (SGL/PCK/SHT/VOL, bom/bompck templates). MOV item removed from stockcomponent/stockassembly seed. edit_movement.php: type selector on create from DB; CSV upload parses header (from/ref/date) and component lines using component xref for default qty type. list_movements.php/tpl: rebuilt; ref_type filter; ref_type/ref_key/ received columns via xref subquery. view_movement.php/tpl: cleaned up; xref group tabs, allow_edit=false. stockmovement/ bom templates added. movement_lookup_inc simplified. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'list_movements.php')
-rw-r--r--list_movements.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/list_movements.php b/list_movements.php
index c9aac36..6da281b 100644
--- a/list_movements.php
+++ b/list_movements.php
@@ -11,13 +11,12 @@ global $gBitSystem, $gBitSmarty;
$gBitSystem->verifyPermission( 'p_stock_view' );
-$movement = new StockMovement();
-$listHash = $_REQUEST;
+$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'] ?? '' );
+$gBitSmarty->assign( 'filterType', $_REQUEST['ref_type'] ?? '' );
$gBitSystem->display( 'bitpackage:stock/list_movements.tpl', 'Movements', [ 'display_mode' => 'list' ] );