Ejemplo n.º 1
0
  <li><a href="#tabsHeader-5"><?php echo gettext('Attachments') ?></a></li>
  <li><a href="#tabsHeader-6"><?php echo gettext('Actions') ?></a></li>
 </ul>
 <div class="tabContainer">
  <div id="tabsHeader-1" class="tabContent">
   <ul class="column header_field">
    <li><?php $f->l_text_field_dr_withSearch('po_header_id') ?>
     <a name="show" href="form.php?class_name=po_header&<?php echo "mode=$mode"; ?>" class="show document_id po_header_id"><i class="fa fa-refresh"></i></a> 
    </li>
    <li><?php $f->l_select_field_from_object('bu_org_id', org::find_all_business(), 'org_id', 'org', $$class->bu_org_id, 'bu_org_id', '', 1, $readonly1); ?>        </li>
    <li><?php $f->l_select_field_from_array('po_type', po_header::$po_type_a, $$class->po_type, 'po_type', '', 1, $readonly1, $readonly1); ?>        </li>
    <li><?php $f->l_text_field_d('po_number', 'primary_column2'); ?> </li>
    <li><?php $f->l_text_field_d('release_number'); ?>
     <?php echo $f->hidden_field_withId('ref_po_header_id', $$class->ref_po_header_id); ?>
    </li>
    <li><?php $f->l_select_field_from_object('status', po_header::po_status(), 'option_line_code', 'option_line_value', $$class->po_status, 'po_status', 'dont_copy', '', 1); ?></li>
    <li><?php
     echo $f->l_val_field_dm('supplier_name', 'supplier', 'supplier_name', '', 'supplier_name', 'vf_select_supplier_name');
     echo $f->hidden_field_withId('supplier_id', $$class->supplier_id);
     ?><i class="generic g_select_supplier_name select_popup clickable fa fa-search" data-class_name="supplier"></i></li>
    <li><?php
     echo $f->l_val_field_d('supplier_number', 'supplier', 'supplier_number', '', '', 'vf_select_supplier_number');
     ?><i class="generic g_select_supplier_number select_popup clickable fa fa-search" data-class_name="supplier"></i></li>
    <li><label><?php echo gettext('Supplier Site') ?></label><?php
     $supplier_site_obj = !empty($$class->supplier_id) ? supplier_site::find_by_parent_id($$class->supplier_id) : array();
     echo $f->select_field_from_object('supplier_site_id', $supplier_site_obj, 'supplier_site_id', 'supplier_site_name', $$class->supplier_site_id, 'supplier_site_id', '', '', $readonly1);
     ?> </li>
    <li><?php $f->l_text_field_d('rev_number'); ?></li> 
    <li><?php $f->l_checkBox_field_d('multi_bu_cb'); ?></li> 
    <li><?php
     echo $f->l_val_field_d('buyer', 'hr_employee_v', 'employee_name', '', 'vf_select_document_owner employee_name');
Ejemplo n.º 2
0
<?php

include_once "../../includes/basics/basics.inc";
include "../../tparty/mpdf/mpdf.php";
$mpdf = new mPDF('c');
ob_start();
global $si;
echo '<link href="../../themes/default/layout.css"  media="all" rel="stylesheet" type="text/css" />';
echo '<link href="../../themes/default/public.css" media="all" rel="stylesheet" type="text/css" />';
echo '<link href="po.css" media="all" rel="stylesheet" type="text/css"  />';
$po_header = new po_header();
$class = $class_first = 'po_header';
${$class} = ${$class_first} =& $po_header;
$class_second = 'po_line';
${$class_second} =& $po_line;
$class_third = 'po_detail';
${$class_third} =& $po_detail;
if (!empty($_GET["po_header_id"])) {
    $po_header_id = $_GET["po_header_id"];
    $po_header->findBy_id($po_header_id);
}
if (!empty($po_header_id)) {
    $po_line_object = po_line::find_by_po_headerId($po_header_id);
    //assign the item number to the object
    foreach ($po_line_object as &$po_lines) {
        if (!empty($po_lines->item_id_m)) {
            $item = item::find_by_id($po_lines->item_id_m);
            $po_lines->item_number = $item->item_number;
        }
    }
    if (count($po_line_object) == 0) {
Ejemplo n.º 3
0
?>
</li>
       <li><label><?php 
echo __('Supplier Site');
?>
</label><?php 
$supplier_site_obj = !empty(${$class}->supplier_id) ? supplier_site::find_by_parent_id(${$class}->supplier_id) : array();
echo $f->select_field_from_object('supplier_site_id', $supplier_site_obj, 'supplier_site_id', 'supplier_site_name', ${$class}->supplier_site_id, 'supplier_site_id', '', '', $readonly1);
?>
 </li>
       <li><label><?php 
echo __('Status');
?>
</label>                      
        <?php 
echo $f->select_field_from_object('requisition_status', po_header::po_status(), 'option_line_code', 'option_line_value', ${$class}->requisition_status, 'requisition_status', 'dont_copy', '', 1);
?>
       </li>
       <li><?php 
$f->l_checkBox_field_d('rev_enabled_cb');
?>
</li>
       <li><?php 
$f->l_text_field_d('rev_number');
?>
</li>
       <li><?php 
$f->l_text_field_d('buyer');
?>
</li>
       <li><?php 
Ejemplo n.º 4
0
						</div>
					 </div>
					</div>
					<div id="tabsHeader-5" class="tabContent">
					 <div> 
						<ul class="column four_column">
						 <li id="document_print"><label>Document Print : </label>
							<a class="button" target="_blank"
								 href="po_print.php?po_header_id=<?php 
echo !empty(${$class}->po_header_id) ? ${$class}->po_header_id : "";
?>
" >Print PO</a>
						 </li>
						 <li id="document_status"><label>Change Status : </label>
							<?php 
echo form::select_field_from_object('po_status', po_header::po_status(), 'option_line_code', 'option_line_value', $po_header->po_status, 'set_po_status', $readonly, '', '');
?>
						 </li>
						 <li id="copy_header"><label>Copy Document : </label>
							<input type="button" class="button" id="copy_docHeader" value="PO Header">
						 </li>
						 <li id="copy_line"><label></label>
							<input type="button" class="button" id="copy_docLine" value="PO Lines">
						 </li>
						</ul>

						<div id="comment" class="shoe_comments">
						</div>
					 </div>
					</div>
				 </div>