Skip to content

Commit

Permalink
Update invoice.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Chepurnoy committed Jun 8, 2016
1 parent b2e8041 commit 9a8b4ce
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions views/invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
use yii\helpers\ArrayHelper;
use yii\helpers\Html;

/* @var $user \yii\db\ActiveRecord */
/* @var $invoice \yii2mod\cashier\Invoice */
/* @var $user \yii\db\ActiveRecord */
/* @var $invoice \yii2mod\cashier\Invoice */
/* @var $subscription \yii2mod\cashier\InvoiceItem */
?>

<!DOCTYPE html>
Expand Down Expand Up @@ -143,7 +144,8 @@
<?php foreach ($invoice->subscriptions() as $subscription): ?>
<tr>
<td>Subscription (<?php echo $subscription->quantity; ?>)</td>
<td><?php echo $subscription->startDate(); ?> - <?php echo $subscription->endDate(); ?></td>
<td><?php echo $subscription->startDateAsCarbon()->formatLocalized('%B %e, %Y'); ?>
- <?php echo $subscription->endDateAsCarbon()->formatLocalized('%B %e, %Y'); ?></td>
<td><?php echo $subscription->total(); ?></td>
</tr>
<?php endforeach; ?>
Expand Down

0 comments on commit 9a8b4ce

Please sign in to comment.