<feed xmlns='http://www.w3.org/2005/Atom'>
<title>stock/edit_assembly.php, branch master</title>
<subtitle>Bitweaver stock package repository
</subtitle>
<id>https://git.rdm1.uk/stock/.git/atom?h=master</id>
<link rel='self' href='https://git.rdm1.uk/stock/.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.rdm1.uk/stock/.git/'/>
<updated>2026-06-11T09:42:10Z</updated>
<entry>
<title>stock: merge stgrp xrefs into kitlocker group at data level; revert stgrp template tag; drop sgGroup stash from component templates</title>
<updated>2026-06-11T09:42:10Z</updated>
<author>
<name>Lester Caine</name>
<email>lester@lsces.co.uk</email>
</author>
<published>2026-06-11T09:42:10Z</published>
<link rel='alternate' type='text/html' href='https://git.rdm1.uk/stock/.git/commit/?id=51195f3ae4cbc9ce3ae6f6054e75a72fdf0a5e32'/>
<id>urn:sha1:51195f3ae4cbc9ce3ae6f6054e75a72fdf0a5e32</id>
<content type='text'>
Co-Authored-By: Claude Sonnet 4.6 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>stock: rename PCK→PRT (fractional parts), add PCK as ordering pack-size tag; rename pack_size→part_size; bompck templates→bomprt; strip verbose labels (fraction), (H x W)</title>
<updated>2026-06-10T06:11:53Z</updated>
<author>
<name>Lester Caine</name>
<email>lester@lsces.co.uk</email>
</author>
<published>2026-06-10T06:11:53Z</published>
<link rel='alternate' type='text/html' href='https://git.rdm1.uk/stock/.git/commit/?id=4d24ef4733a06525f943e34ba0e85b69c7871965'/>
<id>urn:sha1:4d24ef4733a06525f943e34ba0e85b69c7871965</id>
<content type='text'>
Co-Authored-By: Claude Sonnet 4.6 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>Stock package: assembly/component model, package-level xref, imports, print BOM</title>
<updated>2026-06-07T15:51:15Z</updated>
<author>
<name>Lester Caine</name>
<email>lester@lsces.co.uk</email>
</author>
<published>2026-06-07T15:51:15Z</published>
<link rel='alternate' type='text/html' href='https://git.rdm1.uk/stock/.git/commit/?id=9f5cb5855df61554e38a6da5d036bd78d421a2a9'/>
<id>urn:sha1:9f5cb5855df61554e38a6da5d036bd78d421a2a9</id>
<content type='text'>
- 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 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>import: save uploaded CSVs to storage/stock/ for audit trail</title>
<updated>2026-06-06T16:44:21Z</updated>
<author>
<name>Lester Caine</name>
<email>lester@lsces.co.uk</email>
</author>
<published>2026-06-06T16:44:21Z</published>
<link rel='alternate' type='text/html' href='https://git.rdm1.uk/stock/.git/commit/?id=20d282c1bbb6385150486a6c88ad65ce97e746d7'/>
<id>urn:sha1:20d282c1bbb6385150486a6c88ad65ce97e746d7</id>
<content type='text'>
Add STOCK_IMPORT_PATH = STORAGE_PKG_PATH.'stock/' to bit_setup_inc.

edit_assembly.php: move_uploaded_file BOM CSV to
  storage/stock/&lt;origname&gt;_bom_&lt;content_id&gt;.csv before processing.

edit_movement.php: copy movement CSV to
  storage/stock/&lt;origname&gt;_move_&lt;content_id&gt;.csv before calling importCsv().

Co-Authored-By: Claude Sonnet 4.6 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>xref: complete migration from loadXrefList to loadXrefInfo</title>
<updated>2026-06-06T14:03:51Z</updated>
<author>
<name>Lester Caine</name>
<email>lester@lsces.co.uk</email>
</author>
<published>2026-06-06T14:03:51Z</published>
<link rel='alternate' type='text/html' href='https://git.rdm1.uk/stock/.git/commit/?id=4269a36ce2ba9d5ce10ccc50bb698f5d78c32c48'/>
<id>urn:sha1:4269a36ce2ba9d5ce10ccc50bb698f5d78c32c48</id>
<content type='text'>
Remove loadXrefList() overrides from StockBase, StockAssembly,
StockMovement; remove loadXrefList() calls from all load() methods.

