summaryrefslogtreecommitdiff
path: root/list_assemblies.php
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-06-07 16:51:15 +0100
committerLester Caine <lester@lsces.co.uk>2026-06-07 16:51:15 +0100
commit9f5cb5855df61554e38a6da5d036bd78d421a2a9 (patch)
tree403cdd171269e8037cb8113f0735665ec916215c /list_assemblies.php
parentd75d099650de58ede08583e3dac27986544f799f (diff)
downloadstock-9f5cb5855df61554e38a6da5d036bd78d421a2a9.tar.gz
stock-9f5cb5855df61554e38a6da5d036bd78d421a2a9.tar.bz2
stock-9f5cb5855df61554e38a6da5d036bd78d421a2a9.zip
Stock package: assembly/component model, package-level xref, imports, print BOM
- LibertyXrefInfo/LibertyXrefGroup: package-level guid support ('stock') so stgrp, supplier, kitlocker groups are shared across SA and SC - schema_inc.php: stgrp group with KLG01-28, supplier consolidated to 'stock' level, kitlocker moved to 'stock', duplicate #PN/#PR removed - StockAssembly::getList(): non_root_only and show_empty fixes for standalone assemblies (no gallery hierarchy) - StockBase::loadXrefInfo(): instantiates with 'stock' package guid - list_assemblies.php: gallery_id param, show_empty default for flat list - edit_assembly.php: STOCKCOMPONENT_CONTENT_TYPE_GUID → string literal - ImportSimpleComponent: SCREF lookup fixed (xkey not xkey_ext), #SUP row now carries PN/price/URL directly; #PN #PR #URL separate rows removed - ImportKitlockerAssemblies, load_kitlocker_assemblies, load_component_list: new importers for KitlockerAssemblies.csv (A/C split) and Component List.csv - print_bom.php + print_bom.tpl: read-only printable BOM (p_stock_view only) with auto window.print() on load - component_order.tpl: print icon (floaticon), position number for print, hidden-print on form controls - list_stock.tpl: print icon - view_assembly.tpl: print icon → print_bom.php; permission gates tightened - ipackage duplicate attributes removed from templates Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'list_assemblies.php')
-rwxr-xr-xlist_assemblies.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/list_assemblies.php b/list_assemblies.php
index 6d7c154..1a2bee5 100755
--- a/list_assemblies.php
+++ b/list_assemblies.php
@@ -12,8 +12,8 @@ global $gBitSystem, $gBitSmarty, $gStockAssembly;
$gStockAssembly = new StockAssembly();
-if( !empty( $_REQUEST['content_id'] ) && is_numeric( $_REQUEST['content_id'] ) ) {
- $parentAssembly = new StockAssembly( (int)$_REQUEST['content_id'] );
+if( !empty( $_REQUEST['gallery_id'] ) && is_numeric( $_REQUEST['gallery_id'] ) ) {
+ $parentAssembly = new StockAssembly( (int)$_REQUEST['gallery_id'] );
$parentAssembly->load();
if( $parentAssembly->isValid() ) {
$_REQUEST['parent_content_id'] = $parentAssembly->mContentId;
@@ -21,8 +21,8 @@ if( !empty( $_REQUEST['content_id'] ) && is_numeric( $_REQUEST['content_id'] ) )
$gBitSmarty->assign( 'parentAssembly', $parentAssembly );
}
} else {
- $_REQUEST['root_only'] = true;
- $_REQUEST['show_empty'] = true;
+ $_REQUEST['show_empty'] = true;
+ $_REQUEST['no_thumbnails'] = true;
}
if (!empty($_REQUEST['user_id']) && is_numeric($_REQUEST['user_id'])) {