diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-06-10 07:11:53 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-06-10 07:11:53 +0100 |
| commit | 4d24ef4733a06525f943e34ba0e85b69c7871965 (patch) | |
| tree | 85ee470a0700b148b8cb717da570593357d07542 /add_movement_component.php | |
| parent | cc23974a923e8b98ada7127fd2f09f75d97da01e (diff) | |
| download | stock-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_movement_component.php')
| -rw-r--r-- | add_movement_component.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/add_movement_component.php b/add_movement_component.php index 9f2dfa2..56f02a5 100644 --- a/add_movement_component.php +++ b/add_movement_component.php @@ -22,7 +22,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'] ) ) { @@ -55,7 +55,7 @@ if( !empty( $_REQUEST['fAddComponent'] ) ) { $nextXorder = (int)$gBitDb->getOne( "SELECT COALESCE( MAX(x.`xorder`) + 1, 1 ) FROM `".BIT_DB_PREFIX."liberty_xref` x - WHERE x.`content_id` = ? AND x.`item` IN ('SGL','PCK','SHT','VOL')", + WHERE x.`content_id` = ? AND x.`item` IN ('SGL','PRT','SHT','VOL')", [ $gContent->mContentId ] ) ?: 1; |
