Beispiel #1
0
		</tr>
		<tr>
			<td><?php 
    echo $ivatxt;
    ?>
</td><td><?php 
    echo $coin_symbol;
    ?>
 <?php 
    echo number_format($total * ($iva / 100), 2, ".", ",");
    ?>
</td>
		</tr>
		<?php 
    if (isset($_SESSION["coupon"])) {
        $coupon = CouponData::getById($_SESSION["coupon"]);
        $discount = $coupon->val;
        ?>
		<tr>
			<td>SubTotal</td><td><?php 
        echo $coin_symbol;
        ?>
 <?php 
        echo number_format($total, 2, ".", ",");
        ?>
</td>
		</tr>
		<tr>
			<td>Descuento: <b><?php 
        echo $coupon->name;
        ?>
Beispiel #2
0
                        <td>#<?php 
        echo $b->id;
        ?>
</td>
                        <td><?php 
        echo $b->getClient()->getFullname();
        ?>
</td>
    <td>$ <?php 
        echo number_format($b->getTotal(), 2, ".", ",");
        ?>
</td>
    <td>$
      <?php 
        if ($b->coupon_id != null) {
            $coupon = CouponData::getById($b->coupon_id);
            $discount = $coupon->val;
            echo number_format($discount, 2, ".", ",");
        } else {
            echo number_format($discount, 2, ".", ",");
        }
        ?>
    </td>
    <td>$ <?php 
        echo number_format($b->getTotal() - $discount, 2, ".", ",");
        ?>
</td>
                        <td><?php 
        echo $b->getPaymethod()->name;
        ?>
</td>