production: production_description in product

This commit is contained in:
Michał Zieliński
2025-10-08 07:49:12 +02:00
parent 2fac64346e
commit 7e0d56c670
6 changed files with 16 additions and 7 deletions

View File

@@ -655,8 +655,9 @@ $viewdefs['EcmProducts']['DetailView'] = array(
'name' => 'production_panel',
'allCols' => true,
'hideLabel' => true,
'customCode' => '{$MOD.LBL_COMPONENTS}<br><div id="componentsTable"></div><br><br>{$MOD.LBL_ACTIONS}<div id="actionsTable"></div>
<br><br><div id="summaryTable" style="width: 50%; padding-right: 0px;">Podsumowanie</div>'
'customCode' => '{$MOD.LBL_COMPONENTS}<br><div id="componentsTable"></div><br><br>{$MOD.LBL_ACTIONS}<div id="actionsTable"></div>
<br><br><div id="summaryTable" style="width: 50%; padding-right: 0px;">Podsumowanie</div>
<br><b>Receptura:</b> {$PRODUCTION_DESCRIPTION}'
)
)
),

View File

@@ -56,7 +56,9 @@ $detail->preDisplay();
$uunit.='>'.$row['name'].'</option>';
$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");

View File

@@ -175,6 +175,7 @@ class EcmProduct extends SugarBean
var $url8;
var $url9;
var $ean;
var $production_description;
// RELATED FIELDS
var $created_by;

View File

@@ -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}<br><div id="componentsTable"></div><br><br>{$MOD.LBL_ACTIONS}<div id="actionsTable"></div>
<br><br><div id="summaryTable" style="width: 50%; padding-right: 0px;">Podsumowanie</div>'
<br><br><div id="summaryTable" style="width: 50%; padding-right: 0px;">Podsumowanie</div>
<br>Receptura: {$PRODUCTION_DESCRIPTION}'
)
)
),

View File

@@ -566,7 +566,8 @@ $viewdefs['EcmProducts']['EditView'] = array(
'allCols' => true,
'hideLabel' => true,
'customCode' => '{$MOD.LBL_COMPONENTS}<br><div id="componentsTable"></div><br><br>{$MOD.LBL_ACTIONS}<div id="actionsTable"></div>
<br><br><div style="width: 17%;" id="copyProduct"></div><div style="width: 17%" id="copyButtons"></div>'
<br><br><div style="width: 17%;" id="copyProduct"></div><div style="width: 17%" id="copyButtons"></div><br>
Receptura:<br><textarea name="production_description" id="production_description" cols="80" rows="10"></textarea>'
)
)
),

View File

@@ -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',