summaryrefslogtreecommitdiff
path: root/edit_movement.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 /edit_movement.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 'edit_movement.php')
-rw-r--r--edit_movement.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/edit_movement.php b/edit_movement.php
index 816553c..1167efd 100644
--- a/edit_movement.php
+++ b/edit_movement.php
@@ -21,7 +21,7 @@ if( $gContent->isValid() ) {
}
// TODO: derive from liberty_xref_item WHERE content_type_guid='stockcomponent' AND x_group='quantity'
-$qtyTypes = [ 'SGL', 'PCK', 'SHT', 'VOL' ];
+$qtyTypes = [ 'SGL', 'PRT', 'SHT', 'VOL' ];
// Movement reference types from DB — drives the type selector on create
$refTypes = $gBitDb->getAssoc(
@@ -134,7 +134,7 @@ if( !empty( $_REQUEST['fSave'] ) ) {
} else {
$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;
$qtyHash = [