mirror of
https://github.com/atlanticbiomedical/portal-legacy.git
synced 2025-07-02 01:47:28 -04:00
initial commit
This commit is contained in:
6
apps/atlbiomed/modules/workOrder/templates/_mapDateFilterControl.php
Executable file
6
apps/atlbiomed/modules/workOrder/templates/_mapDateFilterControl.php
Executable file
@ -0,0 +1,6 @@
|
||||
<?php echo radiobutton_tag('dateFilterType', 'year', $dateFilterType == 'year') ?>By Selected Year<br />
|
||||
<?php echo radiobutton_tag('dateFilterType', 'month', $dateFilterType == 'month') ?>By Selected Month<br />
|
||||
<?php echo radiobutton_tag('dateFilterType', 'week', $dateFilterType == 'week') ?>By Selected Week (selected day plus seven days)<br />
|
||||
<?php echo radiobutton_tag('dateFilterType', 'day', $dateFilterType == 'day') ?>By Selected Day<br />
|
||||
|
||||
<?php echo input_date_tag('jobDate', $initialDate, 'rich=true'); ?>
|
139
apps/atlbiomed/modules/workOrder/templates/indexSuccess.php
Executable file
139
apps/atlbiomed/modules/workOrder/templates/indexSuccess.php
Executable file
@ -0,0 +1,139 @@
|
||||
<?php use_helper('Javascript') ?>
|
||||
<?php use_helper('Object') ?>
|
||||
|
||||
<?php
|
||||
|
||||
/* Event.observe(window, 'load', initFunctions, false);
|
||||
|
||||
function initFunctions(evt)
|
||||
{
|
||||
showWorkorder();
|
||||
}*/
|
||||
|
||||
echo javascript_tag("
|
||||
|
||||
|
||||
function showWorkorder(id)
|
||||
{".
|
||||
//initiate TechDisplay
|
||||
remote_function(array(
|
||||
'update' => 'workOrder',
|
||||
'url' => 'workOrder/populateWorkorder',
|
||||
'with' => '"ticket=" + id')).";"."
|
||||
|
||||
|
||||
}
|
||||
|
||||
");
|
||||
?>
|
||||
|
||||
<?php echo javascript_tag('
|
||||
function editSchedule(workorder_id)
|
||||
{
|
||||
window.location = "'.url_for('scheduler/index?mode=edit&ticket=').'" + "/" + workorder_id;
|
||||
} ');
|
||||
?>
|
||||
|
||||
<?php echo javascript_tag("
|
||||
function saveWorkorder(id)
|
||||
{
|
||||
{".
|
||||
remote_function(array(
|
||||
'url' => 'workOrder/saveWorkorder',
|
||||
'with' => '"ticket=" + id'))."
|
||||
}
|
||||
}"); ?>
|
||||
|
||||
<div class="mapsCollapsingPanelContainer">
|
||||
<?php echo form_tag('workOrder/index'); ?>
|
||||
|
||||
<?php include_partial('global/collapsingDivContainer',
|
||||
array('title' => 'Filter by Client',
|
||||
'uniqueId' => 'filterByClient',
|
||||
'content' => select_tag('client_id',
|
||||
options_for_select($clients,
|
||||
$bogusWorkOrder->getClientId(),
|
||||
'include_custom=All')))); ?>
|
||||
|
||||
<?php include_partial('global/collapsingDivContainer',
|
||||
array('title' => 'Filter by Status',
|
||||
'uniqueId' => 'filterByStatus',
|
||||
'content' => object_select_tag($bogusWorkOrder, 'getJobStatusId', 'include_custom=All', ''))); ?>
|
||||
|
||||
<?php include_partial('global/collapsingDivContainer',
|
||||
array('title' => 'Filter by Technician',
|
||||
'uniqueId' => 'filterByTechnician',
|
||||
'content' => select_tag('technician_id',
|
||||
options_for_select($technicians,
|
||||
$bogusWorkOrder->getTech(),
|
||||
'include_custom=All')))); ?>
|
||||
|
||||
<?php include_partial('global/collapsingDivContainer',
|
||||
array('title' => 'Filter by Date',
|
||||
'uniqueId' => 'filterByDate',
|
||||
'content' => get_partial('mapDateFilterControl',
|
||||
array('initialDate' => $dateFilter,
|
||||
'dateFilterType' => $dateFilterType)))); ?>
|
||||
|
||||
|
||||
|
||||
<div class="mapsCollapsingPanelContainerControl">
|
||||
<?php echo submit_tag('Filter'); ?>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="workOrder_content" style="padding-left:10px;">
|
||||
|
||||
<div id="workOrder"></div>
|
||||
|
||||
<?php
|
||||
if (!empty($orders) )
|
||||
{ ?>
|
||||
<div id="searchResults">
|
||||
<table class="workorder_search_results" cellpadding="3" cellspacing="1"><tr>
|
||||
<td><b><u>Client ID</u></b></td>
|
||||
<td><b><u>Invoice #</u></b></td>
|
||||
<td><b><u>Client Name</u></b></td>
|
||||
<td><b><u>Technician</u></b></td>
|
||||
<td><b><u>Job Date</u></b></td>
|
||||
<td><b><u>Remarks</u></b></td>
|
||||
<td><b><u>Reason</u></b></td>
|
||||
<td><b><u>Job Status</u></b></td>
|
||||
<td><b><u>Action</u></b></td>
|
||||
</tr><tr>
|
||||
<?php
|
||||
foreach($orders as $order)
|
||||
{
|
||||
$tech = UserPeer::retrieveByPk($order->getTech());
|
||||
$reason = DropdownPeer::retrieveByPk($order->getReason());
|
||||
|
||||
if($order->getClient() != NULL){
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $order->getClient()->getClientIdentification(); ?></td>
|
||||
<td><?php echo $order->getInvoice(); ?></td>
|
||||
<td><?php echo $order->getClient()->getClientName(); ?></td>
|
||||
<td><?php if(method_exists($tech,"getFirstName")) { echo $tech->getFirstName() .' '. $tech->getLastName(); } ?></td>
|
||||
<td><?php echo $order->getJobDate(); ?></td>
|
||||
<td><?php echo $order->getRemarks(); ?></td>
|
||||
<td><?php $c = new Criteria();
|
||||
$c->add(DropdownPeer::ID, $order->getReason());
|
||||
$dr = DropdownPeer::doSelectOne($c);
|
||||
print $dr->getValue(); ?></td>
|
||||
<?php $cc=''; if($order->getJobStatusId() == 7){ $cc = "style='color:red'"; }elseif($order->getJobStatusId()== 9){ $cc = "style='color:green'"; }?>
|
||||
<td><span <?php print $cc;?>> <?php echo $order->getJobStatus(); ?></span></td>
|
||||
<td><?php echo link_to_function('Open', "showWorkorder(".$order->getId().")", array(
|
||||
'target' => '_top'));?></td>
|
||||
|
||||
</tr>
|
||||
<?php
|
||||
}//if
|
||||
|
||||
}//for ?>
|
||||
</tr></table></div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
178
apps/atlbiomed/modules/workOrder/templates/openWorkorderSuccess.php
Executable file
178
apps/atlbiomed/modules/workOrder/templates/openWorkorderSuccess.php
Executable file
@ -0,0 +1,178 @@
|
||||
<?php use_helper('Object'); ?>
|
||||
<?php use_helper('Javascript'); ?>
|
||||
|
||||
<table class=tablewrapper><tr>
|
||||
<td><table><tr>
|
||||
<td><table><tr>
|
||||
<td><b>Manufacturer: </b></td>
|
||||
<td><?php //echo $workorder->getDevice()->getManufacturer(); ?></td>
|
||||
</tr><tr>
|
||||
<td><b>Instrument: </b></td>
|
||||
<td>EKG</td>
|
||||
</tr><tr>
|
||||
<td><b>Model #: </b></td>
|
||||
<td>BTEKG200</td>
|
||||
</tr><tr>
|
||||
<td><b>Serial #: </b></td>
|
||||
<td>329048-9</td>
|
||||
</tr></table></td>
|
||||
<td><table><tr>
|
||||
<td><table><tr>
|
||||
<td><b>Unit ID:</b></td>
|
||||
<td>2394</td>
|
||||
</tr><tr>
|
||||
<td><b>Customer ID:</b></td>
|
||||
<td>BIOTECH</td>
|
||||
</tr><tr>
|
||||
<td><b>Tech Assigned:</b></td>
|
||||
<td>Mike D.</td>
|
||||
</tr></table></td>
|
||||
<td><table><tr>
|
||||
<td><b>Travel: </b></td>
|
||||
<td>1</td>
|
||||
</tr><tr>
|
||||
<td><b>On Site: </b></td>
|
||||
<td>3</td>
|
||||
</tr><tr>
|
||||
<td><b>Zip</b></td>
|
||||
<td>93204</td>
|
||||
</tr></table></td>
|
||||
</tr><tr>
|
||||
<td colspan=2><table><tr>
|
||||
<td><b>Requested By: </b><td>
|
||||
<td>Kurdt Cobain</td>
|
||||
</tr></table></td>
|
||||
</tr></table></td>
|
||||
</tr><tr>
|
||||
<td colspan=2><table><tr>
|
||||
<td><b>Reason For: </b>
|
||||
</tr><tr>
|
||||
<td><?php echo textarea_tag('reason', '', "size=42x2"); ?></td>
|
||||
</tr></table></td>
|
||||
</tr></table></td>
|
||||
<td><table><tr>
|
||||
<td colspan=2><table><tr>
|
||||
<td><b>Ticket #: </b></td>
|
||||
<td><?php echo $ticket; ?></td>
|
||||
</tr></table></td>
|
||||
</tr><tr>
|
||||
<td><table><tr>
|
||||
<td><b>Recieved Date:</b></td>
|
||||
</tr><tr>
|
||||
<td>2/10/07</td>
|
||||
</tr></table></td>
|
||||
<td><table><tr>
|
||||
<td><b>Completed Date:</b></td>
|
||||
</tr><tr>
|
||||
<td>2/10/07</td>
|
||||
</tr></table></td>
|
||||
</tr><tr>
|
||||
<td colspan=2><table><tr>
|
||||
<td><b>Name: </b></td>
|
||||
<td>Muddy Waters</td>
|
||||
</tr><tr>
|
||||
<td><b>Address: </b></td>
|
||||
<td>3897 Bo Diddly Ln. Suite 102</td>
|
||||
</tr><tr>
|
||||
<td><b>City:</b></td>
|
||||
<td>Opry</td>
|
||||
</tr><tr>
|
||||
<td><b>State:</b></td>
|
||||
<td>TN</td>
|
||||
</tr><tr>
|
||||
<td><b>Zip:</b></td>
|
||||
<td>90834</td>
|
||||
</tr><tr>
|
||||
<td><b>Attn:</b></td>
|
||||
<td>Count Basie</td>
|
||||
</tr><tr>
|
||||
<td><b>Phone:</b></td>
|
||||
<td>8902374098</td>
|
||||
</tr></table></td>
|
||||
</tr></table></td>
|
||||
</tr><tr>
|
||||
<td colspan=2><table><tr>
|
||||
<td><b>Action Taken</b></td>
|
||||
</tr><tr>
|
||||
<td><?php echo textarea_tag('action', '', 'size=70x4'); ?></td>
|
||||
</tr></table></td>
|
||||
</tr><tr>
|
||||
<td colspan=2><table><tr>
|
||||
<td><b>Remarks</b></td>
|
||||
</tr><tr>
|
||||
<td><?php echo textarea_tag('remarks', '', 'size=70x4'); ?></td>
|
||||
</tr></table></td>
|
||||
</tr><tr>
|
||||
<td colspan=2><table><tr>
|
||||
<td></td>
|
||||
<td><table><tr>
|
||||
<td colspan=2><table><tr>
|
||||
<td><b>Job Type: </b></td>
|
||||
<td><?php echo select_tag('job_type'); ?></td>
|
||||
</tr><tr>
|
||||
<td><b>Job Status: </b></td>
|
||||
<td><?php echo select_tag('job_status'); ?></td>
|
||||
</tr></table></td>
|
||||
</tr><tr>
|
||||
<td><table><tr>
|
||||
<td><b>P.O. #: </b></td>
|
||||
</tr><tr>
|
||||
<td><?php echo input_tag('parts_order_number'); ?></td>
|
||||
</tr></table></td>
|
||||
<td><table><tr>
|
||||
<td><b>Invoice: </b></td>
|
||||
</tr><tr>
|
||||
<td><?php echo input_tag('invoice_number'); ?></td>
|
||||
</tr></table></td>
|
||||
</tr></table></td>
|
||||
<td><table><tr>
|
||||
<td><table><tr>
|
||||
<td>Subtotal: </td>
|
||||
<td><?php echo input_tag('subtotal'); ?></td>
|
||||
</tr><tr>
|
||||
<td>Service & Travel: </td>
|
||||
<td><?php echo input_tag('service_travel'); ?></td>
|
||||
</tr><tr>
|
||||
<td>Zone Charge: </td>
|
||||
<td><?php echo input_tag('zone_charge'); ?></td>
|
||||
</tr><tr>
|
||||
<td>Shipping & Handling: </td>
|
||||
<td><?php echo input_tag('shipping_handling'); ?></td>
|
||||
</tr><tr>
|
||||
<td>Sales Tax: </td>
|
||||
<td><?php echo input_tag('sales_tax'); ?></td>
|
||||
</tr><tr>
|
||||
</tr></table></td>
|
||||
</td></table></tr>
|
||||
</td></table></tr>
|
||||
</tr></table>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="submitButtons">
|
||||
<table class="unscheduledButtons"><tr>
|
||||
<td><h2>Unscheduled</h2></td>
|
||||
</tr><tr>
|
||||
<td><?php echo button_to_function('Unscheduled With Parts', 'save()'); ?></td>
|
||||
</tr><tr>
|
||||
<td><?php echo button_to_function('Unscheduled Without Parts', 'save()'); ?></td>
|
||||
</tr><table>
|
||||
|
||||
<table class="Pending"><tr>
|
||||
<td colspan=2><h2>Pending</h2></td>
|
||||
</tr><tr>
|
||||
<td><?php echo button_to_function('Waiting Parts', 'save()'); ?></td>
|
||||
<td><?php echo button_to_function('Waiting Quote Approval', 'save()'); ?></td>
|
||||
</tr><tr>
|
||||
<td><?php echo button_to_function('Reopen As Warrenty', 'save()'); ?></td>
|
||||
<td><?php echo button_to_function('Next Visit', 'save()'); ?></td>
|
||||
</tr></table>
|
||||
|
||||
<table class="completedButtons"><tr>
|
||||
<td><h2>Completed</h2></td>
|
||||
<tr></tr>
|
||||
<td><?php echo button_to_function('Job Completed', 'save()'); ?></td>
|
||||
<tr></tr>
|
||||
<td><?php echo button_to_function('Repair Declined', 'save()'); ?></td>
|
||||
</table>
|
||||
|
194
apps/atlbiomed/modules/workOrder/templates/populateWorkorderSuccess.php
Executable file
194
apps/atlbiomed/modules/workOrder/templates/populateWorkorderSuccess.php
Executable file
@ -0,0 +1,194 @@
|
||||
<?php use_helper('Object'); ?>
|
||||
<?php use_helper('Javascript'); ?>
|
||||
|
||||
|
||||
|
||||
<table id="workorder_report" border="0" cellspacing="1" cellpadding="3">
|
||||
<tr class="report_row">
|
||||
<td>
|
||||
|
||||
<table id="order_info">
|
||||
<tr class="order_info_row">
|
||||
<td class="order_label">MANUFACTURER:</td>
|
||||
<td class="auto_enter" id="workorder_manufacturer"><?php if ($openDevice != null){echo $openDevice->getSpecification()->getManufacturer(); }?></td>
|
||||
<td class="order_label">UNIT ID NO:</td>
|
||||
<td class="auto_enter" id="workorder_unit_id"><?php if ($openDevice != null){ echo $openDevice->getIdentification(); }?></td>
|
||||
<td class="order_label">TRAVEL:</td>
|
||||
<td class="enter" id="workorder_traveltime"><?php echo input_tag('travel_time', $openWorkorder->getTravelTime(), array('size' => "4", 'MAXLENGTH' => "6")); ?></td>
|
||||
</tr>
|
||||
<tr class="order_info_row">
|
||||
<td class="order_label">INSTRUMENT:</td>
|
||||
<td class="auto_enter" id="workorder_instrument"><?php if ($openDevice != null){ echo $openDevice->getSpecification()->getDeviceName(); }?></td>
|
||||
<td class="order_label">CUSTOMER ID:</td>
|
||||
<td class="auto_enter" id="workorder_customer_ID"><?php echo $openClient->getClientIdentification(); ?></td>
|
||||
<td class="order_label">ON SITE:</td>
|
||||
<td class="enter" id="workorder_onsite"><?php echo input_tag('onsite_time', $openWorkorder->getOnsiteTime(), array('size' => "4", 'MAXLENGTH' => "6")); ?></td>
|
||||
</tr>
|
||||
<tr class="order_info_row">
|
||||
<td class="order_label">MODEL NO:</td>
|
||||
<td class="auto_enter" id="workorder_model"><?php if ($openDevice != null){ echo $openDevice->getSpecification()->getModelNumber();} ?></td>
|
||||
<td class="order_label">CSR ASSIGNED:</td>
|
||||
<td class="auto_enter" id="workorder_technician"> <?php echo $openTech->getLastName().", ".$openTech->getFirstName(); ?></td>
|
||||
<td class="order_label">ZIP:</td>
|
||||
<td class="auto_enter" id="workorder_zipcode"><?php echo $openClient->getZip(); ?></td>
|
||||
</tr>
|
||||
<tr class="order_info_row">
|
||||
<td class="order_label">SERIAL NO:</td>
|
||||
<td class="auto_enter" id="workorder_serial"><?php if ($openDevice != null){ echo $openDevice->getSerialNumber(); } ?></td>
|
||||
<td class="order_label">REQUESTED BY:</td>
|
||||
<td class="auto_enter" colspan="3" id="workorder_requested"><?php echo $openWorkorder->getCaller(); ?></td>
|
||||
</tr>
|
||||
<tr class="order_info_row">
|
||||
<td class="order_label">REASON FOR CALL:</td>
|
||||
<td class="auto_enter" colspan="5" id="workorder_reason"><?php echo select_tag('reason_select_y', objects_for_select($reason_dropdown, 'getid', 'getvalue', $openWorkorder->getReason())); ?></td>
|
||||
</tr>
|
||||
<tr class="order_info_row">
|
||||
<td colspan="6"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td>
|
||||
|
||||
<td>
|
||||
|
||||
<table id="contact_info">
|
||||
<tr class="contact_info_row">
|
||||
<td class="order_label">PAGE:</td>
|
||||
<td class="auto_enter" id="workorder_page"></td>
|
||||
<td class="order_label">OF:</td>
|
||||
<td class="auto_enter" id="workorder_of"></td>
|
||||
<td class="order_label">ORDER #</td>
|
||||
<td class="enter" id="workorder_ticket"><?php echo $openWorkorder->getId(); ?></td>
|
||||
</tr>
|
||||
<tr class="contact_info_row">
|
||||
<td class="order_label">RECEIVED:</td>
|
||||
<td class="auto_enter" colspan="3" id="workorder_date_recieved"><?php echo $openWorkorder->getDateRecieved(); ?></td>
|
||||
<td class="order_label">COMPLETED:</td>
|
||||
<td class="enter" id="workorder_date_completed" ><?php echo input_tag('completed', $openWorkorder->getDateCompleted(), array('size' => "8", 'MAXLENGTH' => "10")); ?></td>
|
||||
</tr>
|
||||
<tr class="contact_info_row">
|
||||
<td class="order_label">NAME:</td>
|
||||
<td class="auto_enter" colspan="5" id="workorder_client_name"><?php echo $openClient->getClientName(); ?></td>
|
||||
</tr>
|
||||
<tr class="contact_info_row">
|
||||
<td class="order_label">ADDRESS:</td>
|
||||
<td class="auto_enter" colspan="5" id="workorder_client_address"><?php echo $openClient->getAddress(); ?><br/><?php echo $openClient->getAddress2(); ?></td>
|
||||
</tr>
|
||||
<tr class="contact_info_row">
|
||||
<td class="order_label">CITY:</td>
|
||||
<td class="auto_enter" id="workorder_client_city"><?php echo $openClient->getCity(); ?></td>
|
||||
<td class="order_label">STATE:</td>
|
||||
<td class="auto_enter" id="workorder_client_state"><?php echo $openClient->getState(); ?></td>
|
||||
<td class="order_label">ZIP:</td>
|
||||
<td class="auto_enter" id="workorder_client_zip"><?php echo $openClient->getZip(); ?></td>
|
||||
</tr>
|
||||
<tr class="contact_info_row">
|
||||
<td class="order_label">ATTN:</td>
|
||||
<td class="auto_enter" colspan="2" id="workorder_client_attn"><?php echo $openClient->getAttn(); ?></td>
|
||||
<td class="order_label">PHONE:</td>
|
||||
<td class="auto_enter" colspan="2" id="workorder_client_phone"><?php echo $openClient->getPhone(); ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr class="report_row">
|
||||
<td colspan="2">
|
||||
<table id="action_taken">
|
||||
<tr>
|
||||
<td class="order_label">ACTION TAKEN:</td>
|
||||
<td class="enter" id="workorder_action_taken"><?php echo textarea_tag('action', $openWorkorder->getActionTaken(), 'size=90x6'); ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="report_row">
|
||||
|
||||
</tr>
|
||||
<tr class="report_row">
|
||||
<td colspan="2">
|
||||
<table id="remarks">
|
||||
<tr>
|
||||
<td class="order_label">REMARKS:</td>
|
||||
<td class="enter" id="workorder_remarks"><?php echo textarea_tag('remarks_y', $openWorkorder->getRemarks(), 'size=94x2'); ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="report_row">
|
||||
<td>
|
||||
<table id="lower_info">
|
||||
<tr>
|
||||
<td class="order_label">JOB STATUS:</td>
|
||||
<td class="enter" colspan="2" id="workorder_job_status"><?php echo select_tag('job_status', objects_for_select($jobstatus_dropdown, 'getid', 'getstatusname', $status_select)); ?></td>
|
||||
<td class="order_label">INVOICE #</td>
|
||||
<td class="enter"><input type='invoice_num' id = 'invoice_num' value='<?php print $openWorkorder->getInvoice(); ?>'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="order_label">JOB TYPE:</td>
|
||||
<td class="enter" colspan="2" id="workorder_job_type"><?php echo select_tag('job_type', objects_for_select($jobtype_dropdown, 'getid', 'gettypename', $type_select)); ?></td>
|
||||
<td class="order_label">P.O. #</td>
|
||||
<td class="enter"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="order_label">PRINT NAME:</td>
|
||||
<td class="auto_edit" colspan="4" id="workorder_print_name"><?php echo input_tag('print_name', $openClient->getAttn()); ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td>
|
||||
<table id="pricing_info">
|
||||
<tr>
|
||||
<td class="order_label">SERVICE & TRAVEL:</td>
|
||||
<td class="enter" id="workorder_service_travel"><?php echo '$ '. input_tag('travel_service', $openWorkorder->getServiceTravel(),
|
||||
array(
|
||||
'size' => "5",
|
||||
'MAXLENGTH' => "9")); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="order_label">ZONE CHARGE:</td>
|
||||
<td class="enter" id="workorder_zone_charge"><?php echo '$ '. input_tag('zone_charge_y', $openWorkorder->getZoneCharge(),
|
||||
array(
|
||||
'size' => "5",
|
||||
'MAXLENGTH' => "9")); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="order_label">SALES TAX:</td>
|
||||
<td class="enter" id="workorder_sales_tax"><?php echo '$ '. input_tag('salestax', $openWorkorder->getSaleTax(),
|
||||
array(
|
||||
'size' => "5",
|
||||
'MAXLENGTH' => "9")); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="order_label">SHIPPING & HANDLING:</td>
|
||||
<td class="enter" id="workorder_shipping_handling"><?php echo '$ '. input_tag('shipping', $openWorkorder->getShippingHandling(),
|
||||
array(
|
||||
'size' => "5",
|
||||
'MAXLENGTH' => "9")); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="order_label">TOTAL:</td>
|
||||
<td class="enter" id="workorder_totalcost"><?php echo '$ '. input_tag('totalcost',
|
||||
($openWorkorder->getServiceTravel()+$openWorkorder->getZoneCharge()
|
||||
+$openWorkorder->getSaleTax()+$openWorkorder->getShippingHandling()),
|
||||
array(
|
||||
'size' => "5",
|
||||
'MAXLENGTH' => "9",'disabled'=>"'disabled'")); ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="right">
|
||||
<input type='hidden' value='<?php print $openWorkorder->getId(); ?>' name='wid' id='wid' />
|
||||
<input type='hidden' value='<?php print $openClient->getId(); ?>' name='cid' id='cid' />
|
||||
<?php
|
||||
echo button_to_function('Edit Schedule', 'editSchedule('.$openWorkorder->getId().')')." ";
|
||||
//echo button_to_function('Save Changes', 'saveWorkorder('.$openWorkorder->getId().')');
|
||||
echo button_to_function('Save Changes', 'updateWorkorder('.$openWorkorder->getId().')');
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div id='res'></div>
|
Reference in New Issue
Block a user