Skip to content

Commit 58f8b02

Browse files
authored
Merge pull request #206 from EraTorr/master
Replace Carbon type hinting by CarbonInterface
2 parents 21943e4 + 9d85026 commit 58f8b02

File tree

3 files changed

+43
-5
lines changed

3 files changed

+43
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ Almost every configuration value can be overrided dynamically by methods.
380380
- getSerialNumber() - returns formatted serial number
381381

382382
#### Date
383-
- date(Carbon)
383+
- date(CarbonInterface)
384384
- dateFormat(string) - Carbon format of date
385385
- payUntilDays(int) - Days payment due since invoice issued
386386
- getDate() - returns formatted date

resources/lang/cs/invoice.php

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<?php
2+
3+
return [
4+
/*
5+
|--------------------------------------------------------------------------
6+
| Czech Invoice Language Lines
7+
|--------------------------------------------------------------------------
8+
*/
9+
10+
'invoice' => 'faktura',
11+
'serial' => 'faktura č.',
12+
'date' => 'datum',
13+
'seller' => 'prodejce',
14+
'buyer' => 'nakupující',
15+
'address' => 'adresa',
16+
'code' => 'zákaznické číslo.',
17+
'vat' => 'dph',
18+
'phone' => 'telefon',
19+
'description' => 'popis',
20+
'units' => 'jednotky',
21+
'quantity' => 'množství',
22+
'price' => 'cena',
23+
'discount' => 'sleva',
24+
'tax' => 'daň',
25+
'sub_total' => 'mezisoučet',
26+
'total_discount' => 'celková sleva',
27+
'taxable_amount' => 'zdanitelná částka',
28+
'total_taxes' => 'celková daň',
29+
'tax_rate' => 'daňová sazba',
30+
'total_amount' => 'celková částka',
31+
'pay_until' => 'datum splatnosti',
32+
'amount_in_words' => 'množství slovy',
33+
'amount_in_words_format' => '%s %s a %s %s',
34+
'notes' => 'poznámky',
35+
'shipping' => 'doprava',
36+
'paid' => 'zaplaceno',
37+
'due' => 'splatnost',
38+
];

src/Traits/DateFormatter.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
namespace LaravelDaily\Invoices\Traits;
44

5-
use Carbon\Carbon;
5+
use Carbon\CarbonInterface;
66

77
/**
88
* Trait DateFormatter
99
*/
1010
trait DateFormatter
1111
{
1212
/**
13-
* @var Carbon
13+
* @var CarbonInterface
1414
*/
1515
public $date;
1616

@@ -25,10 +25,10 @@ trait DateFormatter
2525
public $pay_until_days;
2626

2727
/**
28-
* @param Carbon $date
28+
* @param CarbonInterface $date
2929
* @return $this
3030
*/
31-
public function date(Carbon $date)
31+
public function date(CarbonInterface $date)
3232
{
3333
$this->date = $date;
3434

0 commit comments

Comments
 (0)