include_once(JPATH_BASE.'/components/com_vxc/helpers/manureporthelper.php');
include_once(JPATH_BASE.'/components/com_vxc/helpers/legacy.php');
$reportSystem = LegacyHelper::getPHPGlobalVar('reportSystem');
$franchiseName = SiteOptionsHelper::getFranchiseName();
if($reportSystem=="voxelcare") {
$col1W = 60;
$col2W = 120;
$col3W = 120;
$col4W = 120;
$col5W = 200;
$col6W = 130;
$totalWidth = $col1W + $col2W + $col3W + $col4W + $col5W + $col6W;
$tableDef='
| '.JText::_('Order Id').' |
'.JText::_('User').' |
'.JText::_('Patient').' |
'.JText::_('Reference').' |
'.JText::_('Material').' |
'.JText::_('Check').' |
';
$columnCount=6;
}
else {
$col1W = 60;
$col2W = 140;
$col3W = 140;
$col4W = 140;
$col5W = 170;
$col6W = 100;
$totalWidth = $col1W + $col2W+$col3W+$col4W+$col5W+$col6W;
$tableDef='
| '.JText::_('Order Id').' |
'.JText::_('User').' |
'.JText::_('Patient').' |
'.JText::_('Reference').' |
'.JText::_('Material').' |
'.JText::_('Agency').' |
';
$columnCount=6;
}
?>
orders as $order)
{
$row = &$order;
$comments = '';
if ($franchiseName == 'tecnoinsole')
{
if ($row->manufacturing_date)
{
$dateEst = new JDate($row->manufacturing_date);
$dateEst->setOffset(date('Z')/3600.0);
if ($comments) $comments .= " ";
$comments .= JText::_('ESTIMATED_MANUFACTURE_DATE_ABB'). ": ". $dateEst->toFormat('%d/%m/%Y');
}
if ($row->est_shipping_date)
{
$dateEst = new JDate($row->est_shipping_date);
$dateEst->setOffset(date('Z')/3600.0);
if ($comments) $comments .= " ";
$comments .= JText::_('ESTIMATED_DELIVERY_DATE_ABB'). ": ". $dateEst->toFormat('%d/%m/%Y');
}
}
if ($row->receiptid && !$row->receiptpaid)
{
if ($comments) $comments .= " ";
$comments .= JText::_('Receipt not paid');
}
if ($row->payment_methodnameid == 'CASHONDELIVERY')
{
$totalPrice = ManuReportHelper::calculateCashOnDelivery($row);
if ($comments) $comments .=" ";
$comments .= JText::_('Cash on delivery'). ": ". sprintf("%0.2f",$totalPrice). " €";
}
$insoleOptions = array();
$parts = array();
ManuReportHelper::processAttributes($row, $this->abbs, $insoleOptions,$comments,$parts);
$abs = array();
foreach($insoleOptions as $opt)
$abs[] = $opt['abb'];
$material = implode(', ',$abs);
$backColor = ($i%2==0)?'#FFFFFF':'#E8E8E8';
?>
id; ?> =JText::_('BATCH_ABB').$row->batch.'-'.$row->norders?> |
=$row->username?> |
// Patient
// if($reportSystem!="voxelcare") {
echo ''.$row->customerfullname;
if ($row->customerbirthdate) {
echo " ";
$dateBirth = new JDate($row->customerbirthdate);
$dateBirth->setOffset(date('Z')/3600.0);
echo $dateBirth->toFormat('%d/%m/%Y');
}
echo ' | ';
// }
?>
reference; ?>
|
|
if($reportSystem=="voxelcare") {
echo '
| ';
}
else {
echo ''.JText::_($row->agencyname).' | ';
}
?>
if ($comments) : ?>
| style="text-align:center;width:=$col1W?>px"> |
|
endif; ?>