Skip to content

Commit

Permalink
update changelog | fix little bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Appelmann committed Mar 19, 2024
1 parent a6b2bc8 commit b4c6384
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

All notable changes to `laravel-sevdesk-api` will be documented in this file

## 0.1.9 - 2024-03-13

- add `createReminder()` to invoice
- update documentation

## 0.1.8 - 2024-02-21

- add `allDue()` to invoice
Expand Down
4 changes: 3 additions & 1 deletion src/Api/Invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,9 @@ public function create($contactId, $items, array $parameters = []): SevInvoice
if (empty($parameters['invoiceNumber'])) {
$nextSequence = $this->getNextSequence();
$parameters['invoiceNumber'] = $nextSequence;
$parameters['header'] = 'Rechnung NR. ' . $nextSequence;
if (empty($parameters['header'])) {
$parameters['header'] = 'Rechnung NR. ' . $nextSequence;
}
}
// create parameter array
$invoiceParameters = DocumentHelper::getInvoiceParameters($contactId, $items, $parameters);
Expand Down

0 comments on commit b4c6384

Please sign in to comment.