Fix BOM position field

This commit is contained in:
Maxime Kohlhaas
2020-10-24 19:19:06 +02:00
parent 50da1cd95e
commit bedfb7ac8d

View File

@@ -2836,7 +2836,7 @@ abstract class CommonObject
{
// phpcs:enable
$positionfield = 'rang';
if ($this->table_element == 'bom') $positionfield = 'position';
if ($this->table_element == 'bom_bom') $positionfield = 'position';
// Search the last rang with fk_parent_line
if ($fk_parent_line)