summaryrefslogtreecommitdiff
path: root/add_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 /add_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 'add_component.php')
-rw-r--r--add_component.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/add_component.php b/add_component.php
index d33919c..b80f223 100644
--- a/add_component.php
+++ b/add_component.php
@@ -24,7 +24,7 @@ if( !$gContent->isValid() ) {
}
$gContent->verifyUpdatePermission();
-$validItems = [ 'SGL' => 'Single unit', 'PCK' => 'Pack', 'SHT' => 'Sheet (H x W)', 'VOL' => 'Volume' ];
+$validItems = [ 'SGL' => 'Single unit', 'PRT' => 'Part', 'SHT' => 'Sheet', 'VOL' => 'Volume' ];
$errors = [];
if( !empty( $_REQUEST['fCancel'] ) ) {
@@ -60,7 +60,7 @@ if( !empty( $_REQUEST['fAddComponent'] ) ) {
// Place new row at end of current BOM
$maxXorder = (int)$gBitDb->getOne(
"SELECT MAX(`xorder`) FROM `".BIT_DB_PREFIX."liberty_xref`
- WHERE `content_id`=? AND `item` IN ('SGL','PCK','SHT','VOL')",
+ WHERE `content_id`=? AND `item` IN ('SGL','PRT','SHT','VOL')",
[ $gContent->mContentId ]
);