diff --git a/custom/modules/EcmProducts/metadata/detailviewdefs.php b/custom/modules/EcmProducts/metadata/detailviewdefs.php index 5c5c7d69..40f2810a 100644 --- a/custom/modules/EcmProducts/metadata/detailviewdefs.php +++ b/custom/modules/EcmProducts/metadata/detailviewdefs.php @@ -655,8 +655,9 @@ $viewdefs['EcmProducts']['DetailView'] = array( 'name' => 'production_panel', 'allCols' => true, 'hideLabel' => true, - 'customCode' => '{$MOD.LBL_COMPONENTS}


{$MOD.LBL_ACTIONS}
-

Podsumowanie
' + 'customCode' => '{$MOD.LBL_COMPONENTS}


{$MOD.LBL_ACTIONS}
+

Podsumowanie
+
Receptura: {$PRODUCTION_DESCRIPTION}' ) ) ), diff --git a/modules/EcmProducts/DetailView.php b/modules/EcmProducts/DetailView.php index 5f4c0247..f7bee40a 100755 --- a/modules/EcmProducts/DetailView.php +++ b/modules/EcmProducts/DetailView.php @@ -56,7 +56,9 @@ $detail->preDisplay(); $uunit.='>'.$row['name'].''; $uunit_array[$row['id']] = $row['name']; } - $detail->ss->assign("USAGE_UNIT_ID",$uunit); + $detail->ss->assign("USAGE_UNIT_ID",$uunit); + + $detail->ss->assign("PRODUCTION_DESCRIPTION",$focus->production_description); $tax=''; $result = $db->query("select id,name from ecmvats where deleted='0' order by name asc"); diff --git a/modules/EcmProducts/EcmProduct.php b/modules/EcmProducts/EcmProduct.php index dab9b789..1b4bd3d1 100755 --- a/modules/EcmProducts/EcmProduct.php +++ b/modules/EcmProducts/EcmProduct.php @@ -175,6 +175,7 @@ class EcmProduct extends SugarBean var $url8; var $url9; var $ean; + var $production_description; // RELATED FIELDS var $created_by; diff --git a/modules/EcmProducts/metadata/detailviewdefs.php b/modules/EcmProducts/metadata/detailviewdefs.php index 7ea3371c..64585357 100755 --- a/modules/EcmProducts/metadata/detailviewdefs.php +++ b/modules/EcmProducts/metadata/detailviewdefs.php @@ -531,8 +531,6 @@ $viewdefs['EcmProducts']['DetailView'] = array( ) ) ), - - 'LBL_PANEL_CATEGORIES' => array( 0 => array( 0 => array( @@ -569,7 +567,8 @@ $viewdefs['EcmProducts']['DetailView'] = array( 'allCols' => true, 'hideLabel' => true, 'customCode' => '{$MOD.LBL_COMPONENTS}


{$MOD.LBL_ACTIONS}
-

Podsumowanie
' +

Podsumowanie
+
Receptura: {$PRODUCTION_DESCRIPTION}' ) ) ), diff --git a/modules/EcmProducts/metadata/editviewdefs.php b/modules/EcmProducts/metadata/editviewdefs.php index 0057d04e..982a0c3d 100755 --- a/modules/EcmProducts/metadata/editviewdefs.php +++ b/modules/EcmProducts/metadata/editviewdefs.php @@ -566,7 +566,8 @@ $viewdefs['EcmProducts']['EditView'] = array( 'allCols' => true, 'hideLabel' => true, 'customCode' => '{$MOD.LBL_COMPONENTS}


{$MOD.LBL_ACTIONS}
-

' +


+ Receptura:
' ) ) ), diff --git a/modules/EcmProducts/vardefs.php b/modules/EcmProducts/vardefs.php index decdb235..91493978 100755 --- a/modules/EcmProducts/vardefs.php +++ b/modules/EcmProducts/vardefs.php @@ -1459,6 +1459,11 @@ $dictionary['EcmProduct'] = array( 'vname' => 'LBL_DESCRIPTION', 'type' => 'text' ), + 'production_description' => array( + 'name' => 'description', + 'vname' => 'LBL_DESCRIPTION', + 'type' => 'text' + ), 'models' => array( 'name' => 'models', 'vname' => 'LBL_MODELS',