Skip to content

Commit 9871ee8

Browse files
bump new version 0.6.0
1 parent 09d8d8b commit 9871ee8

File tree

2 files changed

+27
-8
lines changed

2 files changed

+27
-8
lines changed

CHANGELOG.md

+18
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,24 @@
11
Change Log
22
==========
33

4+
## [v0.6.0](https://github.com/brazanation/documents/tree/v0.6.0) (2016-12-09)
5+
[Full Changelog](https://github.com/brazanation/documents/compare/v0.5.0...v0.6.0)
6+
7+
**Implemented enhancements:**
8+
9+
- create EmissionType and fix digit calculator [#28](https://github.com/brazanation/documents/pull/28) ([tonicospinelli](https://github.com/tonicospinelli))
10+
11+
**Fixed bugs:**
12+
13+
**Closed issues:**
14+
15+
- wrong digit calculator [\#26](https://github.com/brazanation/documents/issues/26)
16+
17+
**Merged pull requests:**
18+
19+
- create EmissionType and fix digit calculator [#28](https://github.com/brazanation/documents/pull/28)
20+
21+
422
## [v0.5.0](https://github.com/brazanation/documents/tree/v0.5.0) (2016-11-28)
523
[Full Changelog](https://github.com/brazanation/documents/compare/v0.4.0...v0.5.0)
624

README.md

+9-8
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Install the library using [composer][1]. Add the following to your `composer.jso
1616
```json
1717
{
1818
"require": {
19-
"brazanation/documents": "0.5.*"
19+
"brazanation/documents": "0.6.*"
2020
}
2121
}
2222
```
@@ -30,7 +30,7 @@ $ composer.phar install
3030
or
3131

3232
```sh
33-
$ composer require brazanation/documents 0.5.*
33+
$ composer require brazanation/documents 0.6.*
3434
```
3535

3636
### CPF (cadastro de pessoas físicas)
@@ -100,9 +100,9 @@ use Brazanation\Documents\Sped\NFe;
100100
use Brazanation\Documents\Exception\InvalidDocument as InvalidDocumentException;
101101

102102
try {
103-
$accessKey = new NFe('52060433009911002506550120000007800267301615');
104-
echo $accessKey; // prints 52060433009911002506550120000007800267301615
105-
echo $accessKey->format(); // prints 5206 0433 0099 1100 2506 5501 2000 0007 8002 6730 1615
103+
$accessKey = new NFe('52060433009911002506550120000007801267301613');
104+
echo $accessKey; // prints 52060433009911002506550120000007801267301613
105+
echo $accessKey->format(); // prints 5206 0433 0099 1100 2506 5501 2000 0007 8012 6730 1613
106106
catch (InvalidDocumentException $e){
107107
echo $e->getMessage();
108108
}
@@ -111,15 +111,16 @@ or generate your number
111111

112112
```php
113113
try {
114-
$accessKey = NFe::generate(
114+
$nfeKey = NFe::generate(
115115
52,
116-
\DateTime::createFromFormat('ym', '0604'),
116+
$generatedAt,
117117
new Cnpj('33009911002506'),
118118
12,
119119
780,
120+
EmissionType::normal(),
120121
26730161
121122
);
122-
echo $accessKey; // prints 52060433009911002506550120000007800267301615
123+
echo $accessKey; // prints 52060433009911002506550120000007801267301613
123124
catch (InvalidDocumentException $e){
124125
echo $e->getMessage();
125126
}

0 commit comments

Comments
 (0)