mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Add invoice id to credit
This commit is contained in:
parent
76ec67c2cf
commit
9acbac7402
@ -71,6 +71,7 @@ class HandleReversal extends AbstractService
|
|||||||
if ($total_paid > 0) {
|
if ($total_paid > 0) {
|
||||||
$credit = CreditFactory::create($this->invoice->company_id, $this->invoice->user_id);
|
$credit = CreditFactory::create($this->invoice->company_id, $this->invoice->user_id);
|
||||||
$credit->client_id = $this->invoice->client_id;
|
$credit->client_id = $this->invoice->client_id;
|
||||||
|
$credit->invoice_id = $this->invoice->id;
|
||||||
|
|
||||||
$item = InvoiceItemFactory::create();
|
$item = InvoiceItemFactory::create();
|
||||||
$item->quantity = 1;
|
$item->quantity = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user