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

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

View File

@@ -58,6 +58,8 @@ $detail->preDisplay();
} }
$detail->ss->assign("USAGE_UNIT_ID",$uunit); $detail->ss->assign("USAGE_UNIT_ID",$uunit);
$detail->ss->assign("PRODUCTION_DESCRIPTION",$focus->production_description);
$tax=''; $tax='';
$result = $db->query("select id,name from ecmvats where deleted='0' order by name asc"); $result = $db->query("select id,name from ecmvats where deleted='0' order by name asc");
while(($row=$db->fetchByAssoc($result))!=null) while(($row=$db->fetchByAssoc($result))!=null)

View File

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

View File

@@ -531,8 +531,6 @@ $viewdefs['EcmProducts']['DetailView'] = array(
) )
) )
), ),
'LBL_PANEL_CATEGORIES' => array( 'LBL_PANEL_CATEGORIES' => array(
0 => array( 0 => array(
0 => array( 0 => array(
@@ -569,7 +567,8 @@ $viewdefs['EcmProducts']['DetailView'] = array(
'allCols' => true, 'allCols' => true,
'hideLabel' => true, 'hideLabel' => true,
'customCode' => '{$MOD.LBL_COMPONENTS}<br><div id="componentsTable"></div><br><br>{$MOD.LBL_ACTIONS}<div id="actionsTable"></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><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, 'allCols' => true,
'hideLabel' => true, 'hideLabel' => true,
'customCode' => '{$MOD.LBL_COMPONENTS}<br><div id="componentsTable"></div><br><br>{$MOD.LBL_ACTIONS}<div id="actionsTable"></div> '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', 'vname' => 'LBL_DESCRIPTION',
'type' => 'text' 'type' => 'text'
), ),
'production_description' => array(
'name' => 'description',
'vname' => 'LBL_DESCRIPTION',
'type' => 'text'
),
'models' => array( 'models' => array(
'name' => 'models', 'name' => 'models',
'vname' => 'LBL_MODELS', 'vname' => 'LBL_MODELS',