While apmuthu's solution works fine, it leaves a large gap between the Price and the Total.
I made the following changes to remove the Discount column:
Edit the file reporting/includes/doctext.inc from (line 28):
// default item column headers
$this->headers = array(_("Item Code"), _("Item Description"), _("Quantity"),
_("Unit"), _("Price"), _("Discount %"), _("Total"));
to:
// default item column headers
$this->headers = array(_("Item Code"), _("Item Description"), "", _("Quantity"),
_("Unit"), _("Price"), _("Total"));
Then in reporting/rep107.php change the following from (line 58):
$cols = array(4, 60, 225, 300, 325, 385, 450, 515);
// $headers in doctext.inc
$aligns = array('left', 'left', 'right', 'left', 'right', 'right', 'right');
to:
$cols = array(4, 60, 225, 300, 365, 385, 450, 515);
// $headers in doctext.inc
$aligns = array('left', 'left', 'right', 'right', 'right', 'right', 'right');
and from (line 119):
$oldrow = $rep->row;
$rep->TextColLines(1, 2, $myrow2['StockDescription'], -2);
$newrow = $rep->row;
$rep->row = $oldrow;
if ($Net != 0.0 || !is_service($myrow2['mb_flag']) || !isset($no_zero_lines_amount) || $no_zero_lines_amount == 0)
{
$rep->TextCol(2, 3, $DisplayQty, -2);
$rep->TextCol(3, 4, $myrow2['units'], -2);
$rep->TextCol(4, 5, $DisplayPrice, -2);
$rep->TextCol(5, 6, $DisplayDiscount, -2);
$rep->TextCol(6, 7, $DisplayNet, -2);
}
$rep->row = $newrow;
to:
$oldrow = $rep->row;
$rep->TextColLines(1, 3, $myrow2['StockDescription'], -2);
$newrow = $rep->row;
$rep->row = $oldrow;
if ($Net != 0.0 || !is_service($myrow2['mb_flag']) || !isset($no_zero_lines_amount) || $no_zero_lines_amount == 0)
{
$rep->TextCol(3, 4, $DisplayQty, -2);
$rep->TextCol(4, 5, $myrow2['units'], -2);
$rep->TextCol(5, 6, $DisplayPrice, -2);
//$rep->TextCol(5, 6, $DisplayDiscount, -2);
$rep->TextCol(6, 7, $DisplayNet, -2);
}
$rep->row = $newrow;
With these modifications you will get more space for the item description as well.
Hope this helps.
Carmelo