1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Minor fixes for invoice service

This commit is contained in:
David Bomba 2021-12-28 20:57:48 +11:00
parent dbe9ceab51
commit b4f375d877
2 changed files with 3 additions and 5 deletions

View File

@ -22,7 +22,7 @@ class RecurringInvoiceFactory
$invoice->discount = 0;
$invoice->is_amount_discount = true;
$invoice->po_number = '';
$invoice->number = '';
// $invoice->number = '';
$invoice->footer = '';
$invoice->terms = '';
$invoice->public_notes = '';

View File

@ -300,10 +300,10 @@ class InvoiceService
return $this;
if($this->invoice->balance == 0){
$this->setStatus(Invoice::STATUS_PAID);
$this->invoice->status_id = Invoice::STATUS_PAID;
}
elseif ($this->invoice->balance > 0 && $this->invoice->balance < $this->invoice->amount) {
$this->setStatus(Invoice::STATUS_PARTIAL);
$this->invoice->status_id = Invoice::STATUS_PARTIAL;
}
return $this;
@ -320,8 +320,6 @@ class InvoiceService
return $item;
})->toArray();
//$this->invoice = $this->invoice->calc()->getInvoice();
$this->deletePdf();
return $this;