else
$loc = $location;
if ($shortage)
+ {
$short = _('Yes');
- else
+ $available = _('Shortage');
+ }
+ else
+ {
$short = _('No');
+ $available = _('Available');
+ }
if ($check)
{
$cols = array(0, 100, 250, 295, 345, 390, 445, 515);
- $headers = array(_('Stock ID'), _('Description'), _('Quantity'), _('Check'), _('Demand'), _('Available'), _('On Order'));
+ $headers = array(_('Stock ID'), _('Description'), _('Quantity'), _('Check'), _('Demand'), $available, _('On Order'));
$aligns = array('left', 'left', 'right', 'right', 'right', 'right', 'right');
}
else
{
$cols = array(0, 100, 250, 315, 380, 445, 515);
- $headers = array(_('Stock ID'), _('Description'), _('Quantity'), _('Demand'), _('Available'), _('On Order'));
+ $headers = array(_('Stock ID'), _('Description'), _('Quantity'), _('Demand'), $available, _('On Order'));
$aligns = array('left', 'left', 'right', 'right', 'right', 'right');
}