<li><?php $f->l_text_field_d('description'); ?></li> </ul> </div> <div id="tabsHeader-2" class="tabContent"> <div> <ul class="column header_field"> <li><?php $f->l_date_fieldFromToday('agreement_start_date', $$class->agreement_start_date) ?></li> <li><?php $f->l_date_fieldFromToday('agreement_end_date', $$class->agreement_start_date) ?></li> <li><?php $f->l_select_field_from_object('doc_currency', option_header::currencies(), 'option_line_code', 'option_line_code', $$class->doc_currency, 'doc_currency', '', 1, $readonly); ?></li> <li><?php $f->l_select_field_from_object('ledger_currency', option_header::currencies(), 'option_line_code', 'option_line_code', $$class->currency, 'currency', 'currency', 1, 1); ?></li> <li><?php $f->l_select_field_from_object('exchange_rate_type', gl_currency_conversion::currency_conversion_type(), 'option_line_code', 'option_line_code', $$class->exchange_rate_type, 'exchange_rate_type', '', 1, $readonly); ?></li> <li><?php $f->l_number_field('exchange_rate', $$class->exchange_rate, '', 'exchange_rate', '', 1, $readonly); ?> </li> <li><?php $f->l_select_field_from_object('price_list_header_id', mdm_price_list_header::find_all_purchasing_pl(), 'mdm_price_list_header_id', 'price_list', $$class->price_list_header_id); ?></li> <li><?php $f->l_number_field('header_amount', $$class->header_amount, '15', 'header_amount'); ?></li> <li><?php $f->l_number_field('tax_amount', $$class->tax_amount, '15', 'tax_amount'); ?></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', '', 1, $readonly1); ?></li> </ul> </div> </div> <div id="tabsHeader-3" class="tabContent"> <div class="shipto_address"><?php $f->address_field_d('ship_to_id'); ?></div> <div class="billto_address"><?php $f->address_field_d('bill_to_id'); ?></div> </div> <div id="tabsHeader-4" class="tabContent"> <div id="comments"> <div id="comment_list"> <?php echo!(empty($comments)) ? $comments : ""; ?> </div> <div id ="display_comment_form"> <?php $reference_table = 'po_header';
</div> </div> <div id="tabsHeader-4" class="tabContent"> <div> <ul class="column header_field"> <li><?php $f->l_select_field_from_object('doc_currency', option_header::currencies(), 'option_line_code', 'option_line_code', ${$class}->doc_currency, 'doc_currency', '', 1, $readonly); ?> </li> <li><?php $f->l_select_field_from_object('ledger_currency', option_header::currencies(), 'option_line_code', 'option_line_code', ${$class}->currency, 'currency', 'currency', 1, 1); ?> </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', 1, $readonly1); ?> </li></li> <li><?php $f->l_date_fieldAnyDay('payment_term_date', ${$class}->payment_term_date); ?> </li> <li><?php $f->l_select_field_from_object('exchange_rate_type', gl_currency_conversion::currency_conversion_type(), 'option_line_code', 'option_line_code', ${$class}->exchange_rate_type, 'exchange_rate_type', '', 1, $readonly); ?> </li> <li><?php $f->l_number_field('exchange_rate', ${$class}->exchange_rate, '', 'exchange_rate'); ?> </li> <li><?php
<?php include_once "../../../include/basics/basics.inc"; global $db; // if the 'term' variable is not sent with the request, exit if (!isset($_REQUEST['term'])) { echo "exit"; exit; } else { $payment_term = $_REQUEST['term']; $data = payment_term::find_by_paymentTerm($payment_term); // jQuery wants JSON data $json = json_encode($data); print $json; // }
</div> <div class="second_rowset"> </div> <!--end of tab1 div three_column--> </div> <!--end of tab1--> <div id="tabsLine-2" class="tabContent"> <div class="first_rowset"> <ul class="column header_field"> <li><?php $f->l_select_field_from_object('currency', option_header::currencies(), 'option_line_code', 'option_line_code', $supplier_site->currency, 'currency', '', '', $readonly); ?> </li> <li><?php $f->l_select_field_from_object('payment_term_id', payment_term::find_all(), 'payment_term_id', 'payment_term', $supplier_site->payment_term_id, 'payment_term_id', $readonly, '', ''); ?> </li> <li><?php $f->l_checkBox_field('debit_memo_onreturn_cb', ${$class_second}->debit_memo_onreturn_cb); ?> </li> <li><?php $f->l_text_field('pay_on', ${$class_second}->pay_on); ?> </li> <li><?php $f->l_text_field('fob', ${$class_second}->fob); ?> </li> <li><?php
$document_revision_number = "rev_number"; $document_showVar1 = "buyer"; $document_showVar2 = "currency"; $document_showVar3 = "payment_term_id"; $document_showVar4 = "header_amount"; $external_entity_type = 'Supplier'; $external_entity_headerClass = "supplier"; $external_entity_headerId = 'supplier_id'; $external_entity_headerName = 'supplier_name'; $external_entity_headerNumber = 'supplier_number'; $external_entity_lineClass = "supplier_site"; $external_entity_lineId = 'supplier_site_id'; $external_entity_lineName = 'supplier_site_name'; $external_entity_lineNumber = 'supplier_site_number'; $external_entity_addressId = 'site_address_id'; $payment_term = payment_term::find_by_id(${$class}->{$document_showVar3}); //row 1 - left side header Info $header_info_statement = ""; if (!empty(${$class}->{$primary_column})) { $header_info_statement .= "<ul>"; $header_info_statement .= "<li>{$document_type} : " . ${$class}->{$document_type_number} . "</li>"; $header_info_statement .= "<li>Revision : " . ${$class}->{$document_revision_number} . "</li>"; $header_info_statement .= "<li>Buyer : " . ${$class}->{$document_showVar1} . "</li>"; $header_info_statement .= "<li>Currency : " . ${$class}->{$document_showVar2} . "</li>"; $header_info_statement .= "<li>Payment Term : " . $payment_term->payment_term . "</li>"; $header_info_statement .= "<li>Amount : " . ${$class}->{$document_showVar4} . "</li>"; $header_info_statement .= "</ul>"; } //row 1 - right side supplier/customer Info $external_entiry_info = ""; if (!empty(${$class}->{$external_entity_lineId})) {