renamed income/expense

This commit is contained in:
denisdulici
2019-12-31 15:49:09 +03:00
parent e2189158b9
commit 2428feb73b
235 changed files with 815 additions and 2147 deletions

View File

@ -3,8 +3,8 @@
namespace App\Console\Commands;
use App\Models\Common\Company;
use App\Models\Expense\Bill;
use App\Notifications\Expense\Bill as Notification;
use App\Models\Purchase\Bill;
use App\Notifications\Purchase\Bill as Notification;
use App\Utilities\Overrider;
use Date;
use Illuminate\Console\Command;

View File

@ -3,8 +3,8 @@
namespace App\Console\Commands;
use App\Models\Common\Company;
use App\Models\Income\Invoice;
use App\Notifications\Income\Invoice as Notification;
use App\Models\Sale\Invoice;
use App\Notifications\Sale\Invoice as Notification;
use App\Utilities\Overrider;
use Date;
use Illuminate\Console\Command;

View File

@ -2,10 +2,10 @@
namespace App\Console\Commands;
use App\Events\Expense\BillCreated;
use App\Events\Expense\BillRecurring;
use App\Events\Income\InvoiceCreated;
use App\Events\Income\InvoiceRecurring;
use App\Events\Purchase\BillCreated;
use App\Events\Purchase\BillRecurring;
use App\Events\Sale\InvoiceCreated;
use App\Events\Sale\InvoiceRecurring;
use App\Models\Common\Company;
use App\Traits\Incomes;
use App\Utilities\Overrider;
@ -93,7 +93,7 @@ class RecurringCheck extends Command
}
switch ($recurring->recurable_type) {
case 'App\Models\Expense\Bill':
case 'App\Models\Purchase\Bill':
if (!$clone = $this->getDocumentClone($model, 'billed_at')) {
break;
}
@ -103,7 +103,7 @@ class RecurringCheck extends Command
event(new BillRecurring($clone));
break;
case 'App\Models\Income\Invoice':
case 'App\Models\Sale\Invoice':
if (!$clone = $this->getDocumentClone($model, 'invoiced_at')) {
break;
}