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->discount = 0;
|
||||||
$invoice->is_amount_discount = true;
|
$invoice->is_amount_discount = true;
|
||||||
$invoice->po_number = '';
|
$invoice->po_number = '';
|
||||||
$invoice->number = '';
|
// $invoice->number = '';
|
||||||
$invoice->footer = '';
|
$invoice->footer = '';
|
||||||
$invoice->terms = '';
|
$invoice->terms = '';
|
||||||
$invoice->public_notes = '';
|
$invoice->public_notes = '';
|
||||||
|
@ -300,10 +300,10 @@ class InvoiceService
|
|||||||
return $this;
|
return $this;
|
||||||
|
|
||||||
if($this->invoice->balance == 0){
|
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) {
|
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;
|
return $this;
|
||||||
@ -320,8 +320,6 @@ class InvoiceService
|
|||||||
return $item;
|
return $item;
|
||||||
})->toArray();
|
})->toArray();
|
||||||
|
|
||||||
//$this->invoice = $this->invoice->calc()->getInvoice();
|
|
||||||
|
|
||||||
$this->deletePdf();
|
$this->deletePdf();
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
|
Loading…
Reference in New Issue
Block a user