StockMovement::load() gains ref_type and ref_from_data correlated
subqueries so templates no longer need mInfo.reference[0].
getDirection() reads mInfo.ref_type directly.

component_order.php/tpl: switch to loadXrefInfo + gXrefInfo path.
edit_assembly.php: remove stale bucket-clearing block.
view_movement.tpl: use mInfo.ref_from_data instead of mInfo.reference.0.data.

Co-Authored-By: Claude Sonnet 4.6 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>Refactor xref display to LibertyXrefGroup path throughout</title>
<updated>2026-06-06T09:15:47Z</updated>
<author>
<name>Lester Caine</name>
<email>lester@lsces.co.uk</email>
</author>
<published>2026-06-06T09:15:47Z</published>
<link rel='alternate' type='text/html' href='https://git.rdm1.uk/stock/.git/commit/?id=b2ae92f41dc18de0a212e579ee4b1e3362e5a4a6'/>
<id>urn:sha1:b2ae92f41dc18de0a212e579ee4b1e3362e5a4a6</id>
<content type='text'>
- StockBase/StockAssembly/StockMovement: add loadXrefInfo() overrides
  to enrich supplier group with contact titles and BOM group with
  component titles, descriptions and pack sizes
- display_stock_assembly_inc, view/edit_component, view/edit_assembly,
  view_movement: replace getXrefGroupList() with loadXrefInfo() +
  assign gXrefInfo; edit pages pass allow_edit=true
- All view/edit templates: switch {section} over stockXxx_types arrays
  to {foreach $gXrefInfo-&gt;mGroups as $xrefGroup} object path
- BOM and supplier group templates rewritten: $xrefGroup object,
  column widths, class="table", conditional colspan
- All BOM/supplier item templates: $gContent-&gt;mInfo.$source[xref].x
  -&gt; $xrefInfo.x; $source ne 'history' -&gt; $isHistory
- Dead code removed: list_xref_stock.tpl, view_xref_pck_item.tpl

Co-Authored-By: Claude Sonnet 4.6 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>Move all stock CONTENT_TYPE_GUID defines to StockBase</title>
<updated>2026-06-02T16:15:16Z</updated>
<author>
<name>Lester Caine</name>
<email>lester@lsces.co.uk</email>
</author>
<published>2026-06-02T16:15:16Z</published>
<link rel='alternate' type='text/html' href='https://git.rdm1.uk/stock/.git/commit/?id=08f901e00b0627157318decfcde8f63491a26d33'/>
<id>urn:sha1:08f901e00b0627157318decfcde8f63491a26d33</id>
<content type='text'>
StockBase is always loaded first; defining all three constants there
avoids files depending on each other's load order.
Removed duplicate defines from StockComponent and StockMovement.
Reverted spurious use StockComponent from edit_assembly.php.

Co-Authored-By: Claude Sonnet 4.6 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>edit_assembly: use StockComponent to define STOCKCOMPONENT_CONTENT_TYPE_GUID</title>
<updated>2026-06-02T16:12:17Z</updated>
<author>
<name>Lester Caine</name>
<email>lester@lsces.co.uk</email>
</author>
<published>2026-06-02T16:12:17Z</published>
<link rel='alternate' type='text/html' href='https://git.rdm1.uk/stock/.git/commit/?id=7a2de113969c0e90626f569ea620c4c6927a0991'/>
<id>urn:sha1:7a2de113969c0e90626f569ea620c4c6927a0991</id>
<content type='text'>
Co-Authored-By: Claude Sonnet 4.6 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>Rename view.php → view_assembly.php, edit.php → edit_assembly.php</title>
<updated>2026-06-01T08:21:38Z</updated>
<author>
<name>Lester Caine</name>
<email>lester@lsces.co.uk</email>
</author>
<published>2026-06-01T08:21:38Z</published>
<link rel='alternate' type='text/html' href='https://git.rdm1.uk/stock/.git/commit/?id=c2f0cde6821a8b9881149a6136e51ce9898d0476'/>
<id>urn:sha1:c2f0cde6821a8b9881149a6136e51ce9898d0476</id>
<content type='text'>
Consistent with view_component, view_movement naming convention.
All URL references updated across templates, modules, and
StockAssembly::getDisplayUrlFromHash(). nginx pretty-URL rewrite updated.

Co-Authored-By: Claude Sonnet 4.6 &lt;noreply@anthropic.com&gt;
</content>
</entry>
</feed>
