![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/inventory.corals.io/Corals/modules/Payment/update-batches/ |
<?php \Schema::table('invoices', function (\Illuminate\Database\Schema\Blueprint $table) { $table->text('terms')->nullable()->after('description'); $table->boolean('is_sent')->nullable()->default(false)->after('invoicable_id'); $table->dateTime('invoice_date')->after('due_date'); }); \Schema::table('invoice_items', function (\Illuminate\Database\Schema\Blueprint $table) { $table->integer('quantity')->nullable()->default(1)->after('amount'); }); \DB::table('notification_templates')->updateOrInsert(['name' => 'notifications.invoice.send_invoice'], [ 'title' => 'Invoice {invoice_code}', 'friendly_name' => 'Send Invoice Notification', 'body' => '{"mail":"<p>Dear {user_name},<\/p>\r\n\r\n<p>Please find the attached invoice, We would appreciate your prompt payment.<\/p>\r\n\r\n<p><b>{invoice_code}<\/b><\/p>\r\n\r\n<p>Order: {invoicable_identifier} <p> <\/p>\r\n\r\n<p>Regards,<\/p>","database":null}', 'extras' => '[]', 'via' => '["mail"]', ]);