Skip to content

Commit 8af32e4

Browse files
committed
Merge branch 'master' of https://github.com/dgvai/laravel-invoicer into release
2 parents cdcd87b + 7316891 commit 8af32e4

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 2.0.3
4+
- Fixed Bugs
5+
- Updated Invoic Look
6+
37
## 2.0.2
48
- Added Coupon Discount
59
- Updated Invoice look

src/views/invoice.blade.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,19 +55,19 @@
5555
<td class="float-right">{{config('invoicer.header.unit')}}</td>
5656
<td class="float-right">{{config('invoicer.header.discount')}}</td>
5757
@if(config('invoicer.enabled.extra'))
58-
@php $colspan++ @endphp
58+
@php $colspan1++ @endphp
5959
<td class="float-right">{{config('invoicer.header.extra')}}</td>
6060
@endif
6161
@if(config('invoicer.enabled.addship'))
62-
@php $colspan++ @endphp
62+
@php $colspan1++ @endphp
6363
<td class="float-right">{{config('invoicer.header.addship')}}</td>
6464
@endif
6565
<td class="float-right">{{config('invoicer.header.subtotal')}}</td>
6666
</tr>
6767
</thead>
6868
<tbody>
6969
@foreach($that->items as $i => $item)
70-
<tr>
70+
<tr class="small">
7171
<td>{{$i+1}}</td>
7272
<td>{{$item['title']}}</td>
7373
<td class="float-center">{{$item['qty']}}</td>
@@ -85,36 +85,36 @@
8585
<tr>
8686
<td class="no-top-tr" colspan="{{$colspan1}}"></td>
8787
<td class="float-right small" colspan="{{$colspan2}}">{{config('invoicer.header.sumtotal')}}</td>
88-
<td class="float-right small">{{$that->sum_total}} {{config('invoicer.currency')}}</td>
88+
<td class="float-right small" colspan="{{$colspan2}}">{{$that->sum_total}} {{config('invoicer.currency')}}</td>
8989
</tr>
9090
@if(config('invoicer.vat.allowed'))
9191
<tr>
9292
<td class="no-top-tr float-left small" colspan="{{$colspan1}}">{{$that->vat['number']}}</td>
9393
<td class="float-right small" colspan="{{$colspan2}}">VAT/TAX</td>
94-
<td class="float-right small">{{$that->vat['amount']}} {{config('invoicer.currency')}}</td>
94+
<td class="float-right small" colspan="{{$colspan2}}">{{$that->vat['amount']}} {{config('invoicer.currency')}}</td>
9595
</tr>
9696
@endif
9797
<tr>
9898
<td class="no-top-tr" colspan="{{$colspan1}}"></td>
9999
<td class="float-right small" colspan="{{$colspan2}}">{{config('invoicer.header.shipping')}}</td>
100-
<td class="float-right small">{{$that->ship_total}} {{config('invoicer.currency')}}</td>
100+
<td class="float-right small" colspan="{{$colspan2}}">{{$that->ship_total}} {{config('invoicer.currency')}}</td>
101101
</tr>
102102
<tr>
103103
<td class="no-top-tr" colspan="{{$colspan1}}"></td>
104104
<td class="float-right small" colspan="{{$colspan2}}">{{config('invoicer.header.homecost')}}</td>
105-
<td class="float-right small">{{$that->home_cost}} {{config('invoicer.currency')}}</td>
105+
<td class="float-right small" colspan="{{$colspan2}}">{{$that->home_cost}} {{config('invoicer.currency')}}</td>
106106
</tr>
107107
@if($that->coupon_discount > 0)
108108
<tr>
109109
<td class="no-top-tr" colspan="{{$colspan1}}">#{{$that->coupon_code}}</td>
110110
<td class="float-right small" colspan="{{$colspan2}}">{{config('invoicer.header.coupon')}}</td>
111-
<td class="float-right small">{{$that->coupon_discount}} {{config('invoicer.currency')}}</td>
111+
<td class="float-right small" colspan="{{$colspan2}}">{{$that->coupon_discount}} {{config('invoicer.currency')}}</td>
112112
</tr>
113113
@endif
114114
<tr>
115115
<td class="no-top-tr" colspan="{{$colspan1}}"></td>
116116
<td class="float-right title" colspan="{{$colspan2}}">Total</td>
117-
<td class="float-right">{{$that->total}} {{config('invoicer.currency')}}</td>
117+
<td class="float-right" colspan="{{$colspan2}}">{{$that->total}} {{config('invoicer.currency')}}</td>
118118
</tr>
119119
</tbody>
120120
</table>

0 commit comments

Comments
 (0)