We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6349b8 commit 50505cbCopy full SHA for 50505cb
src/Invoice.php
@@ -88,7 +88,6 @@ public static function booted()
88
static::creating(function (Invoice $invoice) {
89
if (config('invoices.serial_number.auto_generate')) {
90
$invoice->serial_number = $invoice->generateSerialNumber();
91
-
92
$invoice->serial_number_details = new ArrayObject(
93
$invoice->parseSerialNumber()
94
);
@@ -322,9 +321,7 @@ public function parseSerialNumber(): array
322
321
{
323
$generator = new SerialNumberGenerator($this->getSerialNumberFormatFromConfig());
324
325
- return $generator->parse(
326
- $this->serial_number
327
- );
+ return $generator->parse($this->serial_number);
328
}
329
330
public function getTaxLabel(): ?string
0 commit comments