<?php

$line_values = null;
if (!empty($_GET['association_level'])) {
 $association_level = $$class->association_level = $_GET['association_level'];
} else{
 $association_level = null;
//  $readonly = 1; $mode = 2;
}

if (!empty($_GET['transaction_type_id'])) {
 $transaction_type_id = $$class->transaction_type_id = $_GET['transaction_type_id'];
} else {
 $transaction_type_id = $$class->transaction_type_id = null;
}


if (!empty($$class->transaction_type_id)) {
 $bc_label_auto_trigger_object = [];
 $lines = bc_label_auto_trigger::find_by_transactionId_associationLevel($transaction_type_id, $association_level);
 if (!empty($lines)) {
  $bc_label_auto_trigger_object = $lines;
 } else {
  $sys_pl = new bc_label_auto_trigger();
  array_push($bc_label_auto_trigger_object, $sys_pl);
 }
}


if (empty($$class->transaction_type_id)) {
 $bc_label_auto_trigger_object = array(new bc_label_auto_trigger());
}

if(empty($association_level) && empty($bc_label_auto_trigger_object[0]->association_level)){
 $association_level = $$class->association_level = 'SITE';
}
?>
