diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-06-01 12:34:02 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-06-01 12:34:02 +0100 |
| commit | 6b30ab3d3ec23bd3f6056f2d1685159487383378 (patch) | |
| tree | 8771041a52fadc545c1badbc38c910c56d84d2f3 /list_movements.php | |
| parent | a16e3d92444befcbd857d3bf00381b559d494d20 (diff) | |
| download | stock-6b30ab3d3ec23bd3f6056f2d1685159487383378.tar.gz stock-6b30ab3d3ec23bd3f6056f2d1685159487383378.tar.bz2 stock-6b30ab3d3ec23bd3f6056f2d1685159487383378.zip | |
Stock/movement assembly linkage, view icons, and list_stock fixes
- add_requisition: store ASSEMBLY xref on new movements so they can be filtered by assembly
- StockMovement::getList: add assembly_content_id filter via ASSEMBLY xref join
- list_movements: pass assemblyContentId to Smarty
- view_assembly.tpl: add View Stock and View Movements icons filtered by assembly
- list_stock: guard CAST with SIMILAR TO on xkey join; fix %.3g scientific notation to %.0f
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'list_movements.php')
| -rw-r--r-- | list_movements.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/list_movements.php b/list_movements.php index 6da281b..10d2526 100644 --- a/list_movements.php +++ b/list_movements.php @@ -15,8 +15,9 @@ $movement = new StockMovement(); $listHash = $_REQUEST; $movementList = $movement->getList( $listHash ); -$gBitSmarty->assign( 'listInfo', $listHash['listInfo'] ); -$gBitSmarty->assign( 'movementList', $movementList ); -$gBitSmarty->assign( 'filterType', $_REQUEST['ref_type'] ?? '' ); +$gBitSmarty->assign( 'listInfo', $listHash['listInfo'] ); +$gBitSmarty->assign( 'movementList', $movementList ); +$gBitSmarty->assign( 'filterType', $_REQUEST['ref_type'] ?? '' ); +$gBitSmarty->assign( 'assemblyContentId', isset( $_REQUEST['assembly_content_id'] ) && is_numeric( $_REQUEST['assembly_content_id'] ) ? (int)$_REQUEST['assembly_content_id'] : null ); $gBitSystem->display( 'bitpackage:stock/list_movements.tpl', 'Movements', [ 'display_mode' => 'list' ] ); |
