diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index a8c51585931f..18d6f6529f91 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -1,4 +1,13 @@ invoice_repo->save($request->all(), InvoiceFactory::create(auth()->user()->company()->id, auth()->user()->id)); - $invoice = StoreInvoice::dispatchNow($invoice, $request->all()); + $invoice = StoreInvoice::dispatchNow($invoice, $request->all()); //todo potentially this may return mixed ie PDF/$invoice... need to revisit when we implement UI return $this->itemResponse($invoice); diff --git a/app/Http/Controllers/PaymentController.php b/app/Http/Controllers/PaymentController.php index 1e8866771492..403c29a3a10b 100644 --- a/app/Http/Controllers/PaymentController.php +++ b/app/Http/Controllers/PaymentController.php @@ -1,4 +1,13 @@ invoice = $invoice; + + $this->data = $data; + + } + + /** + * Execute the job. + * + * + * @return void + */ + public function handle() + { + + switch($this->data['action']) + { + //fire actions here + } + + } +} diff --git a/app/Jobs/Invoice/InvoiceNotification.php b/app/Jobs/Invoice/InvoiceNotification.php index b25eee6eda77..3087ef134280 100644 --- a/app/Jobs/Invoice/InvoiceNotification.php +++ b/app/Jobs/Invoice/InvoiceNotification.php @@ -1,4 +1,13 @@ unsignedInteger('task_id')->nullable(); $table->unsignedInteger('expense_id')->nullable(); $table->unsignedInteger('activity_type_id')->nullable(); - $table->decimal('adjustment', 13, 2)->nullable(); - $table->decimal('balance', 13, 2)->nullable(); $table->string('ip'); $table->boolean('is_system')->default(0);