summaryrefslogtreecommitdiff
path: root/view_component.php
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-06-10 07:11:53 +0100
committerLester Caine <lester@lsces.co.uk>2026-06-10 07:11:53 +0100
commit4d24ef4733a06525f943e34ba0e85b69c7871965 (patch)
tree85ee470a0700b148b8cb717da570593357d07542 /view_component.php
parentcc23974a923e8b98ada7127fd2f09f75d97da01e (diff)
downloadstock-4d24ef4733a06525f943e34ba0e85b69c7871965.tar.gz
stock-4d24ef4733a06525f943e34ba0e85b69c7871965.tar.bz2
stock-4d24ef4733a06525f943e34ba0e85b69c7871965.zip
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)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'view_component.php')
-rwxr-xr-xview_component.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/view_component.php b/view_component.php
index f82a5c2..765a269 100755
--- a/view_component.php
+++ b/view_component.php
@@ -56,7 +56,7 @@ if( $gContent->isValid() ) {
FROM `{$X}liberty_xref` x
INNER JOIN `{$X}liberty_content` mc ON mc.`content_id` = x.`content_id`
AND mc.`content_type_guid` = 'stockmovement'
- WHERE x.`xref` = ? AND x.`item` IN ('SGL','PCK','SHT','VOL')
+ WHERE x.`xref` = ? AND x.`item` IN ('SGL','PRT','SHT','VOL')
AND x.`xkey` SIMILAR TO '[0-9]+(\.[0-9]+)?'
GROUP BY x.`item`",
[ $gContent->mContentId ]
@@ -67,11 +67,11 @@ if( $gContent->isValid() ) {
}
$ps = $gBitDb->getOne(
"SELECT CAST(x.`xkey` AS DOUBLE PRECISION) FROM `".BIT_DB_PREFIX."liberty_xref` x
- WHERE x.`content_id` = ? AND x.`item` = 'PCK'",
+ WHERE x.`content_id` = ? AND x.`item` = 'PRT'",
[ $gContent->mContentId ]
);
$gBitSmarty->assign( 'componentStockLevels', $stockLevels );
- $gBitSmarty->assign( 'packSize', $ps ? (float)$ps : null );
+ $gBitSmarty->assign( 'partSize', $ps ? (float)$ps : null );
}
require_once STOCK_PKG_INCLUDE_PATH.'display_stock_component_inc.php';