Added Text prices to OrderAck PDF template

This commit is contained in:
Karl Cordes 2011-09-26 19:09:09 +10:00
parent 66870227db
commit fa6916b862

View file

@ -31,7 +31,13 @@
<td width="<?=$colWidths['qty'];?>" align="center" valign="top"><?=$decimal->formatDecimal($li['quantity']);?></td>
<td width="<?=$colWidths['desc'];?>"><?=$li['title'];?><br><?=$li['description'];?></td>
<td width="<?=$colWidths['unit'];?>" align="center" valign="top">
<?
if($li['has_text_prices']):
echo $li['unit_price_string'];
?>
<?
else:
?>
<?=$number->currency($li['gross_unit_price'], $currencyCode);?>
<? if($li['discount_percent']):?>
<br>less<br><?=$li['discount_percent']?>%<br>
@ -40,8 +46,16 @@
=<br>
<?=$number->currency($li['net_unit_price'], $currencyCode);?>
<?endif;?>
<?endif;?>
</td>
<td width="<?=$colWidths['total'];?>" align="center" valign="top">
<?
if($li['has_text_prices']):
echo $li['gross_price_string'];
?>
<?
else:
?>
<?=$number->currency($li['gross_price'], $currencyCode);?>
<? if($li['discount_percent']):?>
<br>less<br><?=$li['discount_percent']?>%<br>
@ -50,6 +64,7 @@
=<br>
<?=$number->currency($li['net_price'], $currencyCode);?>
<?endif;?>
<?endif;?>
</td>
</tr>
<?endforeach;?>