From 57544a771c0f59153db864637ca6ae0c0399d790 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Thu, 9 Jan 2014 12:37:38 +0000 Subject: [PATCH] bug fixes --- app/commands/SendRecurringInvoices.php | 2 +- app/models/Invoice.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/commands/SendRecurringInvoices.php b/app/commands/SendRecurringInvoices.php index 86061b14ba6e..29b0cc41b3bf 100755 --- a/app/commands/SendRecurringInvoices.php +++ b/app/commands/SendRecurringInvoices.php @@ -51,7 +51,7 @@ class SendRecurringInvoices extends Command { } $invoice->save(); - + foreach ($recurInvoice->invoice_items as $recurItem) { $item = InvoiceItem::createNew($recurItem); diff --git a/app/models/Invoice.php b/app/models/Invoice.php index 3a7c88c97164..2bf16e81d876 100755 --- a/app/models/Invoice.php +++ b/app/models/Invoice.php @@ -109,7 +109,7 @@ class Invoice extends EntityModel return false; } } - + switch ($this->frequency_id) { case FREQUENCY_WEEKLY: