1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Set correct invoice numbers for zero payment invoices

This commit is contained in:
David Bomba 2023-01-19 10:14:10 +11:00
parent 2a1156d160
commit 05b3518fb7

View File

@ -597,9 +597,14 @@ class BillingPortalPurchasev2 extends Component
->service()
->fillDefaults()
->adjustInventory()
->markPaid()
->save();
$invoice->number = null;
$invoice->service()
->markPaid()
->save();
return $this->subscription
->service()
->handleNoPaymentFlow($invoice, $this->bundle, $this->contact);