コード例 #1
0
ファイル: po_template.php プロジェクト: henryzi/inoERP
         <th><?php echo gettext('Line Description') ?></th>
        </tr>
       </thead>
       <tbody class="form_data_line_tbody">
        <?php
        $count = 0;
        foreach ($po_line_object as $po_line) {
         ?>         
         <tr class="po_line<?php echo $count ?>">
          <td><?php $f->seq_field_d($count) ?></td>
          <td><?php echo $f->select_field_from_object('price_list_header_id', mdm_price_list_header::find_all_purchasing_pl(), 'mdm_price_list_header_id', 'price_list', $$class_second->price_list_header_id, '', 'medium copyValue'); ?>
          </td>
          <td><?php echo $f->date_fieldAnyDay('price_date', $$class_second->price_date, 'copyValue') ?></td>
          <td><?php echo $f->number_field('unit_price', $$class_second->unit_price); ?></td>
          <td><?php echo $f->number_field('line_price', $$class_second->line_price); ?></td>
          <td><?php echo $f->select_field_from_object('tax_code_id', mdm_tax_code::find_all_inTax_by_bu_org_id($$class->bu_org_id), 'mdm_tax_code_id', 'tax_code', $$class_second->tax_code_id, '', 'input_tax medium', '', $readonly, '', '', '', 'percentage') ?></td>
          <td><?php form::number_field_wid2('tax_amount'); ?></td>
          <td><?php $f->text_field_d2sr('gl_line_price'); ?></td>
          <td><?php $f->text_field_d2sr('gl_tax_amount'); ?></td>
          <td><?php form::text_field_wid2('line_description'); ?></td>

         </tr>
         <?php
         $count = $count + 1;
        }
        ?>
       </tbody>
       <!--                  Showing a blank form for new entry-->
      </table>
     </div>
     <div id="tabsLine-3" class="scrollElement tabContent">
コード例 #2
0
    ?>
">
         <td><?php 
    $f->seq_field_d($count);
    ?>
</td>
         <td><?php 
    form::number_field_wid2m('inv_unit_price');
    ?>
</td>
         <td><?php 
    form::text_field_wid2m('inv_line_price');
    ?>
</td>
         <td><?php 
    echo $f->select_field_from_object('tax_code_id', mdm_tax_code::find_all_outTax_by_bu_org_id(${$class}->bu_org_id), 'mdm_tax_code_id', 'tax_code', ${$class_second}->tax_code_id, '', 'output_tax medium', '', $readonly, '', '', '', 'percentage');
    ?>
</td>
         <td><?php 
    form::number_field_wid2('tax_amount');
    ?>
</td>
         <td><?php 
    form::number_field_wid2sr('gl_inv_line_price');
    ?>
</td>
         <td><?php 
    form::number_field_wid2sr('gl_tax_amount');
    ?>
</td>
         <td><?php 
コード例 #3
0
ファイル: json_bu.php プロジェクト: moxymokaya/inoERP
global $f;
if (!empty($_GET['bu_org_id']) && !empty($_GET['find_bu_details'])) {
    $data = [];
    $bu_org_id = $_GET['bu_org_id'];
    $ar_transaction_type = ar_transaction_type::find_all_by_buOrgId($bu_org_id);
    $ar_trnx_type_stmt = $f->select_field_from_object('transaction_type', $ar_transaction_type, 'ar_transaction_type_id', 'ar_transaction_type', '', 'transaction_type', '', 1);
    $data['ar_transaction_type'] = $ar_trnx_type_stmt;
    $legal_org_id = org::find_by_id($bu_org_id)->legal_org_id;
    $ledger_id = legal::find_by_orgId($legal_org_id)->ledger_id;
    $data['ledger_id'] = $ledger_id;
    if (!empty($ledger_id)) {
        $ledger = new gl_ledger();
        $ledger_i = $ledger->findBy_id($ledger_id);
        if ($ledger_i) {
            $data['currency'] = $ledger_i->currency_code;
            $gp = new gl_period();
            $all_open_periods = $gp->find_all_periods($ledger_id, 'OPEN');
            $period_id = $gp->current_open_period($ledger_id, 'OPEN')->gl_period_id;
            $period_name_stmt = $f->select_field_from_object('period_id', $all_open_periods, 'gl_period_id', 'period_name', $period_id, 'period_id', '', 1);
            $data['period_name_stmt'] = $period_name_stmt;
            $data['period_id'] = $period_id;
            $data['output_tax'] = $f->select_field_from_object('tax_code_id', mdm_tax_code::find_all_outTax_by_bu_org_id($bu_org_id), 'mdm_tax_code_id', 'tax_code', '', '', 'output_tax medium', '', '', '', '', '', 'percentage');
        }
    }
    if (count($data) == 0) {
        return false;
    } else {
        echo header('Content-Type: application/json');
        echo json_encode($data);
    }
}
コード例 #4
0
ファイル: expense_template.php プロジェクト: noikiy/inoERP
    ?>
 							</td>
 							<td><?php 
    echo $f->date_fieldAnyDay('price_date', ${$class_second}->price_date);
    ?>
</td>
 							<td><?php 
    form::number_field_wid2('unit_price');
    ?>
</td>
 							<td><?php 
    form::number_field_wid2('line_price');
    ?>
