Esempio n. 1
0
    </div>
   </div>

  </div>
 </form>
</div>

<div id ="form_line" class="form_line"><span class="heading"><?php 
echo __("Bank Branches");
?>
</span>
 <form method="post" id="mdm_bank_site"  name="mdm_bank_site">
  <div id='line_before_tab' class="ino-well"> 
   <ul class="column header_field "> 
    <li><?php 
$f->l_select_field_from_array('mdm_bank_site_id', mdm_bank_site::find_all_sitesOfHeader_array(${$class}->mdm_bank_header_id), ${$class_second}->mdm_bank_site_id, 'mdm_bank_site_id', ' medium');
?>
     <a name="show" href="form.php?class_name=mdm_bank_header&<?php 
echo "mode={$mode}";
?>
" class="show document_id mdm_bank_site_id" data-search_field='mdm_bank_site_id'>
      <i class='fa fa-refresh'></i></a> 
    </li> 
    <?php 
echo form::hidden_field('mdm_bank_header_id', ${$class}->mdm_bank_header_id);
?>
    <li><?php 
$f->l_text_field('branch_name', ${$class_second}->branch_name);
?>
 </li>
    <li><?php 
Esempio n. 2
0
    //return from this file
    return;
}
if (!empty($_GET['mdm_bank_id']) && !empty($_GET['org_id'])) {
    echo '<div id="customer_bu_addresses">';
    $mdm_bank_id = $_GET['mdm_bank_id'];
    $org_id = $_GET['org_id'];
    $customer_bu_assigment = mdm_bank_bu::find_by_orgId_customerId($mdm_bank_id, $org_id);
    echo '</div>';
}
if (!empty($_GET['mdm_bank_id']) && ($_GET['find_all_sites'] = 1)) {
    echo '<div id="json_customer_sites_all">';
    $mdm_bank_id = $_GET['mdm_bank_id'];
    if (!empty($_GET['org_id'])) {
        $org_id = $_GET['org_id'];
        $acs = new mdm_bank_site();
        if (mdm_bank_bu::validate_customerBuAssignment($mdm_bank_id, $org_id) == 1) {
            echo '<div id="json_customerSites_find_all">' . form::select_field_from_object('mdm_bank_site_id', $acs->findBy_parentId($mdm_bank_id), 'mdm_bank_site_id', 'customer_site_name', '', 'mdm_bank_site_id') . '</div>';
            $arcbu = new mdm_bank_bu();
            $arcbu->mdm_bank_id = $mdm_bank_id;
            $arcbu->org_id = $org_id;
            $arcbu_i = $arcbu->findBy_orgId_customerId();
            echo "<div id='receivable_ac_id'>" . coa_combination::find_by_id($arcbu_i->receivable_ac_id)->combination . '</div>';
        } else {
            echo "<div class=\"errorMsg\">Customer BU Assignment doesn't exists</div>";
        }
    } else {
        echo form::select_field_from_object('mdm_bank_site_id', mdm_bank_site::find_all_sitesOfCustomer($mdm_bank_id), 'mdm_bank_site_id', 'customer_site_name', '', 'mdm_bank_site_id');
    }
    echo '</div>';
}