mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-03 18:04:37 -04:00
fixes for invoices not generating invoice numbers on payment
This commit is contained in:
parent
2d2be07944
commit
0485ffe912
@ -62,6 +62,8 @@ class ApplyPayment extends AbstractService
|
|||||||
$this->invoice->service()->clearPartial()->setStatus(Invoice::STATUS_PARTIAL)->updateBalance($this->payment_amount*-1);
|
$this->invoice->service()->clearPartial()->setStatus(Invoice::STATUS_PARTIAL)->updateBalance($this->payment_amount*-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->invoice->service()->applyNumber->save();
|
||||||
|
|
||||||
return $this->invoice;
|
return $this->invoice;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -61,6 +61,7 @@ class MarkPaid extends AbstractService
|
|||||||
$this->invoice->service()
|
$this->invoice->service()
|
||||||
->updateBalance($payment->amount*-1)
|
->updateBalance($payment->amount*-1)
|
||||||
->setStatus(Invoice::STATUS_PAID)
|
->setStatus(Invoice::STATUS_PAID)
|
||||||
|
->applyNumber()
|
||||||
->save();
|
->save();
|
||||||
|
|
||||||
/* Update Invoice balance */
|
/* Update Invoice balance */
|
||||||
|
@ -13,7 +13,7 @@ $factory->define(App\Models\Client::class, function (Faker $faker) {
|
|||||||
'paid_to_date' => 0,
|
'paid_to_date' => 0,
|
||||||
'vat_number' => $faker->text(25),
|
'vat_number' => $faker->text(25),
|
||||||
'id_number' => '',
|
'id_number' => '',
|
||||||
'custom_value1' => 'date|'.$faker->date('Y-m-d'),
|
'custom_value1' => $faker->date('Y-m-d'),
|
||||||
'custom_value2' => '',
|
'custom_value2' => '',
|
||||||
'custom_value3' => '',
|
'custom_value3' => '',
|
||||||
'custom_value4' => '',
|
'custom_value4' => '',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user