</td>
 							<td><?php 
    echo $f->select_field_from_object('tax_code_id', mdm_tax_code::find_all_outTax_by_inv_org_id(${$class_second}->shipping_org_id), 'mdm_tax_code_id', 'tax_code', ${$class_second}->tax_code_id, '', 'output_tax medium');
    ?>
</td>
 							<td><?php 
    form::number_field_wid2('tax_amount');
    ?>
</td>
 						 </tr>
							<?php 
    $count = $count + 1;
}
?>
						</tbody>
						<!--                  Showing a blank form for new entry-->
					 </table>
					</div>
コード例 #5
0
?>
 </li>
      <li><?php 
$f->l_text_field_d('default_payment_method');
?>
 </li>
      <li><?php 
$f->l_text_field_d('remittance_advice_method');
?>
 </li>
      <li><?php 
$f->l_text_field_d('remittance_advice_email');
?>
 </li>
      <li><?php 
$f->l_select_field_from_object('bu_tax_code', mdm_tax_code::find_all_inTax_by_bu_org_id(${$class}->org_id), 'mdm_tax_code_id', 'tax_code', ${$class}->bu_tax_code, '', 'input_tax medium');
?>
</li> 
      <li><?php 
$f->l_select_field_from_object('invoice_currency', option_header::currencies(), 'option_line_code', 'option_line_value', ${$class}->invoice_currency, 'invoice_currency');
?>
</li>
      <li><?php 
$f->l_select_field_from_array('payment_priority', dbObject::$position_array, ${$class}->payment_priority);
?>
</li> 
      <li><?php 
$f->l_select_field_from_object('payment_term_id', payment_term::find_all(), 'payment_term_id', 'payment_term', ${$class}->payment_term_id, 'payment_term_id');
?>
</li> 
     </ul>
コード例 #6
0
ファイル: tax_code_template.php プロジェクト: noikiy/inoERP
    
           </td>
           <td><?php 
    $f->seq_field_d($count);
    ?>
</td>
           <td><?php 
    form::number_field_drs('mdm_tax_code_id');
    ?>
</td>
           <td><?php 
    form::text_field_widm('tax_code');
    ?>
</td>
           <td><?php 
    echo form::select_field_from_object('tax_type', mdm_tax_code::tax_type(), 'option_line_code', 'option_line_value', ${$class}->tax_type, '', $readonly);
    ?>
</td>
           <td><?php 
    form::text_field_wid('description');
    ?>
</td>
           <td><?php 
    echo $f->select_field_from_array('in_out', mdm_tax_code::$in_out_a, ${$class}->in_out, 'in_out', '', '', $readonly, $readonly1);
    ?>
</td>
           <td><?php 
    echo $f->select_field_from_array('dr_cr', mdm_tax_code::$dr_cr_a, ${$class}->dr_cr, 'dr_cr', '', '', $readonly, $readonly1);
    ?>
</td>
           <td><?php 
コード例 #7
0
<?php

include_once "../../../includes/basics/basics.inc";
if (!empty($_GET['org_id']) && !empty($_GET['in_out_tax']) && ($_GET['find_all_tax'] = 1)) {
    echo '<div id="json_tax_code_find_all">';
    if ($_GET['in_out_tax'] == 'IN') {
        $all_tax_codes = mdm_tax_code::find_all_inTax_by_inv_org_id($_GET['org_id']);
    } elseif ($_GET['in_out_tax'] == 'OUT') {
        $all_tax_codes = mdm_tax_code::find_all_outTax_by_inv_org_id($_GET['org_id']);
    }
    if (empty($all_tax_codes)) {
        return false;
    } else {
        foreach ($all_tax_codes as $tax_code) {
            $tax_class = !empty($tax_code->percentage) ? 'p_' . $tax_code->percentage : 'a_' . $tax_code->tax_amount;
            echo '<option class="' . $tax_class . '"  value="' . $tax_code->mdm_tax_code_id . '"';
            echo '>' . $tax_code->tax_code . '</option>';
        }
    }
    echo '</div>';
}
?>

コード例 #8
0
ファイル: product_template.php プロジェクト: ac3gam3r/inoERP
</li>
      <li><?php 
$f->l_text_field_dm('product_name');
?>
</li>
      <li><label><?php 
echo __('Inv Item Number');
?>
</label><?php 
echo $f->hidden_field_withId('item_id_m', ${$class}->item_id_m);
$f->text_field_dm('item_number', 'select_item_number');
?>
       <i class="select_item_number select_popup clickable fa fa-search"></i>
      </li>
      <li><?php 
$f->l_select_field_from_object('tax_code_id', mdm_tax_code::find_all_outTax_by_inv_org_id(${$class}->org_id), 'mdm_tax_code_id', 'tax_code', ${$class}->tax_code_id, '', 'input_tax medium', '', $readonly, '', '', '', 'percentage');
?>
</li>
      <li><?php 
$f->l_date_fieldAnyDay('new_date_trom', ${$class}->new_date_trom);
?>
</li>
      <li><?php 
$f->l_date_fieldAnyDay('new_date_to', ${$class}->new_date_to);
?>
</li>
      <li><?php 
$f->l_select_field_from_array('status', ec_product::$status_a, ${$class}->status, 'status', '', 1);
?>
        </li>
      <li><?php