summaryrefslogtreecommitdiff
path: root/list_movements.php
diff options
context:
space:
mode:
Diffstat (limited to 'list_movements.php')
-rw-r--r--list_movements.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/list_movements.php b/list_movements.php
index 8ae66e4..1172fd3 100644
--- a/list_movements.php
+++ b/list_movements.php
@@ -19,7 +19,7 @@ $listHash = $_REQUEST;
$movementList = $movement->getList( $listHash );
$componentTitle = '';
-$packSize = null;
+$partSize = null;
if( $componentContentId ) {
$componentTitle = $gBitDb->getOne(
"SELECT `title` FROM `".BIT_DB_PREFIX."liberty_content` WHERE `content_id` = ?",
@@ -27,10 +27,10 @@ if( $componentContentId ) {
) ?: '';
$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'",
[ $componentContentId ]
);
- $packSize = $ps ? (float)$ps : null;
+ $partSize = $ps ? (float)$ps : null;
}
$gBitSmarty->assign( 'listInfo', $listHash['listInfo'] );
@@ -39,6 +39,6 @@ $gBitSmarty->assign( 'filterType', $_REQUEST['ref_type'] ?? '' );
$gBitSmarty->assign( 'assemblyContentId', isset( $_REQUEST['assembly_content_id'] ) && is_numeric( $_REQUEST['assembly_content_id'] ) ? (int)$_REQUEST['assembly_content_id'] : null );
$gBitSmarty->assign( 'componentContentId', $componentContentId );
$gBitSmarty->assign( 'componentTitle', $componentTitle );
-$gBitSmarty->assign( 'packSize', $packSize );
+$gBitSmarty->assign( 'partSize', $partSize );
$gBitSystem->display( 'bitpackage:stock/list_movements.tpl', 'Movements', [ 'display_mode' => 'list' ] );