mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-04 07:14:37 -04:00
Add invoice id to credit
This commit is contained in:
parent
76ec67c2cf
commit
9acbac7402
@ -71,7 +71,8 @@ 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;
|
||||||
$item->cost = (float)$total_paid;
|
$item->cost = (float)$total_paid;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user