<?php 

//values for balancing segments
if (!empty($$class->coa_structure_id)) {
 $coa = coa::find_by_structure($$class->coa_structure_id);
 $balancing_qualifier = $option_line_code = $coa->balancing;
 $old = option_line::find_by_optionId_lineCode($$class->coa_structure_id, $balancing_qualifier);
 $value_group_headerid = $old->value_group_id;
} else {
 $value_group_headerid = null;
 $gl_ledger_balancing_values_object = [new gl_ledger_balancing_values()];
}
?>
