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:
parent
dbe9ceab51
commit
b4f375d877
@ -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 = '';
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user