File manager - Edit - /home/u816558632/domains/postills.com/public_html/public/database.tar
Back
.gitignore 0000644 00000000011 15001704611 0006517 0 ustar 00 *.sqlite migrations/2018_09_27_111609_modify_transactions_table_for_purchase_return.php 0000644 00000001670 15001704611 0023130 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { DB::statement("ALTER TABLE transactions MODIFY COLUMN type ENUM('purchase','sell', 'expense', 'stock_adjustment', 'sell_transfer', 'purchase_transfer', 'opening_stock', 'sell_return', 'opening_balance', 'purchase_return') DEFAULT NULL"); Schema::table('transactions', function (Blueprint $table) { $table->integer('return_parent_id')->nullable()->after('transfer_parent_id'); }); } /** * Reverse the migrations. * * @return void */ public function down() { // Schema::table('transactions', function (Blueprint $table) { // // // }); } }; migrations/2018_02_26_134500_add_commission_agent_to_transactions_table.php 0000644 00000001216 15001704611 0022331 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('transactions', function (Blueprint $table) { $table->integer('commission_agent')->nullable()->after('expense_for'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('transactions', function (Blueprint $table) { // }); } }; migrations/2022_04_21_083327_create_cash_denominations_table.php 0000644 00000001415 15001704611 0020064 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('cash_denominations', function (Blueprint $table) { $table->bigIncrements('id'); $table->integer('business_id'); $table->decimal('amount', 22, 4); $table->integer('total_count'); $table->morphs('model'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('cash_denominations'); } }; migrations/2018_09_19_123914_create_notification_templates_table.php 0000644 00000001616 15001704611 0021004 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('notification_templates', function (Blueprint $table) { $table->increments('id'); $table->integer('business_id'); $table->string('template_for'); $table->text('email_body')->nullable(); $table->text('sms_body')->nullable(); $table->string('subject')->nullable(); $table->boolean('auto_send')->default(0); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('notification_templates'); } }; migrations/2023_01_28_114255_add_letter_head_column_to_invoice_layouts_table.php 0000644 00000001204 15001704611 0023333 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('invoice_layouts', function (Blueprint $table) { $table->boolean('show_letter_head')->default(0)->after('business_id'); $table->string('letter_head')->nullable()->after('show_letter_head'); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2018_01_27_184322_create_printers_table.php 0000644 00000002333 15001704611 0016072 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('printers', function (Blueprint $table) { $table->increments('id'); $table->integer('business_id')->unsigned(); $table->foreign('business_id')->references('id')->on('business')->onDelete('cascade'); $table->string('name'); $table->enum('connection_type', ['network', 'windows', 'linux']); $table->enum('capability_profile', ['default', 'simple', 'SP2000', 'TEP-200M', 'P822D'])->default('default'); $table->string('char_per_line')->nullable(); $table->string('ip_address')->nullable(); $table->string('port')->nullable(); $table->string('path')->nullable(); $table->integer('created_by')->unsigned(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('printers'); } }; migrations/2018_02_26_130519_modify_users_table_for_sales_cmmsn_agnt.php 0000644 00000001725 15001704611 0021657 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { DB::statement('ALTER TABLE users MODIFY COLUMN surname CHAR(10)'); Schema::table('users', function (Blueprint $table) { $table->char('contact_no', 15)->nullable()->after('language'); $table->text('address')->nullable()->after('contact_no'); $table->boolean('is_cmmsn_agnt')->default(0)->after('business_id'); $table->decimal('cmmsn_percent', 4, 2)->default(0)->after('is_cmmsn_agnt'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('users', function (Blueprint $table) { // }); } }; migrations/2018_05_18_191956_add_sell_return_to_transaction_table.php 0000644 00000001024 15001704611 0021171 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { DB::statement("ALTER TABLE `transactions` CHANGE `type` `type` ENUM('purchase','sell','expense','stock_adjustment','sell_transfer','purchase_transfer','opening_stock','sell_return') DEFAULT NULL"); } /** * Reverse the migrations. * * @return void */ public function down() { // } }; migrations/2018_05_31_114645_add_res_order_status_column_to_transactions_table.php 0000644 00000001240 15001704611 0023743 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('transactions', function (Blueprint $table) { $table->enum('res_order_status', ['received', 'cooked', 'served'])->nullable()->after('res_waiter_id'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('transactions', function (Blueprint $table) { }); } }; migrations/2019_02_19_103118_create_discounts_table.php 0000644 00000002450 15001704611 0016234 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('discounts', function (Blueprint $table) { $table->increments('id'); $table->string('name'); $table->integer('business_id'); $table->integer('brand_id')->nullable(); $table->integer('category_id')->nullable(); $table->integer('location_id')->nullable(); $table->integer('priority')->nullable(); $table->string('discount_type')->nullable(); $table->decimal('discount_amount', 22, 4)->default(0); $table->dateTime('starts_at')->nullable(); $table->dateTime('ends_at')->nullable(); $table->boolean('is_active')->default(1); $table->boolean('applicable_in_spg')->default(0)->nullable(); $table->boolean('applicable_in_cg')->default(0)->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('discounts'); } }; migrations/2019_09_04_184008_create_types_of_services_table.php 0000644 00000001777 15001704611 0017777 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('types_of_services', function (Blueprint $table) { $table->increments('id'); $table->string('name'); $table->text('description')->nullable(); $table->integer('business_id')->index(); $table->text('location_price_group')->nullable(); $table->decimal('packing_charge', 22, 4)->nullable(); $table->enum('packing_charge_type', ['fixed', 'percent'])->nullable(); $table->boolean('enable_custom_fields')->default(0); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('types_of_services'); } }; migrations/2018_02_09_124945_modify_transaction_payments_table_for_contact_payments.php 0000644 00000001575 15001704611 0025033 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { DB::statement('ALTER TABLE transaction_payments MODIFY COLUMN transaction_id INT(11) UNSIGNED DEFAULT NULL'); Schema::table('transaction_payments', function (Blueprint $table) { $table->integer('payment_for')->after('created_by')->nullable()->comment('stores the contact id'); $table->integer('parent_id')->after('payment_for')->nullable(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('transaction_payments', function (Blueprint $table) { // }); } }; migrations/2019_11_25_160340_modify_categories_table_for_polymerphic_relationship.php 0000644 00000001711 15001704611 0024430 0 ustar 00 <?php use App\Category; use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('categories', function (Blueprint $table) { $table->string('category_type')->nullable()->after('created_by'); $table->text('description')->nullable()->after('category_type'); $table->string('slug')->nullable()->after('description'); }); Schema::create('categorizables', function (Blueprint $table) { $table->integer('category_id'); $table->morphs('categorizable'); }); Category::whereNotNull('id')->update(['category_type' => 'product']); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2019_09_23_161906_add_media_description_cloumn_to_media_table.php 0000644 00000001154 15001704611 0022421 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('media', function (Blueprint $table) { $table->text('description')->nullable()->after('file_name'); $table->integer('uploaded_by')->nullable()->after('description'); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2018_02_19_121537_stock_adjustment_move_to_transaction_table.php 0000644 00000004203 15001704611 0022416 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { DB::statement("ALTER TABLE `transactions` CHANGE `type` `type` ENUM('purchase','sell','expense','stock_adjustment') DEFAULT NULL"); DB::statement('SET FOREIGN_KEY_CHECKS = 0'); DB::statement('DROP TABLE IF EXISTS stock_adjustment_lines'); Schema::create('stock_adjustment_lines', function (Blueprint $table) { $table->increments('id'); $table->integer('transaction_id')->unsigned(); $table->foreign('transaction_id')->references('id')->on('transactions')->onDelete('cascade'); $table->integer('product_id')->unsigned(); $table->foreign('product_id')->references('id')->on('products')->onDelete('cascade'); $table->integer('variation_id')->unsigned(); $table->foreign('variation_id')->references('id')->on('variations') ->onDelete('cascade'); $table->decimal('quantity', 22, 4); $table->decimal('unit_price', 22, 4)->comment('Last purchase unit price')->nullable(); $table->timestamps(); //Indexing $table->index('transaction_id'); }); Schema::table('transactions', function (Blueprint $table) { $table->enum('adjustment_type', ['normal', 'abnormal'])->nullable()->after('payment_status'); $table->decimal('total_amount_recovered', 22, 4)->comment('Used for stock adjustment.')->nullable()->after('exchange_rate'); }); //Create & Rename stock_adjustment table. DB::statement('CREATE TABLE IF NOT EXISTS `stock_adjustments` (`id` int(11) DEFAULT NULL) '); Schema::rename('stock_adjustments', 'stock_adjustments_temp'); DB::statement('SET FOREIGN_KEY_CHECKS = 1'); } /** * Reverse the migrations. * * @return void */ public function down() { // } }; migrations/2018_11_28_104410_modify_units_table_for_multi_unit.php 0000644 00000001205 15001704611 0020516 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('units', function (Blueprint $table) { $table->integer('base_unit_id')->nullable()->after('allow_decimal'); $table->decimal('base_unit_multiplier', 20, 4)->nullable()->after('base_unit_id'); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2019_11_19_170824_add_is_active_column_to_business_locations_table.php 0000644 00000001052 15001704611 0023526 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('business_locations', function (Blueprint $table) { $table->boolean('is_active')->default(1)->after('website'); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2018_02_07_173326_modify_business_table.php 0000644 00000002016 15001704611 0016102 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('business', function (Blueprint $table) { $table->boolean('purchase_in_diff_currency')->default(0)->after('enable_tooltip')->comment('Allow purchase to be in different currency then the business currency'); $table->integer('purchase_currency_id')->unsigned()->nullable()->references('id')->on('currencies')->after('purchase_in_diff_currency'); $table->decimal('p_exchange_rate', 5, 3)->default(1)->after('purchase_currency_id')->comment('1 Purchase currency = ? Base Currency'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('business', function (Blueprint $table) { // }); } }; migrations/2023_06_21_033923_add_delivery_person_in_transactions.php 0000644 00000001232 15001704611 0021021 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('transactions', function (Blueprint $table) { $table->bigInteger('delivery_person')->nullable()->index()->after('delivered_to'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('transactions', function (Blueprint $table) { // }); } }; migrations/2018_05_22_154540_add_ref_no_prefixes_column_to_business_table.php 0000644 00000001202 15001704611 0022650 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('business', function (Blueprint $table) { $table->text('ref_no_prefixes')->nullable()->after('time_format'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('business', function (Blueprint $table) { // }); } }; migrations/2018_10_22_114441_add_columns_for_variable_product_modifications.php 0000644 00000001351 15001704611 0023172 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('product_variations', function (Blueprint $table) { $table->integer('variation_template_id')->nullable()->after('id'); }); Schema::table('variations', function (Blueprint $table) { $table->integer('variation_value_id')->nullable()->after('product_variation_id'); }); } /** * Reverse the migrations. * * @return void */ public function down() { // } }; 2018_10_03_104918_add_qty_returned_column_to_transaction_sell_lines_purchase_lines_table.php 0000644 00000001110 15001704611 0030125 0 ustar 00 migrations <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('transaction_sell_lines_purchase_lines', function (Blueprint $table) { $table->decimal('qty_returned', 22, 4)->default(0)->after('quantity'); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2020_12_29_165925_add_model_document_type_to_media_table.php 0000644 00000001046 15001704611 0021416 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('media', function (Blueprint $table) { $table->string('model_media_type')->nullable()->after('model_type'); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2021_08_25_114932_add_payment_link_fields_to_transaction_payments_table.php 0000644 00000001572 15001704611 0024563 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { DB::statement('ALTER TABLE transaction_payments MODIFY COLUMN created_by INT(11) DEFAULT NULL'); Schema::table('transaction_payments', function (Blueprint $table) { $table->boolean('paid_through_link')->default(0)->after('created_by'); $table->string('gateway')->nullable()->after('paid_through_link'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('transaction_payments', function (Blueprint $table) { // }); } }; migrations/2020_09_21_123224_modify_booking_status_column_in_bookings_table.php 0000644 00000001215 15001704611 0023224 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { DB::statement('ALTER TABLE bookings MODIFY COLUMN `booking_status` VARCHAR(191) NOT NULL;'); Schema::table('bookings', function (Blueprint $table) { $table->index('booking_status'); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2019_08_26_133419_update_price_fields_decimal_point.php 0000644 00000002251 15001704611 0020422 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Support\Facades\DB; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { //Get all columns with type decimal(20, 2) $db_name = env('DB_DATABASE'); $columns = DB::select("SELECT distinct table_name, column_name, data_type, column_default from information_schema.columns where data_type='decimal' and table_schema='$db_name' and numeric_scale=2 and numeric_precision=20"); //Alter all columns foreach ($columns as $col) { if (! empty($col->table_name)) { $table_name = $col->table_name; $col_name = $col->column_name; $default = is_null($col->column_default) ? 'NULL' : $col->column_default; DB::statement("ALTER TABLE $table_name MODIFY COLUMN $col_name DECIMAL(22, 4) DEFAULT $default"); } } } /** * Reverse the migrations. * * @return void */ public function down() { // } }; migrations/2018_05_21_131607_invoice_layout_fields_for_sell_return.php 0000644 00000001502 15001704611 0021366 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('invoice_layouts', function (Blueprint $table) { $table->string('cn_heading')->after('design')->nullable()->comment('cn = credit note'); $table->string('cn_no_label')->after('cn_heading')->nullable(); $table->string('cn_amount_label')->after('cn_no_label')->nullable(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('invoice_layouts', function (Blueprint $table) { // }); } }; migrations/2023_02_11_161510_add_event_column_to_activity_log_table.php 0000644 00000001264 15001704611 0021450 0 ustar 00 <?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class AddEventColumnToActivityLogTable extends Migration { public function up() { Schema::connection(config('activitylog.database_connection'))->table(config('activitylog.table_name'), function (Blueprint $table) { $table->string('event')->nullable()->after('subject_type'); }); } public function down() { Schema::connection(config('activitylog.database_connection'))->table(config('activitylog.table_name'), function (Blueprint $table) { $table->dropColumn('event'); }); } } migrations/2021_02_11_172217_add_indexing_for_multiple_columns.php 0000644 00000010005 15001704611 0020447 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('accounts', function (Blueprint $table) { $table->index('business_id'); $table->index('account_type_id'); $table->index('created_by'); }); Schema::table('account_transactions', function (Blueprint $table) { $table->index('type'); $table->index('sub_type'); }); Schema::table('account_types', function (Blueprint $table) { $table->index('parent_account_type_id'); $table->index('business_id'); }); Schema::table('bookings', function (Blueprint $table) { $table->index('correspondent_id'); }); Schema::table('business_locations', function (Blueprint $table) { $table->index('sale_invoice_layout_id'); $table->index('selling_price_group_id'); $table->index('receipt_printer_type'); $table->index('printer_id'); }); Schema::table('cash_register_transactions', function (Blueprint $table) { $table->index('type'); $table->index('transaction_type'); }); Schema::table('categories', function (Blueprint $table) { $table->index('parent_id'); }); Schema::table('customer_groups', function (Blueprint $table) { $table->index('created_by'); }); Schema::table('discount_variations', function (Blueprint $table) { $table->index('discount_id'); $table->index('variation_id'); }); Schema::table('invoice_schemes', function (Blueprint $table) { $table->index('scheme_type'); }); Schema::table('media', function (Blueprint $table) { $table->index('business_id'); $table->index('uploaded_by'); }); Schema::table('products', function (Blueprint $table) { $table->index('type'); $table->index('tax_type'); $table->index('barcode_type'); }); Schema::table('product_racks', function (Blueprint $table) { $table->index('business_id'); $table->index('location_id'); $table->index('product_id'); }); Schema::table('reference_counts', function (Blueprint $table) { $table->index('business_id'); }); Schema::table('stock_adjustment_lines', function (Blueprint $table) { $table->index('lot_no_line_id'); }); Schema::table('transactions', function (Blueprint $table) { $table->index('res_table_id'); $table->index('res_waiter_id'); $table->index('res_order_status'); $table->index('payment_status'); $table->index('discount_type'); $table->index('commission_agent'); $table->index('transfer_parent_id'); $table->index('types_of_service_id'); $table->index('packing_charge_type'); $table->index('recur_parent_id'); $table->index('selling_price_group_id'); }); Schema::table('transaction_sell_lines', function (Blueprint $table) { $table->index('line_discount_type'); $table->index('discount_id'); $table->index('lot_no_line_id'); $table->index('sub_unit_id'); }); Schema::table('user_contact_access', function (Blueprint $table) { $table->index('user_id'); $table->index('contact_id'); }); Schema::table('warranties', function (Blueprint $table) { $table->index('business_id'); $table->index('duration_type'); }); } /** * Reverse the migrations. * * @return void */ public function down() { // } }; migrations/2020_01_09_113252_add_cc_bcc_column_to_notification_templates_table.php 0000644 00000001142 15001704611 0023570 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('notification_templates', function (Blueprint $table) { $table->string('cc')->nullable()->after('subject'); $table->string('bcc')->nullable()->after('cc'); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2018_06_07_182258_add_image_field_to_products_table.php 0000644 00000001165 15001704611 0020376 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('products', function (Blueprint $table) { $table->string('image')->nullable()->after('weight'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('products', function (Blueprint $table) { // }); } }; migrations/2018_09_04_155900_create_accounts_table.php 0000644 00000001774 15001704611 0016056 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::dropIfExists('accounts'); Schema::create('accounts', function (Blueprint $table) { $table->increments('id'); $table->integer('business_id'); $table->string('name'); $table->string('account_number'); $table->enum('account_type', ['saving_current', 'capital'])->nullable(); $table->text('note')->nullable(); $table->integer('created_by'); $table->boolean('is_closed')->default(0); $table->softDeletes(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('accounts'); } }; migrations/2018_07_17_163920_add_theme_skin_color_column_to_business_table.php 0000644 00000001206 15001704611 0023033 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('business', function (Blueprint $table) { $table->char('theme_color', 20)->nullable()->after('ref_no_prefixes'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('business', function (Blueprint $table) { // }); } }; migrations/2019_12_05_183955_add_more_fields_to_users_table.php 0000644 00000001025 15001704611 0017733 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('users', function (Blueprint $table) { $table->string('gender')->nullable()->after('dob'); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2020_07_23_104933_change_status_column_to_varchar_in_transaction_table.php 0000644 00000001247 15001704611 0024407 0 ustar 00 <?php use App\Transaction; use Illuminate\Database\Migrations\Migration; use Illuminate\Support\Facades\DB; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { DB::statement('ALTER TABLE transactions MODIFY COLUMN `status` VARCHAR(191) NOT NULL;'); Transaction::where('type', 'sell_transfer') ->update(['status' => 'final']); Transaction::where('type', 'purchase_transfer') ->update(['status' => 'received']); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2018_11_28_170952_add_sub_unit_id_to_purchase_lines_and_sell_lines.php 0000644 00000001334 15001704611 0023475 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('purchase_lines', function (Blueprint $table) { $table->integer('sub_unit_id')->nullable()->after('lot_number'); }); Schema::table('transaction_sell_lines', function (Blueprint $table) { $table->integer('sub_unit_id')->nullable()->after('parent_sell_line_id'); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2018_11_26_114135_add_is_suspend_column_to_transactions_table.php 0000644 00000001213 15001704611 0022523 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('transactions', function (Blueprint $table) { $table->boolean('is_suspend')->default(0)->after('is_direct_sale'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('transactions', function (Blueprint $table) { // }); } }; 2018_07_26_170424_add_unit_price_before_discount_column_to_transaction_sell_line_table.php 0000644 00000001761 15001704611 0027546 0 ustar 00 migrations <?php use App\TransactionSellLine; use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('transaction_sell_lines', function (Blueprint $table) { $table->decimal('unit_price_before_discount', 22, 4)->after('quantity')->default(0); }); //Set all unit_price_before_discount value same as unit_price value $sell_lines = TransactionSellLine::get(); foreach ($sell_lines as $sell_line) { $sell_line->unit_price_before_discount = $sell_line->unit_price; $sell_line->save(); } } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('transaction_sell_lines', function (Blueprint $table) { // }); } }; migrations/2018_06_05_111905_modify_products_table_for_modifiers.php 0000644 00000001064 15001704611 0021020 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Support\Facades\DB; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { DB::statement("ALTER TABLE products MODIFY COLUMN type ENUM('single','variable', 'modifier')"); DB::statement('ALTER TABLE products MODIFY COLUMN unit_id INT(11) UNSIGNED DEFAULT NULL'); } /** * Reverse the migrations. * * @return void */ public function down() { // } }; migrations/2018_12_21_120659_add_recurring_invoice_fields_to_transactions_table.php 0000644 00000002140 15001704611 0024040 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('transactions', function (Blueprint $table) { $table->boolean('is_recurring')->default(0)->after('created_by'); $table->float('recur_interval', 22, 4)->nullable()->after('is_recurring'); $table->enum('recur_interval_type', ['days', 'months', 'years'])->nullable()->after('recur_interval'); $table->integer('recur_repetitions')->nullable()->after('recur_interval_type'); $table->dateTime('recur_stopped_on')->nullable()->after('recur_repetitions'); $table->integer('recur_parent_id')->nullable()->after('recur_stopped_on'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('transactions', function (Blueprint $table) { // }); } }; migrations/2019_10_18_155633_create_account_types_table.php 0000644 00000001767 15001704611 0017122 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('account_types', function (Blueprint $table) { $table->increments('id'); $table->string('name'); $table->integer('parent_account_type_id')->nullable(); $table->integer('business_id'); $table->timestamps(); }); Schema::table('accounts', function (Blueprint $table) { $table->integer('account_type_id')->nullable()->after('account_number'); }); DB::statement('ALTER TABLE accounts DROP COLUMN account_type;'); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('account_types'); } }; migrations/2018_12_24_154933_create_notifications_table.php 0000644 00000001400 15001704611 0017073 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('notifications', function (Blueprint $table) { $table->uuid('id')->primary(); $table->string('type'); $table->morphs('notifiable'); $table->text('data'); $table->timestamp('read_at')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('notifications'); } }; migrations/2020_10_23_170823_add_for_group_tax_column_to_tax_rates_table.php 0000644 00000001052 15001704611 0022503 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('tax_rates', function (Blueprint $table) { $table->boolean('for_tax_group')->default(0)->after('is_tax_group'); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2018_05_16_183307_add_tax_fields_invoice_layout.php 0000644 00000001360 15001704611 0017600 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('invoice_layouts', function (Blueprint $table) { $table->string('client_tax_label')->after('client_id_label')->nullable(); $table->string('cat_code_label')->after('table_subtotal_label')->nullable(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('invoice_layouts', function (Blueprint $table) { // }); } }; migrations/2021_07_13_082918_add_qr_code_columns_to_invoice_layouts_table.php 0000644 00000001175 15001704611 0022671 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('invoice_layouts', function (Blueprint $table) { $table->boolean('show_qr_code')->default(0)->after('business_id'); $table->text('qr_code_fields')->nullable()->after('show_qr_code'); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2020_10_05_121550_modify_business_location_table_for_invoice_layout.php 0000644 00000001423 15001704611 0023730 0 ustar 00 <?php use App\BusinessLocation; use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('business_locations', function (Blueprint $table) { $table->integer('sale_invoice_layout_id')->nullable()->after('invoice_layout_id'); }); BusinessLocation::whereNotNull('id')->update([ 'sale_invoice_layout_id' => DB::raw('invoice_layout_id'), ]); } /** * Reverse the migrations. * * @return void */ public function down() { // } }; migrations/2018_02_08_111027_add_expiry_period_and_expiry_period_type_columns_to_products_table.php 0000644 00000001362 15001704611 0027376 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('products', function (Blueprint $table) { $table->decimal('expiry_period', 4, 2)->after('barcode_type')->nullable(); $table->enum('expiry_period_type', ['days', 'months'])->after('expiry_period')->nullable(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('products', function (Blueprint $table) { // }); } }; migrations/2019_06_19_112058_add_database_changes_for_reward_points.php 0000644 00000005677 15001704611 0021426 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('business', function (Blueprint $table) { $table->boolean('enable_rp')->default(0)->after('created_by')->comment('rp is the short form of reward points'); $table->string('rp_name')->nullable()->after('enable_rp')->comment('rp is the short form of reward points'); $table->decimal('amount_for_unit_rp', 22, 4)->default(1)->after('rp_name')->comment('rp is the short form of reward points'); $table->decimal('min_order_total_for_rp', 22, 4)->default(1)->after('amount_for_unit_rp')->comment('rp is the short form of reward points'); $table->integer('max_rp_per_order')->nullable()->after('min_order_total_for_rp')->comment('rp is the short form of reward points'); $table->decimal('redeem_amount_per_unit_rp', 22, 4)->default(1)->after('max_rp_per_order')->comment('rp is the short form of reward points'); $table->decimal('min_order_total_for_redeem', 22, 4)->default(1)->after('redeem_amount_per_unit_rp')->comment('rp is the short form of reward points'); $table->integer('min_redeem_point')->nullable()->after('min_order_total_for_redeem')->comment('rp is the short form of reward points'); $table->integer('max_redeem_point')->nullable()->after('min_redeem_point')->comment('rp is the short form of reward points'); $table->integer('rp_expiry_period')->nullable()->after('max_redeem_point')->comment('rp is the short form of reward points'); $table->enum('rp_expiry_type', ['month', 'year'])->default('year')->after('rp_expiry_period')->comment('rp is the short form of reward points'); }); Schema::table('transactions', function (Blueprint $table) { $table->integer('rp_earned')->default(0)->after('created_by')->comment('rp is the short form of reward points'); $table->integer('rp_redeemed')->default(0)->after('discount_amount')->comment('rp is the short form of reward points'); $table->decimal('rp_redeemed_amount', 22, 4)->default(0)->after('rp_redeemed')->comment('rp is the short form of reward points'); }); Schema::table('contacts', function (Blueprint $table) { $table->integer('total_rp')->default(0)->after('created_by')->comment('rp is the short form of reward points'); $table->integer('total_rp_used')->default(0)->after('total_rp')->comment('rp is the short form of reward points'); $table->integer('total_rp_expired')->default(0)->after('total_rp_used')->comment('rp is the short form of reward points'); }); } /** * Reverse the migrations. * * @return void */ public function down() { // } }; migrations/2019_05_10_132311_add_missing_column_indexing.php 0000644 00000003467 15001704611 0017252 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('transactions', function (Blueprint $table) { $table->index('return_parent_id'); }); Schema::table('account_transactions', function (Blueprint $table) { $table->index('account_id'); $table->index('transaction_id'); $table->index('transaction_payment_id'); $table->index('transfer_transaction_id'); $table->index('created_by'); }); Schema::table('bookings', function (Blueprint $table) { $table->index('table_id'); $table->index('waiter_id'); $table->index('location_id'); }); Schema::table('variations', function (Blueprint $table) { $table->index('variation_value_id'); }); Schema::table('cash_register_transactions', function (Blueprint $table) { $table->index('transaction_id'); }); Schema::table('purchase_lines', function (Blueprint $table) { $table->index('sub_unit_id'); }); Schema::table('units', function (Blueprint $table) { $table->index('base_unit_id'); }); Schema::table('discounts', function (Blueprint $table) { $table->index('business_id'); $table->index('brand_id'); $table->index('category_id'); $table->index('location_id'); $table->index('priority'); }); } /** * Reverse the migrations. * * @return void */ public function down() { // } }; migrations/2018_09_06_114438_create_selling_price_groups_table.php 0000644 00000001572 15001704611 0020454 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('selling_price_groups', function (Blueprint $table) { $table->increments('id'); $table->string('name'); $table->text('description')->nullable(); $table->integer('business_id')->unsigned(); $table->foreign('business_id')->references('id')->on('business')->onDelete('cascade'); $table->softDeletes(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('selling_price_groups'); } }; migrations/2021_08_13_105549_add_crm_contact_id_to_users_table.php 0000644 00000001513 15001704611 0020403 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { if (! Schema::hasColumn('users', 'crm_contact_id')) { Schema::table('users', function (Blueprint $table) { $table->integer('crm_contact_id') ->unsigned()->nullable() ->after('status'); $table->foreign('crm_contact_id') ->references('id')->on('contacts') ->onDelete('cascade'); }); } } /** * Reverse the migrations. * * @return void */ public function down() { // } }; migrations/2018_06_05_103530_rename_purchase_line_id_in_stock_adjustment_lines_table.php 0000644 00000000760 15001704611 0025041 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Support\Facades\DB; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { DB::statement('ALTER TABLE stock_adjustment_lines CHANGE COLUMN purchase_line_id removed_purchase_line INT(11) DEFAULT NULL'); } /** * Reverse the migrations. * * @return void */ public function down() { // } }; migrations/2018_01_05_112817_create_invoice_layouts_table.php 0000644 00000004260 15001704611 0017435 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('invoice_layouts', function (Blueprint $table) { $table->increments('id'); $table->string('name'); $table->text('header_text')->nullable(); $table->string('invoice_no_prefix')->nullable(); $table->string('invoice_heading')->nullable(); $table->string('sub_total_label')->nullable(); $table->string('discount_label')->nullable(); $table->string('tax_label')->nullable(); $table->string('total_label')->nullable(); $table->string('logo')->nullable(); $table->boolean('show_logo')->default(0); $table->boolean('show_business_name')->default(0); $table->boolean('show_location_name')->default(1); $table->boolean('show_landmark')->default(1); $table->boolean('show_city')->default(1); $table->boolean('show_state')->default(1); $table->boolean('show_zip_code')->default(1); $table->boolean('show_country')->default(1); $table->boolean('show_mobile_number')->default(1); $table->boolean('show_alternate_number')->default(0); $table->boolean('show_email')->default(0); $table->boolean('show_tax_1')->default(1); $table->boolean('show_tax_2')->default(0); $table->boolean('show_barcode')->default(0); $table->string('highlight_color', 10)->nullable(); $table->text('footer_text')->nullable(); $table->boolean('is_default')->default(0); $table->integer('business_id')->unsigned(); $table->foreign('business_id')->references('id')->on('business')->onDelete('cascade'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('invoice_layouts'); } }; migrations/2018_10_09_153105_add_business_id_to_transaction_payments_table.php 0000644 00000001744 15001704611 0023047 0 ustar 00 <?php use App\TransactionPayment; use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('transaction_payments', function (Blueprint $table) { $table->integer('business_id')->after('transaction_id')->nullable(); }); $transaction_payments = TransactionPayment::with(['created_user'])->get(); foreach ($transaction_payments as $transaction_payment) { $transaction_payment->business_id = $transaction_payment->created_user?->business_id; $transaction_payment->save(); } } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('transaction_payments', function (Blueprint $table) { // }); } }; migrations/2017_10_15_064638_create_transaction_payments_table.php 0000644 00000002755 15001704611 0020504 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('transaction_payments', function (Blueprint $table) { $table->increments('id'); $table->integer('transaction_id')->unsigned(); $table->foreign('transaction_id')->references('id')->on('transactions')->onDelete('cascade'); $table->decimal('amount', 22, 4)->default(0); $table->enum('method', ['cash', 'card', 'cheque', 'bank_transfer', 'other']); $table->string('card_transaction_number')->nullable(); $table->string('card_number')->nullable(); $table->enum('card_type', ['visa', 'master'])->nullable(); $table->string('card_holder_name')->nullable(); $table->string('card_month')->nullable(); $table->string('card_year')->nullable(); $table->string('card_security', 5)->nullable(); $table->string('cheque_number')->nullable(); $table->string('bank_account_number')->nullable(); $table->string('note')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('transaction_payments'); } }; migrations/2018_10_30_181558_add_table_tax_headings_to_invoice_layout.php 0000644 00000001227 15001704611 0021765 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('invoice_layouts', function (Blueprint $table) { $table->text('table_tax_headings')->nullable()->after('cn_amount_label'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('invoice_layouts', function (Blueprint $table) { // }); } }; migrations/2019_08_08_162302_add_sub_units_related_fields.php 0000644 00000001702 15001704611 0017403 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('products', function (Blueprint $table) { $table->text('sub_unit_ids')->nullable()->after('unit_id'); }); Schema::table('business', function (Blueprint $table) { $table->boolean('enable_sub_units')->default(false)->after('default_unit'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('products', function (Blueprint $table) { $table->dropColumn('sub_unit_ids'); }); Schema::table('business', function (Blueprint $table) { $table->dropColumn('enable_sub_units'); }); } }; migrations/2018_05_24_161026_add_location_id_column_to_business_location_table.php 0000644 00000001224 15001704611 0023652 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('business_locations', function (Blueprint $table) { $table->string('location_id')->nullable()->after('business_id'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('business_locations', function (Blueprint $table) { // }); } }; migrations/2019_07_29_185351_add_show_reward_point_column_to_invoice_layouts_table.php 0000644 00000001066 15001704611 0024637 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('invoice_layouts', function (Blueprint $table) { $table->boolean('show_reward_point')->default(0)->after('customer_label'); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2017_07_27_075706_create_contacts_table.php 0000644 00000003204 15001704611 0016052 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('contacts', function (Blueprint $table) { $table->increments('id'); $table->integer('business_id')->unsigned(); $table->foreign('business_id')->references('id')->on('business')->onDelete('cascade'); $table->string('type')->index(); $table->string('supplier_business_name')->nullable(); $table->string('name'); $table->string('tax_number')->nullable(); $table->string('city')->nullable(); $table->string('state')->nullable(); $table->string('country')->nullable(); $table->string('landmark')->nullable(); $table->string('mobile'); $table->string('landline')->nullable(); $table->string('alternate_number')->nullable(); $table->integer('pay_term_number')->nullable(); $table->enum('pay_term_type', ['days', 'months'])->nullable(); $table->integer('created_by')->unsigned(); $table->boolean('is_default')->default(0); $table->softDeletes(); $table->foreign('created_by')->references('id')->on('users')->onDelete('cascade'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('contacts'); } }; migrations/2023_09_15_154404_add_is_kitchen_order_in_transactions.php 0000644 00000001217 15001704611 0021132 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('transactions', function (Blueprint $table) { $table->boolean('is_kitchen_order')->default(0)->after('location_id'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('transactions', function (Blueprint $table) { // }); } }; migrations/2017_08_19_054827_create_transactions_table.php 0000644 00000004651 15001704611 0016756 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('transactions', function (Blueprint $table) { $table->increments('id'); $table->integer('business_id')->unsigned(); $table->foreign('business_id')->references('id')->on('business')->onDelete('cascade'); $table->enum('type', ['purchase', 'sell']); $table->enum('status', ['received', 'pending', 'ordered', 'draft', 'final']); $table->enum('payment_status', ['paid', 'due']); $table->integer('contact_id')->unsigned(); $table->foreign('contact_id')->references('id')->on('contacts')->onDelete('cascade'); $table->string('invoice_no')->nullable(); $table->string('ref_no')->nullable(); $table->dateTime('transaction_date'); $table->decimal('total_before_tax', 22, 4)->default(0)->comment('Total before the purchase/invoice tax, this includeds the indivisual product tax'); $table->integer('tax_id')->unsigned()->nullable(); $table->foreign('tax_id')->references('id')->on('tax_rates')->onDelete('cascade'); $table->decimal('tax_amount', 22, 4)->default(0); $table->enum('discount_type', ['fixed', 'percentage'])->nullable(); $table->decimal('discount_amount', 22, 4)->default(0); $table->string('shipping_details')->nullable(); $table->decimal('shipping_charges', 22, 4)->default(0); $table->text('additional_notes')->nullable(); $table->text('staff_note')->nullable(); $table->decimal('final_total', 22, 4)->default(0); $table->integer('created_by')->unsigned(); $table->foreign('created_by')->references('id')->on('users')->onDelete('cascade'); $table->timestamps(); //Indexing $table->index('business_id'); $table->index('type'); $table->index('contact_id'); $table->index('transaction_date'); $table->index('created_by'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('transactions'); } }; migrations/2018_10_02_131401_add_return_quantity_column_to_transaction_sell_lines_table.php 0000644 00000001076 15001704611 0025645 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('transaction_sell_lines', function (Blueprint $table) { $table->decimal('quantity_returned', 20, 4)->default(0)->after('quantity'); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2018_02_08_131118_add_mfg_date_and_exp_date_purchase_lines_table.php 0000644 00000001307 15001704611 0023031 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('purchase_lines', function (Blueprint $table) { $table->date('mfg_date')->after('tax_id')->nullable(); $table->date('exp_date')->after('mfg_date')->nullable(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('purchase_lines', function (Blueprint $table) { // }); } }; migrations/2018_04_17_160845_add_product_racks_table.php 0000644 00000001715 15001704611 0016365 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('business', function (Blueprint $table) { $table->boolean('enable_racks')->after('default_unit')->default(false); }); Schema::create('product_racks', function (Blueprint $table) { $table->increments('id'); $table->integer('business_id')->unsigned(); $table->integer('location_id')->unsigned(); $table->integer('product_id')->unsigned(); $table->string('rack')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('product_racks'); } }; migrations/2017_08_31_073533_create_purchase_lines_table.php 0000644 00000002723 15001704611 0017235 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('purchase_lines', function (Blueprint $table) { $table->increments('id'); $table->integer('transaction_id')->unsigned(); $table->foreign('transaction_id')->references('id')->on('transactions')->onDelete('cascade'); $table->integer('product_id')->unsigned(); $table->foreign('product_id')->references('id')->on('products')->onDelete('cascade'); $table->integer('variation_id')->unsigned(); $table->foreign('variation_id')->references('id')->on('variations')->onDelete('cascade'); $table->decimal('quantity', 22, 4); $table->decimal('purchase_price', 22, 4); $table->decimal('purchase_price_inc_tax', 22, 4)->default(0); $table->decimal('item_tax', 22, 4)->comment('Tax for one quantity'); $table->integer('tax_id')->unsigned()->nullable(); $table->foreign('tax_id')->references('id')->on('tax_rates')->onDelete('cascade'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('purchase_lines'); } }; migrations/2019_12_19_181412_make_alert_quantity_field_nullable_on_products_table.php 0000644 00000000721 15001704611 0024403 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Support\Facades\DB; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { DB::statement('ALTER TABLE products MODIFY COLUMN alert_quantity DECIMAL(22, 4) DEFAULT NULL'); } /** * Reverse the migrations. * * @return void */ public function down() { // } }; migrations/2019_01_10_124645_add_account_permission.php 0000644 00000000651 15001704611 0016242 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Spatie\Permission\Models\Permission; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Permission::create(['name' => 'account.access']); } /** * Reverse the migrations. * * @return void */ public function down() { // } }; migrations/2018_04_27_132653_quotation_related_change.php 0000644 00000002165 15001704611 0016570 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('transactions', function (Blueprint $table) { $table->boolean('is_quotation')->after('status')->default(false); }); Schema::table('invoice_layouts', function (Blueprint $table) { $table->string('quotation_heading')->after('invoice_heading_paid')->nullable(); $table->string('quotation_no_prefix')->after('invoice_no_prefix')->nullable(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('transactions', function (Blueprint $table) { $table->dropColumn('is_quotation'); }); Schema::table('invoice_layouts', function (Blueprint $table) { $table->dropColumn('quotation_heading'); $table->dropColumn('quotation_no_prefix'); }); } }; migrations/2020_01_16_174818_add_round_off_amount_field_to_transactions_table.php 0000644 00000001423 15001704611 0023511 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('transactions', function (Blueprint $table) { $table->decimal('round_off_amount', 22, 4)->default(0)->after('staff_note')->comment('Difference of rounded total and actual total'); }); Schema::table('invoice_layouts', function (Blueprint $table) { $table->string('round_off_label')->nullable()->after('total_label'); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2021_12_16_121851_add_parent_id_column_to_expense_categories_table.php 0000644 00000001332 15001704611 0023457 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('expense_categories', function (Blueprint $table) { $table->integer('parent_id')->nullable()->after('code'); }); Schema::table('transactions', function (Blueprint $table) { $table->integer('expense_sub_category_id')->nullable()->after('expense_category_id'); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2018_05_02_104439_add_date_format_and_time_format_to_business.php 0000644 00000001340 15001704611 0022447 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('business', function (Blueprint $table) { $table->string('date_format')->default('m/d/Y')->after('enabled_modules'); $table->enum('time_format', [12, 24])->default(24)->after('date_format'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('business', function (Blueprint $table) { // }); } }; migrations/2020_12_22_164303_add_sub_status_column_to_transactions_table.php 0000644 00000001230 15001704611 0022532 0 ustar 00 <?php use App\Transaction; use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('transactions', function (Blueprint $table) { $table->string('sub_status')->after('status')->nullable()->index(); }); Transaction::where('is_quotation', 1)->update(['sub_status' => 'quotation']); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2018_05_02_111939_add_sell_return_to_transaction_payments.php 0000644 00000001357 15001704611 0021735 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('transaction_payments', function (Blueprint $table) { $table->boolean('is_return')->after('transaction_id')->default(false)->comment('Used during sales to return the change'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('transaction_payments', function (Blueprint $table) { $table->dropColumn('is_return'); }); } }; migrations/2018_02_14_161928_add_transaction_edit_days_to_business_table.php 0000644 00000001467 15001704611 0022513 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('business', function (Blueprint $table) { $table->integer('transaction_edit_days')->unsigned()->after('p_exchange_rate')->default(30); $table->integer('stock_expiry_alert_days')->unsigned()->after('transaction_edit_days')->default(30); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('business', function (Blueprint $table) { $table->dropColumn('transaction_edit_days'); }); } }; migrations/2020_09_07_171059_change_completed_stock_transfer_status_to_final.php 0000644 00000001325 15001704611 0023402 0 ustar 00 <?php use App\Transaction; use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('transactions', function (Blueprint $table) { $table->index('status'); }); Transaction::where('type', 'sell_transfer') ->where('status', 'completed') ->update(['status' => 'final']); Transaction::where('type', 'purchase_transfer') ->where('status', 'completed') ->update(['status' => 'received']); } }; migrations/2018_10_31_180559_add_auto_send_sms_column_to_notification_templates_table.php 0000644 00000001235 15001704611 0025262 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('notification_templates', function (Blueprint $table) { $table->boolean('auto_send_sms')->after('auto_send')->default(0); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('notification_templates', function (Blueprint $table) { // }); } }; migrations/2018_01_06_112303_add_invoice_scheme_id_and_invoice_layout_id_to_business_locations.php 0000644 00000001722 15001704611 0027061 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('business_locations', function (Blueprint $table) { $table->integer('invoice_scheme_id')->unsigned()->after('zip_code'); $table->foreign('invoice_scheme_id')->references('id')->on('invoice_schemes')->onDelete('cascade'); $table->integer('invoice_layout_id')->unsigned()->after('invoice_scheme_id'); $table->foreign('invoice_layout_id')->references('id')->on('invoice_layouts')->onDelete('cascade'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('business_locations', function (Blueprint $table) { // }); } }; migrations/2018_11_08_105621_add_role_permissions.php 0000644 00000001115 15001704611 0015726 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Spatie\Permission\Models\Permission; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Permission::create(['name' => 'roles.view']); Permission::create(['name' => 'roles.create']); Permission::create(['name' => 'roles.update']); Permission::create(['name' => 'roles.delete']); } /** * Reverse the migrations. * * @return void */ public function down() { // } }; migrations/2018_02_26_103612_add_sales_commission_agent_column_to_business_table.php 0000644 00000001304 15001704611 0024216 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('business', function (Blueprint $table) { $table->enum('sales_cmsn_agnt', ['logged_in_user', 'user', 'cmsn_agnt'])->nullable()->after('enable_editing_product_from_purchase'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('business', function (Blueprint $table) { // }); } }; migrations/2017_11_23_181237_create_invoice_schemes_table.php 0000644 00000002155 15001704611 0017367 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('invoice_schemes', function (Blueprint $table) { $table->increments('id'); $table->integer('business_id')->unsigned(); $table->foreign('business_id')->references('id')->on('business')->onDelete('cascade'); $table->string('name'); $table->enum('scheme_type', ['blank', 'year']); $table->string('prefix')->nullable(); $table->integer('start_number')->nullable(); $table->integer('invoice_count')->default(0); $table->integer('total_digits')->nullable(); $table->boolean('is_default')->default(false); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('invoice_schemes'); } }; migrations/2019_09_06_131445_add_types_of_service_fields_to_transactions_table.php 0000644 00000002176 15001704611 0023712 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('transactions', function (Blueprint $table) { $table->integer('types_of_service_id')->nullable()->after('created_by'); $table->decimal('packing_charge', 22, 4)->nullable()->after('types_of_service_id'); $table->enum('packing_charge_type', ['fixed', 'percent'])->nullable()->after('packing_charge'); $table->text('service_custom_field_1')->nullable()->after('packing_charge_type'); $table->text('service_custom_field_2')->nullable()->after('service_custom_field_1'); $table->text('service_custom_field_3')->nullable()->after('service_custom_field_2'); $table->text('service_custom_field_4')->nullable()->after('service_custom_field_3'); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2018_09_07_134858_add_selling_price_group_id_to_transactions_table.php 0000644 00000001223 15001704611 0023526 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('transactions', function (Blueprint $table) { $table->integer('selling_price_group_id')->nullable()->after('created_by'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('transactions', function (Blueprint $table) { // }); } }; migrations/2021_03_18_183119_add_prefer_payment_account_columns_to_transactions_table.php 0000644 00000001345 15001704611 0025300 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('transactions', function (Blueprint $table) { $table->string('prefer_payment_method') ->nullable() ->after('created_by'); $table->integer('prefer_payment_account') ->nullable() ->after('prefer_payment_method'); }); } /** * Reverse the migrations. * * @return void */ public function down() { // } }; migrations/2018_02_12_114605_add_quantity_sold_in_purchase_lines_table.php 0000644 00000001677 15001704611 0022164 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('purchase_lines', function (Blueprint $table) { $table->decimal('quantity_sold', 22, 4)->default(0)->after('tax_id')->comment('Quanity sold from this purchase line'); $table->decimal('quantity_adjusted', 22, 4)->default(0)->after('quantity_sold')->comment('Quanity adjusted in stock adjustment from this purchase line'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('purchase_lines', function (Blueprint $table) { $table->dropColumn('quantity_sold'); $table->dropColumn('quantity_adjusted'); }); } }; migrations/2018_09_10_112448_update_product_type_to_single_if_null_in_products_table.php 0000644 00000000631 15001704611 0025147 0 ustar 00 <?php use App\Product; use Illuminate\Database\Migrations\Migration; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Product::whereNull('type')->update(['type' => 'single']); } /** * Reverse the migrations. * * @return void */ public function down() { // } }; migrations/2021_04_15_063449_add_denominations_column_to_cash_registers_table.php 0000644 00000001055 15001704611 0023524 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('cash_registers', function (Blueprint $table) { $table->text('denominations')->nullable()->after('total_cheques'); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2022_08_25_132707_add_service_staff_timer_fields_to_products_and_users_table.php 0000644 00000002053 15001704611 0025551 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('products', function (Blueprint $table) { $table->integer('preparation_time_in_minutes')->nullable()->after('created_by'); }); Schema::table('users', function (Blueprint $table) { $table->dateTime('available_at')->nullable()->after('business_id')->comment('Service staff avilable at. Calculated from product preparation_time_in_minutes'); $table->dateTime('paused_at')->nullable()->after('available_at')->comment('Service staff available time paused at, Will be nulled on resume.'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('products_and_users', function (Blueprint $table) { // }); } }; migrations/2018_07_28_103614_add_credit_limit_column_to_contacts_table.php 0000644 00000001213 15001704611 0022134 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('contacts', function (Blueprint $table) { $table->decimal('credit_limit', 22, 4)->nullable()->after('pay_term_type'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('contacts', function (Blueprint $table) { // }); } }; migrations/2021_02_08_175632_add_contact_number_fields_to_users_table.php 0000644 00000001162 15001704611 0021762 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('users', function (Blueprint $table) { $table->string('alt_number')->nullable()->after('contact_number'); $table->string('family_number')->nullable()->after('alt_number'); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2018_01_09_111005_modify_payment_status_in_transactions_table.php 0000644 00000000730 15001704611 0022571 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Support\Facades\DB; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { DB::statement("ALTER TABLE transactions MODIFY COLUMN payment_status ENUM('paid', 'due', 'partial')"); } /** * Reverse the migrations. * * @return void */ public function down() { // } }; migrations/2017_11_21_064540_create_barcodes_table.php 0000644 00000003035 15001704611 0015777 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('barcodes', function (Blueprint $table) { $table->increments('id'); $table->string('name'); $table->text('description')->nullable(); $table->float('width', 22, 4)->nullable(); $table->float('height', 22, 4)->nullable(); $table->float('paper_width', 22, 4)->nullable(); $table->float('paper_height', 22, 4)->nullable(); $table->float('top_margin', 22, 4)->nullable(); $table->float('left_margin', 22, 4)->nullable(); $table->float('row_distance', 22, 4)->nullable(); $table->float('col_distance', 22, 4)->nullable(); $table->integer('stickers_in_one_row')->nullable(); $table->boolean('is_default')->default(0); $table->boolean('is_continuous')->default(0); $table->integer('stickers_in_one_sheet')->nullable(); $table->integer('business_id')->unsigned()->nullable(); $table->foreign('business_id')->references('id')->on('business')->onDelete('cascade'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('barcodes'); } }; migrations/2019_11_09_110522_add_indexing_to_lot_number.php 0000644 00000001007 15001704611 0017065 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('purchase_lines', function (Blueprint $table) { $table->index('lot_number'); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2019_05_25_104922_add_view_purchase_price_permission.php 0000644 00000000656 15001704611 0020647 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Spatie\Permission\Models\Permission; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Permission::create(['name' => 'view_purchase_price']); } /** * Reverse the migrations. * * @return void */ public function down() { // } }; migrations/2018_02_19_111517_add_keyboard_shortcut_column_to_business_table.php 0000644 00000001221 15001704611 0023227 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('business', function (Blueprint $table) { $table->text('keyboard_shortcuts')->nullable()->after('stock_expiry_alert_days'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('business', function (Blueprint $table) { // }); } }; migrations/2018_04_24_133704_add_modules_fields_in_invoice_layout_table.php 0000644 00000001127 15001704611 0022304 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('invoice_layouts', function (Blueprint $table) { $table->text('module_info') ->after('footer_text') ->nullable(); }); } /** * Reverse the migrations. * * @return void */ public function down() { // } }; migrations/2018_04_24_105246_restaurant_fields_in_transaction_table.php 0000644 00000001357 15001704611 0021515 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('transactions', function (Blueprint $table) { $table->integer('res_table_id')->unsigned()->nullable()->after('location_id')->comment('fields to restaurant module'); $table->integer('res_waiter_id')->unsigned()->nullable()->after('res_table_id')->comment('fields to restaurant module'); }); } /** * Reverse the migrations. * * @return void */ public function down() { // } }; migrations/2018_05_21_131349_add_custom_fileds_to_contacts_table.php 0000644 00000001573 15001704611 0020755 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('contacts', function (Blueprint $table) { $table->string('custom_field1')->nullable()->after('customer_group_id'); $table->string('custom_field2')->nullable()->after('custom_field1'); $table->string('custom_field3')->nullable()->after('custom_field2'); $table->string('custom_field4')->nullable()->after('custom_field3'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('contacts', function (Blueprint $table) { // }); } }; migrations/2018_02_27_121422_add_item_addition_method_to_business_table.php 0000644 00000001216 15001704611 0022267 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('business', function (Blueprint $table) { $table->boolean('item_addition_method')->default(1)->after('sales_cmsn_agnt'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('business', function (Blueprint $table) { // }); } }; migrations/2018_12_03_185546_add_product_description_column_to_products_table.php 0000644 00000001200 15001704611 0023573 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('products', function (Blueprint $table) { $table->text('product_description')->nullable()->after('image'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('products', function (Blueprint $table) { // }); } }; migrations/2018_05_15_134729_add_design_to_invoice_layouts.php 0000644 00000001247 15001704611 0017623 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('invoice_layouts', function (Blueprint $table) { $table->enum('design', ['classic', 'elegant'])->after('business_id')->default('classic'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('invoice_layouts', function (Blueprint $table) { // }); } }; migrations/2021_03_24_183132_add_shipping_export_custom_field_details_to_contacts_table.php 0000644 00000003174 15001704611 0025570 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('contacts', function (Blueprint $table) { $table->longText('shipping_custom_field_details') ->nullable() ->after('shipping_address'); $table->boolean('is_export') ->default(false) ->after('shipping_custom_field_details'); $table->string('export_custom_field_1') ->nullable() ->after('is_export'); $table->string('export_custom_field_2') ->nullable() ->after('export_custom_field_1'); $table->string('export_custom_field_3') ->nullable() ->after('export_custom_field_2'); $table->string('export_custom_field_4') ->nullable() ->after('export_custom_field_3'); $table->string('export_custom_field_5') ->nullable() ->after('export_custom_field_4'); $table->string('export_custom_field_6') ->nullable() ->after('export_custom_field_5'); }); DB::statement('ALTER TABLE contacts MODIFY COLUMN name VARCHAR(191) DEFAULT NULL'); } /** * Reverse the migrations. * * @return void */ public function down() { // } }; migrations/2017_07_26_122313_create_units_table.php 0000644 00000002034 15001704611 0015360 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('units', function (Blueprint $table) { $table->increments('id'); $table->integer('business_id')->unsigned(); $table->foreign('business_id')->references('id')->on('business')->onDelete('cascade'); $table->string('actual_name'); $table->string('short_name'); $table->boolean('allow_decimal'); $table->integer('created_by')->unsigned(); $table->foreign('created_by')->references('id')->on('users')->onDelete('cascade'); $table->softDeletes(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('units'); } }; migrations/2020_03_26_124736_add_allow_login_column_in_users_table.php 0000644 00000001367 15001704611 0021306 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('users', function (Blueprint $table) { $table->boolean('allow_login')->default(1)->after('business_id'); }); DB::statement('ALTER TABLE users CHANGE username username VARCHAR(191) NULL;'); DB::statement('ALTER TABLE users CHANGE password password VARCHAR(191) NULL;'); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2018_01_30_181442_create_cash_registers_table.php 0000644 00000002374 15001704611 0017230 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('cash_registers', function (Blueprint $table) { $table->increments('id'); $table->integer('business_id')->unsigned(); $table->foreign('business_id')->references('id')->on('business')->onDelete('cascade'); $table->integer('user_id')->nullable()->unsigned(); $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade'); $table->enum('status', ['close', 'open'])->default('open'); $table->dateTime('closed_at')->nullable(); $table->decimal('closing_amount', 22, 4)->default(0); $table->integer('total_card_slips')->default(0); $table->integer('total_cheques')->default(0); $table->text('closing_note')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('cash_registers'); } }; migrations/2018_03_31_140921_update_transactions_table_exchange_rate.php 0000644 00000000666 15001704611 0021631 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { DB::statement('ALTER TABLE transactions MODIFY COLUMN exchange_rate DECIMAL(20,3) NOT NULL DEFAULT 0'); } /** * Reverse the migrations. * * @return void */ public function down() { // } }; migrations/2020_01_08_133506_create_document_and_notes_table.php 0000644 00000001714 15001704611 0020064 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('document_and_notes', function (Blueprint $table) { $table->increments('id'); $table->integer('business_id')->index(); $table->integer('notable_id')->index(); $table->string('notable_type'); $table->text('heading')->nullable(); $table->text('description')->nullable(); $table->boolean('is_private')->default(false); $table->integer('created_by')->index(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('document_and_notes'); } }; migrations/2018_09_22_110504_add_sms_and_email_settings_columns_to_business_table.php 0000644 00000001317 15001704611 0024374 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('business', function (Blueprint $table) { $table->text('email_settings')->nullable()->after('created_by'); $table->text('sms_settings')->nullable()->after('email_settings'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('business', function (Blueprint $table) { // }); } }; migrations/2018_02_08_155348_add_exchange_rate_to_transactions_table.php 0000644 00000001263 15001704611 0021607 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('transactions', function (Blueprint $table) { $table->decimal('exchange_rate', 8, 3)->default(1)->after('expense_for'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('transactions', function (Blueprint $table) { $table->dropColumn('exchange_rate'); }); } }; migrations/2018_01_04_115627_create_sessions_table.php 0000644 00000001454 15001704611 0016072 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('sessions', function (Blueprint $table) { $table->string('id')->unique(); $table->unsignedInteger('user_id')->nullable(); $table->string('ip_address', 45)->nullable(); $table->text('user_agent')->nullable(); $table->text('payload'); $table->integer('last_activity'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('sessions'); } }; migrations/2019_07_22_152649_add_not_for_selling_in_product_table.php 0000644 00000001317 15001704611 0021134 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('products', function (Blueprint $table) { $table->boolean('not_for_selling') ->default(false) ->after('is_inactive'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('products', function (Blueprint $table) { $table->dropColumn('not_for_selling'); }); } }; migrations/2018_11_29_115918_add_primary_key_in_system_table.php 0000644 00000001045 15001704611 0020145 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('system', function (Blueprint $table) { $table->increments('id')->first(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::drop('system'); } }; migrations/2014_10_12_000000_create_users_table.php 0000644 00000001726 15001704611 0015334 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('users', function (Blueprint $table) { $table->increments('id'); $table->string('surname'); $table->string('first_name'); $table->string('last_name')->nullable(); $table->string('username')->unique(); $table->string('email')->nullable(); $table->string('password'); $table->char('language', 7)->default('en'); $table->rememberToken(); $table->softDeletes(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('users'); } }; migrations/2020_06_01_094654_add_max_sale_discount_column_to_users_table.php 0000644 00000001070 15001704611 0022505 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('users', function (Blueprint $table) { $table->decimal('max_sales_discount_percent', 5, 2)->nullable()->after('business_id'); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2018_03_05_153510_add_enable_inline_tax_column_to_business_table.php 0000644 00000001413 15001704611 0023132 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('business', function (Blueprint $table) { $table->boolean('enable_inline_tax')->default(1)->after('item_addition_method'); $table->enum('currency_symbol_placement', ['before', 'after'])->after('enable_inline_tax')->default('before'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('business', function (Blueprint $table) { // }); } }; migrations/2018_09_24_134942_add_lot_no_line_id_to_stock_adjustment_lines_table.php 0000644 00000001252 15001704611 0024032 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('stock_adjustment_lines', function (Blueprint $table) { $table->integer('lot_no_line_id')->nullable()->after('removed_purchase_line'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('stock_adjustment_lines', function (Blueprint $table) { // }); } }; migrations/2018_02_23_100549_version_1_2.php 0000644 00000001404 15001704611 0013652 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Spatie\Permission\Models\Permission; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { $now = \Carbon::now()->toDateTimeString(); Permission::insert([ [ 'name' => 'profit_loss_report.view', 'guard_name' => 'web', 'created_at' => $now, ], [ 'name' => 'direct_sell.access', 'guard_name' => 'web', 'created_at' => $now, ], ]); } /** * Reverse the migrations. * * @return void */ public function down() { // } }; migrations/2021_03_03_162021_add_purchase_order_columns_to_purchase_lines_and_transactions_table.php0000644 00000001471 15001704611 0027436 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('purchase_lines', function (Blueprint $table) { $table->integer('purchase_order_line_id')->after('tax_id')->nullable(); $table->decimal('po_quantity_purchased', 22, 4)->after('quantity_returned')->default(0); }); Schema::table('transactions', function (Blueprint $table) { $table->text('purchase_order_ids')->after('created_by')->nullable(); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2022_05_10_055307_add_delivery_date_column_to_transactions_table.php 0000644 00000001073 15001704611 0023167 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('transactions', function (Blueprint $table) { $table->dateTime('delivery_date')->nullable()->index()->after('shipping_address'); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2019_09_02_160054_remove_location_permissions_from_roles.php 0000644 00000001440 15001704611 0021575 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Support\Facades\Artisan; use Spatie\Permission\Models\Permission; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { $location_permissions = Permission::where('name', 'like', 'location.%') ->orWhere('name', 'access_all_locations') ->pluck('id'); DB::table('role_has_permissions') ->whereIn('permission_id', $location_permissions) ->delete(); Artisan::call('cache:clear'); } /** * Reverse the migrations. * * @return void */ public function down() { // } }; migrations/2019_07_15_165136_add_fields_for_combo_product.php 0000644 00000002655 15001704611 0017412 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('variations', function (Blueprint $table) { $table->text('combo_variations')->nullable()->comment('Contains the combo variation details'); }); DB::statement("ALTER TABLE `products` CHANGE `type` `type` ENUM('single','variable','modifier','combo') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL;"); Schema::table('transaction_sell_lines', function (Blueprint $table) { $table->string('children_type') ->default('') ->after('parent_sell_line_id') ->comment('Type of children for the parent, like modifier or combo'); $table->index(['children_type']); $table->index(['parent_sell_line_id']); }); DB::statement("UPDATE transaction_sell_lines SET children_type='modifier' WHERE parent_sell_line_id IS NOT NULL"); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('variations', function (Blueprint $table) { $table->dropColumn(['combo_variations']); }); } }; migrations/2021_02_24_175551_add_print_invoice_permission_to_all_roles.php 0000644 00000001531 15001704611 0022213 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Spatie\Permission\Models\Permission; use Spatie\Permission\Models\Role; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { //check if permission exists $permission_exists = Permission::where('name', 'print_invoice') ->exists(); if (! $permission_exists) { Permission::create([ 'name' => 'print_invoice', 'guard_name' => 'web', ]); } $roles = Role::all(); foreach ($roles as $role) { $role->givePermissionTo('print_invoice'); } } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2018_07_25_110004_add_show_expiry_and_show_lot_colums_to_invoice_layouts_table.php 0000644 00000001334 15001704611 0026177 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('invoice_layouts', function (Blueprint $table) { $table->boolean('show_expiry')->default(0)->after('show_cat_code'); $table->boolean('show_lot')->default(0)->after('show_expiry'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('invoice_layouts', function (Blueprint $table) { // }); } }; migrations/2020_11_17_164041_modify_type_column_to_varchar_in_contacts_table.php 0000644 00000001044 15001704611 0023365 0 ustar 00 <?php use App\Contact; use Illuminate\Database\Migrations\Migration; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { DB::statement('ALTER TABLE contacts MODIFY COLUMN `type` VARCHAR(191) NOT NULL'); Contact::where('type', '=', '') ->orWhereNull('type') ->update(['type' => 'lead']); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2017_11_20_051930_create_table_group_sub_taxes.php 0000644 00000001433 15001704611 0017424 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('group_sub_taxes', function (Blueprint $table) { $table->integer('group_tax_id')->unsigned(); $table->foreign('group_tax_id')->references('id')->on('tax_rates')->onDelete('cascade'); $table->integer('tax_id')->unsigned(); $table->foreign('tax_id')->references('id')->on('tax_rates')->onDelete('cascade'); }); } /** * Reverse the migrations. * * @return void */ public function down() { // } }; migrations/2018_05_24_132620_add_ref_no_column_to_transaction_payments_table.php 0000644 00000001224 15001704611 0023356 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('transaction_payments', function (Blueprint $table) { $table->string('payment_ref_no')->nullable()->after('note'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('transaction_payments', function (Blueprint $table) { // }); } }; migrations/2018_10_03_185947_add_default_notification_templates_to_database.php 0000644 00000001253 15001704611 0023150 0 ustar 00 <?php use App\Business; use App\NotificationTemplate; use Illuminate\Database\Migrations\Migration; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { $businesses = Business::get(); $notification_template_data = []; foreach ($businesses as $business) { $notification_templates = NotificationTemplate::defaultNotificationTemplates($business->id); NotificationTemplate::insert($notification_templates); } } /** * Reverse the migrations. * * @return void */ public function down() { // } }; migrations/2018_10_31_122619_add_pay_terms_field_transactions_table.php 0000644 00000001361 15001704611 0021443 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('transactions', function (Blueprint $table) { $table->integer('pay_term_number')->nullable()->after('created_by'); $table->enum('pay_term_type', ['days', 'months'])->nullable()->after('pay_term_number'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('transactions', function (Blueprint $table) { // }); } }; migrations/2019_12_03_180342_add_common_settings_field_to_invoice_layouts_table.php 0000644 00000001056 15001704611 0024056 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('invoice_layouts', function (Blueprint $table) { $table->text('common_settings')->nullable()->after('module_info'); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2016_06_01_000002_create_oauth_access_tokens_table.php 0000644 00000001637 15001704611 0020227 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('oauth_access_tokens', function (Blueprint $table) { $table->string('id', 100)->primary(); $table->bigInteger('user_id')->index()->nullable(); $table->unsignedInteger('client_id'); $table->string('name')->nullable(); $table->text('scopes')->nullable(); $table->boolean('revoked'); $table->timestamps(); $table->dateTime('expires_at')->nullable(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('oauth_access_tokens'); } }; migrations/2019_09_12_105616_create_product_locations_table.php 0000644 00000001176 15001704611 0017765 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('product_locations', function (Blueprint $table) { $table->integer('product_id')->index(); $table->integer('location_id')->index(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('product_locations'); } }; migrations/2016_06_01_000001_create_oauth_auth_codes_table.php 0000644 00000001462 15001704611 0017514 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('oauth_auth_codes', function (Blueprint $table) { $table->string('id', 100)->primary(); $table->bigInteger('user_id'); $table->unsignedInteger('client_id'); $table->text('scopes')->nullable(); $table->boolean('revoked'); $table->dateTime('expires_at')->nullable(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('oauth_auth_codes'); } }; migrations/2019_03_12_120336_create_activity_log_table.php 0000644 00000001726 15001704611 0016716 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. */ public function up() { Schema::create(config('activitylog.table_name'), function (Blueprint $table) { $table->increments('id'); $table->string('log_name')->nullable(); $table->text('description'); $table->integer('subject_id')->nullable(); $table->string('subject_type')->nullable(); $table->integer('causer_id')->nullable(); $table->string('causer_type')->nullable(); $table->text('properties')->nullable(); $table->timestamps(); $table->index('log_name'); }); } /** * Reverse the migrations. */ public function down() { Schema::dropIfExists(config('activitylog.table_name')); } }; migrations/2018_10_31_174752_add_access_selected_contacts_only_to_users_table.php 0000644 00000001230 15001704611 0023500 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('users', function (Blueprint $table) { $table->boolean('selected_contacts')->default(false) ->after('cmmsn_percent'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('users', function (Blueprint $table) { // }); } }; migrations/2017_12_25_160253_add_location_id_to_transactions_table.php 0000644 00000001454 15001704611 0021266 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('transactions', function (Blueprint $table) { $table->integer('location_id')->unsigned()->after('business_id'); $table->foreign('location_id')->references('id')->on('business_locations'); $table->index('location_id'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('transactions', function (Blueprint $table) { $table->dropColumn('location_id'); }); } }; migrations/2023_12_06_152840_add_contact_type_in_contacts.php 0000644 00000001172 15001704611 0017415 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('contacts', function (Blueprint $table) { $table->string('contact_type')->nullable()->after('type'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('contacts', function (Blueprint $table) { // }); } }; migrations/2018_03_29_115502_add_changes_for_sr_number_in_products_and_sale_lines_table.php 0000644 00000001341 15001704611 0025470 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('products', function (Blueprint $table) { $table->boolean('enable_sr_no')->default(0)->after('expiry_period_type'); }); Schema::table('transaction_sell_lines', function (Blueprint $table) { $table->text('sell_line_note', 300)->nullable()->after('tax_id'); }); } /** * Reverse the migrations. * * @return void */ public function down() { // } }; migrations/2017_08_10_061146_create_product_variations_table.php 0000644 00000001665 15001704611 0020146 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('product_variations', function (Blueprint $table) { $table->increments('id'); $table->string('name'); $table->integer('product_id')->unsigned(); $table->foreign('product_id')->references('id')->on('products')->onDelete('cascade'); $table->boolean('is_dummy')->default(1); $table->timestamps(); //Indexing $table->index('name'); $table->index('product_id'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('product_variations'); } }; migrations/2018_08_14_104036_add_opening_balance_type_to_transactions_table.php 0000644 00000001114 15001704611 0023141 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Support\Facades\DB; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { DB::statement("ALTER TABLE transactions MODIFY COLUMN type ENUM('purchase','sell', 'expense', 'stock_adjustment', 'sell_transfer', 'purchase_transfer', 'opening_stock', 'sell_return', 'opening_balance')"); } /** * Reverse the migrations. * * @return void */ public function down() { // } }; migrations/2021_09_03_061528_modify_cash_register_transactions_table.php 0000644 00000000727 15001704611 0021665 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Support\Facades\DB; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { DB::statement('ALTER TABLE cash_register_transactions MODIFY COLUMN transaction_type VARCHAR(191);'); } /** * Reverse the migrations. * * @return void */ public function down() { // } }; migrations/2020_09_22_121639_create_discount_variations_table.php 0000644 00000001162 15001704611 0020310 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('discount_variations', function (Blueprint $table) { $table->integer('discount_id'); $table->integer('variation_id'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('discount_variations'); } }; migrations/2023_04_17_155216_add_custom_fields_to_products.php 0000644 00000004130 15001704611 0017622 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('products', function (Blueprint $table) { $table->string('product_custom_field5')->nullable()->after('product_custom_field4'); $table->string('product_custom_field6')->nullable()->after('product_custom_field5'); $table->string('product_custom_field7')->nullable()->after('product_custom_field6'); $table->string('product_custom_field8')->nullable()->after('product_custom_field7'); $table->string('product_custom_field9')->nullable()->after('product_custom_field8'); $table->string('product_custom_field10')->nullable()->after('product_custom_field9'); $table->string('product_custom_field11')->nullable()->after('product_custom_field10'); $table->string('product_custom_field12')->nullable()->after('product_custom_field11'); $table->string('product_custom_field13')->nullable()->after('product_custom_field12'); $table->string('product_custom_field14')->nullable()->after('product_custom_field13'); $table->string('product_custom_field15')->nullable()->after('product_custom_field14'); $table->string('product_custom_field16')->nullable()->after('product_custom_field15'); $table->string('product_custom_field17')->nullable()->after('product_custom_field16'); $table->string('product_custom_field18')->nullable()->after('product_custom_field17'); $table->string('product_custom_field19')->nullable()->after('product_custom_field18'); $table->string('product_custom_field20')->nullable()->after('product_custom_field19'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('products', function (Blueprint $table) { // }); } }; migrations/2018_07_17_103434_add_sales_person_name_label_to_invoice_layouts_table.php 0000644 00000001372 15001704611 0024345 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('invoice_layouts', function (Blueprint $table) { $table->string('sales_person_label')->nullable()->after('show_sale_description'); $table->boolean('show_sales_person')->default(0)->after('sales_person_label'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('invoice_layouts', function (Blueprint $table) { // }); } }; migrations/2018_04_03_122709_add_changes_to_invoice_layouts_table.php 0000644 00000003744 15001704611 0021124 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('invoice_layouts', function (Blueprint $table) { $table->string('sub_heading_line1')->nullable()->after('invoice_heading'); $table->string('sub_heading_line2')->nullable()->after('sub_heading_line1'); $table->string('sub_heading_line3')->nullable()->after('sub_heading_line2'); $table->string('sub_heading_line4')->nullable()->after('sub_heading_line3'); $table->string('sub_heading_line5')->nullable()->after('sub_heading_line4'); $table->string('table_product_label')->nullable()->after('paid_label'); $table->string('table_qty_label')->nullable()->after('table_product_label'); $table->string('table_unit_price_label')->nullable()->after('table_qty_label'); $table->string('table_subtotal_label')->nullable()->after('table_unit_price_label'); $table->boolean('show_client_id')->default(0)->after('paid_label'); $table->string('client_id_label')->nullable()->after('show_client_id'); $table->string('date_label')->nullable()->after('client_id_label'); $table->boolean('show_time')->default(1)->after('date_label'); $table->boolean('show_brand')->default(0)->after('show_time'); $table->boolean('show_sku')->default(1)->after('show_brand'); $table->boolean('show_cat_code')->default(1)->after('show_sku'); $table->boolean('show_sale_description')->default(0)->after('show_cat_code'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('invoice_layouts', function (Blueprint $table) { // }); } }; migrations/2017_07_26_083429_create_permission_tables.php 0000644 00000005661 15001704611 0016620 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { $tableNames = config('permission.table_names'); Schema::create($tableNames['permissions'], function (Blueprint $table) { $table->increments('id'); $table->string('name'); $table->string('guard_name'); $table->timestamps(); }); Schema::create($tableNames['roles'], function (Blueprint $table) { $table->increments('id'); $table->string('name'); $table->string('guard_name'); $table->integer('business_id')->unsigned(); $table->foreign('business_id')->references('id')->on('business')->onDelete('cascade'); $table->boolean('is_default')->default(0); $table->timestamps(); }); Schema::create($tableNames['model_has_permissions'], function (Blueprint $table) use ($tableNames) { $table->integer('permission_id')->unsigned(); $table->morphs('model'); $table->foreign('permission_id') ->references('id') ->on($tableNames['permissions']) ->onDelete('cascade'); $table->primary(['permission_id', 'model_id', 'model_type']); }); Schema::create($tableNames['model_has_roles'], function (Blueprint $table) use ($tableNames) { $table->integer('role_id')->unsigned(); $table->morphs('model'); $table->foreign('role_id') ->references('id') ->on($tableNames['roles']) ->onDelete('cascade'); $table->primary(['role_id', 'model_id', 'model_type']); }); Schema::create($tableNames['role_has_permissions'], function (Blueprint $table) use ($tableNames) { $table->integer('permission_id')->unsigned(); $table->integer('role_id')->unsigned(); $table->foreign('permission_id') ->references('id') ->on($tableNames['permissions']) ->onDelete('cascade'); $table->foreign('role_id') ->references('id') ->on($tableNames['roles']) ->onDelete('cascade'); $table->primary(['permission_id', 'role_id']); Cache::forget('spatie.permission.cache'); }); } /** * Reverse the migrations. * * @return void */ public function down() { $tableNames = config('permission.table_names'); Schema::drop($tableNames['role_has_permissions']); Schema::drop($tableNames['model_has_roles']); Schema::drop($tableNames['model_has_permissions']); Schema::drop($tableNames['roles']); Schema::drop($tableNames['permissions']); } }; migrations/2023_02_11_161511_add_batch_uuid_column_to_activity_log_table.php 0000644 00000001276 15001704611 0022442 0 ustar 00 <?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class AddBatchUuidColumnToActivityLogTable extends Migration { public function up() { Schema::connection(config('activitylog.database_connection'))->table(config('activitylog.table_name'), function (Blueprint $table) { $table->uuid('batch_uuid')->nullable()->after('properties'); }); } public function down() { Schema::connection(config('activitylog.database_connection'))->table(config('activitylog.table_name'), function (Blueprint $table) { $table->dropColumn('batch_uuid'); }); } } migrations/2023_03_21_170446_add_number_type_to_invoice_scheme.php 0000644 00000001311 15001704611 0020422 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('invoice_schemes', function (Blueprint $table) { $table->string('number_type', 100)->default('sequential')->after('scheme_type'); $table->index('number_type'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('invoice_schemes', function (Blueprint $table) { // }); } }; migrations/2018_01_25_172439_add_printer_related_fields_to_business_locations_table.php 0000644 00000001615 15001704611 0024720 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('business_locations', function (Blueprint $table) { $table->boolean('print_receipt_on_invoice')->nullable()->default(1)->after('invoice_layout_id'); $table->enum('receipt_printer_type', ['browser', 'printer'])->default('browser')->after('print_receipt_on_invoice'); $table->integer('printer_id')->nullable()->after('receipt_printer_type'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('business_locations', function (Blueprint $table) { // }); } }; migrations/2019_05_14_091812_add_show_image_column_to_invoice_layouts_table.php 0000644 00000001051 15001704611 0023204 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('invoice_layouts', function (Blueprint $table) { $table->boolean('show_image')->after('show_lot')->default(0); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2018_11_02_171949_change_card_type_column_to_varchar_in_transaction_payments_table.php 0000644 00000000717 15001704611 0026771 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Support\Facades\DB; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { DB::statement('ALTER TABLE transaction_payments MODIFY card_type VARCHAR(191) DEFAULT NULL'); } /** * Reverse the migrations. * * @return void */ public function down() { // } }; migrations/2019_09_18_164319_add_shipping_fields_to_transactions_table.php 0000644 00000001476 15001704611 0022176 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; use Spatie\Permission\Models\Permission; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('transactions', function (Blueprint $table) { $table->text('shipping_address')->nullable()->after('shipping_details'); $table->string('shipping_status')->nullable()->after('shipping_address'); $table->string('delivered_to')->nullable()->after('shipping_status'); }); Permission::create(['name' => 'access_shipping']); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2018_06_13_133705_create_bookings_table.php 0000644 00000003566 15001704611 0016047 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; use Spatie\Permission\Models\Permission; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { //Create booking related permissions $insert_data = [['name' => 'crud_all_bookings', 'guard_name' => 'web', ], ['name' => 'crud_own_bookings', 'guard_name' => 'web', ], ]; foreach ($insert_data as $data) { Permission::create($data); } Schema::create('bookings', function (Blueprint $table) { $table->increments('id'); $table->integer('contact_id')->unsigned(); $table->foreign('contact_id')->references('id')->on('contacts')->onDelete('cascade'); $table->integer('waiter_id')->unsigned()->nullable(); $table->integer('table_id')->unsigned()->nullable(); $table->integer('correspondent_id')->nullable(); $table->integer('business_id')->unsigned(); $table->foreign('business_id')->references('id')->on('business')->onDelete('cascade'); $table->integer('location_id')->unsigned(); $table->dateTime('booking_start'); $table->dateTime('booking_end'); $table->integer('created_by')->unsigned(); $table->foreign('created_by')->references('id')->on('users')->onDelete('cascade'); $table->enum('booking_status', ['booked', 'completed', 'cancelled']); $table->text('booking_note')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('bookings'); } }; migrations/2019_06_17_103515_add_profile_informations_columns_to_users_table.php 0000644 00000003645 15001704611 0023433 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('users', function (Blueprint $table) { $table->date('dob')->nullable()->after('selected_contacts'); $table->enum('marital_status', ['married', 'unmarried', 'divorced'])->nullable()->after('dob'); $table->char('blood_group', 10)->nullable()->after('marital_status'); $table->char('contact_number', 20)->nullable()->after('blood_group'); $table->string('fb_link')->nullable()->after('contact_number'); $table->string('twitter_link')->nullable()->after('fb_link'); $table->string('social_media_1')->nullable()->after('twitter_link'); $table->string('social_media_2')->nullable()->after('social_media_1'); $table->text('permanent_address')->nullable()->after('social_media_2'); $table->text('current_address')->nullable()->after('permanent_address'); $table->string('guardian_name')->nullable()->after('current_address'); $table->string('custom_field_1')->nullable()->after('guardian_name'); $table->string('custom_field_2')->nullable()->after('custom_field_1'); $table->string('custom_field_3')->nullable()->after('custom_field_2'); $table->string('custom_field_4')->nullable()->after('custom_field_3'); $table->longText('bank_details')->nullable()->after('custom_field_4'); $table->string('id_proof_name')->nullable()->after('bank_details'); $table->string('id_proof_number')->nullable()->after('id_proof_name'); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2018_03_06_210206_modify_product_barcode_types.php 0000644 00000001360 15001704611 0017451 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('products', function (Blueprint $table) { DB::statement("ALTER TABLE `products` CHANGE `barcode_type` `barcode_type` ENUM('C39','C128','EAN13','EAN8','UPCA','UPCE') DEFAULT 'C128' "); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('products', function (Blueprint $table) { // }); } }; migrations/2022_04_14_075120_add_payment_type_column_to_transaction_payments_table.php 0000644 00000001132 15001704611 0024614 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('transaction_payments', function (Blueprint $table) { $table->string('payment_type')->nullable()->after('method')->comments('either credit or debit')->index(); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2018_02_20_165505_add_is_direct_sale_column_to_transactions_table.php 0000644 00000001172 15001704611 0023325 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('transactions', function (Blueprint $table) { $table->boolean('is_direct_sale')->default(0)->after('document'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('transactions', function (Blueprint $table) { }); } }; migrations/2014_10_12_100000_create_password_resets_table.php 0000644 00000001235 15001704611 0017416 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('password_resets', function (Blueprint $table) { $table->string('email')->index(); $table->string('token'); $table->timestamp('created_at')->nullable(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('password_resets'); } }; migrations/2019_06_28_133732_change_type_column_to_string_in_transactions_table.php 0000644 00000001345 15001704611 0024122 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Support\Facades\DB; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { DB::statement('ALTER TABLE transactions MODIFY COLUMN type VARCHAR(191) DEFAULT NULL'); DB::statement('ALTER TABLE transactions ADD INDEX (type);'); DB::statement('SET FOREIGN_KEY_CHECKS=0;'); DB::statement('ALTER TABLE transactions CHANGE location_id location_id INT( 10 ) UNSIGNED NULL ;'); DB::statement('SET FOREIGN_KEY_CHECKS=1;'); } /** * Reverse the migrations. * * @return void */ public function down() { // } }; migrations/2019_05_08_130339_add_indexing_to_parent_id_in_transaction_payments_table.php 0000644 00000001163 15001704611 0025063 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('transaction_payments', function (Blueprint $table) { $table->index('parent_id'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('transaction_payments', function (Blueprint $table) { // }); } }; migrations/2020_04_28_111436_add_shipping_address_to_contacts_table.php 0000644 00000001166 15001704611 0021433 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('contacts', function (Blueprint $table) { $table->text('shipping_address')->nullable()->after('is_default'); $table->string('position')->nullable()->after('shipping_address'); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2020_06_22_103104_change_recur_interval_default_to_one.php 0000644 00000000737 15001704611 0021116 0 ustar 00 <?php use App\Transaction; use Illuminate\Database\Migrations\Migration; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Transaction::where('is_recurring', 1) ->whereNull('recur_interval') ->update(['recur_interval' => 1]); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2017_11_20_063603_create_transaction_sell_lines.php 0000644 00000003075 15001704611 0017606 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('transaction_sell_lines', function (Blueprint $table) { $table->increments('id'); $table->integer('transaction_id')->unsigned(); $table->foreign('transaction_id')->references('id')->on('transactions')->onDelete('cascade'); $table->integer('product_id')->unsigned(); $table->foreign('product_id')->references('id')->on('products')->onDelete('cascade'); $table->integer('variation_id')->unsigned(); $table->foreign('variation_id')->references('id')->on('variations')->onDelete('cascade'); $table->decimal('quantity', 22, 4)->default(0); $table->decimal('unit_price', 22, 4)->comment('Sell price excluding tax')->nullable(); $table->decimal('unit_price_inc_tax', 22, 4)->comment('Sell price including tax')->nullable(); $table->decimal('item_tax', 22, 4)->comment('Tax for one quantity'); $table->integer('tax_id')->unsigned()->nullable(); $table->foreign('tax_id')->references('id')->on('tax_rates')->onDelete('cascade'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('transaction_sell_lines'); } }; migrations/2023_09_13_153555_add_service_staff_pin_columns_in_users.php 0000644 00000001347 15001704611 0021511 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('users', function (Blueprint $table) { $table->boolean('is_enable_service_staff_pin')->default(0)->after('status'); $table->text('service_staff_pin')->nullable()->after('is_enable_service_staff_pin'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('users', function (Blueprint $table) { // }); } }; migrations/2018_07_26_124720_change_design_column_type_in_invoice_layouts_table.php 0000644 00000000723 15001704611 0024061 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Support\Facades\DB; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { DB::statement("ALTER TABLE invoice_layouts MODIFY COLUMN design VARCHAR(190) DEFAULT 'classic'"); } /** * Reverse the migrations. * * @return void */ public function down() { // } }; migrations/2019_07_19_103446_add_mfg_quantity_used_column_to_purchase_lines_table.php 0000644 00000001077 15001704611 0024415 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('purchase_lines', function (Blueprint $table) { $table->decimal('mfg_quantity_used', 22, 4)->default(0)->after('quantity_returned'); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2018_06_07_152443_add_is_service_staff_to_roles_table.php 0000644 00000001177 15001704611 0020744 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('roles', function (Blueprint $table) { $table->boolean('is_service_staff')->default(0)->after('is_default'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('roles', function (Blueprint $table) { // }); } }; migrations/2018_07_25_172004_add_discount_columns_to_transaction_sell_lines_table.php 0000644 00000001436 15001704611 0024422 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('transaction_sell_lines', function (Blueprint $table) { $table->enum('line_discount_type', ['fixed', 'percentage'])->nullable()->after('unit_price'); $table->decimal('line_discount_amount', 22, 4)->default(0)->after('line_discount_type'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('transaction_sell_lines', function (Blueprint $table) { // }); } }; migrations/2020_12_24_153050_add_custom_fields_to_transactions_table.php 0000644 00000001444 15001704611 0021627 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('transactions', function (Blueprint $table) { $table->string('custom_field_1')->nullable()->after('created_by'); $table->string('custom_field_2')->nullable()->after('custom_field_1'); $table->string('custom_field_3')->nullable()->after('custom_field_2'); $table->string('custom_field_4')->nullable()->after('custom_field_3'); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2018_02_12_113640_create_transaction_sell_lines_purchase_lines_table.php 0000644 00000002001 15001704611 0024024 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('transaction_sell_lines_purchase_lines', function (Blueprint $table) { $table->increments('id'); $table->integer('sell_line_id')->unsigned()->comment('id from transaction_sell_lines')->nullable(); $table->integer('stock_adjustment_line_id')->unsigned()->comment('id from stock_adjustment_lines')->nullable(); $table->integer('purchase_line_id')->unsigned()->comment('id from purchase_lines'); $table->decimal('quantity', 22, 4); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('transaction_sell_lines_purchase_lines'); } }; migrations/2021_03_25_170715_add_export_custom_fields_info_to_transactions_table.php 0000644 00000001326 15001704611 0024253 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('transactions', function (Blueprint $table) { $table->boolean('is_export') ->default(false) ->after('staff_note'); $table->longText('export_custom_fields_info') ->nullable() ->after('is_export'); }); } /** * Reverse the migrations. * * @return void */ public function down() { // } }; 2022_06_28_133342_add_secondary_unit_columns_to_products_sell_line_purchase_lines_tables.php 0000644 00000002124 15001704611 0030135 0 ustar 00 migrations <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('products', function (Blueprint $table) { $table->integer('secondary_unit_id')->nullable()->after('unit_id')->index(); }); Schema::table('purchase_lines', function (Blueprint $table) { $table->decimal('secondary_unit_quantity', 22, 4)->default(0)->after('quantity'); }); Schema::table('transaction_sell_lines', function (Blueprint $table) { $table->decimal('secondary_unit_quantity', 22, 4)->default(0)->after('quantity'); }); Schema::table('stock_adjustment_lines', function (Blueprint $table) { $table->decimal('secondary_unit_quantity', 22, 4)->default(0)->after('quantity'); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2017_12_25_122822_create_business_locations_table.php 0000644 00000002401 15001704611 0020122 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('business_locations', function (Blueprint $table) { $table->increments('id'); $table->integer('business_id')->unsigned(); $table->foreign('business_id')->references('id')->on('business')->onDelete('cascade'); $table->string('name', 256); $table->text('landmark')->nullable(); $table->string('country', 100); $table->string('state', 100); $table->string('city', 100); $table->char('zip_code', 7); $table->string('mobile')->nullable(); $table->string('alternate_number')->nullable(); $table->string('email')->nullable(); $table->softDeletes(); $table->timestamps(); //Indexing $table->index('business_id'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('business_locations'); } }; migrations/2019_02_21_134324_add_permission_for_discount.php 0000644 00000000652 15001704611 0017303 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Spatie\Permission\Models\Permission; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Permission::create(['name' => 'discount.access']); } /** * Reverse the migrations. * * @return void */ public function down() { // } }; migrations/2020_01_28_162345_add_weighing_scale_settings_in_business_settings_table.php 0000644 00000001274 15001704611 0024720 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('business', function (Blueprint $table) { $table->text('weighing_scale_setting')->after('pos_settings')->comment('used to store the configuration of weighing scale'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('business', function (Blueprint $table) { // }); } }; migrations/2018_04_03_103037_add_contact_id_to_contacts_table.php 0000644 00000001170 15001704611 0020205 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('contacts', function (Blueprint $table) { $table->string('contact_id')->nullable()->after('name'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('contacts', function (Blueprint $table) { // }); } }; migrations/2017_08_09_061616_create_variation_templates_table.php 0000644 00000001440 15001704611 0020302 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('variation_templates', function (Blueprint $table) { $table->increments('id'); $table->string('name'); $table->integer('business_id')->unsigned(); $table->foreign('business_id')->references('id')->on('business')->onDelete('cascade'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('variation_templates'); } }; migrations/2018_10_16_135229_create_permission_for_sells_and_purchase.php 0000644 00000000745 15001704611 0022036 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Spatie\Permission\Models\Permission; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Permission::create(['name' => 'purchase.payments']); Permission::create(['name' => 'sell.payments']); } /** * Reverse the migrations. * * @return void */ public function down() { // } }; migrations/2021_03_16_153427_add_code_columns_to_business_table.php 0000644 00000001627 15001704611 0020601 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('business', function (Blueprint $table) { $table->string('code_label_1') ->after('tax_label_2') ->nullable(); $table->string('code_1') ->after('code_label_1') ->nullable(); $table->string('code_label_2') ->after('code_1') ->nullable(); $table->string('code_2') ->after('code_label_2') ->nullable(); }); } /** * Reverse the migrations. * * @return void */ public function down() { // } }; migrations/2019_10_22_163335_add_common_settings_column_to_business_table.php 0000644 00000001051 15001704611 0022704 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('business', function (Blueprint $table) { $table->text('common_settings')->nullable()->after('custom_labels'); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2019_06_18_135524_add_permission_to_view_own_sales_only.php 0000644 00000000655 15001704611 0021414 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Spatie\Permission\Models\Permission; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Permission::create(['name' => 'view_own_sell_only']); } /** * Reverse the migrations. * * @return void */ public function down() { // } }; migrations/2019_09_03_185259_add_permission_for_pos_screen.php 0000644 00000001016 15001704611 0017632 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Spatie\Permission\Models\Permission; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Permission::create(['name' => 'edit_product_discount_from_pos_screen']); Permission::create(['name' => 'edit_product_price_from_pos_screen']); } /** * Reverse the migrations. * * @return void */ public function down() { // } }; migrations/2020_12_18_181447_add_shipping_custom_fields_to_transactions_table.php 0000644 00000001716 15001704611 0023550 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('transactions', function (Blueprint $table) { $table->string('shipping_custom_field_1')->nullable()->after('shipping_charges'); $table->string('shipping_custom_field_2')->nullable()->after('shipping_custom_field_1'); $table->string('shipping_custom_field_3')->nullable()->after('shipping_custom_field_2'); $table->string('shipping_custom_field_4')->nullable()->after('shipping_custom_field_3'); $table->string('shipping_custom_field_5')->nullable()->after('shipping_custom_field_4'); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2021_07_21_061615_add_fields_to_show_commission_agent_in_invoice_layout.php 0000644 00000001235 15001704611 0024560 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('invoice_layouts', function (Blueprint $table) { $table->string('commission_agent_label')->nullable()->after('customer_label'); $table->boolean('show_commission_agent')->default(0)->after('commission_agent_label'); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2017_10_31_065621_add_default_sales_tax_to_business_table.php 0000644 00000001350 15001704611 0021605 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('business', function (Blueprint $table) { $table->integer('default_sales_tax')->unsigned()->nullable()->after('tax_label_2'); $table->foreign('default_sales_tax')->references('id')->on('tax_rates'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('business', function (Blueprint $table) { // }); } }; migrations/2018_10_31_175627_add_user_contact_access.php 0000644 00000001222 15001704611 0016353 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('user_contact_access', function (Blueprint $table) { $table->increments('id'); $table->integer('user_id'); $table->integer('contact_id'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('user_contact_access'); } }; migrations/2020_07_09_174621_add_balance_field_to_contacts_table.php 0000644 00000001725 15001704611 0020645 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('contacts', function (Blueprint $table) { $table->decimal('balance', 22, 4)->default(0)->after('created_by'); }); Schema::table('transaction_payments', function (Blueprint $table) { $table->boolean('is_advance')->default(0)->after('created_by'); }); DB::statement('ALTER TABLE transaction_payments MODIFY COLUMN `method` VARCHAR(191) DEFAULT NULL;'); DB::statement('ALTER TABLE cash_register_transactions MODIFY COLUMN `pay_method` VARCHAR(191) DEFAULT NULL;'); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2018_09_06_154057_create_variation_group_prices_table.php 0000644 00000001750 15001704611 0021012 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('variation_group_prices', function (Blueprint $table) { $table->increments('id'); $table->integer('variation_id')->unsigned(); $table->foreign('variation_id')->references('id')->on('variations')->onDelete('cascade'); $table->integer('price_group_id')->unsigned(); $table->foreign('price_group_id')->references('id')->on('selling_price_groups')->onDelete('cascade'); $table->decimal('price_inc_tax', 22, 4); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('variation_group_prices'); } }; migrations/2018_02_21_105329_create_system_table.php 0000644 00000001420 15001704611 0015537 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('system', function (Blueprint $table) { $table->string('key'); $table->text('value')->nullable(); }); $version = config('author.app_version'); DB::table('system')->insert( ['key' => 'db_version', 'value' => $version] ); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('system'); } }; migrations/2018_03_27_122720_customer_group_related_changes_in_tables.php 0000644 00000001417 15001704611 0022015 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('contacts', function (Blueprint $table) { $table->integer('customer_group_id')->nullable()->after('is_default'); }); Schema::table('transactions', function (Blueprint $table) { $table->integer('customer_group_id')->nullable()->after('contact_id')->comment('used to add customer group while selling'); }); } /** * Reverse the migrations. * * @return void */ public function down() { // } }; migrations/2020_06_12_162245_modify_contacts_table.php 0000644 00000002207 15001704611 0016056 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('contacts', function (Blueprint $table) { $table->string('prefix')->after('name')->nullable(); $table->string('first_name')->after('prefix')->nullable(); $table->string('middle_name')->after('first_name')->nullable(); $table->string('last_name')->after('middle_name')->nullable(); $table->text('address_line_2')->after('landmark')->nullable(); $table->string('zip_code')->after('address_line_2')->nullable(); $table->date('dob')->after('zip_code')->nullable(); }); DB::statement('ALTER TABLE contacts CHANGE landmark address_line_1 text;'); DB::statement('UPDATE contacts SET first_name=name;'); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2019_02_21_120324_add_discount_id_column_to_transaction_sell_lines_table.php 0000644 00000001057 15001704611 0024700 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('transaction_sell_lines', function (Blueprint $table) { $table->integer('discount_id')->nullable()->after('tax_id'); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2017_07_05_073658_create_business_table.php 0000644 00000003444 15001704611 0016075 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('business', function (Blueprint $table) { $table->engine = 'InnoDB'; $table->increments('id'); $table->string('name'); $table->integer('currency_id')->unsigned(); $table->date('start_date')->nullable(); $table->string('tax_number_1', 100); $table->string('tax_label_1', 10); $table->string('tax_number_2', 100)->nullable(); $table->string('tax_label_2', 10)->nullable(); $table->float('default_profit_percent', 5, 2)->default(0); $table->integer('owner_id')->unsigned(); $table->foreign('owner_id')->references('id')->on('users')->onDelete('cascade'); $table->string('time_zone')->default('Asia/Kolkata'); $table->tinyInteger('fy_start_month')->default(1); $table->enum('accounting_method', ['fifo', 'lifo', 'avco'])->default('fifo'); $table->decimal('default_sales_discount', 5, 2)->nullable(); $table->enum('sell_price_tax', ['includes', 'excludes'])->default('includes'); $table->foreign('currency_id')->references('id')->on('currencies'); $table->string('logo')->nullable(); $table->string('sku_prefix')->nullable(); $table->boolean('enable_tooltip')->default(1); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('business'); } }; migrations/2017_07_22_075923_add_business_id_users_table.php 0000644 00000001225 15001704611 0017246 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('users', function (Blueprint $table) { $table->integer('business_id')->unsigned()->nullable()->after('remember_token'); $table->foreign('business_id')->references('id')->on('business')->onDelete('cascade'); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2016_06_01_000004_create_oauth_clients_table.php 0000644 00000001631 15001704611 0017040 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('oauth_clients', function (Blueprint $table) { $table->increments('id'); $table->bigInteger('user_id')->index()->nullable(); $table->string('name'); $table->string('secret', 100); $table->text('redirect'); $table->boolean('personal_access_client'); $table->boolean('password_client'); $table->boolean('revoked'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('oauth_clients'); } }; migrations/2019_03_04_170832_add_service_staff_columns_to_transaction_sell_lines_table.php 0000644 00000001240 15001704611 0025407 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('transaction_sell_lines', function (Blueprint $table) { $table->integer('res_service_staff_id')->nullable()->after('sell_line_note'); $table->string('res_line_order_status')->nullable()->after('res_service_staff_id'); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2018_08_08_122225_modify_cash_register_transactions_table_for_new_payment_methods.php 0000644 00000001053 15001704611 0026657 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Support\Facades\DB; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { DB::statement("ALTER TABLE cash_register_transactions MODIFY COLUMN pay_method ENUM('cash','card', 'cheque', 'bank_transfer', 'custom_pay_1', 'custom_pay_2', 'custom_pay_3', 'other')"); } /** * Reverse the migrations. * * @return void */ public function down() { // } }; migrations/2016_06_01_000003_create_oauth_refresh_tokens_table.php 0000644 00000001352 15001704611 0020417 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('oauth_refresh_tokens', function (Blueprint $table) { $table->string('id', 100)->primary(); $table->string('access_token_id', 100)->index(); $table->boolean('revoked'); $table->dateTime('expires_at')->nullable(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('oauth_refresh_tokens'); } }; migrations/2020_03_13_135844_add_is_active_column_to_selling_price_groups_table.php 0000644 00000001060 15001704611 0024023 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('selling_price_groups', function (Blueprint $table) { $table->boolean('is_active')->default(1)->after('business_id'); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2020_11_04_130940_add_more_custom_fields_to_contacts_table.php 0000644 00000001677 15001704611 0021767 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('contacts', function (Blueprint $table) { $table->string('custom_field5')->nullable()->after('custom_field4'); $table->string('custom_field6')->nullable()->after('custom_field5'); $table->string('custom_field7')->nullable()->after('custom_field6'); $table->string('custom_field8')->nullable()->after('custom_field7'); $table->string('custom_field9')->nullable()->after('custom_field8'); $table->string('custom_field10')->nullable()->after('custom_field9'); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2019_12_06_174904_add_change_return_label_column_to_invoice_layouts_table.php 0000644 00000001067 15001704611 0025057 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('invoice_layouts', function (Blueprint $table) { $table->string('change_return_label')->nullable()->after('prev_bal_label'); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2018_02_23_125648_add_enable_editing_sp_from_purchase_column_to_business_table.php 0000644 00000001241 15001704611 0026053 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('business', function (Blueprint $table) { $table->boolean('enable_editing_product_from_purchase')->default(1)->after('keyboard_shortcuts'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('business', function (Blueprint $table) { // }); } }; migrations/2023_03_21_122731_add_sale_invoice_scheme_id_business_table.php 0000644 00000001515 15001704611 0022051 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; use Illuminate\Support\Facades\DB; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('business_locations', function (Blueprint $table) { $table->integer('sale_invoice_scheme_id')->after('invoice_scheme_id')->nullable(); //invoice_scheme_id }); DB::statement('UPDATE business_locations SET sale_invoice_scheme_id = invoice_scheme_id'); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('business_locations', function (Blueprint $table) { // }); } }; migrations/2018_02_15_161032_add_document_column_to_transactions_table.php 0000644 00000001205 15001704611 0022162 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('transactions', function (Blueprint $table) { $table->string('document')->nullable()->after('expense_for'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('transactions', function (Blueprint $table) { // }); } }; migrations/2018_06_27_182835_add_superadmin_related_fields_business.php 0000644 00000001526 15001704611 0021471 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('business', function (Blueprint $table) { $table->integer('created_by')->nullable()->after('ref_no_prefixes'); $table->boolean('is_active')->default(true)->after('created_by'); }); DB::table('system')->insert(['key' => 'default_business_active_status', 'value' => 1]); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('business', function (Blueprint $table) { // }); } }; migrations/2019_12_12_180126_copy_expense_total_to_total_before_tax.php 0000644 00000000703 15001704611 0021533 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Support\Facades\DB; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { DB::statement('UPDATE transactions SET total_before_tax=final_total WHERE type="expense" '); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2020_12_28_105403_add_whatsapp_text_column_to_notification_templates_table.php 0000644 00000001207 15001704611 0025273 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('notification_templates', function (Blueprint $table) { $table->text('whatsapp_text')->nullable()->after('sms_body'); $table->boolean('auto_send_wa_notif')->default(0)->after('auto_send_sms'); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2018_05_21_131949_add_custom_fileds_and_website_to_business_locations_table.php 0000644 00000001710 15001704611 0025410 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('business_locations', function (Blueprint $table) { $table->string('website')->nullable()->after('email'); $table->string('custom_field1')->nullable()->after('website'); $table->string('custom_field2')->nullable()->after('custom_field1'); $table->string('custom_field3')->nullable()->after('custom_field2'); $table->string('custom_field4')->nullable()->after('custom_field3'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('business_locations', function (Blueprint $table) { // }); } }; migrations/2018_07_10_101913_add_custom_fields_to_products_table.php 0000644 00000002175 15001704611 0020773 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('products', function (Blueprint $table) { $table->string('product_custom_field1')->nullable()->after('weight'); $table->string('product_custom_field2')->nullable()->after('product_custom_field1'); $table->string('product_custom_field3')->nullable()->after('product_custom_field2'); $table->string('product_custom_field4')->nullable()->after('product_custom_field3'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('products', function (Blueprint $table) { $table->dropColumn('product_custom_field1'); $table->dropColumn('product_custom_field2'); $table->dropColumn('product_custom_field3'); $table->dropColumn('product_custom_field4'); }); } }; migrations/2019_09_17_122522_add_custom_labels_column_to_business_table.php 0000644 00000001046 15001704611 0022341 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('business', function (Blueprint $table) { $table->text('custom_labels')->nullable()->after('sms_settings'); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2018_05_22_123527_create_reference_counts_table.php 0000644 00000001331 15001704611 0017551 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('reference_counts', function (Blueprint $table) { $table->increments('id'); $table->string('ref_type'); $table->integer('ref_count'); $table->integer('business_id'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('reference_counts'); } }; migrations/2019_09_04_163141_add_location_id_to_cash_registers_table.php 0000644 00000001065 15001704611 0021565 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('cash_registers', function (Blueprint $table) { $table->integer('location_id')->nullable()->after('business_id')->index(); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2019_12_11_121307_add_draft_and_quotation_list_permissions.php 0000644 00000000741 15001704611 0022044 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Spatie\Permission\Models\Permission; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Permission::create(['name' => 'list_drafts']); Permission::create(['name' => 'list_quotations']); } /** * Reverse the migrations. * * @return void */ public function down() { // } }; migrations/2018_04_24_114149_add_enabled_modules_business_table.php 0000644 00000001262 15001704611 0020546 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('business', function (Blueprint $table) { $table->text('enabled_modules') ->after('currency_symbol_placement') ->nullable(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('business', function (Blueprint $table) { // }); } }; migrations/2019_12_02_105025_create_warranties_table.php 0000644 00000002233 15001704611 0016367 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('warranties', function (Blueprint $table) { $table->increments('id'); $table->string('name'); $table->integer('business_id'); $table->text('description')->nullable(); $table->integer('duration'); $table->enum('duration_type', ['days', 'months', 'years']); $table->timestamps(); }); Schema::table('products', function (Blueprint $table) { $table->integer('warranty_id')->nullable()->index()->after('created_by'); }); Schema::create('sell_line_warranties', function (Blueprint $table) { $table->integer('sell_line_id'); $table->integer('warranty_id'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('warranties'); } }; migrations/2017_12_25_163227_create_variation_location_details_table.php 0000644 00000002423 15001704611 0021615 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('variation_location_details', function (Blueprint $table) { $table->increments('id'); $table->integer('product_id')->unsigned(); $table->integer('product_variation_id')->unsigned()->comment('id from product_variations table'); $table->integer('variation_id')->unsigned(); $table->foreign('variation_id')->references('id')->on('variations'); $table->integer('location_id')->unsigned(); $table->foreign('location_id')->references('id')->on('business_locations'); $table->decimal('qty_available', 22, 4)->default(0); $table->timestamps(); //Indexing $table->index('product_id'); $table->index('product_variation_id'); $table->index('variation_id'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('variation_location_details'); } }; migrations/2019_01_16_125825_add_subscription_no_column_to_transactions_table.php 0000644 00000001050 15001704611 0023575 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('transactions', function (Blueprint $table) { $table->string('subscription_no')->nullable()->after('ref_no'); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2021_03_22_120810_add_more_types_of_service_custom_fields.php 0000644 00000001236 15001704611 0021634 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('transactions', function (Blueprint $table) { $table->text('service_custom_field_5')->nullable()->after('service_custom_field_4'); $table->text('service_custom_field_6')->nullable()->after('service_custom_field_5'); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2021_09_01_063110_add_spg_column_to_discounts_table.php 0000644 00000001412 15001704611 0020432 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { DB::statement('ALTER TABLE discounts DROP COLUMN applicable_in_spg'); Schema::table('discounts', function (Blueprint $table) { $table->string('spg', 100)->nullable()->after('is_active')->comment('Applicable in specified selling price group only. Use of applicable_in_spg column is discontinued')->index(); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2018_02_08_105425_add_enable_product_expiry_column_to_business_table.php 0000644 00000001212 15001704611 0024061 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('business', function (Blueprint $table) { $table->boolean('enable_product_expiry')->default(0)->after('sku_prefix'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('business', function (Blueprint $table) { // }); } }; migrations/2019_07_13_111420_add_is_created_from_api_column_to_transactions_table.php 0000644 00000001061 15001704611 0024322 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('transactions', function (Blueprint $table) { $table->boolean('is_created_from_api')->default(0)->after('created_by'); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2018_01_09_111109_add_paid_on_column_to_transaction_payments_table.php 0000644 00000001434 15001704611 0023520 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('transaction_payments', function (Blueprint $table) { $table->dateTime('paid_on')->nullable()->after('bank_account_number'); $table->integer('created_by')->after('paid_on'); //Indexing $table->index('created_by'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('transaction_payments', function (Blueprint $table) { // }); } }; migrations/2019_01_28_111647_add_order_addresses_column_to_transactions_table.php 0000644 00000001211 15001704611 0023524 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('transactions', function (Blueprint $table) { $table->text('order_addresses')->nullable()->after('created_by'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('transactions', function (Blueprint $table) { // }); } }; 2019_09_09_134810_add_default_selling_price_group_id_column_to_business_locations_table.php 0000644 00000001354 15001704611 0027722 0 ustar 00 migrations <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('business_locations', function (Blueprint $table) { $table->integer('selling_price_group_id')->nullable()->after('invoice_layout_id'); }); Schema::table('business_locations', function (Blueprint $table) { $table->text('default_payment_accounts')->nullable()->after('website'); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2020_03_16_115449_add_contact_status_field_to_contacts_table.php 0000644 00000001067 15001704611 0022312 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('contacts', function (Blueprint $table) { $table->string('contact_status')->index()->after('contact_id')->default('active'); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2020_04_13_154150_add_feature_products_column_to_business_loactions.php 0000644 00000001057 15001704611 0023752 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('business_locations', function (Blueprint $table) { $table->text('featured_products')->nullable()->after('website'); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2020_11_10_152841_add_cash_register_permissions.php 0000644 00000001602 15001704611 0017600 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Spatie\Permission\Models\Permission; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { $exising_permissions = Permission::whereIn('name', ['view_cash_register', 'close_cash_register']) ->pluck('name') ->toArray(); if (! in_array('view_cash_register', $exising_permissions)) { Permission::create(['name' => 'view_cash_register']); } if (! in_array('close_cash_register', $exising_permissions)) { Permission::create(['name' => 'close_cash_register']); } } /** * Reverse the migrations. * * @return void */ public function down() { // } }; migrations/2017_08_09_061638_create_variation_value_templates_table.php 0000644 00000001672 15001704611 0021511 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('variation_value_templates', function (Blueprint $table) { $table->increments('id'); $table->string('name'); $table->integer('variation_template_id')->unsigned(); $table->foreign('variation_template_id')->references('id')->on('variation_templates')->onDelete('cascade'); $table->timestamps(); //Indexing $table->index('name'); $table->index('variation_template_id'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('variation_value_templates'); } }; migrations/2018_05_14_114027_add_rows_positions_for_products.php 0000644 00000002243 15001704611 0020227 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('business', function (Blueprint $table) { $table->boolean('enable_row')->after('enable_racks')->default(false); $table->boolean('enable_position')->after('enable_row')->default(false); }); Schema::table('product_racks', function (Blueprint $table) { $table->string('row')->after('rack')->nullable(); $table->string('position')->after('row')->nullable(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('business', function (Blueprint $table) { $table->dropColumn('enable_row'); $table->dropColumn('enable_position'); }); Schema::table('product_racks', function (Blueprint $table) { $table->dropColumn('row'); $table->dropColumn('position'); }); } }; migrations/2019_03_09_102425_add_sub_type_column_to_transactions_table.php 0000644 00000001414 15001704611 0022206 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('transactions', function (Blueprint $table) { //sub_type is like for example repair or project_invoice etc. $table->string('sub_type', 20)->nullable()->after('type'); //Indexing $table->index('sub_type'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('transactions', function (Blueprint $table) { // }); } }; migrations/2017_08_08_115903_create_products_table.php 0000644 00000004344 15001704611 0016077 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('products', function (Blueprint $table) { $table->increments('id'); $table->string('name'); $table->integer('business_id')->unsigned(); $table->foreign('business_id')->references('id')->on('business')->onDelete('cascade'); $table->enum('type', ['single', 'variable']); $table->integer('unit_id')->unsigned(); $table->foreign('unit_id')->references('id')->on('units')->onDelete('cascade'); $table->integer('brand_id')->unsigned()->nullable(); $table->foreign('brand_id')->references('id')->on('brands')->onDelete('cascade'); $table->integer('category_id')->unsigned()->nullable(); $table->foreign('category_id')->references('id')->on('categories')->onDelete('cascade'); $table->integer('sub_category_id')->unsigned()->nullable(); $table->foreign('sub_category_id')->references('id')->on('categories')->onDelete('cascade'); $table->integer('tax')->unsigned()->nullable(); $table->foreign('tax')->references('id')->on('tax_rates'); $table->enum('tax_type', ['inclusive', 'exclusive']); $table->boolean('enable_stock')->default(0); $table->decimal('alert_quantity', 22, 4)->default(0); $table->string('sku'); $table->enum('barcode_type', ['C39', 'C128', 'EAN-13', 'EAN-8', 'UPC-A', 'UPC-E', 'ITF-14']); $table->integer('created_by')->unsigned(); $table->foreign('created_by')->references('id')->on('users')->onDelete('cascade'); $table->timestamps(); //Indexing $table->index('name'); $table->index('business_id'); $table->index('unit_id'); $table->index('created_by'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('products'); } }; migrations/2018_04_09_135320_change_exchage_rate_size_in_business_table.php 0000644 00000001331 15001704611 0022252 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Support\Facades\DB; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { DB::statement('ALTER TABLE business MODIFY COLUMN p_exchange_rate DECIMAL(20, 3) NOT NULL DEFAULT 1'); DB::statement('ALTER TABLE transactions MODIFY COLUMN exchange_rate DECIMAL(20,3) NOT NULL DEFAULT 1'); //Update 0 to 1 DB::table('transactions') ->where('exchange_rate', 0) ->update(['exchange_rate' => 1]); } /** * Reverse the migrations. * * @return void */ public function down() { // } }; migrations/2018_12_18_133837_add_prev_balance_due_columns_to_invoice_layouts_table.php 0000644 00000001362 15001704611 0024535 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('invoice_layouts', function (Blueprint $table) { $table->boolean('show_previous_bal')->default(0)->after('table_tax_headings'); $table->string('prev_bal_label')->nullable()->after('show_previous_bal'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('invoice_layouts', function (Blueprint $table) { // }); } }; migrations/2021_02_23_122043_add_more_columns_to_customer_groups_table.php 0000644 00000001277 15001704611 0022222 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('customer_groups', function (Blueprint $table) { $table->string('price_calculation_type')->default('percentage')->nullable()->after('amount')->index(); $table->integer('selling_price_group_id')->nullable()->after('price_calculation_type')->index(); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2018_09_26_105557_add_transaction_payments_for_existing_expenses.php 0000644 00000002220 15001704611 0023306 0 ustar 00 <?php use App\Transaction; use App\TransactionPayment; use Illuminate\Database\Migrations\Migration; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { $expenses = Transaction::where('type', 'expense') ->get(); $transaction_payments = []; //create transaction payment foreach ($expenses as $expense) { if ($expense->payment_status == 'paid') { $transaction_payment = [ 'transaction_id' => $expense->id, 'amount' => $expense->final_total, 'method' => 'cash', 'paid_on' => $expense->transaction_date, 'created_by' => $expense->created_by, ]; $transaction_payments[] = $transaction_payment; } } if (! empty($transaction_payments)) { TransactionPayment::insert($transaction_payments); } } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2020_02_18_172447_add_import_fields_to_transactions_table.php 0000644 00000001172 15001704611 0021642 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('transactions', function (Blueprint $table) { $table->integer('import_batch')->nullable()->after('created_by'); $table->datetime('import_time')->nullable()->after('import_batch'); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2018_03_13_181541_add_expiry_type_to_business_table.php 0000644 00000001270 15001704611 0020503 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('business', function (Blueprint $table) { $table->enum('expiry_type', ['add_expiry', 'add_manufacturing'])->after('enable_product_expiry')->default('add_expiry'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('business', function (Blueprint $table) { // }); } }; migrations/2020_10_16_175726_set_status_as_received_for_opening_stock.php 0000644 00000000777 15001704611 0022062 0 ustar 00 <?php use App\Transaction; use Illuminate\Database\Migrations\Migration; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Transaction::where('type', 'opening_stock') ->where('status', '!=', 'received') ->update(['status' => 'received']); } /** * Reverse the migrations. * * @return void */ public function down() { // } }; migrations/2019_02_13_173821_add_is_inactive_column_to_products_table.php 0000644 00000001200 15001704611 0021777 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('products', function (Blueprint $table) { $table->boolean('is_inactive')->default(0)->after('created_by'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('products', function (Blueprint $table) { // }); } }; migrations/2018_03_16_113446_product_expiry_setting_for_business.php 0000644 00000001651 15001704611 0021131 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('business', function (Blueprint $table) { $table->enum('on_product_expiry', ['keep_selling', 'stop_selling', 'auto_delete'])->default('keep_selling')->after('expiry_type'); $table->integer('stop_selling_before')->after('on_product_expiry')->comment('Stop selling expied item n days before expiry'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('business', function (Blueprint $table) { $table->dropColumn('on_product_expiry'); $table->dropColumn('stop_selling_before'); }); } }; migrations/2018_04_17_123122_add_lot_number_to_business.php 0000644 00000001731 15001704611 0017117 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('business', function (Blueprint $table) { $table->boolean('enable_lot_number')->after('enable_purchase_status')->default(false); }); Schema::table('purchase_lines', function (Blueprint $table) { $table->string('lot_number')->after('exp_date')->nullable(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('business', function (Blueprint $table) { $table->dropColumn('enable_lot_number'); }); Schema::table('purchase_lines', function (Blueprint $table) { $table->dropColumn('lot_number'); }); } }; migrations/2018_03_19_113601_add_business_settings_options.php 0000644 00000002144 15001704611 0017663 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('business', function (Blueprint $table) { $table->boolean('enable_brand')->default(true)->after('keyboard_shortcuts'); $table->boolean('enable_category')->default(true)->after('enable_brand'); $table->boolean('enable_sub_category')->default(true)->after('enable_category'); $table->boolean('enable_price_tax')->default(true)->after('enable_sub_category'); $table->boolean('enable_purchase_status')->nullable()->default(true)->after('enable_price_tax'); $table->integer('default_unit')->nullable()->after('enable_purchase_status'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('business', function (Blueprint $table) { // }); } }; migrations/2018_01_08_123327_modify_transactions_table_for_expenses.php 0000644 00000002376 15001704611 0021544 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { DB::statement("ALTER TABLE transactions MODIFY COLUMN type ENUM('purchase','sell', 'expense')"); DB::statement('ALTER TABLE transactions MODIFY COLUMN contact_id INT(11) UNSIGNED DEFAULT NULL'); Schema::table('transactions', function (Blueprint $table) { $table->integer('expense_category_id')->nullable()->unsigned()->after('final_total'); $table->foreign('expense_category_id')->references('id')->on('expense_categories')->onDelete('cascade'); $table->integer('expense_for')->nullable()->unsigned()->after('expense_category_id'); $table->foreign('expense_for')->references('id')->on('users')->onDelete('cascade'); $table->index('expense_category_id'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('transactions', function (Blueprint $table) { // }); } }; migrations/2019_12_25_173413_create_dashboard_configurations_table.php 0000644 00000001664 15001704611 0021273 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('dashboard_configurations', function (Blueprint $table) { $table->increments('id'); $table->integer('business_id')->unsigned(); $table->foreign('business_id')->references('id')->on('business')->onDelete('cascade'); $table->integer('created_by'); $table->string('name'); $table->string('color'); $table->text('configuration')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('dashboard_configurations'); } }; migrations/2020_04_22_153905_add_subscription_repeat_on_column_to_transactions_table.php 0000644 00000001070 15001704611 0025127 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('transactions', function (Blueprint $table) { $table->string('subscription_repeat_on')->nullable()->after('subscription_no'); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2018_06_06_110524_add_parent_sell_line_id_column_to_transaction_sell_lines_table.php 0000644 00000001250 15001704611 0026371 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('transaction_sell_lines', function (Blueprint $table) { $table->integer('parent_sell_line_id')->nullable()->after('sell_line_note'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('transaction_sell_lines', function (Blueprint $table) { // }); } }; migrations/2017_08_04_071038_create_categories_table.php 0000644 00000002047 15001704611 0016353 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('categories', function (Blueprint $table) { $table->increments('id'); $table->string('name'); $table->integer('business_id')->unsigned(); $table->foreign('business_id')->references('id')->on('business')->onDelete('cascade'); $table->string('short_code')->nullable(); $table->integer('parent_id'); $table->integer('created_by')->unsigned(); $table->foreign('created_by')->references('id')->on('users')->onDelete('cascade'); $table->softDeletes(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('categories'); } }; migrations/2020_04_15_151802_add_user_type_to_users_table.php 0000644 00000001060 15001704611 0017435 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('users', function (Blueprint $table) { $table->string('user_type')->default('user')->index()->after('id'); }); } /** * Reverse the migrations. * * @return void */ public function down() { // } }; migrations/2018_10_31_161328_add_new_permissions_for_pos_screen.php 0000644 00000001020 15001704611 0020640 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Spatie\Permission\Models\Permission; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Permission::create(['name' => 'edit_product_price_from_sale_screen']); Permission::create(['name' => 'edit_product_discount_from_sale_screen']); } /** * Reverse the migrations. * * @return void */ public function down() { // } }; migrations/2018_12_20_133639_add_date_time_format_column_to_invoice_layouts_table.php 0000644 00000001222 15001704611 0024363 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('invoice_layouts', function (Blueprint $table) { $table->string('date_time_format')->nullable()->after('date_label'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('invoice_layouts', function (Blueprint $table) { // }); } }; migrations/2018_12_18_170656_add_invoice_token_column_to_transaction_table.php 0000644 00000001211 15001704611 0023032 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('transactions', function (Blueprint $table) { $table->string('invoice_token')->nullable()->after('created_by'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('transactions', function (Blueprint $table) { // }); } }; migrations/2019_01_08_112015_add_document_column_to_transaction_payments_table.php 0000644 00000003516 15001704611 0023725 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('transaction_payments', function (Blueprint $table) { $table->string('document')->nullable()->after('note'); }); $dirs = ['img', 'documents', 'business_logos', 'invoice_logos']; foreach ($dirs as $dir) { $this->copyFiles($dir); } } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('transaction_payments', function (Blueprint $table) { $table->dropColumn('document'); }); } private function copyFiles($dir) { if (! file_exists(storage_path('app/public/'.$dir))) { return false; } $delete = []; // Get array of all source files $files = scandir(storage_path('app/public/'.$dir)); // Identify directories $source = storage_path('app/public/'.$dir.'/'); $destination = public_path('uploads/'.$dir.'/'); if (! file_exists($destination)) { @mkdir($destination, 0775, true); } // Cycle through all source files foreach ($files as $file) { if (in_array($file, ['.', '..'])) { continue; } // If we copied this successfully, mark it for deletion if (file_exists($source.$file) && @copy($source.$file, $destination.$file)) { $delete[] = $source.$file; } } // Delete all successfully-copied files foreach ($delete as $file) { @unlink($file); } } }; migrations/2017_07_23_113209_create_brands_table.php 0000644 00000001764 15001704611 0015501 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('brands', function (Blueprint $table) { $table->increments('id'); $table->integer('business_id')->unsigned(); $table->foreign('business_id')->references('id')->on('business')->onDelete('cascade'); $table->string('name'); $table->text('description')->nullable(); $table->integer('created_by')->unsigned(); $table->foreign('created_by')->references('id')->on('users')->onDelete('cascade'); $table->softDeletes(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('brands'); } }; migrations/2016_06_01_000005_create_oauth_personal_access_clients_table.php 0000644 00000001260 15001704611 0022263 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('oauth_personal_access_clients', function (Blueprint $table) { $table->increments('id'); $table->unsignedInteger('client_id')->index(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('oauth_personal_access_clients'); } }; migrations/2023_04_28_130247_add_price_type_to_group_price_table.php 0000644 00000001243 15001704611 0020750 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('variation_group_prices', function (Blueprint $table) { $table->string('price_type')->default('fixed')->after('price_inc_tax'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('variation_group_prices', function (Blueprint $table) { // }); } }; migrations/2019_10_29_132521_add_update_purchase_status_permission.php 0000644 00000000661 15001704611 0021370 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Spatie\Permission\Models\Permission; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Permission::create(['name' => 'purchase.update_status']); } /** * Reverse the migrations. * * @return void */ public function down() { // } }; migrations/2018_06_15_173636_add_email_column_to_contacts_table.php 0000644 00000001163 15001704611 0020565 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('contacts', function (Blueprint $table) { $table->string('email')->nullable()->after('name'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('contacts', function (Blueprint $table) { // }); } }; migrations/2018_04_20_182015_create_res_tables_table.php 0000644 00000001725 15001704611 0016344 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('res_tables', function (Blueprint $table) { $table->increments('id'); $table->integer('business_id')->unsigned(); $table->foreign('business_id')->references('id')->on('business')->onDelete('cascade'); $table->integer('location_id')->unsigned(); $table->string('name'); $table->text('description')->nullable(); $table->integer('created_by')->unsigned(); $table->softDeletes(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('res_tables'); } }; migrations/2018_02_13_183323_alter_decimal_fields_size.php 0000644 00000005253 15001704611 0016677 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Support\Facades\DB; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { // DB::statement("ALTER TABLE business MODIFY COLUMN default_sales_discount DECIMAL(20,2)"); // DB::statement("ALTER TABLE transactions MODIFY COLUMN total_before_tax DECIMAL(20,2) NOT NULL DEFAULT 0"); // DB::statement("ALTER TABLE transactions MODIFY COLUMN tax_amount DECIMAL(20,2) NOT NULL DEFAULT 0"); // DB::statement("ALTER TABLE transactions MODIFY COLUMN shipping_charges DECIMAL(20,2) NOT NULL DEFAULT 0"); // DB::statement("ALTER TABLE transactions MODIFY COLUMN final_total DECIMAL(20,2) NOT NULL // DEFAULT 0"); // DB::statement("ALTER TABLE transactions MODIFY COLUMN exchange_rate DECIMAL(20,2) NOT NULL // DEFAULT 1"); // DB::statement("ALTER TABLE variations MODIFY COLUMN default_purchase_price DECIMAL(20,2)"); // DB::statement("ALTER TABLE variations MODIFY COLUMN dpp_inc_tax DECIMAL(20,2) NOT NULL // DEFAULT 0"); // DB::statement("ALTER TABLE variations MODIFY COLUMN profit_percent DECIMAL(20,2) NOT NULL // DEFAULT 0"); // DB::statement("ALTER TABLE variations MODIFY COLUMN default_sell_price DECIMAL(20,2)"); // DB::statement("ALTER TABLE variations MODIFY COLUMN sell_price_inc_tax DECIMAL(20,2)"); // DB::statement("ALTER TABLE purchase_lines MODIFY COLUMN purchase_price DECIMAL(20,2)"); // DB::statement("ALTER TABLE purchase_lines MODIFY COLUMN purchase_price_inc_tax DECIMAL(20,2) NOT NULL DEFAULT 0"); // DB::statement("ALTER TABLE purchase_lines MODIFY COLUMN item_tax DECIMAL(20,2)"); // DB::statement("ALTER TABLE transaction_sell_lines MODIFY COLUMN unit_price DECIMAL(20,2)"); // DB::statement("ALTER TABLE transaction_sell_lines MODIFY COLUMN unit_price_inc_tax DECIMAL(20,2)"); // DB::statement("ALTER TABLE transaction_sell_lines MODIFY COLUMN item_tax DECIMAL(20,2)"); // DB::statement("ALTER TABLE cash_registers MODIFY COLUMN closing_amount DECIMAL(20,2) NOT NULL DEFAULT 0"); // DB::statement("ALTER TABLE variation_location_details MODIFY COLUMN qty_available DECIMAL(20,2)"); // DB::statement("ALTER TABLE transaction_payments MODIFY COLUMN amount DECIMAL(20,2) NOT NULL DEFAULT 0"); // DB::statement("ALTER TABLE cash_register_transactions MODIFY COLUMN amount DECIMAL(20,2) NOT NULL DEFAULT 0"); } /** * Reverse the migrations. * * @return void */ public function down() { // } }; migrations/2021_10_05_061658_add_source_column_to_transactions_table.php 0000644 00000001037 15001704611 0021654 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('transactions', function (Blueprint $table) { $table->string('source')->after('ref_no')->nullable(); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2018_09_10_152703_create_account_transactions_table.php 0000644 00000002371 15001704611 0020450 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('account_transactions', function (Blueprint $table) { $table->increments('id'); $table->integer('account_id'); $table->enum('type', ['debit', 'credit']); $table->enum('sub_type', ['opening_balance', 'fund_transfer', 'deposit'])->nullable(); $table->decimal('amount', 22, 4); $table->string('reff_no')->nullable(); $table->dateTime('operation_date'); $table->integer('created_by'); $table->integer('transaction_id')->nullable(); $table->integer('transaction_payment_id')->nullable(); $table->integer('transfer_transaction_id')->nullable(); $table->text('note')->nullable(); $table->softDeletes(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('account_transactions'); } }; migrations/2021_07_08_065808_add_additional_expense_columns_to_transaction_table.php 0000644 00000002475 15001704611 0024234 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('transactions', function (Blueprint $table) { $table->string('additional_expense_key_1')->nullable()->after('round_off_amount'); $table->decimal('additional_expense_value_1', 22, 4)->default(0)->after('additional_expense_key_1'); $table->string('additional_expense_key_2')->nullable()->after('additional_expense_value_1'); $table->decimal('additional_expense_value_2', 22, 4)->default(0)->after('additional_expense_key_2'); $table->string('additional_expense_key_3')->nullable()->after('additional_expense_value_2'); $table->decimal('additional_expense_value_3', 22, 4)->default(0)->after('additional_expense_key_3'); $table->string('additional_expense_key_4')->nullable()->after('additional_expense_value_3'); $table->decimal('additional_expense_value_4', 22, 4)->default(0)->after('additional_expense_key_4'); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2021_03_11_120229_add_sales_order_columns.php 0000644 00000001475 15001704611 0016373 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('transaction_sell_lines', function (Blueprint $table) { $table->integer('so_line_id')->after('sell_line_note')->nullable(); $table->decimal('so_quantity_invoiced', 22, 4)->after('so_line_id')->default(0); }); Schema::table('transactions', function (Blueprint $table) { $table->text('sales_order_ids')->after('created_by')->nullable(); }); } /** * Reverse the migrations. * * @return void */ public function down() { // } }; migrations/2018_12_14_103307_modify_system_table.php 0000644 00000000677 15001704611 0015575 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Support\Facades\DB; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { // DB::statement("ALTER TABLE system MODIFY COLUMN value TEXT DEFAULT NULL"); } /** * Reverse the migrations. * * @return void */ public function down() { // } }; migrations/2018_03_29_134340_add_inline_discount_fields_in_purchase_lines.php 0000644 00000001524 15001704611 0022630 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('purchase_lines', function (Blueprint $table) { $table->decimal('pp_without_discount', 22, 4)->after('quantity')->default(0)->comment('Purchase price before inline discounts'); $table->decimal('discount_percent', 5, 2)->after('pp_without_discount')->default(0)->comment('Inline discount percentage'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('purchase_lines', function (Blueprint $table) { // }); } }; migrations/2021_05_22_083426_add_indexing_to_account_transactions_table.php 0000644 00000001170 15001704611 0022316 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('account_transactions', function (Blueprint $table) { $table->index('operation_date'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('account_transactions', function (Blueprint $table) { // }); } }; migrations/2018_05_29_121714_add_purchase_line_id_to_stock_adjustment_line_table.php 0000644 00000001241 15001704611 0024157 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('stock_adjustment_lines', function (Blueprint $table) { $table->integer('purchase_line_id')->nullable()->after('unit_price'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('stock_adjustment_lines', function (Blueprint $table) { // }); } }; migrations/2018_05_14_125223_add_weight_to_products_table.php 0000644 00000001227 15001704611 0017421 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('products', function (Blueprint $table) { $table->string('weight')->after('enable_sr_no')->nullable(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('products', function (Blueprint $table) { $table->dropColumn('weight'); }); } }; migrations/2018_12_13_160007_add_custom_fields_display_options_to_invoice_layouts_table.php 0000644 00000001534 15001704611 0025640 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('invoice_layouts', function (Blueprint $table) { $table->text('product_custom_fields')->nullable()->after('table_tax_headings'); $table->text('contact_custom_fields')->nullable()->after('product_custom_fields'); $table->text('location_custom_fields')->nullable()->after('contact_custom_fields'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('invoice_layouts', function (Blueprint $table) { // }); } }; migrations/2018_10_22_134428_modify_variable_product_data.php 0000644 00000000717 15001704611 0017420 0 ustar 00 <?php use App\Utils\InstallUtil; use Illuminate\Database\Migrations\Migration; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { $installUtil = new InstallUtil(); $installUtil->createExistingProductsVariationsToTemplate(); } /** * Reverse the migrations. * * @return void */ public function down() { // } }; migrations/2018_02_27_170232_modify_transactions_table_for_stock_transfer.php 0000644 00000001762 15001704611 0022736 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { DB::statement("ALTER TABLE `transactions` CHANGE `type` `type` ENUM('purchase','sell', 'expense', 'stock_adjustment', 'sell_transfer', 'purchase_transfer', 'opening_stock') DEFAULT NULL"); Schema::table('transactions', function (Blueprint $table) { $table->integer('transfer_parent_id')->nullable()->after('total_amount_recovered'); $table->integer('opening_stock_product_id')->nullable()->after('transfer_parent_id'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('transactions', function (Blueprint $table) { // }); } }; migrations/2019_03_15_132925_create_media_table.php 0000644 00000001277 15001704611 0015313 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('media', function (Blueprint $table) { $table->increments('id'); $table->integer('business_id'); $table->string('file_name'); $table->morphs('model'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('media'); } }; migrations/2018_07_24_160319_add_lot_no_line_id_to_transaction_sell_lines_table.php 0000644 00000001233 15001704611 0024007 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('transaction_sell_lines', function (Blueprint $table) { $table->integer('lot_no_line_id')->nullable()->after('tax_id'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('transaction_sell_lines', function (Blueprint $table) { // }); } }; migrations/2018_09_07_102413_add_permission_to_access_default_selling_price.php 0000644 00000001271 15001704611 0023155 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Spatie\Permission\Models\Permission; use Spatie\Permission\Models\Role; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { //Create a new permission related to the created selling price group Permission::create(['name' => 'access_default_selling_price']); $roles = Role::get(); foreach ($roles as $role) { $role->givePermissionTo('access_default_selling_price'); } } /** * Reverse the migrations. * * @return void */ public function down() { // } }; migrations/2017_07_26_110000_create_tax_rates_table.php 0000644 00000002274 15001704611 0016204 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('tax_rates', function (Blueprint $table) { $table->increments('id'); $table->integer('business_id')->unsigned(); $table->foreign('business_id')->references('id')->on('business')->onDelete('cascade'); $table->string('name'); //$table->enum('calculation_type', ['fixed', 'percentage']); $table->float('amount', 22, 4); $table->boolean('is_tax_group')->default('0'); //$table->enum('rounding_type', ['up', 'down', 'normal']); $table->integer('created_by')->unsigned(); $table->foreign('created_by')->references('id')->on('users')->onDelete('cascade'); $table->softDeletes(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('tax_rates'); } }; migrations/2018_03_29_110138_change_tax_field_to_nullable_in_business_table.php 0000644 00000001266 15001704611 0023130 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { DB::statement('ALTER TABLE business MODIFY COLUMN tax_number_1 VARCHAR(100)'); DB::statement('ALTER TABLE business MODIFY COLUMN tax_label_1 VARCHAR(10)'); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('business', function (Blueprint $table) { // }); } }; migrations/2018_01_31_125836_create_cash_register_transactions_table.php 0000644 00000002222 15001704611 0021633 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('cash_register_transactions', function (Blueprint $table) { $table->increments('id'); $table->integer('cash_register_id')->unsigned(); $table->foreign('cash_register_id')->references('id')->on('cash_registers') ->onDelete('cascade'); $table->decimal('amount', 22, 4)->default(0); $table->enum('pay_method', ['cash', 'card', 'cheque', 'bank_transfer', 'other']); $table->enum('type', ['debit', 'credit']); $table->enum('transaction_type', ['initial', 'sell', 'transfer', 'refund']); $table->integer('transaction_id')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('cash_register_transactions'); } }; migrations/2018_03_26_165350_create_customer_groups_table.php 0000644 00000001572 15001704611 0017471 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('customer_groups', function (Blueprint $table) { $table->increments('id'); $table->integer('business_id')->unsigned(); $table->foreign('business_id')->references('id')->on('business')->onDelete('cascade'); $table->string('name'); $table->float('amount', 5, 2); $table->integer('created_by')->unsigned(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('customer_groups'); } }; migrations/2019_03_09_124457_add_indexing_transaction_sell_lines_purchase_lines_table.php 0000644 00000001321 15001704611 0025222 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('transaction_sell_lines_purchase_lines', function (Blueprint $table) { $table->index('sell_line_id', 'sell_line_id'); $table->index('stock_adjustment_line_id', 'stock_adjustment_line_id'); $table->index('purchase_line_id', 'purchase_line_id'); }); } /** * Reverse the migrations. * * @return void */ public function down() { // } }; migrations/2023_03_02_170312_add_provider_to_oauth_clients_table.php 0000644 00000001237 15001704611 0020751 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('oauth_clients', function (Blueprint $table) { $table->string('provider')->after('secret')->nullable(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('oauth_clients', function (Blueprint $table) { $table->dropColumn('provider'); }); } }; migrations/2019_09_19_170927_close_all_active_registers.php 0000644 00000001127 15001704611 0017131 0 ustar 00 <?php use App\CashRegister; use Illuminate\Database\Migrations\Migration; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { CashRegister::where('status', 'open') ->whereNull('location_id') ->update([ 'closed_at' => \Carbon::now()->format('Y-m-d H:i:s'), 'status' => 'close', ]); } /** * Reverse the migrations. * * @return void */ public function down() { // } }; migrations/2018_05_14_164754_add_opening_stock_permission.php 0000644 00000001003 15001704611 0017454 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Spatie\Permission\Models\Permission; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { $insert_data = ['name' => 'product.opening_stock', 'guard_name' => 'web', ]; Permission::create($insert_data); } /** * Reverse the migrations. * * @return void */ public function down() { // } }; migrations/2018_09_27_131154_add_quantity_returned_column_to_purchase_lines_table.php 0000644 00000001077 15001704611 0024451 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('purchase_lines', function (Blueprint $table) { $table->decimal('quantity_returned', 22, 4)->default(0)->after('quantity_adjusted'); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2021_03_16_120705_add_business_id_to_activity_log_table.php 0000644 00000001555 15001704611 0021271 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; use Spatie\Activitylog\Models\Activity; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('activity_log', function (Blueprint $table) { $table->integer('business_id')->after('subject_type')->nullable(); }); $activites = Activity::with(['causer'])->groupBy('causer_id')->get(); foreach ($activites as $activity) { Activity::where('causer_id', $activity->causer_id) ->update(['business_id' => $activity->causer->business_id ?? null]); } } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2021_03_18_173308_add_account_details_column_to_accounts_table.php 0000644 00000001127 15001704611 0022626 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('accounts', function (Blueprint $table) { $table->text('account_details') ->nullable() ->after('account_number'); }); } /** * Reverse the migrations. * * @return void */ public function down() { // } }; migrations/2018_01_08_104124_create_expense_categories_table.php 0000644 00000001561 15001704611 0020071 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('expense_categories', function (Blueprint $table) { $table->increments('id'); $table->string('name'); $table->integer('business_id')->unsigned(); $table->foreign('business_id')->references('id')->on('business')->onDelete('cascade'); $table->string('code')->nullable(); $table->softDeletes(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('expense_categories'); } }; migrations/2018_08_08_110755_add_new_payment_methods_to_transaction_payments_table.php 0000644 00000001562 15001704611 0024621 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { DB::statement("ALTER TABLE transaction_payments MODIFY COLUMN method ENUM('cash','card', 'cheque', 'bank_transfer', 'custom_pay_1', 'custom_pay_2', 'custom_pay_3', 'other')"); Schema::table('transaction_payments', function (Blueprint $table) { $table->string('transaction_no')->nullable()->after('method'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('transaction_payments', function (Blueprint $table) { // }); } }; migrations/2017_07_05_071953_create_currencies_table.php 0000644 00000001555 15001704611 0016401 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('currencies', function (Blueprint $table) { $table->increments('id'); $table->string('country', 100); $table->string('currency', 100); $table->string('code', 25); $table->string('symbol', 25); $table->string('thousand_separator', 10); $table->string('decimal_separator', 10); $table->nullableTimestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('currencies'); } }; migrations/2018_09_10_173656_add_account_id_column_to_transaction_payments_table.php 0000644 00000001233 15001704611 0024233 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('transaction_payments', function (Blueprint $table) { $table->integer('account_id')->nullable()->after('payment_ref_no'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('transaction_payments', function (Blueprint $table) { // }); } }; migrations/2018_05_25_180603_create_modifiers_related_table.php 0000644 00000001606 15001704611 0017707 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('res_product_modifier_sets', function (Blueprint $table) { $table->integer('modifier_set_id')->unsigned(); $table->foreign('modifier_set_id')->references('id')->on('products')->onDelete('cascade'); $table->integer('product_id')->unsigned()->comment('Table use to store the modifier sets applicable for a product'); }); } /** * Reverse the migrations. * * @return void */ public function down() { //Schema::dropIfExists('res_product_modifier_sets'); Schema::dropIfExists('res_product_modifier_sets'); } }; migrations/2019_11_21_162913_change_quantity_field_types_to_decimal.php 0000644 00000001267 15001704611 0021467 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Support\Facades\DB; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { DB::statement("ALTER TABLE purchase_lines MODIFY COLUMN quantity DECIMAL(22, 4) NOT NULL DEFAULT '0'"); DB::statement("ALTER TABLE transaction_sell_lines MODIFY COLUMN quantity DECIMAL(22, 4) NOT NULL DEFAULT '0'"); DB::statement("ALTER TABLE transactions MODIFY COLUMN discount_amount DECIMAL(22, 4) DEFAULT '0'"); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2022_07_13_114307_create_purchase_requisition_related_columns.php 0000644 00000001340 15001704611 0022547 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('purchase_lines', function (Blueprint $table) { $table->integer('purchase_requisition_line_id')->after('tax_id')->nullable(); }); Schema::table('transactions', function (Blueprint $table) { $table->text('purchase_requisition_ids')->after('created_by')->nullable(); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2018_03_26_125334_add_pos_settings_to_business_table.php 0000644 00000001247 15001704611 0020651 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('business', function (Blueprint $table) { $table->text('pos_settings')->after('keyboard_shortcuts')->nullable(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('business', function (Blueprint $table) { $table->dropColumn('pos_settings'); }); } }; 2022_06_13_123135_add_currency_precision_and_quantity_precision_fields_to_business_table.php 0000644 00000001405 15001704611 0030122 0 ustar 00 migrations <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Artisan; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('business', function (Blueprint $table) { $table->tinyInteger('currency_precision')->default(2)->after('time_format'); $table->tinyInteger('quantity_precision')->default(2)->after('currency_precision'); }); //clear blade directive cache Artisan::call('view:clear'); } /** * Reverse the migrations. * * @return void */ public function down() { } }; migrations/2017_08_10_061216_create_variations_table.php 0000644 00000002766 15001704611 0016407 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('variations', function (Blueprint $table) { $table->increments('id'); $table->string('name'); $table->integer('product_id')->unsigned(); $table->foreign('product_id')->references('id')->on('products')->onDelete('cascade'); $table->string('sub_sku')->nullable(); $table->integer('product_variation_id')->unsigned(); $table->foreign('product_variation_id')->references('id')->on('product_variations')->onDelete('cascade'); $table->decimal('default_purchase_price', 22, 4)->nullable(); $table->decimal('dpp_inc_tax', 22, 4)->default(0); $table->decimal('profit_percent', 22, 4)->default(0); $table->decimal('default_sell_price', 22, 4)->nullable(); $table->decimal('sell_price_inc_tax', 22, 4)->comment('Sell price including tax')->nullable(); $table->timestamps(); $table->softDeletes(); //Indexing $table->index('name'); $table->index('sub_sku'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('variations'); } }; migrations/2018_12_06_114937_modify_system_table_and_users_table.php 0000644 00000001443 15001704611 0021013 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { // DB::statement("ALTER TABLE system MODIFY COLUMN `value` VARCHAR(191) DEFAULT NULL"); Schema::table('users', function (Blueprint $table) { $table->enum('status', ['active', 'inactive', 'terminated'])->default('active')->after('business_id'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('users', function (Blueprint $table) { // }); } }; migrations/2018_02_17_124709_add_more_options_to_invoice_layouts.php 0000644 00000002751 15001704611 0021064 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('invoice_layouts', function (Blueprint $table) { $table->string('invoice_heading_paid')->nullable()->after('invoice_heading'); $table->string('invoice_heading_not_paid')->nullable()->after('invoice_heading'); $table->string('total_due_label')->nullable()->after('total_label'); $table->string('paid_label')->nullable()->after('total_due_label'); $table->boolean('show_payments')->default(0)->after('show_barcode'); $table->boolean('show_customer')->default(0)->after('show_payments'); $table->string('customer_label')->nullable()->after('show_customer'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('invoice_layouts', function (Blueprint $table) { $table->dropColumn('invoice_heading_paid'); $table->dropColumn('invoice_heading_not_paid'); $table->dropColumn('total_due_label'); $table->dropColumn('paid_label'); $table->dropColumn('show_payments'); $table->dropColumn('show_customer'); $table->dropColumn('customer_label'); }); } }; seeders/CurrenciesTableSeeder.php 0000644 00000100330 15001704611 0013101 0 ustar 00 <?php namespace Database\Seeders; use App\Currency; use Illuminate\Database\Seeder; class CurrenciesTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $data = [ ['id' => '1', 'country' => 'Albania', 'currency' => 'Leke', 'code' => 'ALL', 'symbol' => 'Lek', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '2', 'country' => 'America', 'currency' => 'Dollars', 'code' => 'USD', 'symbol' => '$', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '3', 'country' => 'Afghanistan', 'currency' => 'Afghanis', 'code' => 'AF', 'symbol' => '؋', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '4', 'country' => 'Argentina', 'currency' => 'Pesos', 'code' => 'ARS', 'symbol' => '$', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '5', 'country' => 'Aruba', 'currency' => 'Guilders', 'code' => 'AWG', 'symbol' => 'ƒ', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '6', 'country' => 'Australia', 'currency' => 'Dollars', 'code' => 'AUD', 'symbol' => '$', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '7', 'country' => 'Azerbaijan', 'currency' => 'New Manats', 'code' => 'AZ', 'symbol' => 'ман', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '8', 'country' => 'Bahamas', 'currency' => 'Dollars', 'code' => 'BSD', 'symbol' => '$', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '9', 'country' => 'Barbados', 'currency' => 'Dollars', 'code' => 'BBD', 'symbol' => '$', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '10', 'country' => 'Belarus', 'currency' => 'Rubles', 'code' => 'BYR', 'symbol' => 'p.', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '11', 'country' => 'Belgium', 'currency' => 'Euro', 'code' => 'EUR', 'symbol' => '€', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '12', 'country' => 'Beliz', 'currency' => 'Dollars', 'code' => 'BZD', 'symbol' => 'BZ$', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '13', 'country' => 'Bermuda', 'currency' => 'Dollars', 'code' => 'BMD', 'symbol' => '$', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '14', 'country' => 'Bolivia', 'currency' => 'Bolivianos', 'code' => 'BOB', 'symbol' => '$b', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '15', 'country' => 'Bosnia and Herzegovina', 'currency' => 'Convertible Marka', 'code' => 'BAM', 'symbol' => 'KM', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '16', 'country' => 'Botswana', 'currency' => "Pula's", 'code' => 'BWP', 'symbol' => 'P', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '17', 'country' => 'Bulgaria', 'currency' => 'Leva', 'code' => 'BG', 'symbol' => 'лв', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '18', 'country' => 'Brazil', 'currency' => 'Reais', 'code' => 'BRL', 'symbol' => 'R$', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '19', 'country' => 'Britain [United Kingdom]', 'currency' => 'Pounds', 'code' => 'GBP', 'symbol' => '£', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '20', 'country' => 'Brunei Darussalam', 'currency' => 'Dollars', 'code' => 'BND', 'symbol' => '$', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '21', 'country' => 'Cambodia', 'currency' => 'Riels', 'code' => 'KHR', 'symbol' => '៛', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '22', 'country' => 'Canada', 'currency' => 'Dollars', 'code' => 'CAD', 'symbol' => '$', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '23', 'country' => 'Cayman Islands', 'currency' => 'Dollars', 'code' => 'KYD', 'symbol' => '$', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '24', 'country' => 'Chile', 'currency' => 'Pesos', 'code' => 'CLP', 'symbol' => '$', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '25', 'country' => 'China', 'currency' => 'Yuan Renminbi', 'code' => 'CNY', 'symbol' => '¥', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '26', 'country' => 'Colombia', 'currency' => 'Pesos', 'code' => 'COP', 'symbol' => '$', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '27', 'country' => 'Costa Rica', 'currency' => 'Colón', 'code' => 'CRC', 'symbol' => '₡', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '28', 'country' => 'Croatia', 'currency' => 'Kuna', 'code' => 'HRK', 'symbol' => 'kn', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '29', 'country' => 'Cuba', 'currency' => 'Pesos', 'code' => 'CUP', 'symbol' => '₱', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '30', 'country' => 'Cyprus', 'currency' => 'Euro', 'code' => 'EUR', 'symbol' => '€', 'thousand_separator' => '.', 'decimal_separator' => ',', 'created_at' => null, 'updated_at' => null, ], ['id' => '31', 'country' => 'Czech Republic', 'currency' => 'Koruny', 'code' => 'CZK', 'symbol' => 'Kč', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '32', 'country' => 'Denmark', 'currency' => 'Kroner', 'code' => 'DKK', 'symbol' => 'kr', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '33', 'country' => 'Dominican Republic', 'currency' => 'Pesos', 'code' => 'DOP ', 'symbol' => 'RD$', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '34', 'country' => 'East Caribbean', 'currency' => 'Dollars', 'code' => 'XCD', 'symbol' => '$', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '35', 'country' => 'Egypt', 'currency' => 'Pounds', 'code' => 'EGP', 'symbol' => '£', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '36', 'country' => 'El Salvador', 'currency' => 'Colones', 'code' => 'SVC', 'symbol' => '$', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '37', 'country' => 'England [United Kingdom]', 'currency' => 'Pounds', 'code' => 'GBP', 'symbol' => '£', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '38', 'country' => 'Euro', 'currency' => 'Euro', 'code' => 'EUR', 'symbol' => '€', 'thousand_separator' => '.', 'decimal_separator' => ',', 'created_at' => null, 'updated_at' => null, ], ['id' => '39', 'country' => 'Falkland Islands', 'currency' => 'Pounds', 'code' => 'FKP', 'symbol' => '£', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '40', 'country' => 'Fiji', 'currency' => 'Dollars', 'code' => 'FJD', 'symbol' => '$', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '41', 'country' => 'France', 'currency' => 'Euro', 'code' => 'EUR', 'symbol' => '€', 'thousand_separator' => '.', 'decimal_separator' => ',', 'created_at' => null, 'updated_at' => null, ], ['id' => '42', 'country' => 'Ghana', 'currency' => 'Cedis', 'code' => 'GHS', 'symbol' => '¢', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '43', 'country' => 'Gibraltar', 'currency' => 'Pounds', 'code' => 'GIP', 'symbol' => '£', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '44', 'country' => 'Greece', 'currency' => 'Euro', 'code' => 'EUR', 'symbol' => '€', 'thousand_separator' => '.', 'decimal_separator' => ',', 'created_at' => null, 'updated_at' => null, ], ['id' => '45', 'country' => 'Guatemala', 'currency' => 'Quetzales', 'code' => 'GTQ', 'symbol' => 'Q', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '46', 'country' => 'Guernsey', 'currency' => 'Pounds', 'code' => 'GGP', 'symbol' => '£', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '47', 'country' => 'Guyana', 'currency' => 'Dollars', 'code' => 'GYD', 'symbol' => '$', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '48', 'country' => 'Holland [Netherlands]', 'currency' => 'Euro', 'code' => 'EUR', 'symbol' => '€', 'thousand_separator' => '.', 'decimal_separator' => ',', 'created_at' => null, 'updated_at' => null, ], ['id' => '49', 'country' => 'Honduras', 'currency' => 'Lempiras', 'code' => 'HNL', 'symbol' => 'L', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '50', 'country' => 'Hong Kong', 'currency' => 'Dollars', 'code' => 'HKD', 'symbol' => '$', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '51', 'country' => 'Hungary', 'currency' => 'Forint', 'code' => 'HUF', 'symbol' => 'Ft', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '52', 'country' => 'Iceland', 'currency' => 'Kronur', 'code' => 'ISK', 'symbol' => 'kr', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '53', 'country' => 'India', 'currency' => 'Rupees', 'code' => 'INR', 'symbol' => '₹', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '54', 'country' => 'Indonesia', 'currency' => 'Rupiahs', 'code' => 'IDR', 'symbol' => 'Rp', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '55', 'country' => 'Iran', 'currency' => 'Rials', 'code' => 'IRR', 'symbol' => '﷼', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '56', 'country' => 'Ireland', 'currency' => 'Euro', 'code' => 'EUR', 'symbol' => '€', 'thousand_separator' => '.', 'decimal_separator' => ',', 'created_at' => null, 'updated_at' => null, ], ['id' => '57', 'country' => 'Isle of Man', 'currency' => 'Pounds', 'code' => 'IMP', 'symbol' => '£', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '58', 'country' => 'Israel', 'currency' => 'New Shekels', 'code' => 'ILS', 'symbol' => '₪', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '59', 'country' => 'Italy', 'currency' => 'Euro', 'code' => 'EUR', 'symbol' => '€', 'thousand_separator' => '.', 'decimal_separator' => ',', 'created_at' => null, 'updated_at' => null, ], ['id' => '60', 'country' => 'Jamaica', 'currency' => 'Dollars', 'code' => 'JMD', 'symbol' => 'J$', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '61', 'country' => 'Japan', 'currency' => 'Yen', 'code' => 'JPY', 'symbol' => '¥', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '62', 'country' => 'Jersey', 'currency' => 'Pounds', 'code' => 'JEP', 'symbol' => '£', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '63', 'country' => 'Kazakhstan', 'currency' => 'Tenge', 'code' => 'KZT', 'symbol' => 'лв', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '64', 'country' => 'Korea [North]', 'currency' => 'Won', 'code' => 'KPW', 'symbol' => '₩', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '65', 'country' => 'Korea [South]', 'currency' => 'Won', 'code' => 'KRW', 'symbol' => '₩', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '66', 'country' => 'Kyrgyzstan', 'currency' => 'Soms', 'code' => 'KGS', 'symbol' => 'лв', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '67', 'country' => 'Laos', 'currency' => 'Kips', 'code' => 'LAK', 'symbol' => '₭', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '68', 'country' => 'Latvia', 'currency' => 'Lati', 'code' => 'LVL', 'symbol' => 'Ls', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '69', 'country' => 'Lebanon', 'currency' => 'Pounds', 'code' => 'LBP', 'symbol' => '£', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '70', 'country' => 'Liberia', 'currency' => 'Dollars', 'code' => 'LRD', 'symbol' => '$', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '71', 'country' => 'Liechtenstein', 'currency' => 'Switzerland Francs', 'code' => 'CHF', 'symbol' => 'CHF', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '72', 'country' => 'Lithuania', 'currency' => 'Litai', 'code' => 'LTL', 'symbol' => 'Lt', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '73', 'country' => 'Luxembourg', 'currency' => 'Euro', 'code' => 'EUR', 'symbol' => '€', 'thousand_separator' => '.', 'decimal_separator' => ',', 'created_at' => null, 'updated_at' => null, ], ['id' => '74', 'country' => 'Macedonia', 'currency' => 'Denars', 'code' => 'MKD', 'symbol' => 'ден', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '75', 'country' => 'Malaysia', 'currency' => 'Ringgits', 'code' => 'MYR', 'symbol' => 'RM', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '76', 'country' => 'Malta', 'currency' => 'Euro', 'code' => 'EUR', 'symbol' => '€', 'thousand_separator' => '.', 'decimal_separator' => ',', 'created_at' => null, 'updated_at' => null, ], ['id' => '77', 'country' => 'Mauritius', 'currency' => 'Rupees', 'code' => 'MUR', 'symbol' => '₨', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '78', 'country' => 'Mexico', 'currency' => 'Pesos', 'code' => 'MXN', 'symbol' => '$', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '79', 'country' => 'Mongolia', 'currency' => 'Tugriks', 'code' => 'MNT', 'symbol' => '₮', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '80', 'country' => 'Mozambique', 'currency' => 'Meticais', 'code' => 'MZ', 'symbol' => 'MT', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '81', 'country' => 'Namibia', 'currency' => 'Dollars', 'code' => 'NAD', 'symbol' => '$', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '82', 'country' => 'Nepal', 'currency' => 'Rupees', 'code' => 'NPR', 'symbol' => '₨', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '83', 'country' => 'Netherlands Antilles', 'currency' => 'Guilders', 'code' => 'ANG', 'symbol' => 'ƒ', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '84', 'country' => 'Netherlands', 'currency' => 'Euro', 'code' => 'EUR', 'symbol' => '€', 'thousand_separator' => '.', 'decimal_separator' => ',', 'created_at' => null, 'updated_at' => null, ], ['id' => '85', 'country' => 'New Zealand', 'currency' => 'Dollars', 'code' => 'NZD', 'symbol' => '$', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '86', 'country' => 'Nicaragua', 'currency' => 'Cordobas', 'code' => 'NIO', 'symbol' => 'C$', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '87', 'country' => 'Nigeria', 'currency' => 'Nairas', 'code' => 'NGN', 'symbol' => '₦', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '88', 'country' => 'North Korea', 'currency' => 'Won', 'code' => 'KPW', 'symbol' => '₩', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '89', 'country' => 'Norway', 'currency' => 'Krone', 'code' => 'NOK', 'symbol' => 'kr', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '90', 'country' => 'Oman', 'currency' => 'Rials', 'code' => 'OMR', 'symbol' => '﷼', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '91', 'country' => 'Pakistan', 'currency' => 'Rupees', 'code' => 'PKR', 'symbol' => '₨', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '92', 'country' => 'Panama', 'currency' => 'Balboa', 'code' => 'PAB', 'symbol' => 'B/.', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '93', 'country' => 'Paraguay', 'currency' => 'Guarani', 'code' => 'PYG', 'symbol' => 'Gs', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '94', 'country' => 'Peru', 'currency' => 'Nuevos Soles', 'code' => 'PE', 'symbol' => 'S/.', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '95', 'country' => 'Philippines', 'currency' => 'Pesos', 'code' => 'PHP', 'symbol' => 'Php', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '96', 'country' => 'Poland', 'currency' => 'Zlotych', 'code' => 'PL', 'symbol' => 'zł', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '97', 'country' => 'Qatar', 'currency' => 'Rials', 'code' => 'QAR', 'symbol' => '﷼', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '98', 'country' => 'Romania', 'currency' => 'New Lei', 'code' => 'RO', 'symbol' => 'lei', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '99', 'country' => 'Russia', 'currency' => 'Rubles', 'code' => 'RUB', 'symbol' => 'руб', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '100', 'country' => 'Saint Helena', 'currency' => 'Pounds', 'code' => 'SHP', 'symbol' => '£', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '101', 'country' => 'Saudi Arabia', 'currency' => 'Riyals', 'code' => 'SAR', 'symbol' => '﷼', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '102', 'country' => 'Serbia', 'currency' => 'Dinars', 'code' => 'RSD', 'symbol' => 'Дин.', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '103', 'country' => 'Seychelles', 'currency' => 'Rupees', 'code' => 'SCR', 'symbol' => '₨', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '104', 'country' => 'Singapore', 'currency' => 'Dollars', 'code' => 'SGD', 'symbol' => '$', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '105', 'country' => 'Slovenia', 'currency' => 'Euro', 'code' => 'EUR', 'symbol' => '€', 'thousand_separator' => '.', 'decimal_separator' => ',', 'created_at' => null, 'updated_at' => null, ], ['id' => '106', 'country' => 'Solomon Islands', 'currency' => 'Dollars', 'code' => 'SBD', 'symbol' => '$', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '107', 'country' => 'Somalia', 'currency' => 'Shillings', 'code' => 'SOS', 'symbol' => 'S', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '108', 'country' => 'South Africa', 'currency' => 'Rand', 'code' => 'ZAR', 'symbol' => 'R', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '109', 'country' => 'South Korea', 'currency' => 'Won', 'code' => 'KRW', 'symbol' => '₩', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '110', 'country' => 'Spain', 'currency' => 'Euro', 'code' => 'EUR', 'symbol' => '€', 'thousand_separator' => '.', 'decimal_separator' => ',', 'created_at' => null, 'updated_at' => null, ], ['id' => '111', 'country' => 'Sri Lanka', 'currency' => 'Rupees', 'code' => 'LKR', 'symbol' => '₨', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '112', 'country' => 'Sweden', 'currency' => 'Kronor', 'code' => 'SEK', 'symbol' => 'kr', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '113', 'country' => 'Switzerland', 'currency' => 'Francs', 'code' => 'CHF', 'symbol' => 'CHF', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '114', 'country' => 'Suriname', 'currency' => 'Dollars', 'code' => 'SRD', 'symbol' => '$', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '115', 'country' => 'Syria', 'currency' => 'Pounds', 'code' => 'SYP', 'symbol' => '£', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '116', 'country' => 'Taiwan', 'currency' => 'New Dollars', 'code' => 'TWD', 'symbol' => 'NT$', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '117', 'country' => 'Thailand', 'currency' => 'Baht', 'code' => 'THB', 'symbol' => '฿', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '118', 'country' => 'Trinidad and Tobago', 'currency' => 'Dollars', 'code' => 'TTD', 'symbol' => 'TT$', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '119', 'country' => 'Turkey', 'currency' => 'Lira', 'code' => 'TRY', 'symbol' => 'TL', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '120', 'country' => 'Turkey', 'currency' => 'Liras', 'code' => 'TRL', 'symbol' => '£', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '121', 'country' => 'Tuvalu', 'currency' => 'Dollars', 'code' => 'TVD', 'symbol' => '$', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '122', 'country' => 'Ukraine', 'currency' => 'Hryvnia', 'code' => 'UAH', 'symbol' => '₴', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '123', 'country' => 'United Kingdom', 'currency' => 'Pounds', 'code' => 'GBP', 'symbol' => '£', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '124', 'country' => 'United States of America', 'currency' => 'Dollars', 'code' => 'USD', 'symbol' => '$', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '125', 'country' => 'Uruguay', 'currency' => 'Pesos', 'code' => 'UYU', 'symbol' => '$U', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '126', 'country' => 'Uzbekistan', 'currency' => 'Sums', 'code' => 'UZS', 'symbol' => 'лв', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '127', 'country' => 'Vatican City', 'currency' => 'Euro', 'code' => 'EUR', 'symbol' => '€', 'thousand_separator' => '.', 'decimal_separator' => ',', 'created_at' => null, 'updated_at' => null, ], ['id' => '128', 'country' => 'Venezuela', 'currency' => 'Bolivares Fuertes', 'code' => 'VEF', 'symbol' => 'Bs', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '129', 'country' => 'Vietnam', 'currency' => 'Dong', 'code' => 'VND', 'symbol' => '₫', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '130', 'country' => 'Yemen', 'currency' => 'Rials', 'code' => 'YER', 'symbol' => '﷼', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '131', 'country' => 'Zimbabwe', 'currency' => 'Zimbabwe Dollars', 'code' => 'ZWD', 'symbol' => 'Z$', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '132', 'country' => 'Iraq', 'currency' => 'Iraqi dinar', 'code' => 'IQD', 'symbol' => 'د.ع', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '133', 'country' => 'Kenya', 'currency' => 'Kenyan shilling', 'code' => 'KES', 'symbol' => 'KSh', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null, ], ['id' => '134', 'country' => 'Bangladesh', 'currency' => 'Taka', 'code' => 'BDT', 'symbol' => '৳', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null], ]; Currency::insert($data); Currency::insert([ ['country' => 'Algerie', 'currency' => 'Algerian dinar', 'code' => 'DZD', 'symbol' => 'د.ج', 'thousand_separator' => ' ', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null], ['country' => 'United Arab Emirates', 'currency' => 'United Arab Emirates dirham', 'code' => 'AED', 'symbol' => 'د.إ', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null], ['country' => 'Uganda', 'currency' => 'Uganda shillings', 'code' => 'UGX', 'symbol' => 'USh', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null], ['country' => 'Tanzania', 'currency' => 'Tanzanian shilling', 'code' => 'TZS', 'symbol' => 'TSh', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null], ['country' => 'Angola', 'currency' => 'Kwanza', 'code' => 'AOA', 'symbol' => 'Kz', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null], ['country' => 'Kuwait', 'currency' => 'Kuwaiti dinar', 'code' => 'KWD', 'symbol' => 'KD', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null], ['country' => 'Bahrain', 'currency' => 'Bahraini dinar', 'code' => 'BHD', 'symbol' => 'BD', 'thousand_separator' => ',', 'decimal_separator' => '.', 'created_at' => null, 'updated_at' => null], ]); } } seeders/OldDummyBusinessSeeder.php 0000644 00000105012 15001704611 0013277 0 ustar 00 <?php namespace Database\Seeders; use App\User; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Hash; use Spatie\Permission\Models\Permission; use Spatie\Permission\Models\Role; class OldDummyBusinessSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { DB::beginTransaction(); $password = Hash::make('123456'); $today = \Carbon::now()->format('Y-m-d H:i:s'); $yesterday = \Carbon::now()->subDays(2)->format('Y-m-d H:i:s'); $last_week = \Carbon::now()->subDays(7)->format('Y-m-d H:i:s'); $last_15th_day = \Carbon::now()->subDays(15)->format('Y-m-d H:i:s'); $last_month = \Carbon::now()->subDays(30)->format('Y-m-d H:i:s'); DB::statement('SET FOREIGN_KEY_CHECKS = 0'); $shortcuts = '{"pos":{"express_checkout":"shift+e","pay_n_ckeckout":"shift+p","draft":"shift+d","cancel":"shift+c","edit_discount":"shift+i","edit_order_tax":"shift+t","add_payment_row":"shift+r","finalize_payment":"shift+f","recent_product_quantity":"f2","add_new_product":"f4"}}'; DB::insert("INSERT INTO business (id, name, currency_id, start_date, tax_number_1, tax_label_1, tax_number_2, tax_label_2, default_sales_tax, default_profit_percent, owner_id, time_zone, fy_start_month, accounting_method, default_sales_discount, sell_price_tax, logo, sku_prefix, keyboard_shortcuts, created_at, updated_at, enable_editing_product_from_purchase) VALUES (1, 'Awesome Shop', 2, '2018-01-01', '3412569900', 'GSTIN', NULL, NULL, NULL, 25, 1, 'America/Phoenix', 1, 'fifo', '10.00', 'includes', NULL, 'AS', '$shortcuts', '2018-01-04 07:45:19', '2018-01-04 07:47:08', 1)"); DB::insert("INSERT INTO business_locations (id, business_id, name, landmark, country, state, city, zip_code, invoice_scheme_id, invoice_layout_id, print_receipt_on_invoice,receipt_printer_type,deleted_at, created_at, updated_at) VALUES (1, 1, 'Awesome Shop', 'Linking Street', 'USA', 'Arizona', 'Phoenix', '85001', 1, 1, 1,'browser', NULL, '2018-01-04 07:45:20', '2018-01-04 07:45:20')"); DB::insert("INSERT INTO users (id, surname, first_name, last_name, username, email, password, language, remember_token, business_id, deleted_at, created_at, updated_at) VALUES (1, 'Mr', 'Admin', NULL, 'admin', 'admin@example.com', '$password', 'en', NULL, 1, NULL, '2018-01-04 07:45:19', '2018-01-04 07:45:19'), (2, 'Mr', 'Demo', 'Cashier', 'cashier', 'cashier@example.com', '$password' , 'en', NULL, 1, NULL, '2018-01-04 07:50:58', '2018-01-04 07:50:58'), (3, 'Mr.', 'Demo', 'Admin', 'demo-admin', 'demoadmin@example.com', '$password', 'en', NULL, 1, NULL, '2018-01-06 12:40:57', '2018-01-06 12:40:57')"); DB::insert("INSERT INTO brands (id, business_id, name, description, created_by, created_at, updated_at) VALUES (1, 1, 'Levis', NULL, 1, '2018-01-04 02:49:47', '2018-01-04 02:49:47'), (2, 1, 'Espirit', NULL, 1, '2018-01-04 02:49:58', '2018-01-04 02:49:58'), (3, 1, 'U.S. Polo Assn.', NULL, 1, '2018-01-04 02:50:26', '2018-01-04 02:50:26'), (4, 1, 'Nike', NULL, 1, '2018-01-04 02:50:34', '2018-01-04 02:50:34'), (5, 1, 'Puma', NULL, 1, '2018-01-04 02:50:40', '2018-01-04 02:50:40'), (6, 1, 'Adidas', NULL, 1, '2018-01-04 02:50:46', '2018-01-04 02:50:46'), (7, 1, 'Samsung', NULL, 1, '2018-01-06 11:10:14', '2018-01-06 11:10:14'), (8, 1, 'Apple', NULL, 1, '2018-01-06 11:10:23', '2018-01-06 11:10:23'), (9, 1, 'Acer', NULL, 1, '2018-01-06 11:33:37', '2018-01-06 11:33:37'), (10, 1, 'Bowflex', NULL, 1, '2018-01-06 11:45:31', '2018-01-06 11:45:31'), (11, 1, 'Oreo', NULL, 1, '2018-01-06 12:05:00', '2018-01-06 12:05:00'), (12, 1, 'Sharewood', NULL, 1, '2018-01-06 12:10:52', '2018-01-06 12:10:52'), (13, 1, 'Barilla', NULL, 1, '2018-01-06 12:14:59', '2018-01-06 12:14:59'), (14, 1, 'Lipton', NULL, 1, '2018-01-06 12:18:12', '2018-01-06 12:18:12')"); DB::insert("INSERT INTO categories (id, name, business_id, short_code, parent_id, created_by, created_at, updated_at) VALUES (1, 'Men''s', 1, NULL, 0, 1, '2018-01-04 02:36:34', '2018-01-04 02:36:34'), (2, 'Women''s', 1, NULL, 0, 1, '2018-01-04 02:36:46', '2018-01-04 02:36:46'), (3, 'Accessories', 1, NULL, 0, 1, '2018-01-04 02:37:03', '2018-01-04 02:37:03'), (4, 'Jeans', 1, NULL, 1, 1, '2018-01-04 02:37:34', '2018-01-04 02:37:34'), (5, 'Shirts', 1, NULL, 1, 1, '2018-01-04 02:38:18', '2018-01-04 02:38:18'), (6, 'Belts', 1, NULL, 3, 1, '2018-01-04 02:38:41', '2018-01-04 02:38:41'), (8, 'Shoes', 1, NULL, 3, 1, '2018-01-04 02:39:04', '2018-01-04 02:39:04'), (10, 'Sandal', 1, NULL, 3, 1, '2018-01-04 02:39:23', '2018-01-04 02:39:23'), (11, 'Wallets', 1, NULL, 3, 1, '2018-01-04 04:35:50', '2018-01-04 04:35:50'), (12, 'Electronics', 1, NULL, 0, 1, '2018-01-06 10:54:34', '2018-01-06 10:54:34'), (13, 'Cell Phones', 1, NULL, 12, 1, '2018-01-06 10:54:57', '2018-01-06 10:54:57'), (14, 'Computers', 1, NULL, 12, 1, '2018-01-06 10:55:55', '2018-01-06 10:55:55'), (15, 'Sports', 1, NULL, 0, 1, '2018-01-06 10:57:33', '2018-01-06 10:57:33'), (16, 'Athletic Clothing', 1, NULL, 15, 1, '2018-01-06 10:58:40', '2018-01-06 10:58:40'), (17, 'Exercise & Fitness', 1, NULL, 15, 1, '2018-01-06 10:59:19', '2018-01-06 10:59:19'), (18, 'Books', 1, NULL, 0, 1, '2018-01-06 10:59:59', '2018-01-06 10:59:59'), (19, 'Autobiography', 1, NULL, 18, 1, '2018-01-06 11:00:16', '2018-01-06 11:00:16'), (20, 'Children''s books', 1, NULL, 18, 1, '2018-01-06 11:00:58', '2018-01-06 11:00:58'), (21, 'Food & Grocery', 1, NULL, 0, 1, '2018-01-06 11:01:35', '2018-01-06 11:01:35')"); DB::insert("INSERT INTO contacts (id, business_id, type, supplier_business_name, name, tax_number, city, state, country, landmark, mobile, landline, alternate_number, pay_term_number, pay_term_type, created_by, is_default, deleted_at, created_at, updated_at) VALUES (1, 1, 'customer', NULL, 'Walk-In Customer', NULL, 'Phoenix', 'Arizona', 'USA', 'Linking Street', '(378) 400-1234', NULL, NULL, NULL, NULL, 1, 1, NULL, '2018-01-04 02:15:20', '2018-01-04 02:35:37'), (2, 1, 'supplier', 'Alpha Clothings', 'Michael', '4590091535', 'Phoenix', 'Arizona', 'USA', 'Linking Street', '(378) 400-1234', NULL, NULL, 15, 'days', 1, 0, NULL, '2018-01-04 02:29:38', '2018-01-04 02:35:10'), (3, 1, 'supplier', 'Manhattan Clothing Ltd.', 'Philip', '54869310093', 'Phoenix', 'Arizona', 'USA', 'Linking Street', '(378) 400-1234', NULL, NULL, 15, 'days', 1, 0, NULL, '2018-01-04 02:30:55', '2018-01-04 02:44:06'), (4, 1, 'customer', NULL, 'Harry', NULL, 'Phoenix', 'Arizona', 'USA', 'Linking Street', '(378) 400-1234', NULL, NULL, NULL, NULL, 1, 0, NULL, '2018-01-04 02:31:40', '2018-01-04 02:35:32'), (5, 1, 'supplier', 'Digital Ocean', 'Mike McCubbin', '52965489001', 'Phoenix', 'Arizona', 'USA', 'Linking Street', '(378) 400-1234', NULL, NULL, 30, 'days', 1, 0, NULL, '2018-01-06 12:23:22', '2018-01-06 12:23:22'), (6, 1, 'supplier', 'Univer Suppliers', 'Jackson Hill', '5459000655', 'Phoenix', 'Arizona', 'USA', 'Linking Street', '(378) 400-1234', NULL, NULL, 45, 'days', 1, 0, NULL, '2018-01-06 12:25:09', '2018-01-06 12:25:09')"); DB::insert("INSERT INTO tax_rates (id, business_id, name, amount, is_tax_group, created_by, created_at, updated_at) VALUES (1, 1, 'VAT@10%', 10.00, 0, 1, '2018-01-04 08:10:07', '2018-01-04 08:10:07'), (2, 1, 'CGST@10%', 10.00, 0, 1, '2018-01-04 08:10:55', '2018-01-04 08:10:55'), (3, 1, 'SGST@8%', 8.00, 0, 1, '2018-01-04 08:11:13', '2018-01-04 08:11:13'), (4, 1, 'GST@18%', 18.00, 1, 1, '2018-01-04 08:12:19', '2018-01-04 08:12:19')"); DB::insert('INSERT INTO group_sub_taxes (group_tax_id, tax_id) VALUES (4, 2), (4, 3)'); DB::insert("INSERT INTO invoice_schemes (id, business_id, name, scheme_type, prefix, start_number, invoice_count, total_digits, is_default, created_at, updated_at) VALUES (1, 1, 'Default', 'blank', 'AS', 1, 5, 4, 1, '2018-01-04 07:45:20', '2018-01-04 08:15:16')"); DB::insert("INSERT INTO invoice_layouts (id, name, header_text, invoice_no_prefix, invoice_heading, sub_heading_line1, sub_heading_line2, sub_heading_line3, sub_heading_line4, sub_heading_line5, invoice_heading_not_paid, invoice_heading_paid, sub_total_label, discount_label, tax_label, total_label, total_due_label, paid_label, show_client_id, client_id_label, date_label, show_time, show_brand, show_sku, show_cat_code, table_product_label, table_qty_label, table_unit_price_label, table_subtotal_label, logo, show_logo, show_business_name, show_location_name, show_landmark, show_city, show_state, show_zip_code, show_country, show_mobile_number, show_alternate_number, show_email, show_tax_1, show_tax_2, show_barcode, show_payments, show_customer, customer_label, highlight_color, footer_text, is_default, business_id, created_at, updated_at) VALUES (1, 'Default', NULL, 'Invoice No.', 'Invoice', NULL, NULL, NULL, NULL, NULL, '', '', 'Subtotal', 'Discount', 'Tax', 'Total', 'Total Due', 'Total Paid', 0, NULL, 'Date', 1, 0, 1, 1, 'Product', 'Quantity', 'Unit Price', 'Subtotal', NULL, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 1, 1, 'Customer', '#000000', '', 1, 1, '2018-04-04 05:05:32', '2018-04-04 05:05:32')"); DB::insert("INSERT INTO units (id, business_id, actual_name, short_name, allow_decimal, created_by, created_at, updated_at) VALUES (1, 1, 'Pieces', 'Pc(s)', 0, 1, '2018-01-04 02:15:20', '2018-01-04 02:15:20'), (2, 1, 'Packets', 'packets', 0, 1, '2018-01-06 12:07:01', '2018-01-06 12:08:36'), (3, 1, 'Grams', 'g', 1, 1, '2018-01-06 12:10:34', '2018-01-06 12:10:34')"); DB::insert("INSERT INTO products (id, name, business_id, type, unit_id, brand_id, category_id, sub_category_id, tax, tax_type, enable_stock, alert_quantity, sku, barcode_type, created_by, created_at, updated_at) VALUES (1, 'Men''s Reverse Fleece Crew', 1, 'single', 1, 1, 1, 5, 1, 'exclusive', 1, 5, 'AS0001', 'C128', 1, '2018-01-04 02:59:08', '2018-01-06 11:21:33'), (2, 'Levis Men''s Slimmy Fit Jeans', 1, 'variable', 1, 1, 1, 4, 1, 'exclusive', 1, 10, 'AS0002', 'C128', 1, '2018-01-04 03:00:35', '2018-01-06 11:21:16'), (3, 'Men''s Cozy Hoodie Sweater', 1, 'variable', 1, 2, 1, 5, 1, 'exclusive', 1, 10, 'AS0003', 'C128', 1, '2018-01-04 04:21:52', '2018-01-06 11:20:51'), (4, 'Puma Brown Sneaker', 1, 'variable', 1, 5, 3, 8, 1, 'exclusive', 1, 5, 'AS0004', 'C128', 1, '2018-01-04 04:24:33', '2018-01-04 04:24:33'), (8, 'Nike Fashion Sneaker', 1, 'variable', 1, 4, 3, 8, 1, 'exclusive', 1, 10, 'AS0008', 'C128', 1, '2018-01-04 04:40:10', '2018-01-04 04:40:10'), (9, 'PUMA Men''s Black Sneaker', 1, 'variable', 1, 5, 3, 8, 1, 'exclusive', 1, 10, 'AS0009', 'C128', 1, '2018-01-04 04:41:57', '2018-01-04 04:41:57'), (10, 'NIKE Men''s Running Shoe', 1, 'variable', 1, 4, 3, 8, 1, 'exclusive', 1, 10, 'AS0010', 'C128', 1, '2018-01-04 04:43:02', '2018-01-04 04:43:02'), (11, 'U.S. Polo Men''s Leather Belt', 1, 'single', 1, 3, 3, 6, 1, 'exclusive', 1, 15, 'AS0011', 'C128', 1, '2018-01-04 04:44:35', '2018-01-04 04:44:35'), (12, 'Unisex Brown Leather Wallet', 1, 'single', 1, 1, 3, 11, 1, 'exclusive', 1, 10, 'AS0012', 'C128', 1, '2018-01-04 04:45:50', '2018-01-06 11:21:49'), (13, 'Men Full sleeve T Shirt', 1, 'variable', 1, 2, 1, 5, 1, 'exclusive', 1, 15, 'AS0013', 'C128', 1, '2018-01-04 04:47:59', '2018-01-04 04:47:59'), (14, 'Samsung Galaxy S8', 1, 'variable', 1, 7, 12, 13, 1, 'exclusive', 1, 100, 'AS0014', 'C128', 1, '2018-01-06 11:12:19', '2018-01-06 11:12:19'), (15, 'Apple iPhone 8', 1, 'variable', 1, 8, 12, 13, 1, 'exclusive', 1, 100, 'AS0015', 'C128', 1, '2018-01-06 11:19:51', '2018-01-06 11:19:51'), (16, 'Samsung Galaxy J7 Pro', 1, 'variable', 1, 7, 12, 13, NULL, 'exclusive', 1, 100, 'AS0016', 'C128', 1, '2018-01-06 11:24:48', '2018-01-06 11:24:48'), (17, 'Acer Aspire E 15', 1, 'variable', 1, 9, 12, 14, NULL, 'exclusive', 1, 70, 'AS0017', 'C128', 1, '2018-01-06 11:35:01', '2018-01-06 11:35:01'), (18, 'Apple MacBook Air', 1, 'variable', 1, 8, 12, 14, NULL, 'exclusive', 1, 30, 'AS0018', 'C128', 1, '2018-01-06 11:37:30', '2018-01-06 11:37:30'), (19, 'Cushion Crew Socks', 1, 'single', 1, 4, 15, 16, NULL, 'exclusive', 1, 100, 'AS0019', 'C128', 1, '2018-01-06 11:40:28', '2018-01-06 11:41:01'), (20, 'Sports Tights Pants', 1, 'variable', 1, 6, 15, 16, 1, 'exclusive', 1, 60, 'AS0020', 'C128', 1, '2018-01-06 11:43:00', '2018-01-06 11:43:00'), (21, 'Pair Of Dumbbells', 1, 'single', 1, 10, 15, 17, NULL, 'exclusive', 1, 45, 'AS0021', 'C128', 1, '2018-01-06 11:46:35', '2018-01-06 11:46:35'), (22, 'Diary of a Wimpy Kid', 1, 'single', 1, NULL, 18, 20, 1, 'exclusive', 1, 20, 'AS0022', 'C128', 1, '2018-01-06 11:55:09', '2018-01-06 11:55:09'), (23, 'Sneezy the Snowman', 1, 'single', 1, NULL, 18, 20, NULL, 'exclusive', 1, 20, 'AS0023', 'C128', 1, '2018-01-06 11:56:27', '2018-01-06 11:56:27'), (24, 'Etched in Sand Autobiography', 1, 'single', 1, NULL, 18, 19, 1, 'exclusive', 1, 30, 'AS0024', 'C128', 1, '2018-01-06 12:01:22', '2018-01-06 12:01:22'), (25, 'Five Presidents', 1, 'single', 1, NULL, 18, 19, NULL, 'exclusive', 1, 30, 'AS0025', 'C128', 1, '2018-01-06 12:02:22', '2018-01-06 12:02:22'), (26, 'Oreo Cookies', 1, 'single', 2, 11, 21, NULL, NULL, 'exclusive', 1, 500, 'AS0026', 'C128', 1, '2018-01-06 12:05:51', '2018-01-06 12:08:55'), (27, 'Butter Cookies', 1, 'single', 2, 12, 21, NULL, 1, 'exclusive', 1, 100, 'AS0027', 'C128', 1, '2018-01-06 12:13:16', '2018-01-06 12:13:16'), (28, 'Barilla Pasta', 1, 'single', 2, 13, 21, NULL, 1, 'exclusive', 1, 50, 'AS0028', 'C128', 1, '2018-01-06 12:15:47', '2018-01-06 12:15:47'), (29, 'Thin Spaghetti', 1, 'single', 2, 13, 21, NULL, NULL, 'exclusive', 1, 100, 'AS0029', 'C128', 1, '2018-01-06 12:16:53', '2018-01-06 12:16:53'), (30, 'Lipton Black Tea Bags', 1, 'single', 2, 14, 21, NULL, 1, 'exclusive', 1, 50, 'AS0030', 'C128', 1, '2018-01-06 12:18:59', '2018-01-06 12:18:59')"); DB::insert("INSERT INTO product_variations (id, name, product_id, is_dummy, created_at, updated_at) VALUES (1, 'DUMMY', 1, 1, '2018-01-04 02:59:08', '2018-01-04 02:59:08'), (2, 'Waist Size', 2, 0, '2018-01-04 03:00:35', '2018-01-06 10:44:12'), (3, 'Size', 3, 0, '2018-01-04 04:21:52', '2018-01-06 10:43:48'), (4, 'Size', 4, 0, '2018-01-04 04:24:34', '2018-01-06 10:49:36'), (8, 'Size', 8, 0, '2018-01-04 04:40:10', '2018-01-06 10:48:46'), (9, 'Size', 9, 0, '2018-01-04 04:41:57', '2018-01-06 10:50:01'), (10, 'Size', 10, 0, '2018-01-04 04:43:02', '2018-01-06 10:49:20'), (11, 'DUMMY', 11, 1, '2018-01-04 04:44:35', '2018-01-04 04:44:35'), (12, 'DUMMY', 12, 1, '2018-01-04 04:45:50', '2018-01-04 04:45:50'), (13, 'Size', 13, 0, '2018-01-04 04:47:59', '2018-01-06 10:44:48'), (14, 'Color', 14, 0, '2018-01-06 11:12:19', '2018-01-06 11:12:19'), (15, 'Internal Memory', 14, 0, '2018-01-06 11:14:14', '2018-01-06 11:14:14'), (16, 'Color', 15, 0, '2018-01-06 11:19:51', '2018-01-06 11:19:51'), (17, 'Internal Memory', 15, 0, '2018-01-06 11:19:51', '2018-01-06 11:19:51'), (18, 'Color', 16, 0, '2018-01-06 11:24:48', '2018-01-06 11:24:48'), (19, 'Color', 17, 0, '2018-01-06 11:35:01', '2018-01-06 11:35:01'), (20, 'Storage', 18, 0, '2018-01-06 11:37:30', '2018-01-06 11:37:30'), (21, 'DUMMY', 19, 1, '2018-01-06 11:40:28', '2018-01-06 11:40:28'), (22, 'Color', 20, 0, '2018-01-06 11:43:00', '2018-01-06 11:43:00'), (23, 'DUMMY', 21, 1, '2018-01-06 11:46:35', '2018-01-06 11:46:35'), (24, 'DUMMY', 22, 1, '2018-01-06 11:55:09', '2018-01-06 11:55:09'), (25, 'DUMMY', 23, 1, '2018-01-06 11:56:27', '2018-01-06 11:56:27'), (26, 'DUMMY', 24, 1, '2018-01-06 12:01:22', '2018-01-06 12:01:22'), (27, 'DUMMY', 25, 1, '2018-01-06 12:02:23', '2018-01-06 12:02:23'), (28, 'DUMMY', 26, 1, '2018-01-06 12:05:51', '2018-01-06 12:05:51'), (29, 'DUMMY', 27, 1, '2018-01-06 12:13:16', '2018-01-06 12:13:16'), (30, 'DUMMY', 28, 1, '2018-01-06 12:15:47', '2018-01-06 12:15:47'), (31, 'DUMMY', 29, 1, '2018-01-06 12:16:53', '2018-01-06 12:16:53'), (32, 'DUMMY', 30, 1, '2018-01-06 12:18:59', '2018-01-06 12:18:59')"); DB::insert("INSERT INTO variations (id, name, product_id, sub_sku, product_variation_id, default_purchase_price, dpp_inc_tax, profit_percent, default_sell_price, sell_price_inc_tax, created_at, updated_at, deleted_at) VALUES (1, 'DUMMY', 1, 'AS0001', 1, '130.00', '143.00', '0.00', '130.00', '143.00', '2018-01-04 02:59:08', '2018-01-04 02:59:08', NULL), (2, '28', 2, 'AS0002-1', 2, '70.00', '77.00', '0.00', '70.00', '77.00', '2018-01-04 03:00:35', '2018-01-06 11:21:16', NULL), (3, '30', 2, 'AS0002-2', 2, '70.00', '77.00', '0.00', '70.00', '77.00', '2018-01-04 03:00:35', '2018-01-06 11:21:16', NULL), (4, '32', 2, 'AS0002-3', 2, '70.00', '77.00', '0.00', '70.00', '77.00', '2018-01-04 03:00:35', '2018-01-06 11:21:16', NULL), (5, '34', 2, 'AS0002-4', 2, '72.00', '79.20', '0.00', '72.00', '79.20', '2018-01-04 03:00:35', '2018-01-06 11:21:16', NULL), (6, '36', 2, 'AS0002-5', 2, '72.00', '79.20', '0.00', '72.00', '79.20', '2018-01-04 03:00:35', '2018-01-06 11:21:16', NULL), (7, 'S', 3, 'AS0003-1', 3, '190.00', '209.00', '0.00', '190.00', '209.00', '2018-01-04 04:21:52', '2018-01-06 11:20:51', NULL), (8, 'M', 3, 'AS0003-2', 3, '190.00', '209.00', '0.00', '190.00', '209.00', '2018-01-04 04:21:52', '2018-01-06 11:20:51', NULL), (9, 'L', 3, 'AS0003-3', 3, '190.00', '209.00', '0.00', '190.00', '209.00', '2018-01-04 04:21:52', '2018-01-06 11:20:51', NULL), (10, 'XL', 3, 'AS0003-4', 3, '191.00', '210.10', '0.00', '191.00', '210.10', '2018-01-04 04:21:52', '2018-01-06 11:20:51', NULL), (11, '6', 4, 'AS0004-1', 4, '165.00', '181.50', '0.00', '165.00', '181.50', '2018-01-04 04:24:34', '2018-01-06 10:49:36', NULL), (12, '7', 4, 'AS0004-2', 4, '165.00', '181.50', '0.00', '165.00', '181.50', '2018-01-04 04:24:34', '2018-01-06 10:49:36', NULL), (13, '8', 4, 'AS0004-3', 4, '165.00', '181.50', '0.00', '165.00', '181.50', '2018-01-04 04:24:34', '2018-01-06 10:49:36', NULL), (14, '9', 4, 'AS0004-4', 4, '166.00', '182.60', '0.00', '166.00', '182.60', '2018-01-04 04:24:34', '2018-01-06 10:49:36', NULL), (27, '6', 8, 'AS0008-1', 8, '110.00', '121.00', '0.00', '110.00', '121.00', '2018-01-04 04:40:10', '2018-01-06 10:48:46', NULL), (28, '7', 8, 'AS0008-2', 8, '110.00', '121.00', '0.00', '110.00', '121.00', '2018-01-04 04:40:10', '2018-01-06 10:48:46', NULL), (29, '8', 8, 'AS0008-3', 8, '110.00', '121.00', '0.00', '110.00', '121.00', '2018-01-04 04:40:10', '2018-01-06 10:48:46', NULL), (30, '9', 8, 'AS0008-4', 8, '110.00', '121.00', '0.00', '110.00', '121.00', '2018-01-04 04:40:10', '2018-01-06 10:48:46', NULL), (31, '6', 9, 'AS0009-1', 9, '135.00', '148.50', '0.00', '135.00', '148.50', '2018-01-04 04:41:57', '2018-01-06 10:50:01', NULL), (32, '7', 9, 'AS0009-2', 9, '135.00', '148.50', '0.00', '135.00', '148.50', '2018-01-04 04:41:57', '2018-01-06 10:50:01', NULL), (33, '8', 9, 'AS0009-3', 9, '135.00', '148.50', '0.00', '135.00', '148.50', '2018-01-04 04:41:57', '2018-01-06 10:50:01', NULL), (34, '9', 9, 'AS0009-4', 9, '135.00', '148.50', '0.00', '135.00', '148.50', '2018-01-04 04:41:57', '2018-01-06 10:50:01', NULL), (35, '5', 10, 'AS0010-1', 10, '150.00', '165.00', '0.00', '150.00', '165.00', '2018-01-04 04:43:02', '2018-01-06 10:49:20', NULL), (36, '6', 10, 'AS0010-2', 10, '150.00', '165.00', '0.00', '150.00', '165.00', '2018-01-04 04:43:02', '2018-01-06 10:49:20', NULL), (37, '7', 10, 'AS0010-3', 10, '150.00', '165.00', '0.00', '150.00', '165.00', '2018-01-04 04:43:02', '2018-01-06 10:49:20', NULL), (38, '8', 10, 'AS0010-4', 10, '150.00', '165.00', '0.00', '150.00', '165.00', '2018-01-04 04:43:02', '2018-01-06 10:49:20', NULL), (39, '9', 10, 'AS0010-5', 10, '150.00', '165.00', '0.00', '150.00', '165.00', '2018-01-04 04:43:02', '2018-01-06 10:49:20', NULL), (40, 'DUMMY', 11, 'AS0011', 11, '30.00', '33.00', '0.00', '30.00', '33.00', '2018-01-04 04:44:35', '2018-01-04 04:44:35', NULL), (41, 'DUMMY', 12, 'AS0012', 12, '25.00', '27.50', '0.00', '25.00', '27.50', '2018-01-04 04:45:50', '2018-01-04 04:45:50', NULL), (42, 'M', 13, 'AS0013-1', 13, '60.00', '66.00', '0.00', '60.00', '66.00', '2018-01-04 04:47:59', '2018-01-06 10:44:48', NULL), (43, 'L', 13, 'AS0013-2', 13, '60.00', '66.00', '0.00', '60.00', '66.00', '2018-01-04 04:47:59', '2018-01-06 10:44:48', NULL), (44, 'XL', 13, 'AS0013-3', 13, '60.00', '66.00', '0.00', '60.00', '66.00', '2018-01-04 04:47:59', '2018-01-06 10:44:48', NULL), (45, 'Gray', 14, 'AS0014-1', 14, '700.00', '770.00', '25.00', '875.00', '962.50', '2018-01-06 11:12:19', '2018-01-06 11:14:14', NULL), (46, 'Black', 14, 'AS0014-2', 14, '700.00', '770.00', '25.00', '875.00', '962.50', '2018-01-06 11:12:19', '2018-01-06 11:14:14', NULL), (47, '64 GB', 14, 'AS0014-1', 15, '700.00', '770.00', '25.00', '875.00', '962.50', '2018-01-06 11:14:14', '2018-01-06 11:14:14', NULL), (48, '128 GB', 14, 'AS0014-2', 15, '800.00', '880.00', '25.00', '1000.00', '1100.00', '2018-01-06 11:14:14', '2018-01-06 11:14:14', NULL), (49, 'White', 15, 'AS0015-1', 16, '950.00', '1045.00', '25.00', '1187.50', '1306.25', '2018-01-06 11:19:51', '2018-01-06 11:19:51', NULL), (50, 'Gray', 15, 'AS0015-2', 16, '950.00', '1045.00', '25.00', '1187.50', '1306.25', '2018-01-06 11:19:51', '2018-01-06 11:19:51', NULL), (51, 'Black', 15, 'AS0015-3', 16, '950.00', '1045.00', '25.00', '1187.50', '1306.25', '2018-01-06 11:19:51', '2018-01-06 11:19:51', NULL), (52, '32 GB', 15, 'AS0015-1', 17, '950.00', '1045.00', '25.00', '1187.50', '1306.25', '2018-01-06 11:19:51', '2018-01-06 11:19:51', NULL), (53, '64 GB', 15, 'AS0015-2', 17, '1010.00', '1111.00', '25.00', '1262.50', '1388.75', '2018-01-06 11:19:51', '2018-01-06 11:19:51', NULL), (54, 'Gold', 16, 'AS0016-1', 18, '350.00', '350.00', '25.00', '437.50', '437.50', '2018-01-06 11:24:48', '2018-01-06 11:24:48', NULL), (55, 'White', 16, 'AS0016-2', 18, '350.00', '350.00', '25.00', '437.50', '437.50', '2018-01-06 11:24:48', '2018-01-06 11:24:48', NULL), (56, 'Black', 16, 'AS0016-3', 18, '350.00', '350.00', '25.00', '437.50', '437.50', '2018-01-06 11:24:48', '2018-01-06 11:24:48', NULL), (57, 'Black', 17, 'AS0017-1', 19, '350.00', '350.00', '25.00', '437.50', '437.50', '2018-01-06 11:35:01', '2018-01-06 11:35:01', NULL), (58, 'White', 17, 'AS0017-2', 19, '350.00', '350.00', '25.00', '437.50', '437.50', '2018-01-06 11:35:01', '2018-01-06 11:35:01', NULL), (59, '256 GB', 18, 'AS0018-1', 20, '1350.00', '1350.00', '25.00', '1687.50', '1687.50', '2018-01-06 11:37:30', '2018-01-06 11:37:30', NULL), (60, '500 GB', 18, 'AS0018-2', 20, '1450.00', '1450.00', '25.00', '1812.50', '1812.50', '2018-01-06 11:37:30', '2018-01-06 11:37:30', NULL), (61, 'DUMMY', 19, 'AS0019', 21, '8.00', '8.00', '25.00', '10.00', '10.00', '2018-01-06 11:40:28', '2018-01-06 11:40:28', NULL), (62, 'Gray', 20, 'AS0020-1', 22, '25.00', '27.50', '25.00', '31.25', '34.38', '2018-01-06 11:43:00', '2018-01-06 11:43:00', NULL), (63, 'Black', 20, 'AS0020-2', 22, '25.00', '27.50', '25.00', '31.25', '34.38', '2018-01-06 11:43:00', '2018-01-06 11:43:00', NULL), (64, 'DUMMY', 21, 'AS0021', 23, '10.00', '10.00', '25.00', '12.50', '12.50', '2018-01-06 11:46:35', '2018-01-06 11:46:35', NULL), (65, 'DUMMY', 22, 'AS0022', 24, '8.00', '8.80', '25.00', '10.00', '11.00', '2018-01-06 11:55:09', '2018-01-06 11:55:09', NULL), (66, 'DUMMY', 23, 'AS0023', 25, '10.00', '10.00', '25.00', '12.50', '12.50', '2018-01-06 11:56:27', '2018-01-06 11:56:27', NULL), (67, 'DUMMY', 24, 'AS0024', 26, '8.00', '8.80', '25.00', '10.00', '11.00', '2018-01-06 12:01:22', '2018-01-06 12:01:22', NULL), (68, 'DUMMY', 25, 'AS0025', 27, '15.00', '15.00', '25.00', '18.75', '18.75', '2018-01-06 12:02:23', '2018-01-06 12:02:23', NULL), (69, 'DUMMY', 26, 'AS0026', 28, '5.00', '5.00', '25.00', '6.25', '6.25', '2018-01-06 12:05:51', '2018-01-06 12:05:51', NULL), (70, 'DUMMY', 27, 'AS0027', 29, '20.00', '22.00', '25.00', '25.00', '27.50', '2018-01-06 12:13:16', '2018-01-06 12:13:16', NULL), (71, 'DUMMY', 28, 'AS0028', 30, '10.00', '11.00', '25.00', '12.50', '13.75', '2018-01-06 12:15:47', '2018-01-06 12:15:47', NULL), (72, 'DUMMY', 29, 'AS0029', 31, '12.00', '12.00', '25.00', '15.00', '15.00', '2018-01-06 12:16:53', '2018-01-06 12:16:53', NULL), (73, 'DUMMY', 30, 'AS0030', 32, '40.00', '44.00', '25.00', '50.00', '55.00', '2018-01-06 12:18:59', '2018-01-06 12:18:59', NULL)"); DB::insert("INSERT INTO variation_templates (id, name, business_id, created_at, updated_at) VALUES (1, 'Size (Tshirts)', 1, '2018-01-04 02:52:13', '2018-01-04 02:52:13'), (2, 'Size (Shoes)', 1, '2018-01-04 02:53:21', '2018-01-04 02:53:21'), (3, 'Waist Size (Jeans)', 1, '2018-01-04 02:54:34', '2018-01-04 02:54:34'), (4, 'Color', 1, '2018-01-06 12:42:52', '2018-01-06 12:42:52')"); DB::insert("INSERT INTO variation_value_templates (id, name, variation_template_id, created_at, updated_at) VALUES (1, 'S', 1, '2018-01-04 02:52:13', '2018-01-04 02:52:13'), (2, 'M', 1, '2018-01-04 02:52:13', '2018-01-04 02:52:13'), (3, 'L', 1, '2018-01-04 02:52:13', '2018-01-04 02:52:13'), (4, 'XL', 1, '2018-01-04 02:52:13', '2018-01-04 02:52:13'), (5, '5', 2, '2018-01-04 02:53:21', '2018-01-04 02:53:21'), (6, '6', 2, '2018-01-04 02:53:21', '2018-01-04 02:53:21'), (7, '7', 2, '2018-01-04 02:53:21', '2018-01-04 02:53:21'), (8, '8', 2, '2018-01-04 02:53:21', '2018-01-04 02:53:21'), (9, '9', 2, '2018-01-04 02:53:21', '2018-01-04 02:53:21'), (10, '28', 3, '2018-01-04 02:54:34', '2018-01-04 02:54:34'), (11, '30', 3, '2018-01-04 02:54:34', '2018-01-04 02:54:34'), (12, '32', 3, '2018-01-04 02:54:34', '2018-01-04 02:54:34'), (13, '34', 3, '2018-01-04 02:54:35', '2018-01-04 02:54:35'), (14, '36', 3, '2018-01-04 02:54:35', '2018-01-04 02:54:35'), (16, 'Black', 4, '2018-01-06 12:43:17', '2018-01-06 12:43:17'), (17, 'Blue', 4, '2018-01-06 12:43:17', '2018-01-06 12:43:17'), (18, 'Brown', 4, '2018-01-06 12:43:17', '2018-01-06 12:43:17'), (19, 'Grey', 4, '2018-01-06 12:43:17', '2018-01-06 12:43:17'), (20, 'Gold', 4, '2018-01-06 12:43:17', '2018-01-06 12:43:17')"); DB::insert("INSERT INTO purchase_lines (id, transaction_id, product_id, variation_id, quantity, purchase_price, purchase_price_inc_tax, item_tax, tax_id, created_at, updated_at) VALUES (1, 1, 2, 2, 100, '70.00', '77.00', '7.00', 1, '2018-01-06 12:27:11', '2018-01-06 12:27:11'), (2, 1, 2, 3, 150, '70.00', '77.00', '7.00', 1, '2018-01-06 12:27:11', '2018-01-06 12:27:11'), (3, 1, 2, 4, 150, '70.00', '77.00', '7.00', 1, '2018-01-06 12:27:11', '2018-01-06 12:27:11'), (4, 1, 2, 5, 150, '72.00', '79.20', '7.20', 1, '2018-01-06 12:27:11', '2018-01-06 12:27:11'), (5, 1, 2, 6, 100, '72.00', '79.20', '7.20', 1, '2018-01-06 12:27:11', '2018-01-06 12:27:11'), (6, 2, 14, 47, 100, '700.00', '770.00', '70.00', 1, '2018-01-06 12:28:10', '2018-01-06 12:28:10'), (7, 3, 28, 71, 500, '10.00', '11.00', '1.00', 1, '2018-01-06 12:32:22', '2018-01-06 12:32:22'), (8, 4, 21, 64, 200, '10.00', '10.00', '0.00', NULL, '2018-01-06 12:33:12', '2018-01-06 12:33:12'), (9, 5, 27, 70, 500, '20.00', '22.00', '2.00', 1, '2018-01-06 12:35:26', '2018-01-06 12:35:26')"); DB::insert("INSERT INTO transactions (id, business_id, location_id, type, status, payment_status, contact_id, invoice_no, ref_no, transaction_date, total_before_tax, tax_id, tax_amount, discount_type, discount_amount, shipping_details, shipping_charges, additional_notes, staff_note, final_total, created_by, created_at, updated_at) VALUES (1, 1, 1, 'purchase', 'received', 'paid', 2, NULL, '35001BCVX', '$last_month', '50600.00', 1, '5060.00', NULL, '0', NULL, '0.00', NULL, NULL, '55660.00', 1, '2018-01-06 12:27:11', '2018-01-06 12:27:11'), (2, 1, 1, 'purchase', 'received', 'paid', 5, NULL, '35001BJGN', '$last_15th_day', '77000.00', 1, '7700.00', NULL, '0', NULL, '0.00', NULL, NULL, '84700.00', 1, '2018-01-06 12:28:10', '2018-01-06 12:28:10'), (3, 1, 1, 'purchase', 'received', 'partial', 6, NULL, '35001BCVJ', '$last_15th_day', '5500.00', 1, '550.00', NULL, '0', NULL, '0.00', NULL, NULL, '6050.00', 1, '2018-01-06 12:32:22', '2018-01-06 12:32:22'), (4, 1, 1, 'purchase', 'received', 'paid', 6, NULL, '35001BCVK', '$last_month', '2000.00', NULL, '0.00', NULL, '0', NULL, '0.00', NULL, NULL, '2000.00', 1, '2018-01-06 12:33:12', '2018-01-06 12:33:12'), (5, 1, 1, 'purchase', 'received', 'due', 6, NULL, '35001BCVD', '$last_month', '11000.00', 1, '1100.00', NULL, '0', NULL, '0.00', NULL, NULL, '12100.00', 1, '2018-01-06 12:35:26', '2018-01-06 12:35:26'), (6, 1, 1, 'sell', 'final', 'paid', 4, 'AS0001', '', '$today', '770.00', NULL, '0.00', 'percentage', '0', NULL, '0.00', NULL, NULL, '770.00', 1, '2018-01-06 12:36:11', '2018-01-06 12:36:11'), (7, 1, 1, 'sell', 'final', 'paid', 1, 'AS0002', '', '$yesterday', '825.00', NULL, '0.00', 'percentage', '0', NULL, '0.00', NULL, NULL, '825.00', 1, '2018-01-06 12:36:31', '2018-01-06 12:36:31'), (8, 1, 1, 'sell', 'final', 'paid', 4, 'AS0003', '', '$last_week', '7700.00', NULL, '0.00', 'percentage', '0', NULL, '0.00', NULL, NULL, '7700.00', 1, '2018-01-06 12:37:22', '2018-01-06 12:37:22'), (9, 1, 1, 'sell', 'final', 'paid', 1, 'AS0004', '', '$yesterday', '750.00', NULL, '0.00', 'percentage', '0', NULL, '0.00', NULL, NULL, '750.00', 1, '2018-01-06 12:37:45', '2018-01-06 12:37:45'), (10, 1, 1, 'sell', 'final', 'paid', 1, 'AS0005', '', '$today', '412.50', NULL, '0.00', 'percentage', '0', NULL, '0.00', NULL, NULL, '412.50', 1, '2018-01-06 12:38:03', '2018-01-06 12:38:03')"); DB::insert("INSERT INTO transaction_payments (id, transaction_id, amount, method, card_transaction_number, card_number, card_type, card_holder_name, card_month, card_year, card_security, cheque_number, bank_account_number,paid_on, created_by, note, created_at, updated_at) VALUES (1, 6, '770.00', 'cash', NULL, NULL, 'visa', NULL, NULL, NULL, NULL, NULL, NULL, '2018-01-09 17:30:35', 1, NULL, '2018-01-06 07:06:11', '2018-01-06 07:06:11'), (2, 7, '825.00', 'cash', NULL, NULL, 'visa', NULL, NULL, NULL, NULL, NULL, NULL, '2018-01-09 17:30:35', 1, NULL, '2018-01-06 07:06:31', '2018-01-06 07:06:31'), (3, 8, '7700.00', 'cash', NULL, NULL, 'visa', NULL, NULL, NULL, NULL, NULL, NULL, '2018-01-09 17:30:35', 1, NULL, '2018-01-06 07:07:23', '2018-01-06 07:07:23'), (4, 9, '750.00', 'cash', NULL, NULL, 'visa', NULL, NULL, NULL, NULL, NULL, NULL, '2018-01-09 17:30:35', 1, NULL, '2018-01-06 07:07:45', '2018-01-06 07:07:45'), (5, 10, '412.50', 'cash', NULL, NULL, 'visa', NULL, NULL, NULL, NULL, NULL, NULL, '2018-01-09 17:30:35', 1, NULL, '2018-01-06 07:08:03', '2018-01-06 07:08:03'), (6, 4, '2000.00', 'cash', NULL, NULL, 'visa', NULL, NULL, NULL, NULL, NULL, NULL, '2018-01-11 17:32:56', 1, 'Cash Payment', '2018-01-11 12:02:56', '2018-01-11 12:02:56'), (7, 3, '3000.00', 'bank_transfer', NULL, NULL, 'visa', NULL, NULL, NULL, NULL, NULL, '502110000631', '2018-01-11 17:34:10', 1, '3000 Paid Via Bank Transfer', '2018-01-11 12:04:10', '2018-01-11 12:04:10'), (8, 2, '84700.00', 'cash', NULL, NULL, 'visa', NULL, NULL, NULL, NULL, NULL, NULL, '2018-01-11 17:34:36', 1, NULL, '2018-01-11 12:04:36', '2018-01-11 12:04:36'), (9, 1, '50000.00', 'cash', NULL, NULL, 'visa', NULL, NULL, NULL, NULL, NULL, NULL, '2018-01-11 17:35:04', 1, NULL, '2018-01-11 12:05:04', '2018-01-11 12:05:04'), (10, 1, '5660.00', 'cash', NULL, NULL, 'visa', NULL, NULL, NULL, NULL, NULL, NULL, '2018-01-11 17:35:17', 1, NULL, '2018-01-11 12:05:17', '2018-01-11 12:05:17')"); DB::insert("INSERT INTO transaction_sell_lines (id, transaction_id, product_id, variation_id, quantity, unit_price, unit_price_inc_tax, item_tax, tax_id, created_at, updated_at) VALUES (1, 6, 2, 3, 10, '70.00', '77.00', '7.00', 1, '2018-01-06 12:36:11', '2018-01-06 12:36:11'), (2, 7, 27, 70, 30, '25.00', '27.50', '2.50', 1, '2018-01-06 12:36:31', '2018-01-06 12:36:31'), (3, 8, 2, 3, 50, '70.00', '77.00', '7.00', 1, '2018-01-06 12:37:23', '2018-01-06 12:37:23'), (4, 8, 2, 2, 50, '70.00', '77.00', '7.00', 1, '2018-01-06 12:37:23', '2018-01-06 12:37:23'), (5, 9, 21, 64, 60, '12.50', '12.50', '0.00', NULL, '2018-01-06 12:37:45', '2018-01-06 12:37:45'), (6, 10, 28, 71, 30, '12.50', '13.75', '1.25', 1, '2018-01-06 12:38:03', '2018-01-06 12:38:03')"); DB::insert("INSERT INTO variation_location_details (id, product_id, product_variation_id, variation_id, location_id, qty_available, created_at, updated_at) VALUES (1, 2, 2, 2, 1, '50.00', '2018-01-06 12:27:11', '2018-01-06 12:37:23'), (2, 2, 2, 3, 1, '90.00', '2018-01-06 12:27:11', '2018-01-06 12:37:23'), (3, 2, 2, 4, 1, '150.00', '2018-01-06 12:27:11', '2018-01-06 12:27:11'), (4, 2, 2, 5, 1, '150.00', '2018-01-06 12:27:11', '2018-01-06 12:27:11'), (5, 2, 2, 6, 1, '100.00', '2018-01-06 12:27:11', '2018-01-06 12:27:11'), (6, 14, 15, 47, 1, '100.00', '2018-01-06 12:28:10', '2018-01-06 12:28:10'), (7, 28, 30, 71, 1, '470.00', '2018-01-06 12:32:22', '2018-01-06 12:38:03'), (8, 21, 23, 64, 1, '140.00', '2018-01-06 12:33:12', '2018-01-06 12:37:45'), (9, 27, 29, 70, 1, '470.00', '2018-01-06 12:35:26', '2018-01-06 12:36:32')"); $admin_role = Role::create(['name' => 'Admin#1', 'business_id' => 1, 'guard_name' => 'web', 'is_default' => 1, ]); $cashier_role = Role::create(['name' => 'Cashier#1', 'business_id' => 1, 'guard_name' => 'web', 'is_default' => 1, ]); $cashier_role->syncPermissions(['sell.view', 'sell.create', 'sell.update', 'sell.delete', 'access_all_locations', 'dashboard.data', ]); $admin = User::findOrFail(1); $cashier = User::findOrFail(2); $demo_user = User::findOrFail(3); $admin->assignRole('Admin#1'); $cashier->assignRole('Cashier#1'); $demo_user->assignRole('Admin#1'); Permission::insert(['name' => 'location.1', 'guard_name' => 'web', 'created_at' => \Carbon::now()->toDateTimeString()]); DB::statement('SET FOREIGN_KEY_CHECKS = 1'); DB::commit(); } } seeders/BarcodesTableSeeder.php 0000644 00000012554 15001704611 0012533 0 ustar 00 <?php namespace Database\Seeders; use App\Barcode; use Illuminate\Database\Seeder; class BarcodesTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { Barcode::create([ 'id' => 1, 'name' => '20 Labels per Sheet', 'description' => 'Sheet Size: 8.5" x 11", Label Size: 4" x 1", Labels per sheet: 20', 'width' => 4, 'height' => 1, 'paper_width' => 8.5, 'paper_height' => 11, 'top_margin' => 0.5, 'left_margin' => 0.125, 'row_distance' => 0.00, 'col_distance' => 0.1875, 'stickers_in_one_row' => 2, 'is_default' => 0, 'is_continuous' => 0, 'stickers_in_one_sheet' => 20, 'business_id' => null, 'created_at' => '2017-12-18 06:13:44', 'updated_at' => '2017-12-18 06:13:44', ]); Barcode::create([ 'id' => 2, 'name' => '30 Labels per sheet', 'description' => 'Sheet Size: 8.5" x 11", Label Size: 2.625" x 1", Labels per sheet: 30', 'width' => 2.625, 'height' => 1, 'paper_width' => 8.5, 'paper_height' => 11, 'top_margin' => 0.5, 'left_margin' => 0.188, 'row_distance' => 0.00, 'col_distance' => 0.125, 'stickers_in_one_row' => 3, 'is_default' => 0, 'is_continuous' => 0, 'stickers_in_one_sheet' => 30, 'business_id' => null, 'created_at' => '2017-12-18 06:04:39', 'updated_at' => '2017-12-18 06:10:40', ]); Barcode::create([ 'id' => 3, 'name' => '32 Labels per sheet', 'description' => 'Sheet Size: 8.5" x 11", Label Size: 2" x 1.25", Labels per sheet: 32', 'width' => 2, 'height' => 1.25, 'paper_width' => 8.5, 'paper_height' => 11, 'top_margin' => 0.5, 'left_margin' => 0.25, 'row_distance' => 0.00, 'col_distance' => 0, 'stickers_in_one_row' => 4, 'is_default' => 0, 'is_continuous' => 0, 'stickers_in_one_sheet' => 32, 'business_id' => null, 'created_at' => '2017-12-18 05:55:40', 'updated_at' => '2017-12-18 05:55:40', ]); Barcode::create([ 'id' => 4, 'name' => '40 Labels per sheet', 'description' => 'Sheet Size: 8.5" x 11", Label Size: 2" x 1", Labels per sheet: 40', 'width' => 2, 'height' => 1, 'paper_width' => 8.5, 'paper_height' => 11, 'top_margin' => 0.5, 'left_margin' => 0.25, 'row_distance' => 0.00, 'col_distance' => 0.00, 'stickers_in_one_row' => 4, 'is_default' => 0, 'is_continuous' => 0, 'stickers_in_one_sheet' => 40, 'business_id' => null, 'created_at' => '2017-12-18 05:58:40', 'updated_at' => '2017-12-18 05:58:40', ]); Barcode::create([ 'id' => 5, 'name' => '50 Labels per Sheet', 'description' => 'Sheet Size: 8.5" x 11", Label Size: 1.5" x 1", Labels per sheet: 50', 'width' => 1.5, 'height' => 1, 'paper_width' => 8.5, 'paper_height' => 11, 'top_margin' => 0.5, 'left_margin' => 0.5, 'row_distance' => 0.00, 'col_distance' => 0.00, 'stickers_in_one_row' => 5, 'is_default' => 0, 'is_continuous' => 0, 'stickers_in_one_sheet' => 50, 'business_id' => null, 'created_at' => '2017-12-18 05:51:10', 'updated_at' => '2017-12-18 05:51:10', ]); Barcode::create([ 'id' => 6, 'name' => 'Continuous Rolls - 31.75mm x 25.4mm', 'description' => 'Label Size: 31.75mm x 25.4mm, Gap: 3.18mm', 'width' => 1.25, 'height' => 1, 'paper_width' => 1.25, 'paper_height' => 0.00, 'top_margin' => 0.125, 'left_margin' => 0.00, 'row_distance' => 0.125, 'col_distance' => 0.00, 'stickers_in_one_row' => 1, 'is_default' => 0, 'is_continuous' => 1, 'stickers_in_one_sheet' => null, 'business_id' => null, 'created_at' => '2017-12-18 05:51:10', 'updated_at' => '2017-12-18 05:51:10', ]); // Barcode::create( [ // 'name'=>'154 Per Sheet', // 'description'=>'Sheet Size: 8.5" x 11", Label Size: 25.4mm x 9.52mm, Labels per sheet: 154', // 'width'=>25.40, // 'height'=>9.52, // 'paper_width'=>8.5, // 'paper_height'=>11, // 'top_margin'=>8.79, // 'left_margin'=>11.43, // 'row_distance'=>2.54, // 'col_distance'=>2.49, // 'stickers_in_one_row'=>7, // 'is_default'=>0, // 'is_continuous'=>0, // 'stickers_in_one_sheet'=>154, // 'business_id'=>null, // 'created_at'=>'2017-12-18 05:43:01', // 'updated_at'=>'2017-12-18 05:45:54' // ] ); } } seeders/DatabaseSeeder.php 0000644 00000000557 15001704611 0011545 0 ustar 00 <?php namespace Database\Seeders; use Illuminate\Database\Seeder; class DatabaseSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $this->call([BarcodesTableSeeder::class, PermissionsTableSeeder::class, CurrenciesTableSeeder::class, ]); } } seeders/PermissionsTableSeeder.php 0000644 00000005541 15001704611 0013322 0 ustar 00 <?php namespace Database\Seeders; use Illuminate\Database\Seeder; use Spatie\Permission\Models\Permission; class PermissionsTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $data = [ ['name' => 'user.view'], ['name' => 'user.create'], ['name' => 'user.update'], ['name' => 'user.delete'], ['name' => 'supplier.view'], ['name' => 'supplier.create'], ['name' => 'supplier.update'], ['name' => 'supplier.delete'], ['name' => 'customer.view'], ['name' => 'customer.create'], ['name' => 'customer.update'], ['name' => 'customer.delete'], ['name' => 'product.view'], ['name' => 'product.create'], ['name' => 'product.update'], ['name' => 'product.delete'], ['name' => 'purchase.view'], ['name' => 'purchase.create'], ['name' => 'purchase.update'], ['name' => 'purchase.delete'], ['name' => 'sell.view'], ['name' => 'sell.create'], ['name' => 'sell.update'], ['name' => 'sell.delete'], ['name' => 'purchase_n_sell_report.view'], ['name' => 'contacts_report.view'], ['name' => 'stock_report.view'], ['name' => 'tax_report.view'], ['name' => 'trending_product_report.view'], ['name' => 'register_report.view'], ['name' => 'sales_representative.view'], ['name' => 'expense_report.view'], ['name' => 'business_settings.access'], ['name' => 'barcode_settings.access'], ['name' => 'invoice_settings.access'], ['name' => 'brand.view'], ['name' => 'brand.create'], ['name' => 'brand.update'], ['name' => 'brand.delete'], ['name' => 'tax_rate.view'], ['name' => 'tax_rate.create'], ['name' => 'tax_rate.update'], ['name' => 'tax_rate.delete'], ['name' => 'unit.view'], ['name' => 'unit.create'], ['name' => 'unit.update'], ['name' => 'unit.delete'], ['name' => 'category.view'], ['name' => 'category.create'], ['name' => 'category.update'], ['name' => 'category.delete'], ['name' => 'expense.access'], ['name' => 'access_all_locations'], ['name' => 'dashboard.data'], ]; $insert_data = []; $time_stamp = \Carbon::now()->toDateTimeString(); foreach ($data as $d) { $d['guard_name'] = 'web'; $d['created_at'] = $time_stamp; $insert_data[] = $d; } Permission::insert($insert_data); } } seeders/DummyBusinessSeeder.php 0000644 00001560070 15001704611 0012652 0 ustar 00 <?php namespace Database\Seeders; use App\NotificationTemplate; use App\User; use App\Utils\InstallUtil; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Hash; use Spatie\Permission\Models\Permission; use Spatie\Permission\Models\Role; class DummyBusinessSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { DB::beginTransaction(); $password = Hash::make('123456'); // $timezone = 'America/Phoenix' // config(['app.timezone' => $timezone]); // date_default_timezone_set($timezone); $today = \Carbon::now()->format('Y-m-d H:i:s'); $yesterday = \Carbon::now()->subDays(2)->format('Y-m-d H:i:s'); $last_week = \Carbon::now()->subDays(7)->format('Y-m-d H:i:s'); $last_15th_day = \Carbon::now()->subDays(15)->format('Y-m-d H:i:s'); $last_month = \Carbon::now()->subDays(30)->format('Y-m-d H:i:s'); $next_6_month = \Carbon::now()->addMonths(6)->format('Y-m-d'); $next_12_month = \Carbon::now()->addMonths(12)->format('Y-m-d'); $next_18_month = \Carbon::now()->addMonths(18)->format('Y-m-d'); $start_of_week = \Carbon::now()->startOfWeek()->format('Y-m-d'); $end_of_week = \Carbon::now()->endOfWeek()->format('Y-m-d'); DB::statement('SET FOREIGN_KEY_CHECKS = 0'); $shortcuts = '{"pos":{"express_checkout":"shift+e","pay_n_ckeckout":"shift+p","draft":"shift+d","cancel":"shift+c","edit_discount":"shift+i","edit_order_tax":"shift+t","add_payment_row":"shift+r","finalize_payment":"shift+f","recent_product_quantity":"f2","add_new_product":"f4"}}'; $prefixes = '{"purchase":"PO","stock_transfer":"ST","stock_adjustment":"SA","sell_return":"CN","expense":"EP","contacts":"CO","purchase_payment":"PP","sell_payment":"SP","business_location":"BL"}'; $business = [ ['id' => '1', 'name' => 'Awesome Shop', 'currency_id' => '2', 'start_date' => '2018-01-01', 'tax_number_1' => '3412569900', 'tax_label_1' => 'GSTIN', 'tax_number_2' => null, 'tax_label_2' => null, 'default_sales_tax' => null, 'default_profit_percent' => '25.00', 'owner_id' => '1', 'time_zone' => 'America/Phoenix', 'fy_start_month' => '1', 'accounting_method' => 'fifo', 'default_sales_discount' => '10.00', 'sell_price_tax' => 'includes', 'logo' => null, 'sku_prefix' => 'AS', 'enable_product_expiry' => '0', 'expiry_type' => 'add_expiry', 'on_product_expiry' => 'keep_selling', 'stop_selling_before' => '0', 'enable_tooltip' => '1', 'purchase_in_diff_currency' => '0', 'purchase_currency_id' => null, 'p_exchange_rate' => '1.000', 'transaction_edit_days' => '30', 'stock_expiry_alert_days' => '30', 'keyboard_shortcuts' => $shortcuts, 'pos_settings' => null, 'enable_brand' => '1', 'enable_category' => '1', 'enable_sub_category' => '1', 'enable_price_tax' => '1', 'enable_purchase_status' => '1', 'enable_lot_number' => '0', 'default_unit' => null, 'enable_racks' => '0', 'enable_row' => '0', 'enable_position' => '0', 'enable_editing_product_from_purchase' => '1', 'sales_cmsn_agnt' => null, 'item_addition_method' => '1', 'enable_inline_tax' => '1', 'currency_symbol_placement' => 'before', 'enabled_modules' => '["purchases","add_sale","pos_sale","stock_transfers","stock_adjustment","expenses","account"]', 'date_format' => 'm/d/Y', 'time_format' => '24', 'repair_settings' => null, 'ref_no_prefixes' => $prefixes, 'created_at' => '2018-01-04 02:15:19', 'updated_at' => '2018-01-04 02:17:08', 'common_settings' => null], ['id' => '2', 'name' => 'Awesome Pharmacy', 'currency_id' => '2', 'start_date' => '2018-04-10', 'tax_number_1' => '3412569900', 'tax_label_1' => 'VAT', 'tax_number_2' => null, 'tax_label_2' => null, 'default_sales_tax' => null, 'default_profit_percent' => '25.00', 'owner_id' => '4', 'time_zone' => 'America/Chicago', 'fy_start_month' => '1', 'accounting_method' => 'fifo', 'default_sales_discount' => null, 'sell_price_tax' => 'includes', 'logo' => null, 'sku_prefix' => 'AP', 'enable_product_expiry' => '1', 'expiry_type' => 'add_manufacturing', 'on_product_expiry' => 'stop_selling', 'stop_selling_before' => '0', 'enable_tooltip' => '1', 'purchase_in_diff_currency' => '0', 'purchase_currency_id' => null, 'p_exchange_rate' => '1.000', 'transaction_edit_days' => '30', 'stock_expiry_alert_days' => '30', 'keyboard_shortcuts' => $shortcuts, 'pos_settings' => null, 'enable_brand' => '1', 'enable_category' => '1', 'enable_sub_category' => '1', 'enable_price_tax' => '1', 'enable_purchase_status' => '1', 'enable_lot_number' => '1', 'default_unit' => '4', 'enable_racks' => '0', 'enable_row' => '0', 'enable_position' => '0', 'enable_editing_product_from_purchase' => '1', 'sales_cmsn_agnt' => null, 'item_addition_method' => '1', 'enable_inline_tax' => '0', 'currency_symbol_placement' => 'before', 'enabled_modules' => '["purchases","add_sale","pos_sale","stock_transfers","stock_adjustment","expenses","account"]', 'date_format' => 'm/d/Y', 'time_format' => '24', 'repair_settings' => null, 'ref_no_prefixes' => $prefixes, 'created_at' => '2018-04-10 08:12:40', 'updated_at' => '2018-04-10 10:21:38', 'common_settings' => null], ['id' => '3', 'name' => 'Ultimate Electronics', 'currency_id' => '2', 'start_date' => '2018-04-10', 'tax_number_1' => '12548555003', 'tax_label_1' => 'GST', 'tax_number_2' => null, 'tax_label_2' => null, 'default_sales_tax' => null, 'default_profit_percent' => '25.00', 'owner_id' => '5', 'time_zone' => 'America/Chicago', 'fy_start_month' => '1', 'accounting_method' => 'fifo', 'default_sales_discount' => null, 'sell_price_tax' => 'includes', 'logo' => null, 'sku_prefix' => 'AE', 'enable_product_expiry' => '0', 'expiry_type' => 'add_expiry', 'on_product_expiry' => 'keep_selling', 'stop_selling_before' => '0', 'enable_tooltip' => '1', 'purchase_in_diff_currency' => '0', 'purchase_currency_id' => null, 'p_exchange_rate' => '1.000', 'transaction_edit_days' => '30', 'stock_expiry_alert_days' => '30', 'keyboard_shortcuts' => $shortcuts, 'pos_settings' => null, 'enable_brand' => '1', 'enable_category' => '1', 'enable_sub_category' => '1', 'enable_price_tax' => '1', 'enable_purchase_status' => '1', 'enable_lot_number' => '0', 'default_unit' => '5', 'enable_racks' => '0', 'enable_row' => '0', 'enable_position' => '0', 'enable_editing_product_from_purchase' => '1', 'sales_cmsn_agnt' => null, 'item_addition_method' => '1', 'enable_inline_tax' => '0', 'currency_symbol_placement' => 'before', 'enabled_modules' => '["purchases","add_sale","pos_sale","stock_transfers","stock_adjustment","expenses","account","subscription"]', 'date_format' => 'm/d/Y', 'time_format' => '24', 'repair_settings' => null, 'ref_no_prefixes' => $prefixes, 'created_at' => '2018-04-10 10:46:15', 'updated_at' => '2018-04-10 11:53:35', 'common_settings' => '{"enable_product_warranty":"1","default_datatable_page_entries":"25"}'], ['id' => '4', 'name' => 'Awesome Services', 'currency_id' => '124', 'start_date' => '2018-03-10', 'tax_number_1' => '3412569900', 'tax_label_1' => 'GST', 'tax_number_2' => null, 'tax_label_2' => null, 'default_sales_tax' => null, 'default_profit_percent' => '25.00', 'owner_id' => '6', 'time_zone' => 'America/Chicago', 'fy_start_month' => '1', 'accounting_method' => 'fifo', 'default_sales_discount' => null, 'sell_price_tax' => 'includes', 'logo' => null, 'sku_prefix' => 'AS', 'enable_product_expiry' => '0', 'expiry_type' => 'add_expiry', 'on_product_expiry' => 'keep_selling', 'stop_selling_before' => '0', 'enable_tooltip' => '1', 'purchase_in_diff_currency' => '0', 'purchase_currency_id' => null, 'p_exchange_rate' => '1.000', 'transaction_edit_days' => '30', 'stock_expiry_alert_days' => '30', 'keyboard_shortcuts' => $shortcuts, 'pos_settings' => null, 'enable_brand' => '1', 'enable_category' => '1', 'enable_sub_category' => '0', 'enable_price_tax' => '1', 'enable_purchase_status' => '1', 'enable_lot_number' => '0', 'default_unit' => null, 'enable_racks' => '0', 'enable_row' => '0', 'enable_position' => '0', 'enable_editing_product_from_purchase' => '1', 'sales_cmsn_agnt' => null, 'item_addition_method' => '1', 'enable_inline_tax' => '0', 'currency_symbol_placement' => 'before', 'enabled_modules' => '["purchases","add_sale","pos_sale","expenses","account","service_staff"]', 'date_format' => 'm/d/Y', 'time_format' => '24', 'repair_settings' => '{"repair_tc_condition":"<p><strong>30- Day Service Warranty :<\\/strong> If your device encounters the same issue within 30 days of the repair, we will fix the issue at our own cost with no further question asked. You have your peace of mind. <\\/p>\\r\\n<p><strong>Service Disclaimers :<\\/strong> Please make sure that you collect your item within two months of servic-ing, Otherwise, we will not be liable if your item gets lost or damaged. <\\/p>\\r\\n<p><strong>Terms &Conditions:<\\/strong> Please also be aware that we can only service your gadget at your own risk. Even though we do our best in \\"Awesome Services\\" to make things better. However, in the worst-case scenario, your gadget may be damaged during repairs. We will not be liable if such things happen. Visit our website to know more our Policy.<\\/p>","job_sheet_prefix":"JS","problem_reported_by_customer":"No backup, Battery life mediocre, Slow boot and application launch, Too glossy screen, Touchpad requires improvement, Keyboard requires improvement, RAM needs to be expanded, Lacks SD card slot","product_condition":"No physical damage, Screen fine, Screen scratches, body broken, Wet in water, colourful display, Great battery life, Excellent audio quality, Lacks SD card slot","product_configuration":"2 Gb RAM, 2GB ROM, Cpu, Core i3 Processor, Core i5 Processor, Core i7 Processor, 16GB RAM, 4 GB RAM, 1TB HDD, 520 SSD, USB Type-C port, USB Type-A prot, 1080p IPS Display","default_status":"3"}', 'ref_no_prefixes' => $prefixes, 'created_at' => '2018-04-10 12:20:42', 'updated_at' => '2018-04-10 12:23:40', 'common_settings' => null], ['id' => '5', 'name' => 'Awesome Restaurant', 'currency_id' => '2', 'start_date' => '2018-07-12', 'tax_number_1' => '4578220005', 'tax_label_1' => 'IGST', 'tax_number_2' => '4593220009', 'tax_label_2' => 'SGST', 'default_sales_tax' => null, 'default_profit_percent' => '25.00', 'owner_id' => '7', 'time_zone' => 'America/Chicago', 'fy_start_month' => '1', 'accounting_method' => 'fifo', 'default_sales_discount' => null, 'sell_price_tax' => 'includes', 'logo' => null, 'sku_prefix' => 'AR', 'enable_product_expiry' => '0', 'expiry_type' => 'add_expiry', 'on_product_expiry' => 'keep_selling', 'stop_selling_before' => '0', 'enable_tooltip' => '1', 'purchase_in_diff_currency' => '0', 'purchase_currency_id' => null, 'p_exchange_rate' => '1.000', 'transaction_edit_days' => '30', 'stock_expiry_alert_days' => '30', 'keyboard_shortcuts' => $shortcuts, 'pos_settings' => '{"disable_pay_checkout":0,"disable_draft":0,"disable_express_checkout":0,"hide_product_suggestion":0,"hide_recent_trans":0,"disable_discount":0,"disable_order_tax":0}', 'enable_brand' => '1', 'enable_category' => '1', 'enable_sub_category' => '1', 'enable_price_tax' => '1', 'enable_purchase_status' => '1', 'enable_lot_number' => '0', 'default_unit' => null, 'enable_racks' => '0', 'enable_row' => '0', 'enable_position' => '0', 'enable_editing_product_from_purchase' => '1', 'sales_cmsn_agnt' => null, 'item_addition_method' => '1', 'enable_inline_tax' => '0', 'currency_symbol_placement' => 'before', 'enabled_modules' => '["purchases","add_sale","pos_sale","stock_transfers","stock_adjustment","expenses","tables","modifiers","service_staff","kitchen","types_of_service","booking"]', 'date_format' => 'm/d/Y', 'time_format' => '24', 'repair_settings' => null, 'ref_no_prefixes' => $prefixes, 'created_at' => '2018-07-13 16:42:11', 'updated_at' => '2018-07-13 07:38:24', 'common_settings' => null], ['id' => '6', 'name' => 'Manufacturers Demo', 'currency_id' => '124', 'start_date' => '2019-08-18', 'tax_number_1' => null, 'tax_label_1' => null, 'tax_number_2' => null, 'tax_label_2' => null, 'default_sales_tax' => null, 'default_profit_percent' => '25.00', 'owner_id' => '12', 'time_zone' => 'Asia/Kolkata', 'fy_start_month' => '1', 'accounting_method' => 'fifo', 'default_sales_discount' => null, 'sell_price_tax' => 'includes', 'logo' => null, 'sku_prefix' => null, 'enable_product_expiry' => '0', 'expiry_type' => 'add_expiry', 'on_product_expiry' => 'keep_selling', 'stop_selling_before' => '0', 'enable_tooltip' => '1', 'purchase_in_diff_currency' => '0', 'purchase_currency_id' => null, 'p_exchange_rate' => '1.000', 'transaction_edit_days' => '30', 'stock_expiry_alert_days' => '30', 'keyboard_shortcuts' => $shortcuts, 'pos_settings' => '{"disable_pay_checkout":0,"disable_draft":0,"disable_express_checkout":0,"hide_product_suggestion":0,"hide_recent_trans":0,"disable_discount":0,"disable_order_tax":0,"is_pos_subtotal_editable":0}', 'enable_brand' => '1', 'enable_category' => '1', 'enable_sub_category' => '1', 'enable_price_tax' => '1', 'enable_purchase_status' => '1', 'enable_lot_number' => '0', 'default_unit' => null, 'enable_racks' => '0', 'enable_row' => '0', 'enable_position' => '0', 'enable_editing_product_from_purchase' => '1', 'sales_cmsn_agnt' => null, 'item_addition_method' => '1', 'enable_inline_tax' => '0', 'currency_symbol_placement' => 'before', 'enabled_modules' => '["purchases","add_sale","pos_sale","stock_transfers","stock_adjustment","expenses"]', 'date_format' => 'm/d/Y', 'time_format' => '24', 'repair_settings' => null, 'ref_no_prefixes' => $prefixes, 'created_at' => '2019-08-18 18:41:28', 'updated_at' => '2019-08-18 18:43:22', 'common_settings' => null], ]; DB::table('business')->insert($business); $business_locations = [ ['id' => '1', 'business_id' => '1', 'location_id' => null, 'name' => 'Awesome Shop', 'landmark' => 'Linking Street', 'country' => 'USA', 'state' => 'Arizona', 'city' => 'Phoenix', 'zip_code' => '85001', 'invoice_scheme_id' => '1', 'invoice_layout_id' => '1', 'sale_invoice_layout_id' => '1', 'selling_price_group_id' => null, 'print_receipt_on_invoice' => '1', 'receipt_printer_type' => 'browser', 'printer_id' => null, 'mobile' => null, 'alternate_number' => null, 'email' => null, 'website' => null, 'is_active' => '1', 'default_payment_accounts' => '{"cash":{"is_enabled":"1","account":null},"card":{"is_enabled":"1","account":null},"cheque":{"is_enabled":"1","account":null},"bank_transfer":{"is_enabled":"1","account":null},"other":{"is_enabled":"1","account":null},"custom_pay_1":{"is_enabled":"1","account":null},"custom_pay_2":{"is_enabled":"1","account":null},"custom_pay_3":{"is_enabled":"1","account":null}}', 'custom_field1' => null, 'custom_field2' => null, 'custom_field3' => null, 'custom_field4' => null, 'deleted_at' => null, 'created_at' => '2018-01-04 02:15:20', 'updated_at' => '2019-12-11 04:53:39'], ['id' => '2', 'business_id' => '2', 'location_id' => null, 'name' => 'Awesome Pharmacy', 'landmark' => 'Linking Street', 'country' => 'USA', 'state' => 'Arizona', 'city' => 'Phoenix', 'zip_code' => '492001', 'invoice_scheme_id' => '2', 'invoice_layout_id' => '2', 'sale_invoice_layout_id' => '2', 'selling_price_group_id' => null, 'print_receipt_on_invoice' => '1', 'receipt_printer_type' => 'browser', 'printer_id' => null, 'mobile' => null, 'alternate_number' => null, 'email' => null, 'website' => null, 'is_active' => '1', 'default_payment_accounts' => '{"cash":{"is_enabled":"1"},"card":{"is_enabled":"1"},"cheque":{"is_enabled":"1"},"bank_transfer":{"is_enabled":"1"},"other":{"is_enabled":"1"},"custom_pay_1":{"is_enabled":"1"},"custom_pay_2":{"is_enabled":"1"},"custom_pay_3":{"is_enabled":"1"}}', 'custom_field1' => null, 'custom_field2' => null, 'custom_field3' => null, 'custom_field4' => null, 'deleted_at' => null, 'created_at' => '2018-04-10 08:12:40', 'updated_at' => '2019-12-11 06:00:26'], ['id' => '3', 'business_id' => '3', 'location_id' => null, 'name' => 'Ultimate Electronics', 'landmark' => 'Linking Street', 'country' => 'USA', 'state' => 'Arizona', 'city' => 'Phoenix', 'zip_code' => '492001', 'invoice_scheme_id' => '3', 'invoice_layout_id' => '3', 'sale_invoice_layout_id' => '3', 'selling_price_group_id' => null, 'print_receipt_on_invoice' => '1', 'receipt_printer_type' => 'browser', 'printer_id' => null, 'mobile' => '', 'alternate_number' => '', 'email' => '', 'website' => null, 'is_active' => '1', 'default_payment_accounts' => '{"cash":{"is_enabled":"1"},"card":{"is_enabled":"1"},"cheque":{"is_enabled":"1"},"bank_transfer":{"is_enabled":"1"},"other":{"is_enabled":"1"},"custom_pay_1":{"is_enabled":"1"},"custom_pay_2":{"is_enabled":"1"},"custom_pay_3":{"is_enabled":"1"}}', 'custom_field1' => null, 'custom_field2' => null, 'custom_field3' => null, 'custom_field4' => null, 'deleted_at' => null, 'created_at' => '2018-04-10 10:46:16', 'updated_at' => '2018-04-10 10:46:16'], ['id' => '4', 'business_id' => '4', 'location_id' => null, 'name' => 'Awesome Services', 'landmark' => 'Linking Street', 'country' => 'USA', 'state' => 'Arizona', 'city' => 'Phoenix', 'zip_code' => '282001', 'invoice_scheme_id' => '4', 'invoice_layout_id' => '4', 'sale_invoice_layout_id' => '4', 'selling_price_group_id' => null, 'print_receipt_on_invoice' => '1', 'receipt_printer_type' => 'browser', 'printer_id' => null, 'mobile' => '', 'alternate_number' => '', 'email' => '', 'website' => null, 'is_active' => '1', 'default_payment_accounts' => '{"cash":{"is_enabled":"1"},"card":{"is_enabled":"1"},"cheque":{"is_enabled":"1"},"bank_transfer":{"is_enabled":"1"},"other":{"is_enabled":"1"},"custom_pay_1":{"is_enabled":"1"},"custom_pay_2":{"is_enabled":"1"},"custom_pay_3":{"is_enabled":"1"}}', 'custom_field1' => null, 'custom_field2' => null, 'custom_field3' => null, 'custom_field4' => null, 'deleted_at' => null, 'created_at' => '2018-04-10 12:20:43', 'updated_at' => '2018-04-10 12:20:43'], ['id' => '5', 'business_id' => '5', 'location_id' => null, 'name' => 'Awesome Restaurant', 'landmark' => 'Linking Street', 'country' => 'USA', 'state' => 'Arizona', 'city' => 'Phoenix', 'zip_code' => '85001', 'invoice_scheme_id' => '5', 'invoice_layout_id' => '5', 'sale_invoice_layout_id' => '5', 'selling_price_group_id' => null, 'print_receipt_on_invoice' => '1', 'receipt_printer_type' => 'browser', 'printer_id' => null, 'mobile' => '', 'alternate_number' => '', 'email' => '', 'website' => null, 'is_active' => '1', 'default_payment_accounts' => '{"cash":{"is_enabled":"1"},"card":{"is_enabled":"1"},"cheque":{"is_enabled":"1"},"bank_transfer":{"is_enabled":"1"},"other":{"is_enabled":"1"},"custom_pay_1":{"is_enabled":"1"},"custom_pay_2":{"is_enabled":"1"},"custom_pay_3":{"is_enabled":"1"}}', 'custom_field1' => null, 'custom_field2' => null, 'custom_field3' => null, 'custom_field4' => null, 'deleted_at' => null, 'created_at' => '2018-07-13 11:12:11', 'updated_at' => '2018-07-13 11:12:11'], ['id' => '6', 'business_id' => '6', 'location_id' => null, 'name' => 'Awesome Manufacturers', 'landmark' => 'Infront of XYZ', 'country' => 'USA', 'state' => 'S', 'city' => 'C', 'zip_code' => 'Z', 'invoice_scheme_id' => '6', 'invoice_layout_id' => '6', 'sale_invoice_layout_id' => '6', 'selling_price_group_id' => null, 'print_receipt_on_invoice' => '1', 'receipt_printer_type' => 'browser', 'printer_id' => null, 'mobile' => null, 'alternate_number' => null, 'email' => null, 'website' => null, 'is_active' => '1', 'default_payment_accounts' => '{"cash":{"is_enabled":"1"},"card":{"is_enabled":"1"},"cheque":{"is_enabled":"1"},"bank_transfer":{"is_enabled":"1"},"other":{"is_enabled":"1"},"custom_pay_1":{"is_enabled":"1"},"custom_pay_2":{"is_enabled":"1"},"custom_pay_3":{"is_enabled":"1"}}', 'custom_field1' => null, 'custom_field2' => null, 'custom_field3' => null, 'custom_field4' => null, 'deleted_at' => null, 'created_at' => '2019-08-18 13:11:28', 'updated_at' => '2019-12-11 17:36:49'], ]; DB::table('business_locations')->insert($business_locations); // `pos`.`cash_register_transactions` $cash_register_transactions = [ ['id' => '1', 'cash_register_id' => '1', 'amount' => '0.00', 'pay_method' => 'cash', 'type' => 'credit', 'transaction_type' => 'initial', 'transaction_id' => null, 'created_at' => '2018-07-13 07:39:34', 'updated_at' => '2018-07-13 07:39:34'], ['id' => '2', 'cash_register_id' => '1', 'amount' => '42.50', 'pay_method' => 'cash', 'type' => 'credit', 'transaction_type' => 'sell', 'transaction_id' => '41', 'created_at' => '2018-07-13 07:44:40', 'updated_at' => '2018-07-13 07:44:40'], ['id' => '3', 'cash_register_id' => '1', 'amount' => '0.00', 'pay_method' => 'cash', 'type' => 'credit', 'transaction_type' => 'sell', 'transaction_id' => '41', 'created_at' => '2018-07-13 07:44:40', 'updated_at' => '2018-07-13 07:44:40'], ['id' => '4', 'cash_register_id' => '1', 'amount' => '77.50', 'pay_method' => 'cash', 'type' => 'credit', 'transaction_type' => 'sell', 'transaction_id' => '42', 'created_at' => '2018-07-13 07:45:29', 'updated_at' => '2018-07-13 07:45:29'], ['id' => '5', 'cash_register_id' => '1', 'amount' => '0.00', 'pay_method' => 'cash', 'type' => 'credit', 'transaction_type' => 'sell', 'transaction_id' => '42', 'created_at' => '2018-07-13 07:45:29', 'updated_at' => '2018-07-13 07:45:29'], ['id' => '6', 'cash_register_id' => '1', 'amount' => '33.75', 'pay_method' => 'cash', 'type' => 'credit', 'transaction_type' => 'sell', 'transaction_id' => '43', 'created_at' => '2018-07-13 07:46:04', 'updated_at' => '2018-07-13 07:46:04'], ['id' => '7', 'cash_register_id' => '1', 'amount' => '0.00', 'pay_method' => 'cash', 'type' => 'credit', 'transaction_type' => 'sell', 'transaction_id' => '43', 'created_at' => '2018-07-13 07:46:04', 'updated_at' => '2018-07-13 07:46:04'], ['id' => '8', 'cash_register_id' => '1', 'amount' => '71.25', 'pay_method' => 'cash', 'type' => 'credit', 'transaction_type' => 'sell', 'transaction_id' => '44', 'created_at' => '2018-07-13 07:46:36', 'updated_at' => '2018-07-13 07:46:36'], ['id' => '9', 'cash_register_id' => '1', 'amount' => '0.00', 'pay_method' => 'cash', 'type' => 'credit', 'transaction_type' => 'sell', 'transaction_id' => '44', 'created_at' => '2018-07-13 07:46:36', 'updated_at' => '2018-07-13 07:46:36'], ]; DB::table('cash_register_transactions')->insert($cash_register_transactions); DB::insert("INSERT INTO users (id, surname, first_name, last_name, username, email, password, language, contact_no, address, remember_token, business_id, is_cmmsn_agnt, cmmsn_percent, deleted_at, created_at, updated_at) VALUES (1, 'Mr', 'Admin', NULL, 'admin', 'admin@example.com', '$password', 'en', NULL, NULL, '6wUbpN3xEjDDyQwCfHiGqO7JkIQgjYoDFeQMxcp09YQXq1Ih1e5EqydddBMz', 1, 0, '0.00', NULL, '2018-01-04 02:15:19', '2018-01-04 02:15:19'), (2, 'Mr', 'Demo', 'Cashier', 'cashier', 'cashier@example.com', '$password', 'en', NULL, NULL, NULL, 1, 0, '0.00', NULL, '2018-01-04 02:20:58', '2018-01-04 02:20:58'), (3, 'Mr.', 'Demo', 'Admin', 'demo-admin', 'demoadmin@example.com', '$password', 'en', NULL, NULL, NULL, 1, 0, '0.00', NULL, '2018-01-06 07:10:57', '2018-01-06 07:10:57'), (4, 'Mr', 'Demo', 'Admin', 'admin-pharmacy', 'admin-pharma@example.com', '$password', 'en', NULL, NULL, 'MJnleh4kefXZtw3FCI2yHKEwr45Rs5nZxyQyGSFRfjIcQn93sJZyw7BAzSUq', 2, 0, '0.00', NULL, '2018-04-10 08:12:40', '2018-04-10 08:12:40'), (5, 'Mr', 'Demo', 'Admin', 'admin-electronics', 'admin-electronics@example.com', '$password', 'en', NULL, NULL, 'YzGFoRAfllUjyB12qIZhowlteUPhvR1cd77YREQuqemSUftHp72aRLZMrzwR', 3, 0, '0.00', NULL, '2018-04-10 10:46:15', '2018-04-10 10:46:15'), (6, 'Mr', 'Demo', 'Admin', 'admin-services', 'admin-services@example.com', '$password', 'en', NULL, NULL, 'CdBNjmTIXVU0nEgcEg85L97w6JEjvuE6CfF7mvhmz7Ad2K7IxJVd9WPLdxcg', 4, 0, '0.00', NULL, '2018-04-10 12:20:42', '2018-04-10 12:20:42'), (7, 'Mr', 'Demo', 'Admin', 'admin-restaurant', 'admin-restaurant@example.com', '$password', 'en', NULL, NULL, 'ZzGDokwQe0vR0YpbBBWwbCWOGAkTgMS4wZlQOzAgWs2yAnovdGFkRwjofy1Y', 5, 0, '0.00', NULL, '2018-07-13 11:12:11', '2018-07-13 11:12:11'), (8, 'Mr', 'Kevin', 'Nicols', 'kevin-nicols', 'kevin@example.com', '$password', 'en', NULL, NULL, '57dRoj3knI8dJ9UPSqFo2EH0CVTco5WJHnDgrmB2CY4lvJR6ZTtmzHi7NdLa', 5, 0, '0.00', NULL, '2018-07-13 02:13:20', '2018-07-13 02:13:20'), (9, 'Mr.', 'Super', 'Admin', 'superadmin', 'superadmin@example.com', '$password', 'en', NULL, NULL, NULL, 1, 0, '0.00', NULL, '2018-08-02 04:05:55', '2018-08-02 04:05:55'), (10, 'Mr.', 'WooCommerce', 'User', 'woocommerce_user', 'woo@example.com', '$password', 'en', NULL, NULL, NULL, 1, 0, '0.00', NULL, '2018-08-02 04:05:55', '2018-08-02 04:05:55'), (11, 'Mr', 'Admin Essential', NULL, 'admin-essentials', 'admin_essentials@example.com', '$password', 'en', NULL, NULL, '6wUbpN3xEjDDyQwCfHiGqO7JkIQgjYoDFeQMxcp09YQXq1Ih1e5EqydddBMz', 1, 0, '0.00', NULL, '2018-01-04 02:15:19', '2018-01-04 02:15:19'), (12, 'Mr.', 'mike', 'lee', 'manufacturer-demo', 'manufacturer-demo@demo.com', '$password', 'en', NULL, NULL, NULL, 6, 0, '0.00', NULL, '2019-08-18 13:11:28', '2019-08-18 13:11:28'); "); DB::insert("INSERT INTO brands (id, business_id, name, description, created_by, deleted_at, created_at, updated_at) VALUES (1, 1, 'Levis', NULL, 1, NULL, '2018-01-03 21:19:47', '2018-01-03 21:19:47'), (2, 1, 'Espirit', NULL, 1, NULL, '2018-01-03 21:19:58', '2018-01-03 21:19:58'), (3, 1, 'U.S. Polo Assn.', NULL, 1, NULL, '2018-01-03 21:20:26', '2018-01-03 21:20:26'), (4, 1, 'Nike', NULL, 1, NULL, '2018-01-03 21:20:34', '2018-01-03 21:20:34'), (5, 1, 'Puma', NULL, 1, NULL, '2018-01-03 21:20:40', '2018-01-03 21:20:40'), (6, 1, 'Adidas', NULL, 1, NULL, '2018-01-03 21:20:46', '2018-01-03 21:20:46'), (7, 1, 'Samsung', NULL, 1, NULL, '2018-01-06 05:40:14', '2018-01-06 05:40:14'), (8, 1, 'Apple', NULL, 1, NULL, '2018-01-06 05:40:23', '2018-01-06 05:40:23'), (9, 1, 'Acer', NULL, 1, NULL, '2018-01-06 06:03:37', '2018-01-06 06:03:37'), (10, 1, 'Bowflex', NULL, 1, NULL, '2018-01-06 06:15:31', '2018-01-06 06:15:31'), (11, 1, 'Oreo', NULL, 1, NULL, '2018-01-06 06:35:00', '2018-01-06 06:35:00'), (12, 1, 'Sharewood', NULL, 1, NULL, '2018-01-06 06:40:52', '2018-01-06 06:40:52'), (13, 1, 'Barilla', NULL, 1, NULL, '2018-01-06 06:44:59', '2018-01-06 06:44:59'), (14, 1, 'Lipton', NULL, 1, NULL, '2018-01-06 06:48:12', '2018-01-06 06:48:12'), (15, 2, 'Acino', NULL, 4, NULL, '2018-04-10 08:14:44', '2018-04-10 08:14:44'), (16, 2, 'Cipla', NULL, 4, NULL, '2018-04-10 08:15:04', '2018-04-10 08:15:04'), (17, 2, 'BAYER', NULL, 4, NULL, '2018-04-10 08:15:32', '2018-04-10 08:15:32'), (18, 3, 'Samsung', NULL, 5, NULL, '2018-04-10 10:57:28', '2018-04-10 10:57:28'), (19, 3, 'LG', NULL, 5, NULL, '2018-04-10 10:57:35', '2018-04-10 10:57:35'), (20, 3, 'Apple', NULL, 5, NULL, '2018-04-10 10:57:42', '2018-04-10 10:57:42'), (21, 3, 'Sony', NULL, 5, NULL, '2018-04-10 10:57:49', '2018-04-10 10:57:49'), (22, 3, 'Panasonic', NULL, 5, NULL, '2018-04-10 10:57:57', '2018-04-10 10:57:57'), (23, 3, 'HP', NULL, 5, NULL, '2018-04-10 11:07:21', '2018-04-10 11:07:21'), (24, 4, 'Samsung', NULL, 1, NULL, '2018-01-06 05:40:14', '2018-01-06 05:40:14'), (25, 4, 'Apple', NULL, 1, NULL, '2018-01-06 05:40:23', '2018-01-06 05:40:23')"); $categories = [ ['id' => '1', 'name' => 'Men\'s', 'business_id' => '1', 'short_code' => null, 'parent_id' => '0', 'created_by' => '1', 'category_type' => 'product', 'description' => null, 'slug' => null, 'woocommerce_cat_id' => null, 'deleted_at' => null, 'created_at' => '2018-01-03 21:06:34', 'updated_at' => '2018-01-03 21:06:34'], ['id' => '2', 'name' => 'Women\'s', 'business_id' => '1', 'short_code' => null, 'parent_id' => '0', 'created_by' => '1', 'category_type' => 'product', 'description' => null, 'slug' => null, 'woocommerce_cat_id' => null, 'deleted_at' => null, 'created_at' => '2018-01-03 21:06:46', 'updated_at' => '2018-01-03 21:06:46'], ['id' => '3', 'name' => 'Accessories', 'business_id' => '1', 'short_code' => null, 'parent_id' => '0', 'created_by' => '1', 'category_type' => 'product', 'description' => null, 'slug' => null, 'woocommerce_cat_id' => null, 'deleted_at' => null, 'created_at' => '2018-01-03 21:07:03', 'updated_at' => '2018-01-03 21:07:03'], ['id' => '4', 'name' => 'Jeans', 'business_id' => '1', 'short_code' => null, 'parent_id' => '1', 'created_by' => '1', 'category_type' => 'product', 'description' => null, 'slug' => null, 'woocommerce_cat_id' => null, 'deleted_at' => null, 'created_at' => '2018-01-03 21:07:34', 'updated_at' => '2018-01-03 21:07:34'], ['id' => '5', 'name' => 'Shirts', 'business_id' => '1', 'short_code' => null, 'parent_id' => '1', 'created_by' => '1', 'category_type' => 'product', 'description' => null, 'slug' => null, 'woocommerce_cat_id' => null, 'deleted_at' => null, 'created_at' => '2018-01-03 21:08:18', 'updated_at' => '2018-01-03 21:08:18'], ['id' => '6', 'name' => 'Belts', 'business_id' => '1', 'short_code' => null, 'parent_id' => '3', 'created_by' => '1', 'category_type' => 'product', 'description' => null, 'slug' => null, 'woocommerce_cat_id' => null, 'deleted_at' => null, 'created_at' => '2018-01-03 21:08:41', 'updated_at' => '2018-01-03 21:08:41'], ['id' => '8', 'name' => 'Shoes', 'business_id' => '1', 'short_code' => null, 'parent_id' => '3', 'created_by' => '1', 'category_type' => 'product', 'description' => null, 'slug' => null, 'woocommerce_cat_id' => null, 'deleted_at' => null, 'created_at' => '2018-01-03 21:09:04', 'updated_at' => '2018-01-03 21:09:04'], ['id' => '10', 'name' => 'Sandal', 'business_id' => '1', 'short_code' => null, 'parent_id' => '3', 'created_by' => '1', 'category_type' => 'product', 'description' => null, 'slug' => null, 'woocommerce_cat_id' => null, 'deleted_at' => null, 'created_at' => '2018-01-03 21:09:23', 'updated_at' => '2018-01-03 21:09:23'], ['id' => '11', 'name' => 'Wallets', 'business_id' => '1', 'short_code' => null, 'parent_id' => '3', 'created_by' => '1', 'category_type' => 'product', 'description' => null, 'slug' => null, 'woocommerce_cat_id' => null, 'deleted_at' => null, 'created_at' => '2018-01-03 23:05:50', 'updated_at' => '2018-01-03 23:05:50'], ['id' => '12', 'name' => 'Electronics', 'business_id' => '1', 'short_code' => null, 'parent_id' => '0', 'created_by' => '1', 'category_type' => 'product', 'description' => null, 'slug' => null, 'woocommerce_cat_id' => null, 'deleted_at' => null, 'created_at' => '2018-01-06 05:24:34', 'updated_at' => '2018-01-06 05:24:34'], ['id' => '13', 'name' => 'Cell Phones', 'business_id' => '1', 'short_code' => null, 'parent_id' => '12', 'created_by' => '1', 'category_type' => 'product', 'description' => null, 'slug' => null, 'woocommerce_cat_id' => null, 'deleted_at' => null, 'created_at' => '2018-01-06 05:24:57', 'updated_at' => '2018-01-06 05:24:57'], ['id' => '14', 'name' => 'Computers', 'business_id' => '1', 'short_code' => null, 'parent_id' => '12', 'created_by' => '1', 'category_type' => 'product', 'description' => null, 'slug' => null, 'woocommerce_cat_id' => null, 'deleted_at' => null, 'created_at' => '2018-01-06 05:25:55', 'updated_at' => '2018-01-06 05:25:55'], ['id' => '15', 'name' => 'Sports', 'business_id' => '1', 'short_code' => null, 'parent_id' => '0', 'created_by' => '1', 'category_type' => 'product', 'description' => null, 'slug' => null, 'woocommerce_cat_id' => null, 'deleted_at' => null, 'created_at' => '2018-01-06 05:27:33', 'updated_at' => '2018-01-06 05:27:33'], ['id' => '16', 'name' => 'Athletic Clothing', 'business_id' => '1', 'short_code' => null, 'parent_id' => '15', 'created_by' => '1', 'category_type' => 'product', 'description' => null, 'slug' => null, 'woocommerce_cat_id' => null, 'deleted_at' => null, 'created_at' => '2018-01-06 05:28:40', 'updated_at' => '2018-01-06 05:28:40'], ['id' => '17', 'name' => 'Exercise & Fitness', 'business_id' => '1', 'short_code' => null, 'parent_id' => '15', 'created_by' => '1', 'category_type' => 'product', 'description' => null, 'slug' => null, 'woocommerce_cat_id' => null, 'deleted_at' => null, 'created_at' => '2018-01-06 05:29:19', 'updated_at' => '2018-01-06 05:29:19'], ['id' => '18', 'name' => 'Books', 'business_id' => '1', 'short_code' => null, 'parent_id' => '0', 'created_by' => '1', 'category_type' => 'product', 'description' => null, 'slug' => null, 'woocommerce_cat_id' => null, 'deleted_at' => null, 'created_at' => '2018-01-06 05:29:59', 'updated_at' => '2018-01-06 05:29:59'], ['id' => '19', 'name' => 'Autobiography', 'business_id' => '1', 'short_code' => null, 'parent_id' => '18', 'created_by' => '1', 'category_type' => 'product', 'description' => null, 'slug' => null, 'woocommerce_cat_id' => null, 'deleted_at' => null, 'created_at' => '2018-01-06 05:30:16', 'updated_at' => '2018-01-06 05:30:16'], ['id' => '20', 'name' => 'Children\'s books', 'business_id' => '1', 'short_code' => null, 'parent_id' => '18', 'created_by' => '1', 'category_type' => 'product', 'description' => null, 'slug' => null, 'woocommerce_cat_id' => null, 'deleted_at' => null, 'created_at' => '2018-01-06 05:30:58', 'updated_at' => '2018-01-06 05:30:58'], ['id' => '21', 'name' => 'Food & Grocery', 'business_id' => '1', 'short_code' => null, 'parent_id' => '0', 'created_by' => '1', 'category_type' => 'product', 'description' => null, 'slug' => null, 'woocommerce_cat_id' => null, 'deleted_at' => null, 'created_at' => '2018-01-06 05:31:35', 'updated_at' => '2018-01-06 05:31:35'], ['id' => '22', 'name' => 'Capsule', 'business_id' => '2', 'short_code' => null, 'parent_id' => '0', 'created_by' => '4', 'category_type' => 'product', 'description' => null, 'slug' => null, 'woocommerce_cat_id' => null, 'deleted_at' => null, 'created_at' => '2018-04-10 08:19:58', 'updated_at' => '2018-04-10 08:20:54'], ['id' => '23', 'name' => 'Bandages', 'business_id' => '2', 'short_code' => null, 'parent_id' => '0', 'created_by' => '4', 'category_type' => 'product', 'description' => null, 'slug' => null, 'woocommerce_cat_id' => null, 'deleted_at' => null, 'created_at' => '2018-04-10 08:20:48', 'updated_at' => '2018-04-10 08:20:48'], ['id' => '24', 'name' => 'Cream', 'business_id' => '2', 'short_code' => null, 'parent_id' => '0', 'created_by' => '4', 'category_type' => 'product', 'description' => null, 'slug' => null, 'woocommerce_cat_id' => null, 'deleted_at' => null, 'created_at' => '2018-04-10 08:21:23', 'updated_at' => '2018-04-10 08:21:23'], ['id' => '25', 'name' => 'Drops', 'business_id' => '2', 'short_code' => null, 'parent_id' => '0', 'created_by' => '4', 'category_type' => 'product', 'description' => null, 'slug' => null, 'woocommerce_cat_id' => null, 'deleted_at' => null, 'created_at' => '2018-04-10 08:21:31', 'updated_at' => '2018-04-10 08:21:31'], ['id' => '26', 'name' => 'Gel', 'business_id' => '2', 'short_code' => null, 'parent_id' => '0', 'created_by' => '4', 'category_type' => 'product', 'description' => null, 'slug' => null, 'woocommerce_cat_id' => null, 'deleted_at' => null, 'created_at' => '2018-04-10 08:21:57', 'updated_at' => '2018-04-10 08:21:57'], ['id' => '27', 'name' => 'Bottle', 'business_id' => '2', 'short_code' => null, 'parent_id' => '0', 'created_by' => '4', 'category_type' => 'product', 'description' => null, 'slug' => null, 'woocommerce_cat_id' => null, 'deleted_at' => null, 'created_at' => '2018-04-10 08:22:30', 'updated_at' => '2018-04-10 08:22:30'], ['id' => '28', 'name' => 'Mobile Phones', 'business_id' => '3', 'short_code' => null, 'parent_id' => '0', 'created_by' => '5', 'category_type' => 'product', 'description' => null, 'slug' => null, 'woocommerce_cat_id' => null, 'deleted_at' => null, 'created_at' => '2018-04-10 10:59:49', 'updated_at' => '2018-04-10 10:59:49'], ['id' => '29', 'name' => 'Tablets', 'business_id' => '3', 'short_code' => null, 'parent_id' => '0', 'created_by' => '5', 'category_type' => 'product', 'description' => null, 'slug' => null, 'woocommerce_cat_id' => null, 'deleted_at' => null, 'created_at' => '2018-04-10 11:00:02', 'updated_at' => '2018-04-10 11:00:02'], ['id' => '30', 'name' => 'Laptops', 'business_id' => '3', 'short_code' => null, 'parent_id' => '0', 'created_by' => '5', 'category_type' => 'product', 'description' => null, 'slug' => null, 'woocommerce_cat_id' => null, 'deleted_at' => null, 'created_at' => '2018-04-10 11:00:09', 'updated_at' => '2018-04-10 11:00:09'], ['id' => '31', 'name' => 'TVs', 'business_id' => '3', 'short_code' => null, 'parent_id' => '0', 'created_by' => '5', 'category_type' => 'product', 'description' => null, 'slug' => null, 'woocommerce_cat_id' => null, 'deleted_at' => null, 'created_at' => '2018-04-10 11:00:15', 'updated_at' => '2018-04-10 11:00:15'], ['id' => '32', 'name' => 'Cameras', 'business_id' => '3', 'short_code' => null, 'parent_id' => '0', 'created_by' => '5', 'category_type' => 'product', 'description' => null, 'slug' => null, 'woocommerce_cat_id' => null, 'deleted_at' => null, 'created_at' => '2018-04-10 11:00:29', 'updated_at' => '2018-04-10 11:00:29'], ['id' => '33', 'name' => 'Accessories', 'business_id' => '3', 'short_code' => null, 'parent_id' => '0', 'created_by' => '5', 'category_type' => 'product', 'description' => null, 'slug' => null, 'woocommerce_cat_id' => null, 'deleted_at' => null, 'created_at' => '2018-04-10 11:00:57', 'updated_at' => '2018-04-10 11:00:57'], ['id' => '34', 'name' => 'Car Services', 'business_id' => '4', 'short_code' => null, 'parent_id' => '0', 'created_by' => '6', 'category_type' => 'product', 'description' => null, 'slug' => null, 'woocommerce_cat_id' => null, 'deleted_at' => null, 'created_at' => '2018-04-10 12:25:33', 'updated_at' => '2018-04-10 12:30:10'], ['id' => '35', 'name' => 'Hair Styling', 'business_id' => '4', 'short_code' => null, 'parent_id' => '0', 'created_by' => '6', 'category_type' => 'product', 'description' => null, 'slug' => null, 'woocommerce_cat_id' => null, 'deleted_at' => null, 'created_at' => '2018-04-10 12:28:32', 'updated_at' => '2018-04-10 12:29:18'], ['id' => '36', 'name' => 'Plumbing', 'business_id' => '4', 'short_code' => null, 'parent_id' => '0', 'created_by' => '6', 'category_type' => 'product', 'description' => null, 'slug' => null, 'woocommerce_cat_id' => null, 'deleted_at' => null, 'created_at' => '2018-04-10 12:30:41', 'updated_at' => '2018-04-10 12:30:41'], ['id' => '37', 'name' => 'Bodycare', 'business_id' => '4', 'short_code' => null, 'parent_id' => '0', 'created_by' => '6', 'category_type' => 'product', 'description' => null, 'slug' => null, 'woocommerce_cat_id' => null, 'deleted_at' => null, 'created_at' => '2018-04-10 12:30:52', 'updated_at' => '2018-04-10 12:30:52'], ['id' => '38', 'name' => 'Spa', 'business_id' => '4', 'short_code' => null, 'parent_id' => '0', 'created_by' => '6', 'category_type' => 'product', 'description' => null, 'slug' => null, 'woocommerce_cat_id' => null, 'deleted_at' => null, 'created_at' => '2018-04-10 12:31:01', 'updated_at' => '2018-04-10 12:31:01'], ['id' => '39', 'name' => 'Starter', 'business_id' => '5', 'short_code' => null, 'parent_id' => '0', 'created_by' => '7', 'category_type' => 'product', 'description' => null, 'slug' => null, 'woocommerce_cat_id' => null, 'deleted_at' => null, 'created_at' => '2018-07-13 00:49:08', 'updated_at' => '2018-07-13 00:49:08'], ['id' => '40', 'name' => 'Main Menu', 'business_id' => '5', 'short_code' => null, 'parent_id' => '0', 'created_by' => '7', 'category_type' => 'product', 'description' => null, 'slug' => null, 'woocommerce_cat_id' => null, 'deleted_at' => null, 'created_at' => '2018-07-13 00:49:24', 'updated_at' => '2018-07-13 00:49:24'], ['id' => '41', 'name' => 'Salad', 'business_id' => '5', 'short_code' => null, 'parent_id' => '0', 'created_by' => '7', 'category_type' => 'product', 'description' => null, 'slug' => null, 'woocommerce_cat_id' => null, 'deleted_at' => null, 'created_at' => '2018-07-13 00:50:15', 'updated_at' => '2018-07-13 00:50:15'], ['id' => '42', 'name' => 'Pizza', 'business_id' => '5', 'short_code' => null, 'parent_id' => '0', 'created_by' => '7', 'category_type' => 'product', 'description' => null, 'slug' => null, 'woocommerce_cat_id' => null, 'deleted_at' => null, 'created_at' => '2018-07-13 00:50:29', 'updated_at' => '2018-07-13 00:50:29'], ['id' => '43', 'name' => 'Desserts', 'business_id' => '5', 'short_code' => null, 'parent_id' => '0', 'created_by' => '7', 'category_type' => 'product', 'description' => null, 'slug' => null, 'woocommerce_cat_id' => null, 'deleted_at' => null, 'created_at' => '2018-07-13 00:50:40', 'updated_at' => '2018-07-13 00:50:40'], ['id' => '44', 'name' => 'Drinks', 'business_id' => '5', 'short_code' => null, 'parent_id' => '0', 'created_by' => '7', 'category_type' => 'product', 'description' => null, 'slug' => null, 'woocommerce_cat_id' => null, 'deleted_at' => null, 'created_at' => '2018-07-13 00:50:54', 'updated_at' => '2018-07-13 00:50:54'], ['id' => '45', 'name' => 'Bakery and Snacks', 'business_id' => '5', 'short_code' => null, 'parent_id' => '0', 'created_by' => '7', 'category_type' => 'product', 'description' => null, 'slug' => null, 'woocommerce_cat_id' => null, 'deleted_at' => null, 'created_at' => '2018-07-13 01:58:40', 'updated_at' => '2018-07-13 01:58:40'], ['id' => '46', 'name' => 'Laptop', 'business_id' => '4', 'short_code' => null, 'parent_id' => '0', 'created_by' => '1', 'category_type' => 'device', 'description' => 'Laptop', 'slug' => null, 'woocommerce_cat_id' => null, 'deleted_at' => null, 'created_at' => '2020-05-07 21:04:38', 'updated_at' => '2020-05-07 21:04:38'], ['id' => '47', 'name' => 'Desktop', 'business_id' => '4', 'short_code' => null, 'parent_id' => '0', 'created_by' => '1', 'category_type' => 'device', 'description' => 'Desktop', 'slug' => null, 'woocommerce_cat_id' => null, 'deleted_at' => null, 'created_at' => '2020-05-07 21:04:47', 'updated_at' => '2020-05-07 21:04:47'], ['id' => '48', 'name' => 'Mobile', 'business_id' => '4', 'short_code' => null, 'parent_id' => '0', 'created_by' => '1', 'category_type' => 'device', 'description' => 'Mobile', 'slug' => null, 'woocommerce_cat_id' => null, 'deleted_at' => null, 'created_at' => '2020-05-07 21:05:01', 'updated_at' => '2020-05-07 21:05:01'], ]; DB::table('categories')->insert($categories); $contacts = [ ['id' => '1', 'business_id' => '1', 'type' => 'customer', 'supplier_business_name' => null, 'first_name' => 'Walk-In Customer', 'name' => 'Walk-In Customer', 'email' => null, 'contact_id' => 'CO0005', 'tax_number' => null, 'city' => 'Phoenix', 'state' => 'Arizona', 'country' => 'USA', 'address_line_1' => 'Linking Street', 'mobile' => '(378) 400-1234', 'landline' => null, 'alternate_number' => null, 'pay_term_number' => null, 'pay_term_type' => null, 'created_by' => '1', 'is_default' => '1', 'customer_group_id' => null, 'custom_field1' => null, 'custom_field2' => null, 'custom_field3' => null, 'custom_field4' => null, 'deleted_at' => null, 'created_at' => '2018-01-03 20:45:20', 'updated_at' => '2018-06-11 22:22:05'], ['id' => '2', 'business_id' => '1', 'type' => 'supplier', 'supplier_business_name' => 'Alpha Clothings', 'first_name' => 'Michael', 'name' => 'Michael', 'email' => null, 'contact_id' => 'CO0001', 'tax_number' => '4590091535', 'city' => 'Phoenix', 'state' => 'Arizona', 'country' => 'USA', 'address_line_1' => 'Linking Street', 'mobile' => '(378) 400-1234', 'landline' => null, 'alternate_number' => null, 'pay_term_number' => '15', 'pay_term_type' => 'days', 'created_by' => '1', 'is_default' => '0', 'customer_group_id' => null, 'custom_field1' => null, 'custom_field2' => null, 'custom_field3' => null, 'custom_field4' => null, 'deleted_at' => null, 'created_at' => '2018-01-03 20:59:38', 'updated_at' => '2018-06-11 22:21:03'], ['id' => '3', 'business_id' => '1', 'type' => 'supplier', 'supplier_business_name' => 'Manhattan Clothing Ltd.', 'first_name' => 'Philip', 'name' => 'Philip', 'email' => null, 'contact_id' => 'CO0003', 'tax_number' => '54869310093', 'city' => 'Phoenix', 'state' => 'Arizona', 'country' => 'USA', 'address_line_1' => 'Linking Street', 'mobile' => '(378) 400-1234', 'landline' => null, 'alternate_number' => null, 'pay_term_number' => '15', 'pay_term_type' => 'days', 'created_by' => '1', 'is_default' => '0', 'customer_group_id' => null, 'custom_field1' => null, 'custom_field2' => null, 'custom_field3' => null, 'custom_field4' => null, 'deleted_at' => null, 'created_at' => '2018-01-03 21:00:55', 'updated_at' => '2018-06-11 22:21:36'], ['id' => '4', 'business_id' => '1', 'type' => 'customer', 'supplier_business_name' => null, 'first_name' => 'Harry', 'name' => 'Harry', 'email' => null, 'contact_id' => 'CO0006', 'tax_number' => null, 'city' => 'Phoenix', 'state' => 'Arizona', 'country' => 'USA', 'address_line_1' => 'Linking Street', 'mobile' => '(378) 400-1234', 'landline' => null, 'alternate_number' => null, 'pay_term_number' => null, 'pay_term_type' => null, 'created_by' => '1', 'is_default' => '0', 'customer_group_id' => null, 'custom_field1' => null, 'custom_field2' => null, 'custom_field3' => null, 'custom_field4' => null, 'deleted_at' => null, 'created_at' => '2018-01-03 21:01:40', 'updated_at' => '2018-06-11 22:22:16'], ['id' => '5', 'business_id' => '1', 'type' => 'supplier', 'supplier_business_name' => 'Digital Ocean', 'first_name' => 'Mike McCubbin', 'name' => 'Mike McCubbin', 'email' => null, 'contact_id' => 'CN0004', 'tax_number' => '52965489001', 'city' => 'Phoenix', 'state' => 'Arizona', 'country' => 'USA', 'address_line_1' => 'Linking Street', 'mobile' => '(378) 400-1234', 'landline' => null, 'alternate_number' => null, 'pay_term_number' => '30', 'pay_term_type' => 'days', 'created_by' => '1', 'is_default' => '0', 'customer_group_id' => null, 'custom_field1' => null, 'custom_field2' => null, 'custom_field3' => null, 'custom_field4' => null, 'deleted_at' => null, 'created_at' => '2018-01-06 06:53:22', 'updated_at' => '2018-06-11 22:21:47'], ['id' => '6', 'business_id' => '1', 'type' => 'supplier', 'supplier_business_name' => 'Univer Suppliers', 'first_name' => 'Jackson Hill', 'name' => 'Jackson Hill', 'email' => null, 'contact_id' => 'CO0002', 'tax_number' => '5459000655', 'city' => 'Phoenix', 'state' => 'Arizona', 'country' => 'USA', 'address_line_1' => 'Linking Street', 'mobile' => '(378) 400-1234', 'landline' => null, 'alternate_number' => null, 'pay_term_number' => '45', 'pay_term_type' => 'days', 'created_by' => '1', 'is_default' => '0', 'customer_group_id' => null, 'custom_field1' => null, 'custom_field2' => null, 'custom_field3' => null, 'custom_field4' => null, 'deleted_at' => null, 'created_at' => '2018-01-06 06:55:09', 'updated_at' => '2018-06-11 22:21:18'], ['id' => '7', 'business_id' => '2', 'type' => 'customer', 'supplier_business_name' => null, 'first_name' => 'Walk-In Customer', 'name' => 'Walk-In Customer', 'email' => null, 'contact_id' => null, 'tax_number' => null, 'city' => null, 'state' => null, 'country' => null, 'address_line_1' => null, 'mobile' => '', 'landline' => null, 'alternate_number' => null, 'pay_term_number' => null, 'pay_term_type' => null, 'created_by' => '4', 'is_default' => '1', 'customer_group_id' => null, 'custom_field1' => null, 'custom_field2' => null, 'custom_field3' => null, 'custom_field4' => null, 'deleted_at' => null, 'created_at' => '2018-04-10 08:12:40', 'updated_at' => '2018-04-10 08:12:40'], ['id' => '8', 'business_id' => '2', 'type' => 'supplier', 'supplier_business_name' => 'Jones Pharma', 'first_name' => 'Micheal Larson', 'name' => 'Micheal Larson', 'email' => null, 'contact_id' => '522500003', 'tax_number' => null, 'city' => 'Phoenix', 'state' => 'Arizona', 'country' => 'USA', 'address_line_1' => null, 'mobile' => '(378) 400-1234', 'landline' => null, 'alternate_number' => null, 'pay_term_number' => '30', 'pay_term_type' => 'days', 'created_by' => '4', 'is_default' => '0', 'customer_group_id' => null, 'custom_field1' => null, 'custom_field2' => null, 'custom_field3' => null, 'custom_field4' => null, 'deleted_at' => null, 'created_at' => '2018-04-10 10:02:52', 'updated_at' => '2018-04-10 10:02:52'], ['id' => '9', 'business_id' => '2', 'type' => 'supplier', 'supplier_business_name' => 'Axolotl Biologix', 'first_name' => 'Phillip Jenner', 'name' => 'Phillip Jenner', 'email' => null, 'contact_id' => '4585220005', 'tax_number' => null, 'city' => 'Phoenix', 'state' => 'Arizona', 'country' => 'USA', 'address_line_1' => null, 'mobile' => '(378) 400-1234', 'landline' => null, 'alternate_number' => null, 'pay_term_number' => '30', 'pay_term_type' => 'days', 'created_by' => '4', 'is_default' => '0', 'customer_group_id' => null, 'custom_field1' => null, 'custom_field2' => null, 'custom_field3' => null, 'custom_field4' => null, 'deleted_at' => null, 'created_at' => '2018-04-10 10:04:20', 'updated_at' => '2018-04-10 10:04:20'], ['id' => '10', 'business_id' => '3', 'type' => 'customer', 'supplier_business_name' => null, 'first_name' => 'Walk-In Customer', 'name' => 'Walk-In Customer', 'email' => null, 'contact_id' => null, 'tax_number' => null, 'city' => null, 'state' => null, 'country' => null, 'address_line_1' => null, 'mobile' => '', 'landline' => null, 'alternate_number' => null, 'pay_term_number' => null, 'pay_term_type' => null, 'created_by' => '5', 'is_default' => '1', 'customer_group_id' => null, 'custom_field1' => null, 'custom_field2' => null, 'custom_field3' => null, 'custom_field4' => null, 'deleted_at' => null, 'created_at' => '2018-04-10 10:46:16', 'updated_at' => '2018-04-10 10:46:16'], ['id' => '11', 'business_id' => '3', 'type' => 'supplier', 'supplier_business_name' => 'Digital Ocean', 'first_name' => 'Micheal Krick', 'name' => 'Micheal Krick', 'email' => null, 'contact_id' => '12500079', 'tax_number' => null, 'city' => 'Phoenix', 'state' => 'Arizona', 'country' => 'USA', 'address_line_1' => null, 'mobile' => '(378) 400-1234', 'landline' => null, 'alternate_number' => null, 'pay_term_number' => '30', 'pay_term_type' => 'days', 'created_by' => '5', 'is_default' => '0', 'customer_group_id' => null, 'custom_field1' => null, 'custom_field2' => null, 'custom_field3' => null, 'custom_field4' => null, 'deleted_at' => null, 'created_at' => '2018-04-10 11:36:21', 'updated_at' => '2018-04-10 11:36:21'], ['id' => '12', 'business_id' => '3', 'type' => 'supplier', 'supplier_business_name' => 'Neon Electronics', 'first_name' => 'Samuel Williams', 'name' => 'Samuel Williams', 'email' => null, 'contact_id' => '525800083', 'tax_number' => null, 'city' => 'Phoenix', 'state' => 'Arizona', 'country' => 'USA', 'address_line_1' => null, 'mobile' => '(378) 400-1234', 'landline' => null, 'alternate_number' => null, 'pay_term_number' => '30', 'pay_term_type' => 'days', 'created_by' => '5', 'is_default' => '0', 'customer_group_id' => null, 'custom_field1' => null, 'custom_field2' => null, 'custom_field3' => null, 'custom_field4' => null, 'deleted_at' => null, 'created_at' => '2018-04-10 11:38:33', 'updated_at' => '2018-04-10 11:38:33'], ['id' => '13', 'business_id' => '4', 'type' => 'customer', 'supplier_business_name' => null, 'first_name' => 'Walk-In Customer', 'name' => 'Walk-In Customer', 'email' => null, 'contact_id' => null, 'tax_number' => null, 'city' => null, 'state' => null, 'country' => null, 'address_line_1' => null, 'mobile' => '', 'landline' => null, 'alternate_number' => null, 'pay_term_number' => null, 'pay_term_type' => null, 'created_by' => '6', 'is_default' => '1', 'customer_group_id' => null, 'custom_field1' => null, 'custom_field2' => null, 'custom_field3' => null, 'custom_field4' => null, 'deleted_at' => null, 'created_at' => '2018-04-10 12:20:43', 'updated_at' => '2018-04-10 12:20:43'], ['id' => '14', 'business_id' => '5', 'type' => 'customer', 'supplier_business_name' => null, 'first_name' => 'Walk-In Customer', 'name' => 'Walk-In Customer', 'email' => null, 'contact_id' => 'CO0001', 'tax_number' => null, 'city' => null, 'state' => null, 'country' => null, 'address_line_1' => null, 'mobile' => '', 'landline' => null, 'alternate_number' => null, 'pay_term_number' => null, 'pay_term_type' => null, 'created_by' => '7', 'is_default' => '1', 'customer_group_id' => null, 'custom_field1' => null, 'custom_field2' => null, 'custom_field3' => null, 'custom_field4' => null, 'deleted_at' => null, 'created_at' => '2018-07-13 16:42:11', 'updated_at' => '2018-07-13 16:42:11'], ['id' => '15', 'business_id' => '5', 'type' => 'supplier', 'supplier_business_name' => 'Perfect Bakers', 'first_name' => 'Thomas Willson', 'name' => 'Thomas Willson', 'email' => 'thomas@example.com', 'contact_id' => 'CO0002', 'tax_number' => '45781005', 'city' => null, 'state' => null, 'country' => null, 'address_line_1' => null, 'mobile' => '87850009358', 'landline' => null, 'alternate_number' => null, 'pay_term_number' => '10', 'pay_term_type' => 'months', 'created_by' => '7', 'is_default' => '0', 'customer_group_id' => null, 'custom_field1' => null, 'custom_field2' => null, 'custom_field3' => null, 'custom_field4' => null, 'deleted_at' => null, 'created_at' => '2018-07-13 07:33:50', 'updated_at' => '2018-07-13 07:33:50'], ['id' => '16', 'business_id' => '6', 'type' => 'customer', 'supplier_business_name' => null, 'first_name' => 'Walk-In Customer', 'name' => 'Walk-In Customer', 'email' => null, 'contact_id' => null, 'tax_number' => null, 'city' => null, 'state' => null, 'country' => null, 'address_line_1' => null, 'mobile' => '', 'landline' => null, 'alternate_number' => null, 'pay_term_number' => null, 'pay_term_type' => null, 'created_by' => '12', 'is_default' => '1', 'customer_group_id' => null, 'custom_field1' => null, 'custom_field2' => null, 'custom_field3' => null, 'custom_field4' => null, 'deleted_at' => null, 'created_at' => '2018-04-10 08:12:40', 'updated_at' => '2018-04-10 08:12:40'], ]; DB::table('contacts')->insert($contacts); $reference_counts = [ ['id' => '1', 'ref_type' => 'purchase', 'ref_count' => '1', 'business_id' => '1', 'created_at' => '2018-06-11 22:17:07', 'updated_at' => '2018-06-11 22:17:07'], ['id' => '2', 'ref_type' => 'contacts', 'ref_count' => '6', 'business_id' => '1', 'created_at' => '2018-06-11 22:17:07', 'updated_at' => '2018-06-11 22:17:07'], ['id' => '3', 'ref_type' => 'contacts', 'ref_count' => '2', 'business_id' => '5', 'created_at' => '2018-07-13 16:42:11', 'updated_at' => '2018-07-13 07:33:50'], ['id' => '4', 'ref_type' => 'business_location', 'ref_count' => '1', 'business_id' => '5', 'created_at' => '2018-07-13 16:42:11', 'updated_at' => '2018-07-13 16:42:11'], ['id' => '5', 'ref_type' => 'purchase', 'ref_count' => '2', 'business_id' => '5', 'created_at' => '2018-07-13 07:34:45', 'updated_at' => '2018-07-13 07:38:24'], ['id' => '6', 'ref_type' => 'sell_payment', 'ref_count' => '4', 'business_id' => '5', 'created_at' => '2018-07-13 07:44:40', 'updated_at' => '2018-07-13 07:46:36'], ['id' => '7', 'ref_type' => 'contacts', 'ref_count' => '1', 'business_id' => '6', 'created_at' => '2019-08-18 18:41:28', 'updated_at' => '2019-08-18 18:41:28'], ['id' => '8', 'ref_type' => 'business_location', 'ref_count' => '1', 'business_id' => '6', 'created_at' => '2019-08-18 18:41:28', 'updated_at' => '2019-08-18 18:41:28'], ['id' => '9', 'ref_type' => 'production_purchase', 'ref_count' => '1', 'business_id' => '6', 'created_at' => '2019-08-18 19:09:19', 'updated_at' => '2019-08-18 19:09:19'], ]; DB::table('reference_counts')->insert($reference_counts); $res_tables = [ ['id' => '1', 'business_id' => '5', 'location_id' => '5', 'name' => 'Table 1', 'description' => null, 'created_by' => '7', 'deleted_at' => null, 'created_at' => '2018-07-13 07:40:57', 'updated_at' => '2018-07-13 07:40:57'], ['id' => '2', 'business_id' => '5', 'location_id' => '5', 'name' => 'Table 2', 'description' => null, 'created_by' => '7', 'deleted_at' => null, 'created_at' => '2018-07-13 07:41:04', 'updated_at' => '2018-07-13 07:41:04'], ['id' => '3', 'business_id' => '5', 'location_id' => '5', 'name' => 'Table 3', 'description' => null, 'created_by' => '7', 'deleted_at' => null, 'created_at' => '2018-07-13 07:41:10', 'updated_at' => '2018-07-13 07:41:10'], ['id' => '4', 'business_id' => '5', 'location_id' => '5', 'name' => 'Table 4', 'description' => null, 'created_by' => '7', 'deleted_at' => null, 'created_at' => '2018-07-13 07:41:17', 'updated_at' => '2018-07-13 07:41:17'], ]; DB::table('res_tables')->insert($res_tables); DB::insert("INSERT INTO tax_rates (id, business_id, name, amount, is_tax_group, created_by, deleted_at, created_at, updated_at) VALUES (1, 1, 'VAT@10%', 10.00, 0, 1, NULL, '2018-01-04 02:40:07', '2018-01-04 02:40:07'), (2, 1, 'CGST@10%', 10.00, 0, 1, NULL, '2018-01-04 02:40:55', '2018-01-04 02:40:55'), (3, 1, 'SGST@8%', 8.00, 0, 1, NULL, '2018-01-04 02:41:13', '2018-01-04 02:41:13'), (4, 1, 'GST@18%', 18.00, 1, 1, NULL, '2018-01-04 02:42:19', '2018-01-04 02:42:19')"); DB::insert('INSERT INTO group_sub_taxes (group_tax_id, tax_id) VALUES (4, 2), (4, 3)'); DB::insert("INSERT INTO invoice_schemes (id, business_id, name, scheme_type, prefix, start_number, invoice_count, total_digits, is_default, created_at, updated_at) VALUES (1, 1, 'Default', 'blank', 'AS', 1, 5, 4, 1, '2018-01-04 02:15:20', '2018-01-04 02:45:16'), (2, 2, 'Default', 'blank', 'AP', 1, 3, 4, 1, '2018-04-10 08:12:40', '2018-04-10 10:26:12'), (3, 3, 'Default', 'blank', 'AE', 1, 5, 4, 1, '2018-04-10 10:46:16', '2018-04-10 11:54:16'), (4, 4, 'Default', 'blank', '', 1, 8, 4, 1, '2018-04-10 12:20:43', '2018-04-10 13:08:49'), (5, 5, 'Default', 'blank', '', 1, 4, 4, 1, '2018-07-13 11:12:11', '2018-07-13 02:16:36'), (6, 6, 'Default', 'blank', '', 1, 4, 4, 1, '2018-07-13 11:12:11', '2018-07-13 02:16:36')"); $invoice_layouts = [ ['id' => '1', 'name' => 'Default', 'header_text' => null, 'invoice_no_prefix' => 'Invoice No.', 'quotation_no_prefix' => null, 'invoice_heading' => 'Invoice', 'sub_heading_line1' => null, 'sub_heading_line2' => null, 'sub_heading_line3' => null, 'sub_heading_line4' => null, 'sub_heading_line5' => null, 'invoice_heading_not_paid' => '', 'invoice_heading_paid' => '', 'quotation_heading' => null, 'sub_total_label' => 'Subtotal', 'discount_label' => 'Discount', 'tax_label' => 'Tax', 'total_label' => 'Total', 'total_due_label' => 'Total Due', 'paid_label' => 'Total Paid', 'show_client_id' => '0', 'client_id_label' => null, 'client_tax_label' => null, 'date_label' => 'Date', 'show_time' => '1', 'show_brand' => '0', 'show_sku' => '1', 'show_cat_code' => '1', 'show_sale_description' => '0', 'table_product_label' => 'Product', 'table_qty_label' => 'Quantity', 'table_unit_price_label' => 'Unit Price', 'table_subtotal_label' => 'Subtotal', 'cat_code_label' => null, 'logo' => null, 'show_logo' => '0', 'show_business_name' => '0', 'show_location_name' => '1', 'show_landmark' => '1', 'show_city' => '1', 'show_state' => '1', 'show_zip_code' => '1', 'show_country' => '1', 'show_mobile_number' => '1', 'show_alternate_number' => '0', 'show_email' => '0', 'show_tax_1' => '1', 'show_tax_2' => '0', 'show_barcode' => '0', 'show_payments' => '1', 'show_customer' => '1', 'customer_label' => 'Customer', 'highlight_color' => '#000000', 'footer_text' => '', 'module_info' => null, 'is_default' => '1', 'business_id' => '1', 'design' => 'classic', 'cn_heading' => null, 'cn_no_label' => null, 'cn_amount_label' => null, 'created_at' => '2018-04-03 23:35:32', 'updated_at' => '2018-04-03 23:35:32'], ['id' => '2', 'name' => 'Default', 'header_text' => null, 'invoice_no_prefix' => 'Invoice No.', 'quotation_no_prefix' => null, 'invoice_heading' => 'Invoice', 'sub_heading_line1' => null, 'sub_heading_line2' => null, 'sub_heading_line3' => null, 'sub_heading_line4' => null, 'sub_heading_line5' => null, 'invoice_heading_not_paid' => '', 'invoice_heading_paid' => '', 'quotation_heading' => null, 'sub_total_label' => 'Subtotal', 'discount_label' => 'Discount', 'tax_label' => 'Tax', 'total_label' => 'Total', 'total_due_label' => 'Total Due', 'paid_label' => 'Total Paid', 'show_client_id' => '0', 'client_id_label' => null, 'client_tax_label' => null, 'date_label' => 'Date', 'show_time' => '1', 'show_brand' => '0', 'show_sku' => '1', 'show_cat_code' => '1', 'show_sale_description' => '0', 'table_product_label' => 'Product', 'table_qty_label' => 'Quantity', 'table_unit_price_label' => 'Unit Price', 'table_subtotal_label' => 'Subtotal', 'cat_code_label' => null, 'logo' => null, 'show_logo' => '0', 'show_business_name' => '0', 'show_location_name' => '1', 'show_landmark' => '1', 'show_city' => '1', 'show_state' => '1', 'show_zip_code' => '1', 'show_country' => '1', 'show_mobile_number' => '1', 'show_alternate_number' => '0', 'show_email' => '0', 'show_tax_1' => '1', 'show_tax_2' => '0', 'show_barcode' => '0', 'show_payments' => '1', 'show_customer' => '1', 'customer_label' => 'Customer', 'highlight_color' => '#000000', 'footer_text' => '', 'module_info' => null, 'is_default' => '1', 'business_id' => '2', 'design' => 'classic', 'cn_heading' => null, 'cn_no_label' => null, 'cn_amount_label' => null, 'created_at' => '2018-04-10 08:12:40', 'updated_at' => '2018-04-10 08:12:40'], ['id' => '3', 'name' => 'Default', 'header_text' => null, 'invoice_no_prefix' => 'Invoice No.', 'quotation_no_prefix' => null, 'invoice_heading' => 'Invoice', 'sub_heading_line1' => null, 'sub_heading_line2' => null, 'sub_heading_line3' => null, 'sub_heading_line4' => null, 'sub_heading_line5' => null, 'invoice_heading_not_paid' => '', 'invoice_heading_paid' => '', 'quotation_heading' => null, 'sub_total_label' => 'Subtotal', 'discount_label' => 'Discount', 'tax_label' => 'Tax', 'total_label' => 'Total', 'total_due_label' => 'Total Due', 'paid_label' => 'Total Paid', 'show_client_id' => '0', 'client_id_label' => null, 'client_tax_label' => null, 'date_label' => 'Date', 'show_time' => '1', 'show_brand' => '0', 'show_sku' => '1', 'show_cat_code' => '1', 'show_sale_description' => '0', 'table_product_label' => 'Product', 'table_qty_label' => 'Quantity', 'table_unit_price_label' => 'Unit Price', 'table_subtotal_label' => 'Subtotal', 'cat_code_label' => null, 'logo' => null, 'show_logo' => '0', 'show_business_name' => '0', 'show_location_name' => '1', 'show_landmark' => '1', 'show_city' => '1', 'show_state' => '1', 'show_zip_code' => '1', 'show_country' => '1', 'show_mobile_number' => '1', 'show_alternate_number' => '0', 'show_email' => '0', 'show_tax_1' => '1', 'show_tax_2' => '0', 'show_barcode' => '0', 'show_payments' => '1', 'show_customer' => '1', 'customer_label' => 'Customer', 'highlight_color' => '#000000', 'footer_text' => '', 'module_info' => null, 'is_default' => '1', 'business_id' => '3', 'design' => 'classic', 'cn_heading' => null, 'cn_no_label' => null, 'cn_amount_label' => null, 'created_at' => '2018-04-10 10:46:16', 'updated_at' => '2018-04-10 10:46:16'], ['id' => '4', 'name' => 'Default', 'header_text' => null, 'invoice_no_prefix' => 'Invoice No.', 'quotation_no_prefix' => null, 'invoice_heading' => 'Invoice', 'sub_heading_line1' => null, 'sub_heading_line2' => null, 'sub_heading_line3' => null, 'sub_heading_line4' => null, 'sub_heading_line5' => null, 'invoice_heading_not_paid' => '', 'invoice_heading_paid' => '', 'quotation_heading' => null, 'sub_total_label' => 'Subtotal', 'discount_label' => 'Discount', 'tax_label' => 'Tax', 'total_label' => 'Total', 'total_due_label' => 'Total Due', 'paid_label' => 'Total Paid', 'show_client_id' => '0', 'client_id_label' => null, 'client_tax_label' => null, 'date_label' => 'Date', 'show_time' => '1', 'show_brand' => '0', 'show_sku' => '1', 'show_cat_code' => '1', 'show_sale_description' => '0', 'table_product_label' => 'Product', 'table_qty_label' => 'Quantity', 'table_unit_price_label' => 'Unit Price', 'table_subtotal_label' => 'Subtotal', 'cat_code_label' => null, 'logo' => null, 'show_logo' => '0', 'show_business_name' => '0', 'show_location_name' => '1', 'show_landmark' => '1', 'show_city' => '1', 'show_state' => '1', 'show_zip_code' => '1', 'show_country' => '1', 'show_mobile_number' => '1', 'show_alternate_number' => '0', 'show_email' => '0', 'show_tax_1' => '1', 'show_tax_2' => '0', 'show_barcode' => '0', 'show_payments' => '1', 'show_customer' => '1', 'customer_label' => 'Customer', 'highlight_color' => '#000000', 'footer_text' => '', 'module_info' => null, 'is_default' => '1', 'business_id' => '4', 'design' => 'classic', 'cn_heading' => null, 'cn_no_label' => null, 'cn_amount_label' => null, 'created_at' => '2018-04-10 12:20:43', 'updated_at' => '2018-04-10 12:20:43'], ['id' => '5', 'name' => 'Default', 'header_text' => null, 'invoice_no_prefix' => 'Invoice No.', 'quotation_no_prefix' => null, 'invoice_heading' => 'Invoice', 'sub_heading_line1' => null, 'sub_heading_line2' => null, 'sub_heading_line3' => null, 'sub_heading_line4' => null, 'sub_heading_line5' => null, 'invoice_heading_not_paid' => '', 'invoice_heading_paid' => '', 'quotation_heading' => null, 'sub_total_label' => 'Subtotal', 'discount_label' => 'Discount', 'tax_label' => 'Tax', 'total_label' => 'Total', 'total_due_label' => 'Total Due', 'paid_label' => 'Total Paid', 'show_client_id' => '0', 'client_id_label' => null, 'client_tax_label' => null, 'date_label' => 'Date', 'show_time' => '1', 'show_brand' => '0', 'show_sku' => '1', 'show_cat_code' => '1', 'show_sale_description' => '0', 'table_product_label' => 'Product', 'table_qty_label' => 'Quantity', 'table_unit_price_label' => 'Unit Price', 'table_subtotal_label' => 'Subtotal', 'cat_code_label' => null, 'logo' => null, 'show_logo' => '0', 'show_business_name' => '0', 'show_location_name' => '1', 'show_landmark' => '1', 'show_city' => '1', 'show_state' => '1', 'show_zip_code' => '1', 'show_country' => '1', 'show_mobile_number' => '1', 'show_alternate_number' => '0', 'show_email' => '0', 'show_tax_1' => '1', 'show_tax_2' => '0', 'show_barcode' => '0', 'show_payments' => '1', 'show_customer' => '1', 'customer_label' => 'Customer', 'highlight_color' => '#000000', 'footer_text' => '', 'module_info' => null, 'is_default' => '1', 'business_id' => '5', 'design' => 'classic', 'cn_heading' => null, 'cn_no_label' => null, 'cn_amount_label' => null, 'created_at' => '2018-07-13 16:42:11', 'updated_at' => '2018-07-13 16:42:11'], ['id' => '6', 'name' => 'Default', 'header_text' => null, 'invoice_no_prefix' => 'Invoice No.', 'quotation_no_prefix' => null, 'invoice_heading' => 'Invoice', 'sub_heading_line1' => null, 'sub_heading_line2' => null, 'sub_heading_line3' => null, 'sub_heading_line4' => null, 'sub_heading_line5' => null, 'invoice_heading_not_paid' => '', 'invoice_heading_paid' => '', 'quotation_heading' => null, 'sub_total_label' => 'Subtotal', 'discount_label' => 'Discount', 'tax_label' => 'Tax', 'total_label' => 'Total', 'total_due_label' => 'Total Due', 'paid_label' => 'Total Paid', 'show_client_id' => '0', 'client_id_label' => null, 'client_tax_label' => null, 'date_label' => 'Date', 'show_time' => '1', 'show_brand' => '0', 'show_sku' => '1', 'show_cat_code' => '1', 'show_sale_description' => '0', 'table_product_label' => 'Product', 'table_qty_label' => 'Quantity', 'table_unit_price_label' => 'Unit Price', 'table_subtotal_label' => 'Subtotal', 'cat_code_label' => null, 'logo' => null, 'show_logo' => '0', 'show_business_name' => '0', 'show_location_name' => '1', 'show_landmark' => '1', 'show_city' => '1', 'show_state' => '1', 'show_zip_code' => '1', 'show_country' => '1', 'show_mobile_number' => '1', 'show_alternate_number' => '0', 'show_email' => '0', 'show_tax_1' => '1', 'show_tax_2' => '0', 'show_barcode' => '0', 'show_payments' => '1', 'show_customer' => '1', 'customer_label' => 'Customer', 'highlight_color' => '#000000', 'footer_text' => '', 'module_info' => null, 'is_default' => '1', 'business_id' => '6', 'design' => 'classic', 'cn_heading' => null, 'cn_no_label' => null, 'cn_amount_label' => null, 'created_at' => '2019-08-18 18:41:28', 'updated_at' => '2019-08-18 18:41:28'], ]; DB::table('invoice_layouts')->insert($invoice_layouts); DB::insert("INSERT INTO units (id, business_id, actual_name, short_name, allow_decimal, base_unit_id, base_unit_multiplier, created_by, deleted_at, created_at, updated_at) VALUES (1, 1, 'Pieces', 'Pc(s)', 0, NULL, NULL, 1, NULL, '2018-01-03 15:15:20', '2018-01-03 15:15:20'), (2, 1, 'Packets', 'packets', 0, NULL, NULL, 1, NULL, '2018-01-06 01:07:01', '2018-01-06 01:08:36'), (3, 1, 'Grams', 'g', 1, NULL, NULL, 1, NULL, '2018-01-06 01:10:34', '2018-01-06 01:10:34'), (4, 2, 'Pieces', 'Pc(s)', 0, NULL, NULL, 4, NULL, '2018-04-10 02:42:40', '2018-04-10 02:42:40'), (5, 3, 'Units', 'units', 0, NULL, NULL, 5, NULL, '2018-04-10 05:16:16', '2018-04-10 05:29:19'), (6, 4, 'Units', 'units', 0, NULL, NULL, 6, NULL, '2018-04-10 06:50:43', '2018-04-10 07:02:04'), (7, 5, 'Pieces', 'Pc(s)', 0, NULL, NULL, 7, NULL, '2018-07-13 05:42:11', '2018-07-13 05:42:11'), (8, 5, 'Packets', 'packets', 0, NULL, NULL, 7, NULL, '2018-07-12 20:27:16', '2018-07-12 20:27:16'), (9, 6, 'Pieces', 'Pc(s)', 0, NULL, NULL, 12, NULL, '2019-08-18 13:11:28', '2019-08-18 13:11:28'), (10, 6, 'Grams', 'Gram', 1, NULL, NULL, 12, NULL, '2019-08-18 13:17:54', '2019-08-18 13:17:54'), (11, 6, 'Kilogram', 'KG', 1, 10, '1000.0000', 12, NULL, '2019-08-18 13:18:17', '2019-08-18 13:18:17'), (12, 6, '300 grams Packets', '300 gm pkt', 0, 10, '300.0000', 12, NULL, '2019-08-18 13:19:30', '2019-08-18 13:19:30'), (13, 6, 'Meters', 'Mtr', 1, NULL, NULL, 12, NULL, '2019-08-18 13:45:01', '2019-08-18 13:45:01')"); $products = [ ['id' => '1', 'name' => 'Men\'s Reverse Fleece Crew', 'business_id' => '1', 'type' => 'single', 'unit_id' => '1', 'sub_unit_ids' => null, 'brand_id' => '1', 'category_id' => '1', 'sub_category_id' => '5', 'tax' => '1', 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '5.0000', 'sku' => 'AS0001', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => '1528728059_fleece_crew.jpg', 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-01-03 21:29:08', 'updated_at' => '2018-06-11 07:40:59'], ['id' => '2', 'name' => 'Levis Men\'s Slimmy Fit Jeans', 'business_id' => '1', 'type' => 'variable', 'unit_id' => '1', 'sub_unit_ids' => null, 'brand_id' => '1', 'category_id' => '1', 'sub_category_id' => '4', 'tax' => '1', 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '10.0000', 'sku' => 'AS0002', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => '1528727964_levis_jeans.jpg', 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-01-03 21:30:35', 'updated_at' => '2018-06-11 07:39:24'], ['id' => '3', 'name' => 'Men\'s Cozy Hoodie Sweater', 'business_id' => '1', 'type' => 'variable', 'unit_id' => '1', 'sub_unit_ids' => null, 'brand_id' => '2', 'category_id' => '1', 'sub_category_id' => '5', 'tax' => '1', 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '10.0000', 'sku' => 'AS0003', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => '1528728035_cozy_sweater.jpg', 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-01-03 22:51:52', 'updated_at' => '2018-06-11 07:40:35'], ['id' => '4', 'name' => 'Puma Brown Sneaker', 'business_id' => '1', 'type' => 'variable', 'unit_id' => '1', 'sub_unit_ids' => null, 'brand_id' => '5', 'category_id' => '3', 'sub_category_id' => '8', 'tax' => '1', 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '5.0000', 'sku' => 'AS0004', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => '1528728147_puma_brown_sneaker.jpg', 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-01-03 22:54:33', 'updated_at' => '2018-06-11 07:42:27'], ['id' => '8', 'name' => 'Nike Fashion Sneaker', 'business_id' => '1', 'type' => 'variable', 'unit_id' => '1', 'sub_unit_ids' => null, 'brand_id' => '4', 'category_id' => '3', 'sub_category_id' => '8', 'tax' => '1', 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '10.0000', 'sku' => 'AS0008', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => '1528728076_nike_sneaker.jpg', 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-01-03 23:10:10', 'updated_at' => '2018-06-11 07:41:16'], ['id' => '9', 'name' => 'PUMA Men\'s Black Sneaker', 'business_id' => '1', 'type' => 'variable', 'unit_id' => '1', 'sub_unit_ids' => null, 'brand_id' => '5', 'category_id' => '3', 'sub_category_id' => '8', 'tax' => '1', 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '10.0000', 'sku' => 'AS0009', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => '1528728163_puma_brown_sneaker.jpg', 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-01-03 23:11:57', 'updated_at' => '2018-06-11 07:42:43'], ['id' => '10', 'name' => 'NIKE Men\'s Running Shoe', 'business_id' => '1', 'type' => 'variable', 'unit_id' => '1', 'sub_unit_ids' => null, 'brand_id' => '4', 'category_id' => '3', 'sub_category_id' => '8', 'tax' => '1', 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '10.0000', 'sku' => 'AS0010', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => '1528728095_nike_running_shoe.jpg', 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-01-03 23:13:02', 'updated_at' => '2018-06-11 07:41:35'], ['id' => '11', 'name' => 'U.S. Polo Men\'s Leather Belt', 'business_id' => '1', 'type' => 'single', 'unit_id' => '1', 'sub_unit_ids' => null, 'brand_id' => '3', 'category_id' => '3', 'sub_category_id' => '6', 'tax' => '1', 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '15.0000', 'sku' => 'AS0011', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => '1528727768_belt.jpg', 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-01-03 23:14:35', 'updated_at' => '2018-06-11 07:36:08'], ['id' => '12', 'name' => 'Unisex Brown Leather Wallet', 'business_id' => '1', 'type' => 'single', 'unit_id' => '1', 'sub_unit_ids' => null, 'brand_id' => '1', 'category_id' => '3', 'sub_category_id' => '11', 'tax' => '1', 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '10.0000', 'sku' => 'AS0012', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => '1528727750_unisex_brown_wallet.jpg', 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-01-03 23:15:50', 'updated_at' => '2018-06-11 07:35:50'], ['id' => '13', 'name' => 'Men Full sleeve T Shirt', 'business_id' => '1', 'type' => 'variable', 'unit_id' => '1', 'sub_unit_ids' => null, 'brand_id' => '2', 'category_id' => '1', 'sub_category_id' => '5', 'tax' => '1', 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '15.0000', 'sku' => 'AS0013', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => '1528728019_mens_tshirt.jpg', 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-01-03 23:17:59', 'updated_at' => '2018-06-11 07:40:19'], ['id' => '14', 'name' => 'Samsung Galaxy S8', 'business_id' => '1', 'type' => 'variable', 'unit_id' => '1', 'sub_unit_ids' => null, 'brand_id' => '7', 'category_id' => '12', 'sub_category_id' => '13', 'tax' => '1', 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '100.0000', 'sku' => 'AS0014', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => '1528728193_s8.jpg', 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-01-06 05:42:19', 'updated_at' => '2018-06-11 07:43:13'], ['id' => '15', 'name' => 'Apple iPhone 8', 'business_id' => '1', 'type' => 'variable', 'unit_id' => '1', 'sub_unit_ids' => null, 'brand_id' => '8', 'category_id' => '12', 'sub_category_id' => '13', 'tax' => '1', 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '100.0000', 'sku' => 'AS0015', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => '1528727817_iphone8.jpg', 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-01-06 05:49:51', 'updated_at' => '2018-06-11 07:36:57'], ['id' => '16', 'name' => 'Samsung Galaxy J7 Pro', 'business_id' => '1', 'type' => 'variable', 'unit_id' => '1', 'sub_unit_ids' => null, 'brand_id' => '7', 'category_id' => '12', 'sub_category_id' => '13', 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '100.0000', 'sku' => 'AS0016', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => '1528728178_j7_pro.jpg', 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-01-06 05:54:48', 'updated_at' => '2018-06-11 07:42:58'], ['id' => '17', 'name' => 'Acer Aspire E 15', 'business_id' => '1', 'type' => 'variable', 'unit_id' => '1', 'sub_unit_ids' => null, 'brand_id' => '9', 'category_id' => '12', 'sub_category_id' => '14', 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '70.0000', 'sku' => 'AS0017', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => '1528727793_acerE15.jpg', 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-01-06 06:05:01', 'updated_at' => '2018-06-11 07:36:33'], ['id' => '18', 'name' => 'Apple MacBook Air', 'business_id' => '1', 'type' => 'variable', 'unit_id' => '1', 'sub_unit_ids' => null, 'brand_id' => '8', 'category_id' => '12', 'sub_category_id' => '14', 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '30.0000', 'sku' => 'AS0018', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => '1528727849_macbookair.jpg', 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-01-06 06:07:30', 'updated_at' => '2018-06-11 07:37:29'], ['id' => '19', 'name' => 'Cushion Crew Socks', 'business_id' => '1', 'type' => 'single', 'unit_id' => '1', 'sub_unit_ids' => null, 'brand_id' => '4', 'category_id' => '15', 'sub_category_id' => '16', 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '100.0000', 'sku' => 'AS0019', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => '1528727903_socks.jpg', 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-01-06 06:10:28', 'updated_at' => '2018-06-11 07:38:23'], ['id' => '20', 'name' => 'Sports Tights Pants', 'business_id' => '1', 'type' => 'variable', 'unit_id' => '1', 'sub_unit_ids' => null, 'brand_id' => '6', 'category_id' => '15', 'sub_category_id' => '16', 'tax' => '1', 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '60.0000', 'sku' => 'AS0020', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => '1528728250_sports_pant.jpg', 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-01-06 06:13:00', 'updated_at' => '2018-06-11 07:44:10'], ['id' => '21', 'name' => 'Pair Of Dumbbells', 'business_id' => '1', 'type' => 'single', 'unit_id' => '1', 'sub_unit_ids' => null, 'brand_id' => '10', 'category_id' => '15', 'sub_category_id' => '17', 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '45.0000', 'sku' => 'AS0021', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => '1528728133_pair_of_dumbell.jpg', 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-01-06 06:16:35', 'updated_at' => '2018-06-11 07:42:13'], ['id' => '22', 'name' => 'Diary of a Wimpy Kid', 'business_id' => '1', 'type' => 'single', 'unit_id' => '1', 'sub_unit_ids' => null, 'brand_id' => null, 'category_id' => '18', 'sub_category_id' => '20', 'tax' => '1', 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '20.0000', 'sku' => 'AS0022', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => '1528727917_diary_of_whimp_kid.jpeg', 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-01-06 06:25:09', 'updated_at' => '2018-06-11 07:38:37'], ['id' => '23', 'name' => 'Sneezy the Snowman', 'business_id' => '1', 'type' => 'single', 'unit_id' => '1', 'sub_unit_ids' => null, 'brand_id' => null, 'category_id' => '18', 'sub_category_id' => '20', 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '20.0000', 'sku' => 'AS0023', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => '1528728231_sneezy.jpg', 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-01-06 06:26:27', 'updated_at' => '2018-06-11 07:43:51'], ['id' => '24', 'name' => 'Etched in Sand Autobiography', 'business_id' => '1', 'type' => 'single', 'unit_id' => '1', 'sub_unit_ids' => null, 'brand_id' => null, 'category_id' => '18', 'sub_category_id' => '19', 'tax' => '1', 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '30.0000', 'sku' => 'AS0024', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => '1528727933_etched_in_stone.jpg', 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-01-06 06:31:22', 'updated_at' => '2018-06-11 07:38:53'], ['id' => '25', 'name' => 'Five Presidents', 'business_id' => '1', 'type' => 'single', 'unit_id' => '1', 'sub_unit_ids' => null, 'brand_id' => null, 'category_id' => '18', 'sub_category_id' => '19', 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '30.0000', 'sku' => 'AS0025', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => '1528727949_five_pesident.jpg', 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-01-06 06:32:22', 'updated_at' => '2018-06-11 07:39:09'], ['id' => '26', 'name' => 'Oreo Cookies', 'business_id' => '1', 'type' => 'single', 'unit_id' => '2', 'sub_unit_ids' => null, 'brand_id' => '11', 'category_id' => '21', 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '500.0000', 'sku' => 'AS0026', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => '1528728111_oreo.jpg', 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-01-06 06:35:51', 'updated_at' => '2018-06-11 07:41:51'], ['id' => '27', 'name' => 'Butter Cookies', 'business_id' => '1', 'type' => 'single', 'unit_id' => '2', 'sub_unit_ids' => null, 'brand_id' => '12', 'category_id' => '21', 'sub_category_id' => null, 'tax' => '1', 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '100.0000', 'sku' => 'AS0027', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => '1528727881_butter_cookies.jpg', 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-01-06 06:43:16', 'updated_at' => '2018-06-11 07:38:01'], ['id' => '28', 'name' => 'Barilla Pasta', 'business_id' => '1', 'type' => 'single', 'unit_id' => '2', 'sub_unit_ids' => null, 'brand_id' => '13', 'category_id' => '21', 'sub_category_id' => null, 'tax' => '1', 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '50.0000', 'sku' => 'AS0028', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => '1528727865_barilla_pasta.jpeg', 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-01-06 06:45:47', 'updated_at' => '2018-06-11 07:37:45'], ['id' => '29', 'name' => 'Thin Spaghetti', 'business_id' => '1', 'type' => 'single', 'unit_id' => '2', 'sub_unit_ids' => null, 'brand_id' => '13', 'category_id' => '21', 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '100.0000', 'sku' => 'AS0029', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => '1528728274_thin_spegatti.jpg', 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-01-06 06:46:53', 'updated_at' => '2018-06-11 07:44:34'], ['id' => '30', 'name' => 'Lipton Black Tea Bags', 'business_id' => '1', 'type' => 'single', 'unit_id' => '2', 'sub_unit_ids' => null, 'brand_id' => '14', 'category_id' => '21', 'sub_category_id' => null, 'tax' => '1', 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '50.0000', 'sku' => 'AS0030', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => '1528727999_lipton_tea.jpg', 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-01-06 06:48:59', 'updated_at' => '2018-06-11 07:39:59'], ['id' => '31', 'name' => 'Dolocare 1g paracetol', 'business_id' => '2', 'type' => 'single', 'unit_id' => '4', 'sub_unit_ids' => null, 'brand_id' => '16', 'category_id' => '27', 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '50.0000', 'sku' => 'AP0031', 'barcode_type' => 'C128', 'expiry_period' => '24.00', 'expiry_period_type' => 'months', 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '4', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-04-10 10:06:29', 'updated_at' => '2018-04-10 10:06:29'], ['id' => '32', 'name' => 'Lexin 500mg capsule', 'business_id' => '2', 'type' => 'single', 'unit_id' => '4', 'sub_unit_ids' => null, 'brand_id' => '16', 'category_id' => '22', 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '30.0000', 'sku' => 'AP0032', 'barcode_type' => 'C128', 'expiry_period' => '24.00', 'expiry_period_type' => 'months', 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '4', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-04-10 10:07:52', 'updated_at' => '2018-04-10 10:07:52'], ['id' => '33', 'name' => 'Oflen-75', 'business_id' => '2', 'type' => 'single', 'unit_id' => '4', 'sub_unit_ids' => null, 'brand_id' => '15', 'category_id' => '22', 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '30.0000', 'sku' => 'AP0033', 'barcode_type' => 'C128', 'expiry_period' => '36.00', 'expiry_period_type' => 'months', 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '4', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-04-10 10:09:45', 'updated_at' => '2018-04-10 10:09:45'], ['id' => '34', 'name' => 'Cistiben Forte', 'business_id' => '2', 'type' => 'single', 'unit_id' => '4', 'sub_unit_ids' => null, 'brand_id' => '16', 'category_id' => '22', 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '25.0000', 'sku' => 'AP0034', 'barcode_type' => 'C128', 'expiry_period' => '12.00', 'expiry_period_type' => 'months', 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '4', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-04-10 10:10:59', 'updated_at' => '2018-04-10 10:10:59'], ['id' => '35', 'name' => 'Disflatyl drop 30ml', 'business_id' => '2', 'type' => 'single', 'unit_id' => '4', 'sub_unit_ids' => null, 'brand_id' => '17', 'category_id' => '25', 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '20.0000', 'sku' => 'AP0035', 'barcode_type' => 'C128', 'expiry_period' => '12.00', 'expiry_period_type' => 'months', 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '4', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-04-10 10:12:53', 'updated_at' => '2018-04-10 10:12:53'], ['id' => '36', 'name' => 'Mycoheal 40', 'business_id' => '2', 'type' => 'single', 'unit_id' => '4', 'sub_unit_ids' => null, 'brand_id' => '17', 'category_id' => '26', 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '30.0000', 'sku' => 'AP0036', 'barcode_type' => 'C128', 'expiry_period' => '6.00', 'expiry_period_type' => 'months', 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '4', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-04-10 10:14:18', 'updated_at' => '2018-04-10 10:14:18'], ['id' => '37', 'name' => 'Laboxyl', 'business_id' => '2', 'type' => 'single', 'unit_id' => '4', 'sub_unit_ids' => null, 'brand_id' => '16', 'category_id' => '24', 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '20.0000', 'sku' => 'AP0037', 'barcode_type' => 'C128', 'expiry_period' => '12.00', 'expiry_period_type' => 'months', 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '4', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-04-10 10:31:29', 'updated_at' => '2018-04-10 10:31:29'], ['id' => '38', 'name' => 'Fertilex plus men', 'business_id' => '2', 'type' => 'single', 'unit_id' => '4', 'sub_unit_ids' => null, 'brand_id' => '15', 'category_id' => '22', 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '30.0000', 'sku' => 'AP0038', 'barcode_type' => 'C128', 'expiry_period' => '12.00', 'expiry_period_type' => 'months', 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '4', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-04-10 10:32:35', 'updated_at' => '2018-04-10 10:32:35'], ['id' => '39', 'name' => 'vitamin E AIWA', 'business_id' => '2', 'type' => 'single', 'unit_id' => '4', 'sub_unit_ids' => null, 'brand_id' => '15', 'category_id' => '22', 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '20.0000', 'sku' => 'AP0039', 'barcode_type' => 'C128', 'expiry_period' => '12.00', 'expiry_period_type' => 'months', 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '4', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-04-10 10:33:26', 'updated_at' => '2018-04-10 10:33:26'], ['id' => '40', 'name' => 'Glycerol 4g', 'business_id' => '2', 'type' => 'single', 'unit_id' => '4', 'sub_unit_ids' => null, 'brand_id' => '16', 'category_id' => '22', 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '20.0000', 'sku' => 'AP0040', 'barcode_type' => 'C128', 'expiry_period' => '12.00', 'expiry_period_type' => 'months', 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '4', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-04-10 10:34:32', 'updated_at' => '2018-04-10 10:34:49'], ['id' => '41', 'name' => 'HP 15-AY020TU', 'business_id' => '3', 'type' => 'single', 'unit_id' => '5', 'sub_unit_ids' => null, 'brand_id' => '23', 'category_id' => '30', 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'inclusive', 'enable_stock' => '1', 'alert_quantity' => '10.0000', 'sku' => 'AE0041', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '1', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '5', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-04-10 11:08:27', 'updated_at' => '2018-04-10 11:08:27'], ['id' => '42', 'name' => 'HP Pavilion 15-AU624TX', 'business_id' => '3', 'type' => 'single', 'unit_id' => '5', 'sub_unit_ids' => null, 'brand_id' => '23', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '10.0000', 'sku' => 'AE0042', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '1', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '5', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-04-10 11:15:52', 'updated_at' => '2018-04-10 11:51:21'], ['id' => '43', 'name' => 'iPhone 6s plus', 'business_id' => '3', 'type' => 'single', 'unit_id' => '5', 'sub_unit_ids' => null, 'brand_id' => '20', 'category_id' => '28', 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '20.0000', 'sku' => 'AE0043', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '1', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '5', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-04-10 11:18:01', 'updated_at' => '2018-04-10 11:18:01'], ['id' => '44', 'name' => 'Samsung J7 Pro', 'business_id' => '3', 'type' => 'single', 'unit_id' => '5', 'sub_unit_ids' => null, 'brand_id' => '18', 'category_id' => '28', 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '20.0000', 'sku' => 'AE0044', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '5', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-04-10 11:19:10', 'updated_at' => '2018-04-10 11:19:10'], ['id' => '45', 'name' => 'Samsung Galaxy S7 Edge', 'business_id' => '3', 'type' => 'single', 'unit_id' => '5', 'sub_unit_ids' => null, 'brand_id' => '18', 'category_id' => '28', 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '20.0000', 'sku' => 'AE0045', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '1', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '5', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-04-10 11:20:21', 'updated_at' => '2018-04-10 11:20:21'], ['id' => '46', 'name' => 'LG G6 64 GB', 'business_id' => '3', 'type' => 'single', 'unit_id' => '5', 'sub_unit_ids' => null, 'brand_id' => '19', 'category_id' => '28', 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '10.0000', 'sku' => 'AE0046', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '1', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '5', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-04-10 11:22:04', 'updated_at' => '2018-04-10 11:22:04'], ['id' => '47', 'name' => 'Panasonic TH-58D300DX', 'business_id' => '3', 'type' => 'single', 'unit_id' => '5', 'sub_unit_ids' => null, 'brand_id' => '22', 'category_id' => '31', 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '20.0000', 'sku' => 'AE0047', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '1', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '5', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-04-10 11:23:45', 'updated_at' => '2018-04-10 11:23:45'], ['id' => '48', 'name' => 'Samsung 50MU6100', 'business_id' => '3', 'type' => 'single', 'unit_id' => '5', 'sub_unit_ids' => null, 'brand_id' => '18', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '7.0000', 'sku' => 'AE0048', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '1', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '5', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-04-10 11:24:42', 'updated_at' => '2018-04-10 11:52:07'], ['id' => '49', 'name' => 'LG 55E7T', 'business_id' => '3', 'type' => 'single', 'unit_id' => '5', 'sub_unit_ids' => null, 'brand_id' => '19', 'category_id' => '31', 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '5.0000', 'sku' => 'AE0049', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '1', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '5', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-04-10 11:25:55', 'updated_at' => '2018-04-10 11:25:55'], ['id' => '50', 'name' => 'SONY ILCE-6000L/B', 'business_id' => '3', 'type' => 'single', 'unit_id' => '5', 'sub_unit_ids' => null, 'brand_id' => '21', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '10.0000', 'sku' => 'AE0050', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '1', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '5', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-04-10 11:34:32', 'updated_at' => '2018-04-10 11:34:32'], ['id' => '51', 'name' => 'Oil and filter change', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => null, 'category_id' => '34', 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '0', 'alert_quantity' => '0.0000', 'sku' => 'AS0051', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '6', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-04-10 12:34:57', 'updated_at' => '2018-04-10 12:34:57'], ['id' => '52', 'name' => 'Removal of wheels and brakes checked', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => null, 'category_id' => '34', 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '0', 'alert_quantity' => '0.0000', 'sku' => 'AS0052', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '6', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-04-10 12:35:55', 'updated_at' => '2018-04-10 12:35:55'], ['id' => '53', 'name' => 'Full body wash', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => null, 'category_id' => '34', 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '0', 'alert_quantity' => '0.0000', 'sku' => 'AS0053', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '6', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-04-10 12:39:15', 'updated_at' => '2018-04-10 12:39:15'], ['id' => '54', 'name' => 'Hair Cut', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => null, 'category_id' => '35', 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '0', 'alert_quantity' => '0.0000', 'sku' => 'AS0054', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '6', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-04-10 12:54:16', 'updated_at' => '2018-04-10 12:54:16'], ['id' => '55', 'name' => 'Wash And Blow Dry', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => null, 'category_id' => '35', 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '0', 'alert_quantity' => '0.0000', 'sku' => 'AS0055', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '6', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-04-10 12:56:18', 'updated_at' => '2018-04-10 12:56:18'], ['id' => '56', 'name' => 'Thai massage', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => null, 'category_id' => '38', 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '0', 'alert_quantity' => '0.0000', 'sku' => 'AS0056', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '6', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-04-10 13:01:59', 'updated_at' => '2018-04-10 13:01:59'], ['id' => '57', 'name' => 'Toilet Repair', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => null, 'category_id' => '36', 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '0', 'alert_quantity' => '0.0000', 'sku' => 'AS0057', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '6', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-04-10 13:03:01', 'updated_at' => '2018-04-10 13:03:01'], ['id' => '58', 'name' => 'Sewer Repair', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => null, 'category_id' => '36', 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '0', 'alert_quantity' => '0.0000', 'sku' => 'AS0058', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '6', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-04-10 13:03:37', 'updated_at' => '2018-04-10 13:03:37'], ['id' => '59', 'name' => 'Refrigerator Repair', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => null, 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '0', 'alert_quantity' => '0.0000', 'sku' => 'AS0059', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '6', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-04-10 13:06:45', 'updated_at' => '2018-04-10 13:06:45'], ['id' => '60', 'name' => 'AC Repair', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => null, 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '0', 'alert_quantity' => '0.0000', 'sku' => 'AS0060', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '6', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-04-10 13:07:08', 'updated_at' => '2018-04-10 13:07:08'], ['id' => '61', 'name' => 'Red Wine', 'business_id' => '1', 'type' => 'single', 'unit_id' => '1', 'sub_unit_ids' => null, 'brand_id' => null, 'category_id' => '21', 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '10.0000', 'sku' => 'AS0061', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => '1528779460_wine.jpg', 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-06-11 21:57:41', 'updated_at' => '2018-06-11 21:57:41'], ['id' => '62', 'name' => 'Pinot Noir Red Wine', 'business_id' => '1', 'type' => 'single', 'unit_id' => '1', 'sub_unit_ids' => null, 'brand_id' => null, 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '10.0000', 'sku' => 'AS0062', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => '1528779737_wine2.jpg', 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-06-11 22:02:17', 'updated_at' => '2018-06-11 22:02:17'], ['id' => '63', 'name' => 'Banana', 'business_id' => '1', 'type' => 'single', 'unit_id' => '1', 'sub_unit_ids' => null, 'brand_id' => null, 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '100.0000', 'sku' => 'AS0063', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => '1528780092_banana.jpg', 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-06-11 22:08:12', 'updated_at' => '2018-06-11 22:08:12'], ['id' => '64', 'name' => 'Apple - Fuji', 'business_id' => '1', 'type' => 'single', 'unit_id' => '1', 'sub_unit_ids' => null, 'brand_id' => null, 'category_id' => '21', 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '50.0000', 'sku' => 'AS0064', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => '1528780234_apples.jpg', 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-06-11 22:10:34', 'updated_at' => '2018-06-11 22:10:34'], ['id' => '65', 'name' => 'Organic Egg', 'business_id' => '1', 'type' => 'single', 'unit_id' => '1', 'sub_unit_ids' => null, 'brand_id' => null, 'category_id' => '21', 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '10.0000', 'sku' => 'AS0065', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => '1528780470_eggs.jpg', 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-06-11 22:14:00', 'updated_at' => '2018-06-11 22:14:30'], ['id' => '66', 'name' => 'Honey Roast Chicken', 'business_id' => '5', 'type' => 'single', 'unit_id' => '7', 'sub_unit_ids' => null, 'brand_id' => null, 'category_id' => '39', 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '0', 'alert_quantity' => '0.0000', 'sku' => 'AR0066', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => '300 gm', 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => '1531481431_honey-roast-chicken.jpg', 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '7', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-07-13 06:30:31', 'updated_at' => '2018-07-13 06:30:31'], ['id' => '67', 'name' => 'Mushroom and Herb Filled Tomatoes', 'business_id' => '5', 'type' => 'single', 'unit_id' => '7', 'sub_unit_ids' => null, 'brand_id' => null, 'category_id' => '39', 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '0', 'alert_quantity' => '0.0000', 'sku' => 'AR0067', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => '150 gm', 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => '1531481687_tomtoes-with-mushroom_med.jpg', 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '7', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-07-13 06:34:47', 'updated_at' => '2018-07-13 06:34:47'], ['id' => '68', 'name' => 'Pasta Carbonara', 'business_id' => '5', 'type' => 'single', 'unit_id' => '7', 'sub_unit_ids' => null, 'brand_id' => null, 'category_id' => '40', 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '0', 'alert_quantity' => '0.0000', 'sku' => 'AR0068', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => '180 gm', 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => '1531481935_pasta.jpg', 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '7', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-07-13 06:38:55', 'updated_at' => '2018-07-13 06:38:55'], ['id' => '69', 'name' => 'Chicken Doner Pita with Hummus', 'business_id' => '5', 'type' => 'single', 'unit_id' => '7', 'sub_unit_ids' => null, 'brand_id' => null, 'category_id' => '40', 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '0', 'alert_quantity' => '0.0000', 'sku' => 'AR0069', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => '180 gm', 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => '1531482350_pita.jpg', 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '7', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-07-13 06:45:50', 'updated_at' => '2018-07-13 06:45:51'], ['id' => '70', 'name' => 'Falafal Doner Salad', 'business_id' => '5', 'type' => 'single', 'unit_id' => '7', 'sub_unit_ids' => null, 'brand_id' => null, 'category_id' => '41', 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '0', 'alert_quantity' => '0.0000', 'sku' => 'AR0070', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => '200 gm', 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => '1531483057_salad-doner.jpg', 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '7', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-07-13 06:57:37', 'updated_at' => '2018-07-13 06:57:37'], ['id' => '71', 'name' => 'Lamb Doner Salad', 'business_id' => '5', 'type' => 'single', 'unit_id' => '7', 'sub_unit_ids' => null, 'brand_id' => null, 'category_id' => '41', 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '0', 'alert_quantity' => '0.0000', 'sku' => 'AR0071', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => '220 gm', 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => '1531483241_lamb-salad.jpg', 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '7', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-07-13 07:00:41', 'updated_at' => '2018-07-13 07:00:41'], ['id' => '72', 'name' => 'Chicago-Style Pan Pizza', 'business_id' => '5', 'type' => 'single', 'unit_id' => '7', 'sub_unit_ids' => null, 'brand_id' => null, 'category_id' => '42', 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '0', 'alert_quantity' => '0.0000', 'sku' => 'AR0072', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => '190 gm', 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => '1531483502_pizza1.jpg', 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '7', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-07-13 07:05:02', 'updated_at' => '2018-07-13 07:05:03'], ['id' => '73', 'name' => 'Pizza Margherita', 'business_id' => '5', 'type' => 'single', 'unit_id' => '7', 'sub_unit_ids' => null, 'brand_id' => null, 'category_id' => '42', 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '0', 'alert_quantity' => '0.0000', 'sku' => 'AR0073', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => '200 gm', 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => '1531483649_margherita-pizza.jpg', 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '7', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-07-13 07:07:29', 'updated_at' => '2018-07-13 07:07:29'], ['id' => '74', 'name' => 'Blueberry-Ginger Mojito', 'business_id' => '5', 'type' => 'single', 'unit_id' => '7', 'sub_unit_ids' => null, 'brand_id' => null, 'category_id' => '44', 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '0', 'alert_quantity' => '0.0000', 'sku' => 'AR0074', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => '1531483843_mojito.jpg', 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '7', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-07-13 07:10:43', 'updated_at' => '2018-07-13 07:10:44'], ['id' => '75', 'name' => 'Chocolate Brownie', 'business_id' => '5', 'type' => 'single', 'unit_id' => '7', 'sub_unit_ids' => null, 'brand_id' => null, 'category_id' => '43', 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '0', 'alert_quantity' => '0.0000', 'sku' => 'AR0075', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => '1531483989_Chocolate-Brownies.jpg', 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '7', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-07-13 07:13:09', 'updated_at' => '2018-07-13 07:13:09'], ['id' => '76', 'name' => 'Pepsi Soft Drink', 'business_id' => '5', 'type' => 'single', 'unit_id' => '7', 'sub_unit_ids' => null, 'brand_id' => null, 'category_id' => '44', 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '50.0000', 'sku' => 'AR0076', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => '1531484313_pepsi.jpg', 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '7', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-07-13 07:18:33', 'updated_at' => '2018-07-13 07:18:33'], ['id' => '77', 'name' => 'Brown Bread', 'business_id' => '5', 'type' => 'single', 'unit_id' => '8', 'sub_unit_ids' => null, 'brand_id' => null, 'category_id' => '45', 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '50.0000', 'sku' => 'AR0077', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => '1531484661_brown-bread.jpg', 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '7', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-07-13 07:24:21', 'updated_at' => '2018-07-13 07:28:56'], ['id' => '78', 'name' => 'Toppings', 'business_id' => '5', 'type' => 'modifier', 'unit_id' => null, 'sub_unit_ids' => null, 'brand_id' => null, 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'inclusive', 'enable_stock' => '0', 'alert_quantity' => '0.0000', 'sku' => 'AR0078', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '7', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-07-16 07:58:04', 'updated_at' => '2018-07-16 07:58:04'], ['id' => '79', 'name' => 'Extra', 'business_id' => '5', 'type' => 'modifier', 'unit_id' => null, 'sub_unit_ids' => null, 'brand_id' => null, 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'inclusive', 'enable_stock' => '0', 'alert_quantity' => '0.0000', 'sku' => 'AR0079', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '7', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2018-07-16 08:05:37', 'updated_at' => '2018-07-16 08:05:37'], ['id' => '81', 'name' => 'Pizza', 'business_id' => '6', 'type' => 'single', 'unit_id' => '9', 'sub_unit_ids' => null, 'brand_id' => null, 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '10.0000', 'sku' => 'Pizza', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '12', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2019-08-18 18:52:09', 'updated_at' => '2019-08-18 18:52:09'], ['id' => '82', 'name' => 'Pizza Base Bread', 'business_id' => '6', 'type' => 'single', 'unit_id' => '9', 'sub_unit_ids' => null, 'brand_id' => null, 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '10.0000', 'sku' => '0082', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '12', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2019-08-18 18:54:10', 'updated_at' => '2019-08-18 18:54:10'], ['id' => '83', 'name' => 'Tomatoes', 'business_id' => '6', 'type' => 'single', 'unit_id' => '10', 'sub_unit_ids' => null, 'brand_id' => null, 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '1000.0000', 'sku' => '0083', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '12', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2019-08-18 18:54:59', 'updated_at' => '2019-08-18 18:54:59'], ['id' => '84', 'name' => 'Olive Oil', 'business_id' => '6', 'type' => 'single', 'unit_id' => '10', 'sub_unit_ids' => null, 'brand_id' => null, 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '1000.0000', 'sku' => '0084', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '12', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2019-08-18 18:55:28', 'updated_at' => '2019-08-18 18:55:28'], ['id' => '85', 'name' => 'Salt', 'business_id' => '6', 'type' => 'single', 'unit_id' => '10', 'sub_unit_ids' => null, 'brand_id' => null, 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '1000.0000', 'sku' => '0085', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '12', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2019-08-18 18:55:58', 'updated_at' => '2019-08-18 18:55:58'], ['id' => '86', 'name' => 'Garlic', 'business_id' => '6', 'type' => 'single', 'unit_id' => '9', 'sub_unit_ids' => null, 'brand_id' => null, 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '50.0000', 'sku' => '0086', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '12', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2019-08-18 18:56:41', 'updated_at' => '2019-08-18 18:56:41'], ['id' => '87', 'name' => 'Chili Flakes', 'business_id' => '6', 'type' => 'single', 'unit_id' => '10', 'sub_unit_ids' => null, 'brand_id' => null, 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '100.0000', 'sku' => '0087', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '12', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2019-08-18 18:57:35', 'updated_at' => '2019-08-18 18:57:35'], ['id' => '88', 'name' => 'Cheese', 'business_id' => '6', 'type' => 'single', 'unit_id' => '10', 'sub_unit_ids' => null, 'brand_id' => null, 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '1000.0000', 'sku' => '0088', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '12', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2019-08-18 18:58:43', 'updated_at' => '2019-08-18 18:58:43'], ['id' => '89', 'name' => 'Silk Fabric', 'business_id' => '6', 'type' => 'single', 'unit_id' => '13', 'sub_unit_ids' => null, 'brand_id' => null, 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '100.0000', 'sku' => '0089', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '12', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2019-08-18 19:15:23', 'updated_at' => '2019-08-18 19:21:40'], ['id' => '90', 'name' => 'Yarn', 'business_id' => '6', 'type' => 'single', 'unit_id' => '13', 'sub_unit_ids' => null, 'brand_id' => null, 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '5.0000', 'sku' => '0090', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '12', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2019-08-18 19:16:50', 'updated_at' => '2019-08-18 19:16:50'], ['id' => '91', 'name' => 'Buttons', 'business_id' => '6', 'type' => 'single', 'unit_id' => '9', 'sub_unit_ids' => null, 'brand_id' => null, 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '100.0000', 'sku' => '0091', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '12', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2019-08-18 19:17:36', 'updated_at' => '2019-08-18 19:17:36'], ['id' => '92', 'name' => 'Zipper', 'business_id' => '6', 'type' => 'single', 'unit_id' => '9', 'sub_unit_ids' => null, 'brand_id' => null, 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '100.0000', 'sku' => '0092', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '12', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2019-08-18 19:18:26', 'updated_at' => '2019-08-18 19:18:26'], ['id' => '93', 'name' => 'Formal Shirt', 'business_id' => '6', 'type' => 'single', 'unit_id' => '9', 'sub_unit_ids' => null, 'brand_id' => null, 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '100.0000', 'sku' => '0093', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '12', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2019-08-18 19:19:55', 'updated_at' => '2019-08-18 19:20:39'], ['id' => '95', 'name' => 'Ram', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '24', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => null, 'sku' => 'AS0095', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => null, 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-07 21:18:57', 'updated_at' => '2020-05-07 21:18:58'], ['id' => '99', 'name' => 'Display', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '7', 'category_id' => null, 'sub_category_id' => null, 'tax' => '1', 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '20.0000', 'sku' => 'AS0099', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '1', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => '1', 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-11 12:47:54', 'updated_at' => '2020-05-11 12:47:54'], ['id' => '100', 'name' => 'Mother Board', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '24', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '52.0000', 'sku' => 'AS0100', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '1', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => '1', 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-11 12:48:40', 'updated_at' => '2020-05-11 12:48:41'], ['id' => '101', 'name' => 'Battery Kit', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '24', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '32.0000', 'sku' => 'AS0101', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => '1', 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-11 12:49:21', 'updated_at' => '2020-05-11 12:49:21'], ['id' => '102', 'name' => 'Mother Board Repair', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '24', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '0', 'alert_quantity' => '0.0000', 'sku' => 'AS0102', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => '2', 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-11 12:54:22', 'updated_at' => '2020-05-11 12:54:23'], ['id' => '103', 'name' => 'Device Repair', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '24', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '0', 'alert_quantity' => '0.0000', 'sku' => 'AS0103', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => '1', 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-11 12:55:24', 'updated_at' => '2020-05-11 12:55:24'], ['id' => '104', 'name' => 'Battery Kit Replacement', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '24', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '0', 'alert_quantity' => '0.0000', 'sku' => 'AS0104', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => '1', 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-11 12:56:45', 'updated_at' => '2020-05-11 12:56:45'], ['id' => '105', 'name' => 'Display', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '24', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '55.0000', 'sku' => 'AS0105', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '1', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => '2', 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-11 12:58:12', 'updated_at' => '2020-05-11 12:58:12'], ['id' => '106', 'name' => 'Mother Board', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '24', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '66.0000', 'sku' => 'AS0106', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '1', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => '2', 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-11 12:58:50', 'updated_at' => '2020-05-11 12:58:50'], ['id' => '107', 'name' => 'Back Glass', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '24', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '36.0000', 'sku' => 'AS0107', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '1', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => '2', 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-11 12:59:22', 'updated_at' => '2020-05-11 12:59:22'], ['id' => '108', 'name' => 'Mother board repair service', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '24', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '0', 'alert_quantity' => '0.0000', 'sku' => 'AS0108', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => '2', 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-11 13:00:23', 'updated_at' => '2020-05-11 13:00:23'], ['id' => '109', 'name' => 'Device repair service', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '24', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '0', 'alert_quantity' => '0.0000', 'sku' => 'AS0109', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => '2', 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-11 13:01:11', 'updated_at' => '2020-05-11 13:01:11'], ['id' => '110', 'name' => 'Battry repair service', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '24', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '0', 'alert_quantity' => '0.0000', 'sku' => 'AS0110', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => '2', 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-11 13:01:56', 'updated_at' => '2020-05-11 13:01:56'], ['id' => '111', 'name' => 'Mother Board', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '24', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '10.0000', 'sku' => 'AS0111', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => '3', 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-11 13:10:25', 'updated_at' => '2020-05-11 13:10:25'], ['id' => '112', 'name' => 'RAM', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '24', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '23.0000', 'sku' => 'AS0112', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => '3', 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-11 13:10:57', 'updated_at' => '2020-05-11 13:10:57'], ['id' => '113', 'name' => 'Display', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '24', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '24.0000', 'sku' => 'AS0113', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => '3', 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-11 13:12:17', 'updated_at' => '2020-05-11 13:12:17'], ['id' => '114', 'name' => 'Monitor Service', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '24', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '0', 'alert_quantity' => '0.0000', 'sku' => 'AS0114', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => '3', 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-11 13:12:47', 'updated_at' => '2020-05-11 13:12:47'], ['id' => '115', 'name' => 'CPU Service', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '24', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '0', 'alert_quantity' => '0.0000', 'sku' => 'AS0115', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => '3', 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-11 13:13:30', 'updated_at' => '2020-05-11 13:13:30'], ['id' => '116', 'name' => 'CPU', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '24', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '56.0000', 'sku' => 'AS0116', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => '4', 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-11 13:14:18', 'updated_at' => '2020-05-11 13:14:18'], ['id' => '117', 'name' => 'Hard Drive', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '24', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '13.0000', 'sku' => 'AS0117', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => '3', 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-11 13:15:05', 'updated_at' => '2020-05-11 13:15:05'], ['id' => '118', 'name' => 'Optical Drive', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '24', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '15.0000', 'sku' => 'AS0118', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => '4', 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-11 13:15:45', 'updated_at' => '2020-05-11 13:15:45'], ['id' => '119', 'name' => 'Video Card', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '24', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '21.0000', 'sku' => 'AS0119', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => '4', 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-11 13:17:11', 'updated_at' => '2020-05-11 13:17:11'], ['id' => '120', 'name' => 'CPU Repair', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '24', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '0', 'alert_quantity' => '0.0000', 'sku' => 'AS0120', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => '4', 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-11 13:17:54', 'updated_at' => '2020-05-11 13:17:54'], ['id' => '121', 'name' => 'Processor Service', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '24', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '0', 'alert_quantity' => '0.0000', 'sku' => 'AS0121', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => '4', 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-11 13:18:38', 'updated_at' => '2020-05-11 13:18:38'], ['id' => '122', 'name' => 'Key Board', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '24', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '22.0000', 'sku' => 'AS0122', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => '5', 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-11 13:19:40', 'updated_at' => '2020-05-11 13:19:40'], ['id' => '123', 'name' => 'Mouse', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '24', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '56.0000', 'sku' => 'AS0123', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => '5', 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-11 13:20:15', 'updated_at' => '2020-05-11 13:20:15'], ['id' => '124', 'name' => 'Optical Drive', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '24', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '5.0000', 'sku' => 'AS0124', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => '5', 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-11 13:20:50', 'updated_at' => '2020-05-11 13:20:51'], ['id' => '125', 'name' => 'Key Board Repair', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '24', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '0', 'alert_quantity' => '0.0000', 'sku' => 'AS0125', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => '5', 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-11 13:21:42', 'updated_at' => '2020-05-11 13:21:42'], ['id' => '126', 'name' => 'Video Card Service', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '24', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '0', 'alert_quantity' => '0.0000', 'sku' => 'AS0126', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => '5', 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-11 13:22:43', 'updated_at' => '2020-05-11 13:22:43'], ['id' => '127', 'name' => 'Tower(Case) Repair', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '24', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '0', 'alert_quantity' => '0.0000', 'sku' => 'AS0127', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => '5', 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-11 13:23:29', 'updated_at' => '2020-05-11 13:23:29'], ['id' => '128', 'name' => 'Tower (Case)', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '24', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '56.0000', 'sku' => 'AS0128', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => '6', 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-11 13:24:57', 'updated_at' => '2020-05-11 13:24:57'], ['id' => '129', 'name' => 'Hard Drive', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '24', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => null, 'sku' => 'AS0129', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => '6', 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-11 13:25:41', 'updated_at' => '2020-05-11 13:25:41'], ['id' => '130', 'name' => 'Battery Kit', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '24', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => null, 'sku' => 'AS0130', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => '6', 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-11 13:26:17', 'updated_at' => '2020-05-11 13:26:17'], ['id' => '131', 'name' => 'Mouse', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '24', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => null, 'sku' => 'AS0131', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => '6', 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-11 13:27:51', 'updated_at' => '2020-05-11 13:27:51'], ['id' => '132', 'name' => 'Touchpad Service', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '24', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '0', 'alert_quantity' => '0.0000', 'sku' => 'AS0132', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => '6', 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-11 13:30:08', 'updated_at' => '2020-05-11 13:30:09'], ['id' => '133', 'name' => 'Antenna Repair', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '24', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '0', 'alert_quantity' => '0.0000', 'sku' => 'AS0133', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => '6', 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-11 13:31:14', 'updated_at' => '2020-05-11 13:31:14'], ['id' => '134', 'name' => 'Cooling Fan Repair', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '24', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '0', 'alert_quantity' => '0.0000', 'sku' => 'AS0134', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => '6', 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-11 13:32:01', 'updated_at' => '2020-05-11 13:32:01'], ['id' => '135', 'name' => 'MacBook Air Cooling Heatsink', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '25', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '2.0000', 'sku' => 'AS0135', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => '7', 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-11 13:34:38', 'updated_at' => '2020-05-11 13:34:38'], ['id' => '136', 'name' => 'Loudspeaker internal speaker', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '25', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '1.0000', 'sku' => 'AS0136', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => '7', 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-11 13:35:40', 'updated_at' => '2020-05-11 13:35:40'], ['id' => '137', 'name' => 'Macbook IC CHIP X', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '25', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => '2.0000', 'sku' => 'AS0137', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => '7', 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-11 13:36:24', 'updated_at' => '2020-05-11 13:36:25'], ['id' => '138', 'name' => 'Mac 185W Power Supply', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '25', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => null, 'sku' => 'AS0138', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => '7', 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-11 13:37:28', 'updated_at' => '2020-05-11 13:37:28'], ['id' => '139', 'name' => 'Processor Service', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '25', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '0', 'alert_quantity' => '0.0000', 'sku' => 'AS0139', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => '7', 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-11 13:38:24', 'updated_at' => '2020-05-11 13:38:25'], ['id' => '140', 'name' => 'Screen Cable Connector Repair', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '25', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '0', 'alert_quantity' => '0.0000', 'sku' => 'AS0140', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => '7', 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-11 13:39:16', 'updated_at' => '2020-05-11 13:39:16'], ['id' => '141', 'name' => 'Macbook Pro ME664/665 USB board Service', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '25', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '0', 'alert_quantity' => '0.0000', 'sku' => 'AS0141', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => '7', 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-11 13:40:54', 'updated_at' => '2020-05-11 13:40:55'], ['id' => '142', 'name' => 'iMac Retina 13 Left&Right Speakers', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '25', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => null, 'sku' => 'AS0142', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => '8', 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-11 13:42:14', 'updated_at' => '2020-05-11 13:42:14'], ['id' => '143', 'name' => 'QWERTY Standard Keyboard No backlight', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '25', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => null, 'sku' => 'AS0143', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => '8', 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-11 13:43:25', 'updated_at' => '2020-05-11 13:43:25'], ['id' => '144', 'name' => 'WIFI bluetooth cable', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '25', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => null, 'sku' => 'AS0144', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => '8', 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-11 13:44:10', 'updated_at' => '2020-05-11 13:44:10'], ['id' => '145', 'name' => 'Wifi Repair', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '25', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '0', 'alert_quantity' => '0.0000', 'sku' => 'AS0145', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => '8', 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-11 13:44:52', 'updated_at' => '2020-05-11 13:44:53'], ['id' => '146', 'name' => 'iMac Unibody Trackpad Touchpad Repair', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '25', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '0', 'alert_quantity' => '0.0000', 'sku' => 'AS0146', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => '8', 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-11 13:46:18', 'updated_at' => '2020-05-11 13:46:18'], ['id' => '147', 'name' => 'BIOS chip Repair', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '25', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '0', 'alert_quantity' => '0.0000', 'sku' => 'AS0147', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => '8', 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-11 13:47:32', 'updated_at' => '2020-05-11 13:47:32'], ['id' => '148', 'name' => 'iPhone X Screen', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '25', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => null, 'sku' => 'AS0148', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => '9', 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-11 13:48:51', 'updated_at' => '2020-05-11 13:48:51'], ['id' => '149', 'name' => 'Lightning to USB Charging Cable', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '25', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => null, 'sku' => 'AS0149', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => '9', 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-11 13:49:20', 'updated_at' => '2020-05-11 13:49:20'], ['id' => '150', 'name' => 'iHold EVO', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '25', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '1', 'alert_quantity' => null, 'sku' => 'AS0150', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => '9', 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-11 13:49:45', 'updated_at' => '2020-05-11 13:49:45'], ['id' => '151', 'name' => 'iPhone X Replacement Battery', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '25', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '0', 'alert_quantity' => '0.0000', 'sku' => 'AS0151', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => '9', 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-11 13:50:12', 'updated_at' => '2020-05-11 13:50:12'], ['id' => '152', 'name' => 'Lightning Connector Assembly Repair', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '25', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '0', 'alert_quantity' => '0.0000', 'sku' => 'AS0152', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => '9', 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-11 13:51:17', 'updated_at' => '2020-05-11 13:51:17'], ['id' => '153', 'name' => 'iHold EVO Service', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '25', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '0', 'alert_quantity' => '0.0000', 'sku' => 'AS0153', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => '9', 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-11 13:52:03', 'updated_at' => '2020-05-11 13:52:03'], ['id' => '154', 'name' => 'Mother board Service', 'business_id' => '4', 'type' => 'single', 'unit_id' => '6', 'sub_unit_ids' => null, 'brand_id' => '25', 'category_id' => null, 'sub_category_id' => null, 'tax' => null, 'tax_type' => 'exclusive', 'enable_stock' => '0', 'alert_quantity' => '0.0000', 'sku' => 'AS0154', 'barcode_type' => 'C128', 'expiry_period' => null, 'expiry_period_type' => null, 'enable_sr_no' => '0', 'weight' => null, 'product_custom_field1' => null, 'product_custom_field2' => null, 'product_custom_field3' => null, 'product_custom_field4' => null, 'image' => null, 'woocommerce_media_id' => null, 'product_description' => null, 'created_by' => '1', 'warranty_id' => null, 'is_inactive' => '0', 'repair_model_id' => '9', 'not_for_selling' => '0', 'woocommerce_product_id' => null, 'woocommerce_disable_sync' => '0', 'created_at' => '2020-05-11 13:52:47', 'updated_at' => '2020-05-11 13:52:47'], ]; DB::table('products')->insert($products); $product_variations = [ ['id' => '1', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '1', 'is_dummy' => '1', 'created_at' => '2018-01-03 21:29:08', 'updated_at' => '2018-01-03 21:29:08'], ['id' => '2', 'variation_template_id' => '5', 'name' => 'Waist Size', 'product_id' => '2', 'is_dummy' => '0', 'created_at' => '2018-01-03 21:30:35', 'updated_at' => '2020-05-08 09:24:13'], ['id' => '3', 'variation_template_id' => '6', 'name' => 'Size', 'product_id' => '3', 'is_dummy' => '0', 'created_at' => '2018-01-03 22:51:52', 'updated_at' => '2020-05-08 09:24:14'], ['id' => '4', 'variation_template_id' => '6', 'name' => 'Size', 'product_id' => '4', 'is_dummy' => '0', 'created_at' => '2018-01-03 22:54:34', 'updated_at' => '2020-05-08 09:24:14'], ['id' => '8', 'variation_template_id' => '6', 'name' => 'Size', 'product_id' => '8', 'is_dummy' => '0', 'created_at' => '2018-01-03 23:10:10', 'updated_at' => '2020-05-08 09:24:14'], ['id' => '9', 'variation_template_id' => '6', 'name' => 'Size', 'product_id' => '9', 'is_dummy' => '0', 'created_at' => '2018-01-03 23:11:57', 'updated_at' => '2020-05-08 09:24:14'], ['id' => '10', 'variation_template_id' => '6', 'name' => 'Size', 'product_id' => '10', 'is_dummy' => '0', 'created_at' => '2018-01-03 23:13:02', 'updated_at' => '2020-05-08 09:24:14'], ['id' => '11', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '11', 'is_dummy' => '1', 'created_at' => '2018-01-03 23:14:35', 'updated_at' => '2018-01-03 23:14:35'], ['id' => '12', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '12', 'is_dummy' => '1', 'created_at' => '2018-01-03 23:15:50', 'updated_at' => '2018-01-03 23:15:50'], ['id' => '13', 'variation_template_id' => '6', 'name' => 'Size', 'product_id' => '13', 'is_dummy' => '0', 'created_at' => '2018-01-03 23:17:59', 'updated_at' => '2020-05-08 09:24:14'], ['id' => '14', 'variation_template_id' => '4', 'name' => 'Color', 'product_id' => '14', 'is_dummy' => '0', 'created_at' => '2018-01-06 05:42:19', 'updated_at' => '2020-05-08 09:24:14'], ['id' => '15', 'variation_template_id' => '7', 'name' => 'Internal Memory', 'product_id' => '14', 'is_dummy' => '0', 'created_at' => '2018-01-06 05:44:14', 'updated_at' => '2020-05-08 09:24:14'], ['id' => '16', 'variation_template_id' => '4', 'name' => 'Color', 'product_id' => '15', 'is_dummy' => '0', 'created_at' => '2018-01-06 05:49:51', 'updated_at' => '2020-05-08 09:24:14'], ['id' => '17', 'variation_template_id' => '7', 'name' => 'Internal Memory', 'product_id' => '15', 'is_dummy' => '0', 'created_at' => '2018-01-06 05:49:51', 'updated_at' => '2020-05-08 09:24:14'], ['id' => '18', 'variation_template_id' => '4', 'name' => 'Color', 'product_id' => '16', 'is_dummy' => '0', 'created_at' => '2018-01-06 05:54:48', 'updated_at' => '2020-05-08 09:24:14'], ['id' => '19', 'variation_template_id' => '4', 'name' => 'Color', 'product_id' => '17', 'is_dummy' => '0', 'created_at' => '2018-01-06 06:05:01', 'updated_at' => '2020-05-08 09:24:14'], ['id' => '20', 'variation_template_id' => '8', 'name' => 'Storage', 'product_id' => '18', 'is_dummy' => '0', 'created_at' => '2018-01-06 06:07:30', 'updated_at' => '2020-05-08 09:24:14'], ['id' => '21', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '19', 'is_dummy' => '1', 'created_at' => '2018-01-06 06:10:28', 'updated_at' => '2018-01-06 06:10:28'], ['id' => '22', 'variation_template_id' => '4', 'name' => 'Color', 'product_id' => '20', 'is_dummy' => '0', 'created_at' => '2018-01-06 06:13:00', 'updated_at' => '2020-05-08 09:24:14'], ['id' => '23', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '21', 'is_dummy' => '1', 'created_at' => '2018-01-06 06:16:35', 'updated_at' => '2018-01-06 06:16:35'], ['id' => '24', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '22', 'is_dummy' => '1', 'created_at' => '2018-01-06 06:25:09', 'updated_at' => '2018-01-06 06:25:09'], ['id' => '25', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '23', 'is_dummy' => '1', 'created_at' => '2018-01-06 06:26:27', 'updated_at' => '2018-01-06 06:26:27'], ['id' => '26', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '24', 'is_dummy' => '1', 'created_at' => '2018-01-06 06:31:22', 'updated_at' => '2018-01-06 06:31:22'], ['id' => '27', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '25', 'is_dummy' => '1', 'created_at' => '2018-01-06 06:32:23', 'updated_at' => '2018-01-06 06:32:23'], ['id' => '28', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '26', 'is_dummy' => '1', 'created_at' => '2018-01-06 06:35:51', 'updated_at' => '2018-01-06 06:35:51'], ['id' => '29', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '27', 'is_dummy' => '1', 'created_at' => '2018-01-06 06:43:16', 'updated_at' => '2018-01-06 06:43:16'], ['id' => '30', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '28', 'is_dummy' => '1', 'created_at' => '2018-01-06 06:45:47', 'updated_at' => '2018-01-06 06:45:47'], ['id' => '31', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '29', 'is_dummy' => '1', 'created_at' => '2018-01-06 06:46:53', 'updated_at' => '2018-01-06 06:46:53'], ['id' => '32', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '30', 'is_dummy' => '1', 'created_at' => '2018-01-06 06:48:59', 'updated_at' => '2018-01-06 06:48:59'], ['id' => '33', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '31', 'is_dummy' => '1', 'created_at' => '2018-04-10 10:06:29', 'updated_at' => '2018-04-10 10:06:29'], ['id' => '34', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '32', 'is_dummy' => '1', 'created_at' => '2018-04-10 10:07:52', 'updated_at' => '2018-04-10 10:07:52'], ['id' => '35', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '33', 'is_dummy' => '1', 'created_at' => '2018-04-10 10:09:45', 'updated_at' => '2018-04-10 10:09:45'], ['id' => '36', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '34', 'is_dummy' => '1', 'created_at' => '2018-04-10 10:10:59', 'updated_at' => '2018-04-10 10:10:59'], ['id' => '37', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '35', 'is_dummy' => '1', 'created_at' => '2018-04-10 10:12:53', 'updated_at' => '2018-04-10 10:12:53'], ['id' => '38', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '36', 'is_dummy' => '1', 'created_at' => '2018-04-10 10:14:18', 'updated_at' => '2018-04-10 10:14:18'], ['id' => '39', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '37', 'is_dummy' => '1', 'created_at' => '2018-04-10 10:31:29', 'updated_at' => '2018-04-10 10:31:29'], ['id' => '40', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '38', 'is_dummy' => '1', 'created_at' => '2018-04-10 10:32:35', 'updated_at' => '2018-04-10 10:32:35'], ['id' => '41', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '39', 'is_dummy' => '1', 'created_at' => '2018-04-10 10:33:26', 'updated_at' => '2018-04-10 10:33:26'], ['id' => '42', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '40', 'is_dummy' => '1', 'created_at' => '2018-04-10 10:34:32', 'updated_at' => '2018-04-10 10:34:32'], ['id' => '43', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '41', 'is_dummy' => '1', 'created_at' => '2018-04-10 11:08:27', 'updated_at' => '2018-04-10 11:08:27'], ['id' => '44', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '42', 'is_dummy' => '1', 'created_at' => '2018-04-10 11:15:52', 'updated_at' => '2018-04-10 11:15:52'], ['id' => '45', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '43', 'is_dummy' => '1', 'created_at' => '2018-04-10 11:18:01', 'updated_at' => '2018-04-10 11:18:01'], ['id' => '46', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '44', 'is_dummy' => '1', 'created_at' => '2018-04-10 11:19:10', 'updated_at' => '2018-04-10 11:19:10'], ['id' => '47', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '45', 'is_dummy' => '1', 'created_at' => '2018-04-10 11:20:22', 'updated_at' => '2018-04-10 11:20:22'], ['id' => '48', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '46', 'is_dummy' => '1', 'created_at' => '2018-04-10 11:22:04', 'updated_at' => '2018-04-10 11:22:04'], ['id' => '49', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '47', 'is_dummy' => '1', 'created_at' => '2018-04-10 11:23:45', 'updated_at' => '2018-04-10 11:23:45'], ['id' => '50', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '48', 'is_dummy' => '1', 'created_at' => '2018-04-10 11:24:42', 'updated_at' => '2018-04-10 11:24:42'], ['id' => '51', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '49', 'is_dummy' => '1', 'created_at' => '2018-04-10 11:25:55', 'updated_at' => '2018-04-10 11:25:55'], ['id' => '52', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '50', 'is_dummy' => '1', 'created_at' => '2018-04-10 11:34:32', 'updated_at' => '2018-04-10 11:34:32'], ['id' => '53', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '51', 'is_dummy' => '1', 'created_at' => '2018-04-10 12:34:57', 'updated_at' => '2018-04-10 12:34:57'], ['id' => '54', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '52', 'is_dummy' => '1', 'created_at' => '2018-04-10 12:35:55', 'updated_at' => '2018-04-10 12:35:55'], ['id' => '55', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '53', 'is_dummy' => '1', 'created_at' => '2018-04-10 12:39:15', 'updated_at' => '2018-04-10 12:39:15'], ['id' => '56', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '54', 'is_dummy' => '1', 'created_at' => '2018-04-10 12:54:16', 'updated_at' => '2018-04-10 12:54:16'], ['id' => '57', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '55', 'is_dummy' => '1', 'created_at' => '2018-04-10 12:56:18', 'updated_at' => '2018-04-10 12:56:18'], ['id' => '58', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '56', 'is_dummy' => '1', 'created_at' => '2018-04-10 13:01:59', 'updated_at' => '2018-04-10 13:01:59'], ['id' => '59', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '57', 'is_dummy' => '1', 'created_at' => '2018-04-10 13:03:01', 'updated_at' => '2018-04-10 13:03:01'], ['id' => '60', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '58', 'is_dummy' => '1', 'created_at' => '2018-04-10 13:03:37', 'updated_at' => '2018-04-10 13:03:37'], ['id' => '61', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '59', 'is_dummy' => '1', 'created_at' => '2018-04-10 13:06:45', 'updated_at' => '2018-04-10 13:06:45'], ['id' => '62', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '60', 'is_dummy' => '1', 'created_at' => '2018-04-10 13:07:08', 'updated_at' => '2018-04-10 13:07:08'], ['id' => '63', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '61', 'is_dummy' => '1', 'created_at' => '2018-04-10 13:07:08', 'updated_at' => '2018-04-10 13:07:08'], ['id' => '64', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '62', 'is_dummy' => '1', 'created_at' => '2018-04-10 13:07:08', 'updated_at' => '2018-04-10 13:07:08'], ['id' => '65', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '63', 'is_dummy' => '1', 'created_at' => '2018-04-10 13:07:08', 'updated_at' => '2018-04-10 13:07:08'], ['id' => '66', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '64', 'is_dummy' => '1', 'created_at' => '2018-04-10 13:07:08', 'updated_at' => '2018-04-10 13:07:08'], ['id' => '67', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '65', 'is_dummy' => '1', 'created_at' => '2018-04-10 13:07:08', 'updated_at' => '2018-04-10 13:07:08'], ['id' => '68', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '66', 'is_dummy' => '1', 'created_at' => '2018-07-13 01:00:31', 'updated_at' => '2018-07-13 01:00:31'], ['id' => '69', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '67', 'is_dummy' => '1', 'created_at' => '2018-07-13 01:04:47', 'updated_at' => '2018-07-13 01:04:47'], ['id' => '70', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '68', 'is_dummy' => '1', 'created_at' => '2018-07-13 01:08:55', 'updated_at' => '2018-07-13 01:08:55'], ['id' => '71', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '69', 'is_dummy' => '1', 'created_at' => '2018-07-13 01:15:51', 'updated_at' => '2018-07-13 01:15:51'], ['id' => '72', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '70', 'is_dummy' => '1', 'created_at' => '2018-07-13 01:27:37', 'updated_at' => '2018-07-13 01:27:37'], ['id' => '73', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '71', 'is_dummy' => '1', 'created_at' => '2018-07-13 01:30:41', 'updated_at' => '2018-07-13 01:30:41'], ['id' => '74', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '72', 'is_dummy' => '1', 'created_at' => '2018-07-13 01:35:03', 'updated_at' => '2018-07-13 01:35:03'], ['id' => '75', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '73', 'is_dummy' => '1', 'created_at' => '2018-07-13 01:37:29', 'updated_at' => '2018-07-13 01:37:29'], ['id' => '76', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '74', 'is_dummy' => '1', 'created_at' => '2018-07-13 01:40:44', 'updated_at' => '2018-07-13 01:40:44'], ['id' => '77', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '75', 'is_dummy' => '1', 'created_at' => '2018-07-13 01:43:09', 'updated_at' => '2018-07-13 01:43:09'], ['id' => '78', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '76', 'is_dummy' => '1', 'created_at' => '2018-07-13 01:48:33', 'updated_at' => '2018-07-13 01:48:33'], ['id' => '79', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '77', 'is_dummy' => '1', 'created_at' => '2018-07-13 01:54:22', 'updated_at' => '2018-07-13 01:54:22'], ['id' => '80', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '78', 'is_dummy' => '0', 'created_at' => '2018-07-16 07:58:04', 'updated_at' => '2018-07-16 07:58:04'], ['id' => '81', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '79', 'is_dummy' => '0', 'created_at' => '2018-07-16 08:05:37', 'updated_at' => '2018-07-16 08:05:37'], ['id' => '83', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '81', 'is_dummy' => '1', 'created_at' => '2019-08-18 18:52:09', 'updated_at' => '2019-08-18 18:52:09'], ['id' => '84', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '82', 'is_dummy' => '1', 'created_at' => '2019-08-18 18:54:10', 'updated_at' => '2019-08-18 18:54:10'], ['id' => '85', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '83', 'is_dummy' => '1', 'created_at' => '2019-08-18 18:54:59', 'updated_at' => '2019-08-18 18:54:59'], ['id' => '86', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '84', 'is_dummy' => '1', 'created_at' => '2019-08-18 18:55:28', 'updated_at' => '2019-08-18 18:55:28'], ['id' => '87', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '85', 'is_dummy' => '1', 'created_at' => '2019-08-18 18:55:58', 'updated_at' => '2019-08-18 18:55:58'], ['id' => '88', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '86', 'is_dummy' => '1', 'created_at' => '2019-08-18 18:56:41', 'updated_at' => '2019-08-18 18:56:41'], ['id' => '89', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '87', 'is_dummy' => '1', 'created_at' => '2019-08-18 18:57:35', 'updated_at' => '2019-08-18 18:57:35'], ['id' => '90', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '88', 'is_dummy' => '1', 'created_at' => '2019-08-18 18:58:43', 'updated_at' => '2019-08-18 18:58:43'], ['id' => '91', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '89', 'is_dummy' => '1', 'created_at' => '2019-08-18 19:15:23', 'updated_at' => '2019-08-18 19:15:23'], ['id' => '92', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '90', 'is_dummy' => '1', 'created_at' => '2019-08-18 19:16:50', 'updated_at' => '2019-08-18 19:16:50'], ['id' => '93', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '91', 'is_dummy' => '1', 'created_at' => '2019-08-18 19:17:36', 'updated_at' => '2019-08-18 19:17:36'], ['id' => '94', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '92', 'is_dummy' => '1', 'created_at' => '2019-08-18 19:18:26', 'updated_at' => '2019-08-18 19:18:26'], ['id' => '95', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '93', 'is_dummy' => '1', 'created_at' => '2019-08-18 19:19:55', 'updated_at' => '2019-08-18 19:19:55'], ['id' => '96', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '94', 'is_dummy' => '1', 'created_at' => '2020-05-07 21:18:14', 'updated_at' => '2020-05-07 21:18:14'], ['id' => '97', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '95', 'is_dummy' => '1', 'created_at' => '2020-05-07 21:18:58', 'updated_at' => '2020-05-07 21:18:58'], ['id' => '98', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '96', 'is_dummy' => '1', 'created_at' => '2020-05-07 21:20:36', 'updated_at' => '2020-05-07 21:20:36'], ['id' => '99', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '97', 'is_dummy' => '1', 'created_at' => '2020-05-07 21:21:08', 'updated_at' => '2020-05-07 21:21:08'], ['id' => '100', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '98', 'is_dummy' => '1', 'created_at' => '2020-05-07 21:21:48', 'updated_at' => '2020-05-07 21:21:48'], ['id' => '101', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '99', 'is_dummy' => '1', 'created_at' => '2020-05-11 12:47:54', 'updated_at' => '2020-05-11 12:47:54'], ['id' => '102', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '100', 'is_dummy' => '1', 'created_at' => '2020-05-11 12:48:41', 'updated_at' => '2020-05-11 12:48:41'], ['id' => '103', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '101', 'is_dummy' => '1', 'created_at' => '2020-05-11 12:49:21', 'updated_at' => '2020-05-11 12:49:21'], ['id' => '104', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '102', 'is_dummy' => '1', 'created_at' => '2020-05-11 12:54:23', 'updated_at' => '2020-05-11 12:54:23'], ['id' => '105', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '103', 'is_dummy' => '1', 'created_at' => '2020-05-11 12:55:24', 'updated_at' => '2020-05-11 12:55:24'], ['id' => '106', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '104', 'is_dummy' => '1', 'created_at' => '2020-05-11 12:56:45', 'updated_at' => '2020-05-11 12:56:45'], ['id' => '107', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '105', 'is_dummy' => '1', 'created_at' => '2020-05-11 12:58:12', 'updated_at' => '2020-05-11 12:58:12'], ['id' => '108', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '106', 'is_dummy' => '1', 'created_at' => '2020-05-11 12:58:50', 'updated_at' => '2020-05-11 12:58:50'], ['id' => '109', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '107', 'is_dummy' => '1', 'created_at' => '2020-05-11 12:59:22', 'updated_at' => '2020-05-11 12:59:22'], ['id' => '110', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '108', 'is_dummy' => '1', 'created_at' => '2020-05-11 13:00:23', 'updated_at' => '2020-05-11 13:00:23'], ['id' => '111', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '109', 'is_dummy' => '1', 'created_at' => '2020-05-11 13:01:11', 'updated_at' => '2020-05-11 13:01:11'], ['id' => '112', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '110', 'is_dummy' => '1', 'created_at' => '2020-05-11 13:01:56', 'updated_at' => '2020-05-11 13:01:56'], ['id' => '113', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '111', 'is_dummy' => '1', 'created_at' => '2020-05-11 13:10:25', 'updated_at' => '2020-05-11 13:10:25'], ['id' => '114', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '112', 'is_dummy' => '1', 'created_at' => '2020-05-11 13:10:57', 'updated_at' => '2020-05-11 13:10:57'], ['id' => '115', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '113', 'is_dummy' => '1', 'created_at' => '2020-05-11 13:12:17', 'updated_at' => '2020-05-11 13:12:17'], ['id' => '116', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '114', 'is_dummy' => '1', 'created_at' => '2020-05-11 13:12:47', 'updated_at' => '2020-05-11 13:12:47'], ['id' => '117', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '115', 'is_dummy' => '1', 'created_at' => '2020-05-11 13:13:30', 'updated_at' => '2020-05-11 13:13:30'], ['id' => '118', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '116', 'is_dummy' => '1', 'created_at' => '2020-05-11 13:14:18', 'updated_at' => '2020-05-11 13:14:18'], ['id' => '119', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '117', 'is_dummy' => '1', 'created_at' => '2020-05-11 13:15:05', 'updated_at' => '2020-05-11 13:15:05'], ['id' => '120', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '118', 'is_dummy' => '1', 'created_at' => '2020-05-11 13:15:45', 'updated_at' => '2020-05-11 13:15:45'], ['id' => '121', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '119', 'is_dummy' => '1', 'created_at' => '2020-05-11 13:17:11', 'updated_at' => '2020-05-11 13:17:11'], ['id' => '122', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '120', 'is_dummy' => '1', 'created_at' => '2020-05-11 13:17:54', 'updated_at' => '2020-05-11 13:17:54'], ['id' => '123', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '121', 'is_dummy' => '1', 'created_at' => '2020-05-11 13:18:38', 'updated_at' => '2020-05-11 13:18:38'], ['id' => '124', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '122', 'is_dummy' => '1', 'created_at' => '2020-05-11 13:19:40', 'updated_at' => '2020-05-11 13:19:40'], ['id' => '125', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '123', 'is_dummy' => '1', 'created_at' => '2020-05-11 13:20:15', 'updated_at' => '2020-05-11 13:20:15'], ['id' => '126', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '124', 'is_dummy' => '1', 'created_at' => '2020-05-11 13:20:50', 'updated_at' => '2020-05-11 13:20:50'], ['id' => '127', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '125', 'is_dummy' => '1', 'created_at' => '2020-05-11 13:21:42', 'updated_at' => '2020-05-11 13:21:42'], ['id' => '128', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '126', 'is_dummy' => '1', 'created_at' => '2020-05-11 13:22:43', 'updated_at' => '2020-05-11 13:22:43'], ['id' => '129', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '127', 'is_dummy' => '1', 'created_at' => '2020-05-11 13:23:29', 'updated_at' => '2020-05-11 13:23:29'], ['id' => '130', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '128', 'is_dummy' => '1', 'created_at' => '2020-05-11 13:24:57', 'updated_at' => '2020-05-11 13:24:57'], ['id' => '131', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '129', 'is_dummy' => '1', 'created_at' => '2020-05-11 13:25:41', 'updated_at' => '2020-05-11 13:25:41'], ['id' => '132', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '130', 'is_dummy' => '1', 'created_at' => '2020-05-11 13:26:17', 'updated_at' => '2020-05-11 13:26:17'], ['id' => '133', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '131', 'is_dummy' => '1', 'created_at' => '2020-05-11 13:27:51', 'updated_at' => '2020-05-11 13:27:51'], ['id' => '134', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '132', 'is_dummy' => '1', 'created_at' => '2020-05-11 13:30:09', 'updated_at' => '2020-05-11 13:30:09'], ['id' => '135', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '133', 'is_dummy' => '1', 'created_at' => '2020-05-11 13:31:14', 'updated_at' => '2020-05-11 13:31:14'], ['id' => '136', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '134', 'is_dummy' => '1', 'created_at' => '2020-05-11 13:32:01', 'updated_at' => '2020-05-11 13:32:01'], ['id' => '137', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '135', 'is_dummy' => '1', 'created_at' => '2020-05-11 13:34:38', 'updated_at' => '2020-05-11 13:34:38'], ['id' => '138', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '136', 'is_dummy' => '1', 'created_at' => '2020-05-11 13:35:40', 'updated_at' => '2020-05-11 13:35:40'], ['id' => '139', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '137', 'is_dummy' => '1', 'created_at' => '2020-05-11 13:36:25', 'updated_at' => '2020-05-11 13:36:25'], ['id' => '140', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '138', 'is_dummy' => '1', 'created_at' => '2020-05-11 13:37:28', 'updated_at' => '2020-05-11 13:37:28'], ['id' => '141', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '139', 'is_dummy' => '1', 'created_at' => '2020-05-11 13:38:24', 'updated_at' => '2020-05-11 13:38:24'], ['id' => '142', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '140', 'is_dummy' => '1', 'created_at' => '2020-05-11 13:39:16', 'updated_at' => '2020-05-11 13:39:16'], ['id' => '143', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '141', 'is_dummy' => '1', 'created_at' => '2020-05-11 13:40:55', 'updated_at' => '2020-05-11 13:40:55'], ['id' => '144', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '142', 'is_dummy' => '1', 'created_at' => '2020-05-11 13:42:14', 'updated_at' => '2020-05-11 13:42:14'], ['id' => '145', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '143', 'is_dummy' => '1', 'created_at' => '2020-05-11 13:43:25', 'updated_at' => '2020-05-11 13:43:25'], ['id' => '146', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '144', 'is_dummy' => '1', 'created_at' => '2020-05-11 13:44:10', 'updated_at' => '2020-05-11 13:44:10'], ['id' => '147', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '145', 'is_dummy' => '1', 'created_at' => '2020-05-11 13:44:53', 'updated_at' => '2020-05-11 13:44:53'], ['id' => '148', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '146', 'is_dummy' => '1', 'created_at' => '2020-05-11 13:46:18', 'updated_at' => '2020-05-11 13:46:18'], ['id' => '149', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '147', 'is_dummy' => '1', 'created_at' => '2020-05-11 13:47:32', 'updated_at' => '2020-05-11 13:47:32'], ['id' => '150', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '148', 'is_dummy' => '1', 'created_at' => '2020-05-11 13:48:51', 'updated_at' => '2020-05-11 13:48:51'], ['id' => '151', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '149', 'is_dummy' => '1', 'created_at' => '2020-05-11 13:49:20', 'updated_at' => '2020-05-11 13:49:20'], ['id' => '152', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '150', 'is_dummy' => '1', 'created_at' => '2020-05-11 13:49:45', 'updated_at' => '2020-05-11 13:49:45'], ['id' => '153', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '151', 'is_dummy' => '1', 'created_at' => '2020-05-11 13:50:12', 'updated_at' => '2020-05-11 13:50:12'], ['id' => '154', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '152', 'is_dummy' => '1', 'created_at' => '2020-05-11 13:51:17', 'updated_at' => '2020-05-11 13:51:17'], ['id' => '155', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '153', 'is_dummy' => '1', 'created_at' => '2020-05-11 13:52:03', 'updated_at' => '2020-05-11 13:52:03'], ['id' => '156', 'variation_template_id' => null, 'name' => 'DUMMY', 'product_id' => '154', 'is_dummy' => '1', 'created_at' => '2020-05-11 13:52:47', 'updated_at' => '2020-05-11 13:52:47'], ]; DB::table('product_variations')->insert($product_variations); $variations = [ ['id' => '1', 'name' => 'DUMMY', 'product_id' => '1', 'sub_sku' => 'AS0001', 'product_variation_id' => '1', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '130.0000', 'dpp_inc_tax' => '143.0000', 'profit_percent' => '0.0000', 'default_sell_price' => '130.0000', 'sell_price_inc_tax' => '143.0000', 'created_at' => '2018-01-03 21:29:08', 'updated_at' => '2018-06-11 07:40:59', 'deleted_at' => null, 'combo_variations' => null], ['id' => '2', 'name' => '28', 'product_id' => '2', 'sub_sku' => 'AS0002-1', 'product_variation_id' => '2', 'woocommerce_variation_id' => null, 'variation_value_id' => '21', 'default_purchase_price' => '70.0000', 'dpp_inc_tax' => '77.0000', 'profit_percent' => '0.0000', 'default_sell_price' => '70.0000', 'sell_price_inc_tax' => '77.0000', 'created_at' => '2018-01-03 21:30:35', 'updated_at' => '2020-05-08 09:24:13', 'deleted_at' => null, 'combo_variations' => null], ['id' => '3', 'name' => '30', 'product_id' => '2', 'sub_sku' => 'AS0002-2', 'product_variation_id' => '2', 'woocommerce_variation_id' => null, 'variation_value_id' => '22', 'default_purchase_price' => '70.0000', 'dpp_inc_tax' => '77.0000', 'profit_percent' => '0.0000', 'default_sell_price' => '70.0000', 'sell_price_inc_tax' => '77.0000', 'created_at' => '2018-01-03 21:30:35', 'updated_at' => '2020-05-08 09:24:13', 'deleted_at' => null, 'combo_variations' => null], ['id' => '4', 'name' => '32', 'product_id' => '2', 'sub_sku' => 'AS0002-3', 'product_variation_id' => '2', 'woocommerce_variation_id' => null, 'variation_value_id' => '23', 'default_purchase_price' => '70.0000', 'dpp_inc_tax' => '77.0000', 'profit_percent' => '0.0000', 'default_sell_price' => '70.0000', 'sell_price_inc_tax' => '77.0000', 'created_at' => '2018-01-03 21:30:35', 'updated_at' => '2020-05-08 09:24:13', 'deleted_at' => null, 'combo_variations' => null], ['id' => '5', 'name' => '34', 'product_id' => '2', 'sub_sku' => 'AS0002-4', 'product_variation_id' => '2', 'woocommerce_variation_id' => null, 'variation_value_id' => '24', 'default_purchase_price' => '72.0000', 'dpp_inc_tax' => '79.2000', 'profit_percent' => '0.0000', 'default_sell_price' => '72.0000', 'sell_price_inc_tax' => '79.2000', 'created_at' => '2018-01-03 21:30:35', 'updated_at' => '2020-05-08 09:24:13', 'deleted_at' => null, 'combo_variations' => null], ['id' => '6', 'name' => '36', 'product_id' => '2', 'sub_sku' => 'AS0002-5', 'product_variation_id' => '2', 'woocommerce_variation_id' => null, 'variation_value_id' => '25', 'default_purchase_price' => '72.0000', 'dpp_inc_tax' => '79.2000', 'profit_percent' => '0.0000', 'default_sell_price' => '72.0000', 'sell_price_inc_tax' => '79.2000', 'created_at' => '2018-01-03 21:30:35', 'updated_at' => '2020-05-08 09:24:14', 'deleted_at' => null, 'combo_variations' => null], ['id' => '7', 'name' => 'S', 'product_id' => '3', 'sub_sku' => 'AS0003-1', 'product_variation_id' => '3', 'woocommerce_variation_id' => null, 'variation_value_id' => '26', 'default_purchase_price' => '190.0000', 'dpp_inc_tax' => '209.0000', 'profit_percent' => '0.0000', 'default_sell_price' => '190.0000', 'sell_price_inc_tax' => '209.0000', 'created_at' => '2018-01-03 22:51:52', 'updated_at' => '2020-05-08 09:24:14', 'deleted_at' => null, 'combo_variations' => null], ['id' => '8', 'name' => 'M', 'product_id' => '3', 'sub_sku' => 'AS0003-2', 'product_variation_id' => '3', 'woocommerce_variation_id' => null, 'variation_value_id' => '27', 'default_purchase_price' => '190.0000', 'dpp_inc_tax' => '209.0000', 'profit_percent' => '0.0000', 'default_sell_price' => '190.0000', 'sell_price_inc_tax' => '209.0000', 'created_at' => '2018-01-03 22:51:52', 'updated_at' => '2020-05-08 09:24:14', 'deleted_at' => null, 'combo_variations' => null], ['id' => '9', 'name' => 'L', 'product_id' => '3', 'sub_sku' => 'AS0003-3', 'product_variation_id' => '3', 'woocommerce_variation_id' => null, 'variation_value_id' => '28', 'default_purchase_price' => '190.0000', 'dpp_inc_tax' => '209.0000', 'profit_percent' => '0.0000', 'default_sell_price' => '190.0000', 'sell_price_inc_tax' => '209.0000', 'created_at' => '2018-01-03 22:51:52', 'updated_at' => '2020-05-08 09:24:14', 'deleted_at' => null, 'combo_variations' => null], ['id' => '10', 'name' => 'XL', 'product_id' => '3', 'sub_sku' => 'AS0003-4', 'product_variation_id' => '3', 'woocommerce_variation_id' => null, 'variation_value_id' => '29', 'default_purchase_price' => '191.0000', 'dpp_inc_tax' => '210.1000', 'profit_percent' => '0.0000', 'default_sell_price' => '191.0000', 'sell_price_inc_tax' => '210.1000', 'created_at' => '2018-01-03 22:51:52', 'updated_at' => '2020-05-08 09:24:14', 'deleted_at' => null, 'combo_variations' => null], ['id' => '11', 'name' => '6', 'product_id' => '4', 'sub_sku' => 'AS0004-1', 'product_variation_id' => '4', 'woocommerce_variation_id' => null, 'variation_value_id' => '30', 'default_purchase_price' => '165.0000', 'dpp_inc_tax' => '181.5000', 'profit_percent' => '0.0000', 'default_sell_price' => '165.0000', 'sell_price_inc_tax' => '181.5000', 'created_at' => '2018-01-03 22:54:34', 'updated_at' => '2020-05-08 09:24:14', 'deleted_at' => null, 'combo_variations' => null], ['id' => '12', 'name' => '7', 'product_id' => '4', 'sub_sku' => 'AS0004-2', 'product_variation_id' => '4', 'woocommerce_variation_id' => null, 'variation_value_id' => '31', 'default_purchase_price' => '165.0000', 'dpp_inc_tax' => '181.5000', 'profit_percent' => '0.0000', 'default_sell_price' => '165.0000', 'sell_price_inc_tax' => '181.5000', 'created_at' => '2018-01-03 22:54:34', 'updated_at' => '2020-05-08 09:24:14', 'deleted_at' => null, 'combo_variations' => null], ['id' => '13', 'name' => '8', 'product_id' => '4', 'sub_sku' => 'AS0004-3', 'product_variation_id' => '4', 'woocommerce_variation_id' => null, 'variation_value_id' => '32', 'default_purchase_price' => '165.0000', 'dpp_inc_tax' => '181.5000', 'profit_percent' => '0.0000', 'default_sell_price' => '165.0000', 'sell_price_inc_tax' => '181.5000', 'created_at' => '2018-01-03 22:54:34', 'updated_at' => '2020-05-08 09:24:14', 'deleted_at' => null, 'combo_variations' => null], ['id' => '14', 'name' => '9', 'product_id' => '4', 'sub_sku' => 'AS0004-4', 'product_variation_id' => '4', 'woocommerce_variation_id' => null, 'variation_value_id' => '33', 'default_purchase_price' => '166.0000', 'dpp_inc_tax' => '182.6000', 'profit_percent' => '0.0000', 'default_sell_price' => '166.0000', 'sell_price_inc_tax' => '182.6000', 'created_at' => '2018-01-03 22:54:34', 'updated_at' => '2020-05-08 09:24:14', 'deleted_at' => null, 'combo_variations' => null], ['id' => '27', 'name' => '6', 'product_id' => '8', 'sub_sku' => 'AS0008-1', 'product_variation_id' => '8', 'woocommerce_variation_id' => null, 'variation_value_id' => '30', 'default_purchase_price' => '110.0000', 'dpp_inc_tax' => '121.0000', 'profit_percent' => '0.0000', 'default_sell_price' => '110.0000', 'sell_price_inc_tax' => '121.0000', 'created_at' => '2018-01-03 23:10:10', 'updated_at' => '2020-05-08 09:24:14', 'deleted_at' => null, 'combo_variations' => null], ['id' => '28', 'name' => '7', 'product_id' => '8', 'sub_sku' => 'AS0008-2', 'product_variation_id' => '8', 'woocommerce_variation_id' => null, 'variation_value_id' => '31', 'default_purchase_price' => '110.0000', 'dpp_inc_tax' => '121.0000', 'profit_percent' => '0.0000', 'default_sell_price' => '110.0000', 'sell_price_inc_tax' => '121.0000', 'created_at' => '2018-01-03 23:10:10', 'updated_at' => '2020-05-08 09:24:14', 'deleted_at' => null, 'combo_variations' => null], ['id' => '29', 'name' => '8', 'product_id' => '8', 'sub_sku' => 'AS0008-3', 'product_variation_id' => '8', 'woocommerce_variation_id' => null, 'variation_value_id' => '32', 'default_purchase_price' => '110.0000', 'dpp_inc_tax' => '121.0000', 'profit_percent' => '0.0000', 'default_sell_price' => '110.0000', 'sell_price_inc_tax' => '121.0000', 'created_at' => '2018-01-03 23:10:10', 'updated_at' => '2020-05-08 09:24:14', 'deleted_at' => null, 'combo_variations' => null], ['id' => '30', 'name' => '9', 'product_id' => '8', 'sub_sku' => 'AS0008-4', 'product_variation_id' => '8', 'woocommerce_variation_id' => null, 'variation_value_id' => '33', 'default_purchase_price' => '110.0000', 'dpp_inc_tax' => '121.0000', 'profit_percent' => '0.0000', 'default_sell_price' => '110.0000', 'sell_price_inc_tax' => '121.0000', 'created_at' => '2018-01-03 23:10:10', 'updated_at' => '2020-05-08 09:24:14', 'deleted_at' => null, 'combo_variations' => null], ['id' => '31', 'name' => '6', 'product_id' => '9', 'sub_sku' => 'AS0009-1', 'product_variation_id' => '9', 'woocommerce_variation_id' => null, 'variation_value_id' => '30', 'default_purchase_price' => '135.0000', 'dpp_inc_tax' => '148.5000', 'profit_percent' => '0.0000', 'default_sell_price' => '135.0000', 'sell_price_inc_tax' => '148.5000', 'created_at' => '2018-01-03 23:11:57', 'updated_at' => '2020-05-08 09:24:14', 'deleted_at' => null, 'combo_variations' => null], ['id' => '32', 'name' => '7', 'product_id' => '9', 'sub_sku' => 'AS0009-2', 'product_variation_id' => '9', 'woocommerce_variation_id' => null, 'variation_value_id' => '31', 'default_purchase_price' => '135.0000', 'dpp_inc_tax' => '148.5000', 'profit_percent' => '0.0000', 'default_sell_price' => '135.0000', 'sell_price_inc_tax' => '148.5000', 'created_at' => '2018-01-03 23:11:57', 'updated_at' => '2020-05-08 09:24:14', 'deleted_at' => null, 'combo_variations' => null], ['id' => '33', 'name' => '8', 'product_id' => '9', 'sub_sku' => 'AS0009-3', 'product_variation_id' => '9', 'woocommerce_variation_id' => null, 'variation_value_id' => '32', 'default_purchase_price' => '135.0000', 'dpp_inc_tax' => '148.5000', 'profit_percent' => '0.0000', 'default_sell_price' => '135.0000', 'sell_price_inc_tax' => '148.5000', 'created_at' => '2018-01-03 23:11:57', 'updated_at' => '2020-05-08 09:24:14', 'deleted_at' => null, 'combo_variations' => null], ['id' => '34', 'name' => '9', 'product_id' => '9', 'sub_sku' => 'AS0009-4', 'product_variation_id' => '9', 'woocommerce_variation_id' => null, 'variation_value_id' => '33', 'default_purchase_price' => '135.0000', 'dpp_inc_tax' => '148.5000', 'profit_percent' => '0.0000', 'default_sell_price' => '135.0000', 'sell_price_inc_tax' => '148.5000', 'created_at' => '2018-01-03 23:11:57', 'updated_at' => '2020-05-08 09:24:14', 'deleted_at' => null, 'combo_variations' => null], ['id' => '35', 'name' => '5', 'product_id' => '10', 'sub_sku' => 'AS0010-1', 'product_variation_id' => '10', 'woocommerce_variation_id' => null, 'variation_value_id' => '34', 'default_purchase_price' => '150.0000', 'dpp_inc_tax' => '165.0000', 'profit_percent' => '0.0000', 'default_sell_price' => '150.0000', 'sell_price_inc_tax' => '165.0000', 'created_at' => '2018-01-03 23:13:02', 'updated_at' => '2020-05-08 09:24:14', 'deleted_at' => null, 'combo_variations' => null], ['id' => '36', 'name' => '6', 'product_id' => '10', 'sub_sku' => 'AS0010-2', 'product_variation_id' => '10', 'woocommerce_variation_id' => null, 'variation_value_id' => '30', 'default_purchase_price' => '150.0000', 'dpp_inc_tax' => '165.0000', 'profit_percent' => '0.0000', 'default_sell_price' => '150.0000', 'sell_price_inc_tax' => '165.0000', 'created_at' => '2018-01-03 23:13:02', 'updated_at' => '2020-05-08 09:24:14', 'deleted_at' => null, 'combo_variations' => null], ['id' => '37', 'name' => '7', 'product_id' => '10', 'sub_sku' => 'AS0010-3', 'product_variation_id' => '10', 'woocommerce_variation_id' => null, 'variation_value_id' => '31', 'default_purchase_price' => '150.0000', 'dpp_inc_tax' => '165.0000', 'profit_percent' => '0.0000', 'default_sell_price' => '150.0000', 'sell_price_inc_tax' => '165.0000', 'created_at' => '2018-01-03 23:13:02', 'updated_at' => '2020-05-08 09:24:14', 'deleted_at' => null, 'combo_variations' => null], ['id' => '38', 'name' => '8', 'product_id' => '10', 'sub_sku' => 'AS0010-4', 'product_variation_id' => '10', 'woocommerce_variation_id' => null, 'variation_value_id' => '32', 'default_purchase_price' => '150.0000', 'dpp_inc_tax' => '165.0000', 'profit_percent' => '0.0000', 'default_sell_price' => '150.0000', 'sell_price_inc_tax' => '165.0000', 'created_at' => '2018-01-03 23:13:02', 'updated_at' => '2020-05-08 09:24:14', 'deleted_at' => null, 'combo_variations' => null], ['id' => '39', 'name' => '9', 'product_id' => '10', 'sub_sku' => 'AS0010-5', 'product_variation_id' => '10', 'woocommerce_variation_id' => null, 'variation_value_id' => '33', 'default_purchase_price' => '150.0000', 'dpp_inc_tax' => '165.0000', 'profit_percent' => '0.0000', 'default_sell_price' => '150.0000', 'sell_price_inc_tax' => '165.0000', 'created_at' => '2018-01-03 23:13:02', 'updated_at' => '2020-05-08 09:24:14', 'deleted_at' => null, 'combo_variations' => null], ['id' => '40', 'name' => 'DUMMY', 'product_id' => '11', 'sub_sku' => 'AS0011', 'product_variation_id' => '11', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '30.0000', 'dpp_inc_tax' => '33.0000', 'profit_percent' => '0.0000', 'default_sell_price' => '30.0000', 'sell_price_inc_tax' => '33.0000', 'created_at' => '2018-01-03 23:14:35', 'updated_at' => '2018-06-11 07:36:08', 'deleted_at' => null, 'combo_variations' => null], ['id' => '41', 'name' => 'DUMMY', 'product_id' => '12', 'sub_sku' => 'AS0012', 'product_variation_id' => '12', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '25.0000', 'dpp_inc_tax' => '27.5000', 'profit_percent' => '0.0000', 'default_sell_price' => '25.0000', 'sell_price_inc_tax' => '27.5000', 'created_at' => '2018-01-03 23:15:50', 'updated_at' => '2018-06-11 07:35:50', 'deleted_at' => null, 'combo_variations' => null], ['id' => '42', 'name' => 'M', 'product_id' => '13', 'sub_sku' => 'AS0013-1', 'product_variation_id' => '13', 'woocommerce_variation_id' => null, 'variation_value_id' => '27', 'default_purchase_price' => '60.0000', 'dpp_inc_tax' => '66.0000', 'profit_percent' => '0.0000', 'default_sell_price' => '60.0000', 'sell_price_inc_tax' => '66.0000', 'created_at' => '2018-01-03 23:17:59', 'updated_at' => '2020-05-08 09:24:14', 'deleted_at' => null, 'combo_variations' => null], ['id' => '43', 'name' => 'L', 'product_id' => '13', 'sub_sku' => 'AS0013-2', 'product_variation_id' => '13', 'woocommerce_variation_id' => null, 'variation_value_id' => '28', 'default_purchase_price' => '60.0000', 'dpp_inc_tax' => '66.0000', 'profit_percent' => '0.0000', 'default_sell_price' => '60.0000', 'sell_price_inc_tax' => '66.0000', 'created_at' => '2018-01-03 23:17:59', 'updated_at' => '2020-05-08 09:24:14', 'deleted_at' => null, 'combo_variations' => null], ['id' => '44', 'name' => 'XL', 'product_id' => '13', 'sub_sku' => 'AS0013-3', 'product_variation_id' => '13', 'woocommerce_variation_id' => null, 'variation_value_id' => '29', 'default_purchase_price' => '60.0000', 'dpp_inc_tax' => '66.0000', 'profit_percent' => '0.0000', 'default_sell_price' => '60.0000', 'sell_price_inc_tax' => '66.0000', 'created_at' => '2018-01-03 23:17:59', 'updated_at' => '2020-05-08 09:24:14', 'deleted_at' => null, 'combo_variations' => null], ['id' => '45', 'name' => 'Gray', 'product_id' => '14', 'sub_sku' => 'AS0014-1', 'product_variation_id' => '14', 'woocommerce_variation_id' => null, 'variation_value_id' => '35', 'default_purchase_price' => '700.0000', 'dpp_inc_tax' => '770.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '875.0000', 'sell_price_inc_tax' => '962.5000', 'created_at' => '2018-01-06 05:42:19', 'updated_at' => '2020-05-08 09:24:14', 'deleted_at' => null, 'combo_variations' => null], ['id' => '46', 'name' => 'Black', 'product_id' => '14', 'sub_sku' => 'AS0014-2', 'product_variation_id' => '14', 'woocommerce_variation_id' => null, 'variation_value_id' => '16', 'default_purchase_price' => '700.0000', 'dpp_inc_tax' => '770.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '875.0000', 'sell_price_inc_tax' => '962.5000', 'created_at' => '2018-01-06 05:42:19', 'updated_at' => '2020-05-08 09:24:14', 'deleted_at' => null, 'combo_variations' => null], ['id' => '47', 'name' => '64 GB', 'product_id' => '14', 'sub_sku' => 'AS0014-1', 'product_variation_id' => '15', 'woocommerce_variation_id' => null, 'variation_value_id' => '36', 'default_purchase_price' => '700.0000', 'dpp_inc_tax' => '770.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '875.0000', 'sell_price_inc_tax' => '962.5000', 'created_at' => '2018-01-06 05:44:14', 'updated_at' => '2020-05-08 09:24:14', 'deleted_at' => null, 'combo_variations' => null], ['id' => '48', 'name' => '128 GB', 'product_id' => '14', 'sub_sku' => 'AS0014-2', 'product_variation_id' => '15', 'woocommerce_variation_id' => null, 'variation_value_id' => '37', 'default_purchase_price' => '800.0000', 'dpp_inc_tax' => '880.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '1000.0000', 'sell_price_inc_tax' => '1100.0000', 'created_at' => '2018-01-06 05:44:14', 'updated_at' => '2020-05-08 09:24:14', 'deleted_at' => null, 'combo_variations' => null], ['id' => '49', 'name' => 'White', 'product_id' => '15', 'sub_sku' => 'AS0015-1', 'product_variation_id' => '16', 'woocommerce_variation_id' => null, 'variation_value_id' => '38', 'default_purchase_price' => '950.0000', 'dpp_inc_tax' => '1045.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '1187.5000', 'sell_price_inc_tax' => '1306.2500', 'created_at' => '2018-01-06 05:49:51', 'updated_at' => '2020-05-08 09:24:14', 'deleted_at' => null, 'combo_variations' => null], ['id' => '50', 'name' => 'Gray', 'product_id' => '15', 'sub_sku' => 'AS0015-2', 'product_variation_id' => '16', 'woocommerce_variation_id' => null, 'variation_value_id' => '35', 'default_purchase_price' => '950.0000', 'dpp_inc_tax' => '1045.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '1187.5000', 'sell_price_inc_tax' => '1306.2500', 'created_at' => '2018-01-06 05:49:51', 'updated_at' => '2020-05-08 09:24:14', 'deleted_at' => null, 'combo_variations' => null], ['id' => '51', 'name' => 'Black', 'product_id' => '15', 'sub_sku' => 'AS0015-3', 'product_variation_id' => '16', 'woocommerce_variation_id' => null, 'variation_value_id' => '16', 'default_purchase_price' => '950.0000', 'dpp_inc_tax' => '1045.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '1187.5000', 'sell_price_inc_tax' => '1306.2500', 'created_at' => '2018-01-06 05:49:51', 'updated_at' => '2020-05-08 09:24:14', 'deleted_at' => null, 'combo_variations' => null], ['id' => '52', 'name' => '32 GB', 'product_id' => '15', 'sub_sku' => 'AS0015-1', 'product_variation_id' => '17', 'woocommerce_variation_id' => null, 'variation_value_id' => '39', 'default_purchase_price' => '950.0000', 'dpp_inc_tax' => '1045.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '1187.5000', 'sell_price_inc_tax' => '1306.2500', 'created_at' => '2018-01-06 05:49:51', 'updated_at' => '2020-05-08 09:24:14', 'deleted_at' => null, 'combo_variations' => null], ['id' => '53', 'name' => '64 GB', 'product_id' => '15', 'sub_sku' => 'AS0015-2', 'product_variation_id' => '17', 'woocommerce_variation_id' => null, 'variation_value_id' => '36', 'default_purchase_price' => '1010.0000', 'dpp_inc_tax' => '1111.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '1262.5000', 'sell_price_inc_tax' => '1388.7500', 'created_at' => '2018-01-06 05:49:51', 'updated_at' => '2020-05-08 09:24:14', 'deleted_at' => null, 'combo_variations' => null], ['id' => '54', 'name' => 'Gold', 'product_id' => '16', 'sub_sku' => 'AS0016-1', 'product_variation_id' => '18', 'woocommerce_variation_id' => null, 'variation_value_id' => '20', 'default_purchase_price' => '350.0000', 'dpp_inc_tax' => '350.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '437.5000', 'sell_price_inc_tax' => '437.5000', 'created_at' => '2018-01-06 05:54:48', 'updated_at' => '2020-05-08 09:24:14', 'deleted_at' => null, 'combo_variations' => null], ['id' => '55', 'name' => 'White', 'product_id' => '16', 'sub_sku' => 'AS0016-2', 'product_variation_id' => '18', 'woocommerce_variation_id' => null, 'variation_value_id' => '38', 'default_purchase_price' => '350.0000', 'dpp_inc_tax' => '350.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '437.5000', 'sell_price_inc_tax' => '437.5000', 'created_at' => '2018-01-06 05:54:48', 'updated_at' => '2020-05-08 09:24:14', 'deleted_at' => null, 'combo_variations' => null], ['id' => '56', 'name' => 'Black', 'product_id' => '16', 'sub_sku' => 'AS0016-3', 'product_variation_id' => '18', 'woocommerce_variation_id' => null, 'variation_value_id' => '16', 'default_purchase_price' => '350.0000', 'dpp_inc_tax' => '350.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '437.5000', 'sell_price_inc_tax' => '437.5000', 'created_at' => '2018-01-06 05:54:48', 'updated_at' => '2020-05-08 09:24:14', 'deleted_at' => null, 'combo_variations' => null], ['id' => '57', 'name' => 'Black', 'product_id' => '17', 'sub_sku' => 'AS0017-1', 'product_variation_id' => '19', 'woocommerce_variation_id' => null, 'variation_value_id' => '16', 'default_purchase_price' => '350.0000', 'dpp_inc_tax' => '350.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '437.5000', 'sell_price_inc_tax' => '437.5000', 'created_at' => '2018-01-06 06:05:01', 'updated_at' => '2020-05-08 09:24:14', 'deleted_at' => null, 'combo_variations' => null], ['id' => '58', 'name' => 'White', 'product_id' => '17', 'sub_sku' => 'AS0017-2', 'product_variation_id' => '19', 'woocommerce_variation_id' => null, 'variation_value_id' => '38', 'default_purchase_price' => '350.0000', 'dpp_inc_tax' => '350.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '437.5000', 'sell_price_inc_tax' => '437.5000', 'created_at' => '2018-01-06 06:05:01', 'updated_at' => '2020-05-08 09:24:14', 'deleted_at' => null, 'combo_variations' => null], ['id' => '59', 'name' => '256 GB', 'product_id' => '18', 'sub_sku' => 'AS0018-1', 'product_variation_id' => '20', 'woocommerce_variation_id' => null, 'variation_value_id' => '40', 'default_purchase_price' => '1350.0000', 'dpp_inc_tax' => '1350.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '1687.5000', 'sell_price_inc_tax' => '1687.5000', 'created_at' => '2018-01-06 06:07:30', 'updated_at' => '2020-05-08 09:24:14', 'deleted_at' => null, 'combo_variations' => null], ['id' => '60', 'name' => '500 GB', 'product_id' => '18', 'sub_sku' => 'AS0018-2', 'product_variation_id' => '20', 'woocommerce_variation_id' => null, 'variation_value_id' => '41', 'default_purchase_price' => '1450.0000', 'dpp_inc_tax' => '1450.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '1812.5000', 'sell_price_inc_tax' => '1812.5000', 'created_at' => '2018-01-06 06:07:30', 'updated_at' => '2020-05-08 09:24:14', 'deleted_at' => null, 'combo_variations' => null], ['id' => '61', 'name' => 'DUMMY', 'product_id' => '19', 'sub_sku' => 'AS0019', 'product_variation_id' => '21', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '8.0000', 'dpp_inc_tax' => '8.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '10.0000', 'sell_price_inc_tax' => '10.0000', 'created_at' => '2018-01-06 06:10:28', 'updated_at' => '2018-06-11 07:38:23', 'deleted_at' => null, 'combo_variations' => null], ['id' => '62', 'name' => 'Gray', 'product_id' => '20', 'sub_sku' => 'AS0020-1', 'product_variation_id' => '22', 'woocommerce_variation_id' => null, 'variation_value_id' => '35', 'default_purchase_price' => '25.0000', 'dpp_inc_tax' => '27.5000', 'profit_percent' => '25.0000', 'default_sell_price' => '31.2500', 'sell_price_inc_tax' => '34.3800', 'created_at' => '2018-01-06 06:13:00', 'updated_at' => '2020-05-08 09:24:14', 'deleted_at' => null, 'combo_variations' => null], ['id' => '63', 'name' => 'Black', 'product_id' => '20', 'sub_sku' => 'AS0020-2', 'product_variation_id' => '22', 'woocommerce_variation_id' => null, 'variation_value_id' => '16', 'default_purchase_price' => '25.0000', 'dpp_inc_tax' => '27.5000', 'profit_percent' => '25.0000', 'default_sell_price' => '31.2500', 'sell_price_inc_tax' => '34.3800', 'created_at' => '2018-01-06 06:13:00', 'updated_at' => '2020-05-08 09:24:14', 'deleted_at' => null, 'combo_variations' => null], ['id' => '64', 'name' => 'DUMMY', 'product_id' => '21', 'sub_sku' => 'AS0021', 'product_variation_id' => '23', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '10.0000', 'dpp_inc_tax' => '10.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '12.5000', 'sell_price_inc_tax' => '12.5000', 'created_at' => '2018-01-06 06:16:35', 'updated_at' => '2018-06-11 07:42:13', 'deleted_at' => null, 'combo_variations' => null], ['id' => '65', 'name' => 'DUMMY', 'product_id' => '22', 'sub_sku' => 'AS0022', 'product_variation_id' => '24', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '8.0000', 'dpp_inc_tax' => '8.8000', 'profit_percent' => '25.0000', 'default_sell_price' => '10.0000', 'sell_price_inc_tax' => '11.0000', 'created_at' => '2018-01-06 06:25:09', 'updated_at' => '2018-06-11 07:38:37', 'deleted_at' => null, 'combo_variations' => null], ['id' => '66', 'name' => 'DUMMY', 'product_id' => '23', 'sub_sku' => 'AS0023', 'product_variation_id' => '25', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '10.0000', 'dpp_inc_tax' => '10.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '12.5000', 'sell_price_inc_tax' => '12.5000', 'created_at' => '2018-01-06 06:26:27', 'updated_at' => '2018-06-11 07:43:51', 'deleted_at' => null, 'combo_variations' => null], ['id' => '67', 'name' => 'DUMMY', 'product_id' => '24', 'sub_sku' => 'AS0024', 'product_variation_id' => '26', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '8.0000', 'dpp_inc_tax' => '8.8000', 'profit_percent' => '25.0000', 'default_sell_price' => '10.0000', 'sell_price_inc_tax' => '11.0000', 'created_at' => '2018-01-06 06:31:22', 'updated_at' => '2018-06-11 07:38:53', 'deleted_at' => null, 'combo_variations' => null], ['id' => '68', 'name' => 'DUMMY', 'product_id' => '25', 'sub_sku' => 'AS0025', 'product_variation_id' => '27', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '15.0000', 'dpp_inc_tax' => '15.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '18.7500', 'sell_price_inc_tax' => '18.7500', 'created_at' => '2018-01-06 06:32:23', 'updated_at' => '2018-06-11 07:39:09', 'deleted_at' => null, 'combo_variations' => null], ['id' => '69', 'name' => 'DUMMY', 'product_id' => '26', 'sub_sku' => 'AS0026', 'product_variation_id' => '28', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '5.0000', 'dpp_inc_tax' => '5.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '6.2500', 'sell_price_inc_tax' => '6.2500', 'created_at' => '2018-01-06 06:35:51', 'updated_at' => '2018-06-11 07:41:51', 'deleted_at' => null, 'combo_variations' => null], ['id' => '70', 'name' => 'DUMMY', 'product_id' => '27', 'sub_sku' => 'AS0027', 'product_variation_id' => '29', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '20.0000', 'dpp_inc_tax' => '22.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '25.0000', 'sell_price_inc_tax' => '27.5000', 'created_at' => '2018-01-06 06:43:16', 'updated_at' => '2018-06-11 07:38:01', 'deleted_at' => null, 'combo_variations' => null], ['id' => '71', 'name' => 'DUMMY', 'product_id' => '28', 'sub_sku' => 'AS0028', 'product_variation_id' => '30', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '10.0000', 'dpp_inc_tax' => '11.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '12.5000', 'sell_price_inc_tax' => '13.7500', 'created_at' => '2018-01-06 06:45:47', 'updated_at' => '2018-06-11 07:37:45', 'deleted_at' => null, 'combo_variations' => null], ['id' => '72', 'name' => 'DUMMY', 'product_id' => '29', 'sub_sku' => 'AS0029', 'product_variation_id' => '31', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '12.0000', 'dpp_inc_tax' => '12.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '15.0000', 'sell_price_inc_tax' => '15.0000', 'created_at' => '2018-01-06 06:46:53', 'updated_at' => '2018-06-11 07:44:34', 'deleted_at' => null, 'combo_variations' => null], ['id' => '73', 'name' => 'DUMMY', 'product_id' => '30', 'sub_sku' => 'AS0030', 'product_variation_id' => '32', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '40.0000', 'dpp_inc_tax' => '44.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '50.0000', 'sell_price_inc_tax' => '55.0000', 'created_at' => '2018-01-06 06:48:59', 'updated_at' => '2018-06-11 07:39:59', 'deleted_at' => null, 'combo_variations' => null], ['id' => '74', 'name' => 'DUMMY', 'product_id' => '31', 'sub_sku' => 'AP0031', 'product_variation_id' => '33', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '7.0000', 'dpp_inc_tax' => '7.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '8.7500', 'sell_price_inc_tax' => '8.7500', 'created_at' => '2018-04-10 10:06:29', 'updated_at' => '2018-04-10 10:06:29', 'deleted_at' => null, 'combo_variations' => null], ['id' => '75', 'name' => 'DUMMY', 'product_id' => '32', 'sub_sku' => 'AP0032', 'product_variation_id' => '34', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '12.0000', 'dpp_inc_tax' => '12.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '15.0000', 'sell_price_inc_tax' => '15.0000', 'created_at' => '2018-04-10 10:07:52', 'updated_at' => '2018-04-10 10:07:52', 'deleted_at' => null, 'combo_variations' => null], ['id' => '76', 'name' => 'DUMMY', 'product_id' => '33', 'sub_sku' => 'AP0033', 'product_variation_id' => '35', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '12.0000', 'dpp_inc_tax' => '12.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '15.0000', 'sell_price_inc_tax' => '15.0000', 'created_at' => '2018-04-10 10:09:45', 'updated_at' => '2018-04-10 10:09:45', 'deleted_at' => null, 'combo_variations' => null], ['id' => '77', 'name' => 'DUMMY', 'product_id' => '34', 'sub_sku' => 'AP0034', 'product_variation_id' => '36', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '6.0000', 'dpp_inc_tax' => '6.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '7.5000', 'sell_price_inc_tax' => '7.5000', 'created_at' => '2018-04-10 10:10:59', 'updated_at' => '2018-04-10 10:10:59', 'deleted_at' => null, 'combo_variations' => null], ['id' => '78', 'name' => 'DUMMY', 'product_id' => '35', 'sub_sku' => 'AP0035', 'product_variation_id' => '37', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '7.0000', 'dpp_inc_tax' => '7.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '8.7500', 'sell_price_inc_tax' => '8.7500', 'created_at' => '2018-04-10 10:12:53', 'updated_at' => '2018-04-10 10:12:53', 'deleted_at' => null, 'combo_variations' => null], ['id' => '79', 'name' => 'DUMMY', 'product_id' => '36', 'sub_sku' => 'AP0036', 'product_variation_id' => '38', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '9.0000', 'dpp_inc_tax' => '9.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '11.2500', 'sell_price_inc_tax' => '11.2500', 'created_at' => '2018-04-10 10:14:18', 'updated_at' => '2018-04-10 10:14:18', 'deleted_at' => null, 'combo_variations' => null], ['id' => '80', 'name' => 'DUMMY', 'product_id' => '37', 'sub_sku' => 'AP0037', 'product_variation_id' => '39', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '12.0000', 'dpp_inc_tax' => '12.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '15.0000', 'sell_price_inc_tax' => '15.0000', 'created_at' => '2018-04-10 10:31:29', 'updated_at' => '2018-04-10 10:31:29', 'deleted_at' => null, 'combo_variations' => null], ['id' => '81', 'name' => 'DUMMY', 'product_id' => '38', 'sub_sku' => 'AP0038', 'product_variation_id' => '40', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '15.0000', 'dpp_inc_tax' => '15.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '18.7500', 'sell_price_inc_tax' => '18.7500', 'created_at' => '2018-04-10 10:32:35', 'updated_at' => '2018-04-10 10:32:35', 'deleted_at' => null, 'combo_variations' => null], ['id' => '82', 'name' => 'DUMMY', 'product_id' => '39', 'sub_sku' => 'AP0039', 'product_variation_id' => '41', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '12.0000', 'dpp_inc_tax' => '12.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '15.0000', 'sell_price_inc_tax' => '15.0000', 'created_at' => '2018-04-10 10:33:26', 'updated_at' => '2018-04-10 10:33:26', 'deleted_at' => null, 'combo_variations' => null], ['id' => '83', 'name' => 'DUMMY', 'product_id' => '40', 'sub_sku' => 'AP0040', 'product_variation_id' => '42', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '8.0000', 'dpp_inc_tax' => '8.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '10.0000', 'sell_price_inc_tax' => '10.0000', 'created_at' => '2018-04-10 10:34:32', 'updated_at' => '2018-04-10 10:34:49', 'deleted_at' => null, 'combo_variations' => null], ['id' => '84', 'name' => 'DUMMY', 'product_id' => '41', 'sub_sku' => 'AE0041', 'product_variation_id' => '43', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '500.0000', 'dpp_inc_tax' => '500.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '625.0000', 'sell_price_inc_tax' => '625.0000', 'created_at' => '2018-04-10 11:08:27', 'updated_at' => '2018-04-10 11:08:27', 'deleted_at' => null, 'combo_variations' => null], ['id' => '85', 'name' => 'DUMMY', 'product_id' => '42', 'sub_sku' => 'AE0042', 'product_variation_id' => '44', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '520.0000', 'dpp_inc_tax' => '520.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '650.0000', 'sell_price_inc_tax' => '650.0000', 'created_at' => '2018-04-10 11:15:52', 'updated_at' => '2018-04-10 11:51:21', 'deleted_at' => null, 'combo_variations' => null], ['id' => '86', 'name' => 'DUMMY', 'product_id' => '43', 'sub_sku' => 'AE0043', 'product_variation_id' => '45', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '400.0000', 'dpp_inc_tax' => '400.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '500.0000', 'sell_price_inc_tax' => '500.0000', 'created_at' => '2018-04-10 11:18:01', 'updated_at' => '2018-04-10 11:18:01', 'deleted_at' => null, 'combo_variations' => null], ['id' => '87', 'name' => 'DUMMY', 'product_id' => '44', 'sub_sku' => 'AE0044', 'product_variation_id' => '46', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '195.0000', 'dpp_inc_tax' => '195.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '243.7500', 'sell_price_inc_tax' => '243.7500', 'created_at' => '2018-04-10 11:19:10', 'updated_at' => '2018-04-10 11:19:10', 'deleted_at' => null, 'combo_variations' => null], ['id' => '88', 'name' => 'DUMMY', 'product_id' => '45', 'sub_sku' => 'AE0045', 'product_variation_id' => '47', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '300.0000', 'dpp_inc_tax' => '300.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '375.0000', 'sell_price_inc_tax' => '375.0000', 'created_at' => '2018-04-10 11:20:22', 'updated_at' => '2018-04-10 11:20:22', 'deleted_at' => null, 'combo_variations' => null], ['id' => '89', 'name' => 'DUMMY', 'product_id' => '46', 'sub_sku' => 'AE0046', 'product_variation_id' => '48', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '321.0000', 'dpp_inc_tax' => '321.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '401.2500', 'sell_price_inc_tax' => '401.2500', 'created_at' => '2018-04-10 11:22:04', 'updated_at' => '2018-04-10 11:22:04', 'deleted_at' => null, 'combo_variations' => null], ['id' => '90', 'name' => 'DUMMY', 'product_id' => '47', 'sub_sku' => 'AE0047', 'product_variation_id' => '49', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '255.0000', 'dpp_inc_tax' => '255.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '318.7500', 'sell_price_inc_tax' => '318.7500', 'created_at' => '2018-04-10 11:23:45', 'updated_at' => '2018-04-10 11:23:45', 'deleted_at' => null, 'combo_variations' => null], ['id' => '91', 'name' => 'DUMMY', 'product_id' => '48', 'sub_sku' => 'AE0048', 'product_variation_id' => '50', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '850.0000', 'dpp_inc_tax' => '850.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '1062.5000', 'sell_price_inc_tax' => '1062.5000', 'created_at' => '2018-04-10 11:24:42', 'updated_at' => '2018-04-10 11:52:07', 'deleted_at' => null, 'combo_variations' => null], ['id' => '92', 'name' => 'DUMMY', 'product_id' => '49', 'sub_sku' => 'AE0049', 'product_variation_id' => '51', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '1500.0000', 'dpp_inc_tax' => '1500.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '1875.0000', 'sell_price_inc_tax' => '1875.0000', 'created_at' => '2018-04-10 11:25:55', 'updated_at' => '2018-04-10 11:25:55', 'deleted_at' => null, 'combo_variations' => null], ['id' => '93', 'name' => 'DUMMY', 'product_id' => '50', 'sub_sku' => 'AE0050', 'product_variation_id' => '52', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '630.0000', 'dpp_inc_tax' => '630.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '787.5000', 'sell_price_inc_tax' => '787.5000', 'created_at' => '2018-04-10 11:34:32', 'updated_at' => '2018-04-10 11:34:32', 'deleted_at' => null, 'combo_variations' => null], ['id' => '94', 'name' => 'DUMMY', 'product_id' => '51', 'sub_sku' => 'AS0051', 'product_variation_id' => '53', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '100.0000', 'dpp_inc_tax' => '100.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '125.0000', 'sell_price_inc_tax' => '125.0000', 'created_at' => '2018-04-10 12:34:57', 'updated_at' => '2018-04-10 12:34:57', 'deleted_at' => null, 'combo_variations' => null], ['id' => '95', 'name' => 'DUMMY', 'product_id' => '52', 'sub_sku' => 'AS0052', 'product_variation_id' => '54', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '80.0000', 'dpp_inc_tax' => '80.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '100.0000', 'sell_price_inc_tax' => '100.0000', 'created_at' => '2018-04-10 12:35:55', 'updated_at' => '2018-04-10 12:35:55', 'deleted_at' => null, 'combo_variations' => null], ['id' => '96', 'name' => 'DUMMY', 'product_id' => '53', 'sub_sku' => 'AS0053', 'product_variation_id' => '55', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '105.0000', 'dpp_inc_tax' => '105.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '131.2500', 'sell_price_inc_tax' => '131.2500', 'created_at' => '2018-04-10 12:39:15', 'updated_at' => '2018-04-10 12:39:15', 'deleted_at' => null, 'combo_variations' => null], ['id' => '97', 'name' => 'DUMMY', 'product_id' => '54', 'sub_sku' => 'AS0054', 'product_variation_id' => '56', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '10.0000', 'dpp_inc_tax' => '10.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '12.5000', 'sell_price_inc_tax' => '12.5000', 'created_at' => '2018-04-10 12:54:16', 'updated_at' => '2018-04-10 12:54:16', 'deleted_at' => null, 'combo_variations' => null], ['id' => '98', 'name' => 'DUMMY', 'product_id' => '55', 'sub_sku' => 'AS0055', 'product_variation_id' => '57', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '8.0000', 'dpp_inc_tax' => '8.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '10.0000', 'sell_price_inc_tax' => '10.0000', 'created_at' => '2018-04-10 12:56:18', 'updated_at' => '2018-04-10 12:56:18', 'deleted_at' => null, 'combo_variations' => null], ['id' => '99', 'name' => 'DUMMY', 'product_id' => '56', 'sub_sku' => 'AS0056', 'product_variation_id' => '58', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '150.0000', 'dpp_inc_tax' => '150.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '187.5000', 'sell_price_inc_tax' => '187.5000', 'created_at' => '2018-04-10 13:01:59', 'updated_at' => '2018-04-10 13:01:59', 'deleted_at' => null, 'combo_variations' => null], ['id' => '100', 'name' => 'DUMMY', 'product_id' => '57', 'sub_sku' => 'AS0057', 'product_variation_id' => '59', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '20.0000', 'dpp_inc_tax' => '20.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '25.0000', 'sell_price_inc_tax' => '25.0000', 'created_at' => '2018-04-10 13:03:01', 'updated_at' => '2018-04-10 13:03:01', 'deleted_at' => null, 'combo_variations' => null], ['id' => '101', 'name' => 'DUMMY', 'product_id' => '58', 'sub_sku' => 'AS0058', 'product_variation_id' => '60', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '20.0000', 'dpp_inc_tax' => '20.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '25.0000', 'sell_price_inc_tax' => '25.0000', 'created_at' => '2018-04-10 13:03:37', 'updated_at' => '2018-04-10 13:03:37', 'deleted_at' => null, 'combo_variations' => null], ['id' => '102', 'name' => 'DUMMY', 'product_id' => '59', 'sub_sku' => 'AS0059', 'product_variation_id' => '61', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '15.0000', 'dpp_inc_tax' => '15.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '18.7500', 'sell_price_inc_tax' => '18.7500', 'created_at' => '2018-04-10 13:06:45', 'updated_at' => '2018-04-10 13:06:45', 'deleted_at' => null, 'combo_variations' => null], ['id' => '103', 'name' => 'DUMMY', 'product_id' => '60', 'sub_sku' => 'AS0060', 'product_variation_id' => '62', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '15.0000', 'dpp_inc_tax' => '15.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '18.7500', 'sell_price_inc_tax' => '18.7500', 'created_at' => '2018-04-10 13:07:08', 'updated_at' => '2018-04-10 13:07:08', 'deleted_at' => null, 'combo_variations' => null], ['id' => '104', 'name' => 'DUMMY', 'product_id' => '61', 'sub_sku' => 'AS0061', 'product_variation_id' => '63', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '34.0000', 'dpp_inc_tax' => '34.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '42.5000', 'sell_price_inc_tax' => '42.5000', 'created_at' => '2018-06-11 21:57:41', 'updated_at' => '2018-06-11 21:57:41', 'deleted_at' => null, 'combo_variations' => null], ['id' => '105', 'name' => 'DUMMY', 'product_id' => '62', 'sub_sku' => 'AS0062', 'product_variation_id' => '64', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '35.0000', 'dpp_inc_tax' => '35.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '43.7500', 'sell_price_inc_tax' => '43.7500', 'created_at' => '2018-06-11 22:02:17', 'updated_at' => '2018-06-11 22:02:17', 'deleted_at' => null, 'combo_variations' => null], ['id' => '106', 'name' => 'DUMMY', 'product_id' => '63', 'sub_sku' => 'AS0063', 'product_variation_id' => '65', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '10.0000', 'dpp_inc_tax' => '10.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '12.5000', 'sell_price_inc_tax' => '12.5000', 'created_at' => '2018-06-11 22:08:12', 'updated_at' => '2018-06-11 22:08:12', 'deleted_at' => null, 'combo_variations' => null], ['id' => '107', 'name' => 'DUMMY', 'product_id' => '64', 'sub_sku' => 'AS0064', 'product_variation_id' => '66', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '10.0000', 'dpp_inc_tax' => '10.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '12.5000', 'sell_price_inc_tax' => '12.5000', 'created_at' => '2018-06-11 22:10:34', 'updated_at' => '2018-06-11 22:10:34', 'deleted_at' => null, 'combo_variations' => null], ['id' => '108', 'name' => 'DUMMY', 'product_id' => '65', 'sub_sku' => 'AS0065', 'product_variation_id' => '67', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '10.0000', 'dpp_inc_tax' => '10.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '12.5000', 'sell_price_inc_tax' => '12.5000', 'created_at' => '2018-06-11 22:14:00', 'updated_at' => '2018-06-11 22:14:30', 'deleted_at' => null, 'combo_variations' => null], ['id' => '109', 'name' => 'DUMMY', 'product_id' => '66', 'sub_sku' => 'AR0066', 'product_variation_id' => '68', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '15.0000', 'dpp_inc_tax' => '15.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '18.7500', 'sell_price_inc_tax' => '18.7500', 'created_at' => '2018-07-13 06:30:31', 'updated_at' => '2018-07-13 06:30:31', 'deleted_at' => null, 'combo_variations' => null], ['id' => '110', 'name' => 'DUMMY', 'product_id' => '67', 'sub_sku' => 'AR0067', 'product_variation_id' => '69', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '8.0000', 'dpp_inc_tax' => '8.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '10.0000', 'sell_price_inc_tax' => '10.0000', 'created_at' => '2018-07-13 06:34:47', 'updated_at' => '2018-07-13 06:34:47', 'deleted_at' => null, 'combo_variations' => null], ['id' => '111', 'name' => 'DUMMY', 'product_id' => '68', 'sub_sku' => 'AR0068', 'product_variation_id' => '70', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '11.0000', 'dpp_inc_tax' => '11.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '13.7500', 'sell_price_inc_tax' => '13.7500', 'created_at' => '2018-07-13 06:38:55', 'updated_at' => '2018-07-13 06:38:55', 'deleted_at' => null, 'combo_variations' => null], ['id' => '112', 'name' => 'DUMMY', 'product_id' => '69', 'sub_sku' => 'AR0069', 'product_variation_id' => '71', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '12.0000', 'dpp_inc_tax' => '12.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '15.0000', 'sell_price_inc_tax' => '15.0000', 'created_at' => '2018-07-13 06:45:51', 'updated_at' => '2018-07-13 06:45:51', 'deleted_at' => null, 'combo_variations' => null], ['id' => '113', 'name' => 'DUMMY', 'product_id' => '70', 'sub_sku' => 'AR0070', 'product_variation_id' => '72', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '12.0000', 'dpp_inc_tax' => '12.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '15.0000', 'sell_price_inc_tax' => '15.0000', 'created_at' => '2018-07-13 06:57:37', 'updated_at' => '2018-07-13 06:57:37', 'deleted_at' => null, 'combo_variations' => null], ['id' => '114', 'name' => 'DUMMY', 'product_id' => '71', 'sub_sku' => 'AR0071', 'product_variation_id' => '73', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '17.0000', 'dpp_inc_tax' => '17.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '21.2500', 'sell_price_inc_tax' => '21.2500', 'created_at' => '2018-07-13 07:00:41', 'updated_at' => '2018-07-13 07:00:41', 'deleted_at' => null, 'combo_variations' => null], ['id' => '115', 'name' => 'DUMMY', 'product_id' => '72', 'sub_sku' => 'AR0072', 'product_variation_id' => '74', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '18.0000', 'dpp_inc_tax' => '18.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '22.5000', 'sell_price_inc_tax' => '22.5000', 'created_at' => '2018-07-13 07:05:03', 'updated_at' => '2018-07-13 07:05:03', 'deleted_at' => null, 'combo_variations' => null], ['id' => '116', 'name' => 'DUMMY', 'product_id' => '73', 'sub_sku' => 'AR0073', 'product_variation_id' => '75', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '20.0000', 'dpp_inc_tax' => '20.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '25.0000', 'sell_price_inc_tax' => '25.0000', 'created_at' => '2018-07-13 07:07:29', 'updated_at' => '2018-07-13 07:07:29', 'deleted_at' => null, 'combo_variations' => null], ['id' => '117', 'name' => 'DUMMY', 'product_id' => '74', 'sub_sku' => 'AR0074', 'product_variation_id' => '76', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '7.0000', 'dpp_inc_tax' => '7.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '8.7500', 'sell_price_inc_tax' => '8.7500', 'created_at' => '2018-07-13 07:10:45', 'updated_at' => '2018-07-13 07:10:45', 'deleted_at' => null, 'combo_variations' => null], ['id' => '118', 'name' => 'DUMMY', 'product_id' => '75', 'sub_sku' => 'AR0075', 'product_variation_id' => '77', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '8.0000', 'dpp_inc_tax' => '8.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '10.0000', 'sell_price_inc_tax' => '10.0000', 'created_at' => '2018-07-13 07:13:09', 'updated_at' => '2018-07-13 07:13:09', 'deleted_at' => null, 'combo_variations' => null], ['id' => '119', 'name' => 'DUMMY', 'product_id' => '76', 'sub_sku' => 'AR0076', 'product_variation_id' => '78', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '8.0000', 'dpp_inc_tax' => '8.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '10.0000', 'sell_price_inc_tax' => '10.0000', 'created_at' => '2018-07-13 07:18:33', 'updated_at' => '2018-07-13 07:18:33', 'deleted_at' => null, 'combo_variations' => null], ['id' => '120', 'name' => 'DUMMY', 'product_id' => '77', 'sub_sku' => 'AR0077', 'product_variation_id' => '79', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '3.0000', 'dpp_inc_tax' => '3.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '3.7500', 'sell_price_inc_tax' => '3.7500', 'created_at' => '2018-07-13 07:24:22', 'updated_at' => '2018-07-13 07:28:56', 'deleted_at' => null, 'combo_variations' => null], ['id' => '121', 'name' => 'Bacon', 'product_id' => '78', 'sub_sku' => 'AR0078-1', 'product_variation_id' => '80', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '2.0000', 'dpp_inc_tax' => '2.0000', 'profit_percent' => '0.0000', 'default_sell_price' => '2.0000', 'sell_price_inc_tax' => '2.0000', 'created_at' => '2018-07-16 07:58:04', 'updated_at' => '2018-07-16 07:58:51', 'deleted_at' => null, 'combo_variations' => null], ['id' => '122', 'name' => 'Black olives', 'product_id' => '78', 'sub_sku' => 'AR0078-2', 'product_variation_id' => '80', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '1.0000', 'dpp_inc_tax' => '1.0000', 'profit_percent' => '0.0000', 'default_sell_price' => '1.0000', 'sell_price_inc_tax' => '1.0000', 'created_at' => '2018-07-16 07:58:33', 'updated_at' => '2018-07-16 07:58:51', 'deleted_at' => null, 'combo_variations' => null], ['id' => '123', 'name' => 'Green peppers', 'product_id' => '78', 'sub_sku' => 'AR0078-3', 'product_variation_id' => '80', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '1.0000', 'dpp_inc_tax' => '1.0000', 'profit_percent' => '0.0000', 'default_sell_price' => '1.0000', 'sell_price_inc_tax' => '1.0000', 'created_at' => '2018-07-16 07:58:51', 'updated_at' => '2018-07-16 07:58:51', 'deleted_at' => null, 'combo_variations' => null], ['id' => '124', 'name' => 'Cheese', 'product_id' => '79', 'sub_sku' => 'AR0079-1', 'product_variation_id' => '81', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '2.0000', 'dpp_inc_tax' => '2.0000', 'profit_percent' => '0.0000', 'default_sell_price' => '2.0000', 'sell_price_inc_tax' => '2.0000', 'created_at' => '2018-07-16 08:05:37', 'updated_at' => '2018-07-16 08:06:52', 'deleted_at' => null, 'combo_variations' => null], ['id' => '125', 'name' => 'Vegies', 'product_id' => '79', 'sub_sku' => 'AR0079-2', 'product_variation_id' => '81', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '1.0000', 'dpp_inc_tax' => '1.0000', 'profit_percent' => '0.0000', 'default_sell_price' => '1.0000', 'sell_price_inc_tax' => '1.0000', 'created_at' => '2018-07-16 08:05:37', 'updated_at' => '2018-07-16 08:06:52', 'deleted_at' => null, 'combo_variations' => null], ['id' => '126', 'name' => 'Bacon', 'product_id' => '79', 'sub_sku' => 'AR0079-3', 'product_variation_id' => '81', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '2.0000', 'dpp_inc_tax' => '2.0000', 'profit_percent' => '0.0000', 'default_sell_price' => '2.0000', 'sell_price_inc_tax' => '2.0000', 'created_at' => '2018-07-16 08:05:37', 'updated_at' => '2018-07-16 08:06:52', 'deleted_at' => null, 'combo_variations' => null], ['id' => '127', 'name' => 'Chocolate', 'product_id' => '79', 'sub_sku' => 'AR0079-4', 'product_variation_id' => '81', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '2.0000', 'dpp_inc_tax' => '2.0000', 'profit_percent' => '0.0000', 'default_sell_price' => '2.0000', 'sell_price_inc_tax' => '2.0000', 'created_at' => '2018-07-16 08:06:52', 'updated_at' => '2018-07-16 08:06:52', 'deleted_at' => null, 'combo_variations' => null], ['id' => '129', 'name' => 'DUMMY', 'product_id' => '81', 'sub_sku' => 'Pizza', 'product_variation_id' => '83', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '100.0000', 'dpp_inc_tax' => '100.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '125.0000', 'sell_price_inc_tax' => '125.0000', 'created_at' => '2019-08-18 18:52:09', 'updated_at' => '2019-08-18 18:52:09', 'deleted_at' => null, 'combo_variations' => null], ['id' => '130', 'name' => 'DUMMY', 'product_id' => '82', 'sub_sku' => '0082', 'product_variation_id' => '84', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '20.0000', 'dpp_inc_tax' => '20.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '25.0000', 'sell_price_inc_tax' => '25.0000', 'created_at' => '2019-08-18 18:54:10', 'updated_at' => '2019-08-18 18:54:10', 'deleted_at' => null, 'combo_variations' => null], ['id' => '131', 'name' => 'DUMMY', 'product_id' => '83', 'sub_sku' => '0083', 'product_variation_id' => '85', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '20.0000', 'dpp_inc_tax' => '20.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '25.0000', 'sell_price_inc_tax' => '25.0000', 'created_at' => '2019-08-18 18:54:59', 'updated_at' => '2019-08-18 18:54:59', 'deleted_at' => null, 'combo_variations' => null], ['id' => '132', 'name' => 'DUMMY', 'product_id' => '84', 'sub_sku' => '0084', 'product_variation_id' => '86', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '20.0000', 'dpp_inc_tax' => '20.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '25.0000', 'sell_price_inc_tax' => '25.0000', 'created_at' => '2019-08-18 18:55:28', 'updated_at' => '2019-08-18 18:55:28', 'deleted_at' => null, 'combo_variations' => null], ['id' => '133', 'name' => 'DUMMY', 'product_id' => '85', 'sub_sku' => '0085', 'product_variation_id' => '87', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '2.0000', 'dpp_inc_tax' => '2.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '2.5000', 'sell_price_inc_tax' => '2.5000', 'created_at' => '2019-08-18 18:55:58', 'updated_at' => '2019-08-18 18:55:58', 'deleted_at' => null, 'combo_variations' => null], ['id' => '134', 'name' => 'DUMMY', 'product_id' => '86', 'sub_sku' => '0086', 'product_variation_id' => '88', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '2.0000', 'dpp_inc_tax' => '2.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '2.5000', 'sell_price_inc_tax' => '2.5000', 'created_at' => '2019-08-18 18:56:41', 'updated_at' => '2019-08-18 18:56:41', 'deleted_at' => null, 'combo_variations' => null], ['id' => '135', 'name' => 'DUMMY', 'product_id' => '87', 'sub_sku' => '0087', 'product_variation_id' => '89', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '2.0000', 'dpp_inc_tax' => '2.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '2.5000', 'sell_price_inc_tax' => '2.5000', 'created_at' => '2019-08-18 18:57:35', 'updated_at' => '2019-08-18 18:57:35', 'deleted_at' => null, 'combo_variations' => null], ['id' => '136', 'name' => 'DUMMY', 'product_id' => '88', 'sub_sku' => '0088', 'product_variation_id' => '90', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '10.0000', 'dpp_inc_tax' => '10.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '12.5000', 'sell_price_inc_tax' => '12.5000', 'created_at' => '2019-08-18 18:58:43', 'updated_at' => '2019-08-18 18:58:43', 'deleted_at' => null, 'combo_variations' => null], ['id' => '137', 'name' => 'DUMMY', 'product_id' => '89', 'sub_sku' => '0089', 'product_variation_id' => '91', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '10.0000', 'dpp_inc_tax' => '10.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '12.5000', 'sell_price_inc_tax' => '12.5000', 'created_at' => '2019-08-18 19:15:24', 'updated_at' => '2019-08-18 19:21:40', 'deleted_at' => null, 'combo_variations' => null], ['id' => '138', 'name' => 'DUMMY', 'product_id' => '90', 'sub_sku' => '0090', 'product_variation_id' => '92', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '5.0000', 'dpp_inc_tax' => '5.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '6.2500', 'sell_price_inc_tax' => '6.2500', 'created_at' => '2019-08-18 19:16:50', 'updated_at' => '2019-08-18 19:16:50', 'deleted_at' => null, 'combo_variations' => null], ['id' => '139', 'name' => 'DUMMY', 'product_id' => '91', 'sub_sku' => '0091', 'product_variation_id' => '93', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '0.5000', 'dpp_inc_tax' => '0.5000', 'profit_percent' => '25.0000', 'default_sell_price' => '0.6300', 'sell_price_inc_tax' => '0.6300', 'created_at' => '2019-08-18 19:17:36', 'updated_at' => '2019-08-18 19:17:36', 'deleted_at' => null, 'combo_variations' => null], ['id' => '140', 'name' => 'DUMMY', 'product_id' => '92', 'sub_sku' => '0092', 'product_variation_id' => '94', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '1.0000', 'dpp_inc_tax' => '1.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '1.2500', 'sell_price_inc_tax' => '1.2500', 'created_at' => '2019-08-18 19:18:26', 'updated_at' => '2019-08-18 19:18:26', 'deleted_at' => null, 'combo_variations' => null], ['id' => '141', 'name' => 'DUMMY', 'product_id' => '93', 'sub_sku' => '0093', 'product_variation_id' => '95', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '20.0000', 'dpp_inc_tax' => '20.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '25.0000', 'sell_price_inc_tax' => '25.0000', 'created_at' => '2019-08-18 19:19:55', 'updated_at' => '2019-08-18 19:20:39', 'deleted_at' => null, 'combo_variations' => null], ['id' => '142', 'name' => 'DUMMY', 'product_id' => '94', 'sub_sku' => 'AS0094', 'product_variation_id' => '96', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '58.0000', 'dpp_inc_tax' => '58.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '72.5000', 'sell_price_inc_tax' => '72.5000', 'created_at' => '2020-05-07 21:18:14', 'updated_at' => '2020-05-08 10:07:43', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '143', 'name' => 'DUMMY', 'product_id' => '95', 'sub_sku' => 'AS0095', 'product_variation_id' => '97', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '8.0000', 'dpp_inc_tax' => '8.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '10.0000', 'sell_price_inc_tax' => '10.0000', 'created_at' => '2020-05-07 21:18:58', 'updated_at' => '2020-05-07 21:18:58', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '144', 'name' => 'DUMMY', 'product_id' => '96', 'sub_sku' => 'AS0096', 'product_variation_id' => '98', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '8.0000', 'dpp_inc_tax' => '8.0000', 'profit_percent' => '8.0000', 'default_sell_price' => '8.6400', 'sell_price_inc_tax' => '8.6400', 'created_at' => '2020-05-07 21:20:36', 'updated_at' => '2020-05-08 10:08:13', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '145', 'name' => 'DUMMY', 'product_id' => '97', 'sub_sku' => 'AS0097', 'product_variation_id' => '99', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '8.0000', 'dpp_inc_tax' => '8.0000', 'profit_percent' => '8.0000', 'default_sell_price' => '8.6400', 'sell_price_inc_tax' => '8.6400', 'created_at' => '2020-05-07 21:21:08', 'updated_at' => '2020-05-08 10:08:21', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '146', 'name' => 'DUMMY', 'product_id' => '98', 'sub_sku' => 'AS0098', 'product_variation_id' => '100', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '8.0000', 'dpp_inc_tax' => '8.0000', 'profit_percent' => '0.0000', 'default_sell_price' => '8.0000', 'sell_price_inc_tax' => '8.0000', 'created_at' => '2020-05-07 21:21:48', 'updated_at' => '2020-05-08 10:08:29', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '147', 'name' => 'DUMMY', 'product_id' => '99', 'sub_sku' => 'AS0099', 'product_variation_id' => '101', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '3509.0000', 'dpp_inc_tax' => '3859.9000', 'profit_percent' => '25.0000', 'default_sell_price' => '4386.2500', 'sell_price_inc_tax' => '4824.8800', 'created_at' => '2020-05-11 12:47:54', 'updated_at' => '2020-05-11 12:47:54', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '148', 'name' => 'DUMMY', 'product_id' => '100', 'sub_sku' => 'AS0100', 'product_variation_id' => '102', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '4513.0000', 'dpp_inc_tax' => '4513.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '5641.2500', 'sell_price_inc_tax' => '5641.2500', 'created_at' => '2020-05-11 12:48:41', 'updated_at' => '2020-05-11 12:48:41', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '149', 'name' => 'DUMMY', 'product_id' => '101', 'sub_sku' => 'AS0101', 'product_variation_id' => '103', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '783.0000', 'dpp_inc_tax' => '783.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '978.7500', 'sell_price_inc_tax' => '978.7500', 'created_at' => '2020-05-11 12:49:21', 'updated_at' => '2020-05-11 12:49:21', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '150', 'name' => 'DUMMY', 'product_id' => '102', 'sub_sku' => 'AS0102', 'product_variation_id' => '104', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '525.0000', 'dpp_inc_tax' => '525.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '656.2500', 'sell_price_inc_tax' => '656.2500', 'created_at' => '2020-05-11 12:54:23', 'updated_at' => '2020-05-11 12:54:23', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '151', 'name' => 'DUMMY', 'product_id' => '103', 'sub_sku' => 'AS0103', 'product_variation_id' => '105', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '266.0000', 'dpp_inc_tax' => '266.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '332.5000', 'sell_price_inc_tax' => '332.5000', 'created_at' => '2020-05-11 12:55:24', 'updated_at' => '2020-05-11 12:55:24', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '152', 'name' => 'DUMMY', 'product_id' => '104', 'sub_sku' => 'AS0104', 'product_variation_id' => '106', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '555.0000', 'dpp_inc_tax' => '555.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '693.7500', 'sell_price_inc_tax' => '693.7500', 'created_at' => '2020-05-11 12:56:45', 'updated_at' => '2020-05-11 12:56:45', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '153', 'name' => 'DUMMY', 'product_id' => '105', 'sub_sku' => 'AS0105', 'product_variation_id' => '107', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '555.0000', 'dpp_inc_tax' => '555.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '693.7500', 'sell_price_inc_tax' => '693.7500', 'created_at' => '2020-05-11 12:58:12', 'updated_at' => '2020-05-11 12:58:12', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '154', 'name' => 'DUMMY', 'product_id' => '106', 'sub_sku' => 'AS0106', 'product_variation_id' => '108', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '555.0000', 'dpp_inc_tax' => '555.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '693.7500', 'sell_price_inc_tax' => '693.7500', 'created_at' => '2020-05-11 12:58:50', 'updated_at' => '2020-05-11 12:58:50', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '155', 'name' => 'DUMMY', 'product_id' => '107', 'sub_sku' => 'AS0107', 'product_variation_id' => '109', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '881.0000', 'dpp_inc_tax' => '881.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '1101.2500', 'sell_price_inc_tax' => '1101.2500', 'created_at' => '2020-05-11 12:59:22', 'updated_at' => '2020-05-11 12:59:22', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '156', 'name' => 'DUMMY', 'product_id' => '108', 'sub_sku' => 'AS0108', 'product_variation_id' => '110', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '884.0000', 'dpp_inc_tax' => '884.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '1105.0000', 'sell_price_inc_tax' => '1105.0000', 'created_at' => '2020-05-11 13:00:23', 'updated_at' => '2020-05-11 13:00:23', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '157', 'name' => 'DUMMY', 'product_id' => '109', 'sub_sku' => 'AS0109', 'product_variation_id' => '111', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '154.0000', 'dpp_inc_tax' => '154.0000', 'profit_percent' => '0.0000', 'default_sell_price' => '154.0000', 'sell_price_inc_tax' => '154.0000', 'created_at' => '2020-05-11 13:01:11', 'updated_at' => '2020-05-11 13:01:11', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '158', 'name' => 'DUMMY', 'product_id' => '110', 'sub_sku' => 'AS0110', 'product_variation_id' => '112', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '324.0000', 'dpp_inc_tax' => '324.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '405.0000', 'sell_price_inc_tax' => '405.0000', 'created_at' => '2020-05-11 13:01:56', 'updated_at' => '2020-05-11 13:01:56', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '159', 'name' => 'DUMMY', 'product_id' => '111', 'sub_sku' => 'AS0111', 'product_variation_id' => '113', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '5666.0000', 'dpp_inc_tax' => '5666.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '7082.5000', 'sell_price_inc_tax' => '7082.5000', 'created_at' => '2020-05-11 13:10:25', 'updated_at' => '2020-05-11 13:10:25', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '160', 'name' => 'DUMMY', 'product_id' => '112', 'sub_sku' => 'AS0112', 'product_variation_id' => '114', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '8978.0000', 'dpp_inc_tax' => '8978.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '11222.5000', 'sell_price_inc_tax' => '11222.5000', 'created_at' => '2020-05-11 13:10:57', 'updated_at' => '2020-05-11 13:10:57', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '161', 'name' => 'DUMMY', 'product_id' => '113', 'sub_sku' => 'AS0113', 'product_variation_id' => '115', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '97785.0000', 'dpp_inc_tax' => '97785.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '122231.2500', 'sell_price_inc_tax' => '122231.2500', 'created_at' => '2020-05-11 13:12:17', 'updated_at' => '2020-05-11 13:12:17', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '162', 'name' => 'DUMMY', 'product_id' => '114', 'sub_sku' => 'AS0114', 'product_variation_id' => '116', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '800.0000', 'dpp_inc_tax' => '800.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '1000.0000', 'sell_price_inc_tax' => '1000.0000', 'created_at' => '2020-05-11 13:12:47', 'updated_at' => '2020-05-11 13:12:47', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '163', 'name' => 'DUMMY', 'product_id' => '115', 'sub_sku' => 'AS0115', 'product_variation_id' => '117', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '899.0000', 'dpp_inc_tax' => '899.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '1123.7500', 'sell_price_inc_tax' => '1123.7500', 'created_at' => '2020-05-11 13:13:30', 'updated_at' => '2020-05-11 13:13:30', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '164', 'name' => 'DUMMY', 'product_id' => '116', 'sub_sku' => 'AS0116', 'product_variation_id' => '118', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '9789.0000', 'dpp_inc_tax' => '9789.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '12236.2500', 'sell_price_inc_tax' => '12236.2500', 'created_at' => '2020-05-11 13:14:18', 'updated_at' => '2020-05-11 13:14:18', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '165', 'name' => 'DUMMY', 'product_id' => '117', 'sub_sku' => 'AS0117', 'product_variation_id' => '119', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '89789.0000', 'dpp_inc_tax' => '89789.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '112236.2500', 'sell_price_inc_tax' => '112236.2500', 'created_at' => '2020-05-11 13:15:05', 'updated_at' => '2020-05-11 13:15:05', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '166', 'name' => 'DUMMY', 'product_id' => '118', 'sub_sku' => 'AS0118', 'product_variation_id' => '120', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '798478.0000', 'dpp_inc_tax' => '798478.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '998097.5000', 'sell_price_inc_tax' => '998097.5000', 'created_at' => '2020-05-11 13:15:45', 'updated_at' => '2020-05-11 13:15:45', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '167', 'name' => 'DUMMY', 'product_id' => '119', 'sub_sku' => 'AS0119', 'product_variation_id' => '121', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '8978.0000', 'dpp_inc_tax' => '8978.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '11222.5000', 'sell_price_inc_tax' => '11222.5000', 'created_at' => '2020-05-11 13:17:11', 'updated_at' => '2020-05-11 13:17:11', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '168', 'name' => 'DUMMY', 'product_id' => '120', 'sub_sku' => 'AS0120', 'product_variation_id' => '122', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '2000.0000', 'dpp_inc_tax' => '2000.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '2500.0000', 'sell_price_inc_tax' => '2500.0000', 'created_at' => '2020-05-11 13:17:54', 'updated_at' => '2020-05-11 13:17:54', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '169', 'name' => 'DUMMY', 'product_id' => '121', 'sub_sku' => 'AS0121', 'product_variation_id' => '123', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '6000.0000', 'dpp_inc_tax' => '6000.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '7500.0000', 'sell_price_inc_tax' => '7500.0000', 'created_at' => '2020-05-11 13:18:38', 'updated_at' => '2020-05-11 13:18:38', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '170', 'name' => 'DUMMY', 'product_id' => '122', 'sub_sku' => 'AS0122', 'product_variation_id' => '124', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '3000.0000', 'dpp_inc_tax' => '3000.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '3750.0000', 'sell_price_inc_tax' => '3750.0000', 'created_at' => '2020-05-11 13:19:40', 'updated_at' => '2020-05-11 13:19:40', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '171', 'name' => 'DUMMY', 'product_id' => '123', 'sub_sku' => 'AS0123', 'product_variation_id' => '125', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '5645.0000', 'dpp_inc_tax' => '5645.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '7056.2500', 'sell_price_inc_tax' => '7056.2500', 'created_at' => '2020-05-11 13:20:15', 'updated_at' => '2020-05-11 13:20:15', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '172', 'name' => 'DUMMY', 'product_id' => '124', 'sub_sku' => 'AS0124', 'product_variation_id' => '126', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '7978.0000', 'dpp_inc_tax' => '7978.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '9972.5000', 'sell_price_inc_tax' => '9972.5000', 'created_at' => '2020-05-11 13:20:50', 'updated_at' => '2020-05-11 13:20:50', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '173', 'name' => 'DUMMY', 'product_id' => '125', 'sub_sku' => 'AS0125', 'product_variation_id' => '127', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '566.0000', 'dpp_inc_tax' => '566.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '707.5000', 'sell_price_inc_tax' => '707.5000', 'created_at' => '2020-05-11 13:21:42', 'updated_at' => '2020-05-11 13:21:42', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '174', 'name' => 'DUMMY', 'product_id' => '126', 'sub_sku' => 'AS0126', 'product_variation_id' => '128', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '899.0000', 'dpp_inc_tax' => '899.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '1123.7500', 'sell_price_inc_tax' => '1123.7500', 'created_at' => '2020-05-11 13:22:43', 'updated_at' => '2020-05-11 13:22:43', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '175', 'name' => 'DUMMY', 'product_id' => '127', 'sub_sku' => 'AS0127', 'product_variation_id' => '129', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '900.0000', 'dpp_inc_tax' => '900.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '1125.0000', 'sell_price_inc_tax' => '1125.0000', 'created_at' => '2020-05-11 13:23:29', 'updated_at' => '2020-05-11 13:23:29', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '176', 'name' => 'DUMMY', 'product_id' => '128', 'sub_sku' => 'AS0128', 'product_variation_id' => '130', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '897.0000', 'dpp_inc_tax' => '897.0000', 'profit_percent' => '9.0000', 'default_sell_price' => '977.7300', 'sell_price_inc_tax' => '977.7300', 'created_at' => '2020-05-11 13:24:57', 'updated_at' => '2020-05-11 13:24:57', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '177', 'name' => 'DUMMY', 'product_id' => '129', 'sub_sku' => 'AS0129', 'product_variation_id' => '131', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '8978.0000', 'dpp_inc_tax' => '8978.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '11222.5000', 'sell_price_inc_tax' => '11222.5000', 'created_at' => '2020-05-11 13:25:41', 'updated_at' => '2020-05-11 13:25:41', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '178', 'name' => 'DUMMY', 'product_id' => '130', 'sub_sku' => 'AS0130', 'product_variation_id' => '132', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '5648.0000', 'dpp_inc_tax' => '5648.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '7060.0000', 'sell_price_inc_tax' => '7060.0000', 'created_at' => '2020-05-11 13:26:17', 'updated_at' => '2020-05-11 13:26:17', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '179', 'name' => 'DUMMY', 'product_id' => '131', 'sub_sku' => 'AS0131', 'product_variation_id' => '133', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '8978.0000', 'dpp_inc_tax' => '8978.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '11222.5000', 'sell_price_inc_tax' => '11222.5000', 'created_at' => '2020-05-11 13:27:51', 'updated_at' => '2020-05-11 13:27:51', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '180', 'name' => 'DUMMY', 'product_id' => '132', 'sub_sku' => 'AS0132', 'product_variation_id' => '134', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '5656.0000', 'dpp_inc_tax' => '5656.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '7070.0000', 'sell_price_inc_tax' => '7070.0000', 'created_at' => '2020-05-11 13:30:09', 'updated_at' => '2020-05-11 13:30:09', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '181', 'name' => 'DUMMY', 'product_id' => '133', 'sub_sku' => 'AS0133', 'product_variation_id' => '135', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '900.0000', 'dpp_inc_tax' => '900.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '1125.0000', 'sell_price_inc_tax' => '1125.0000', 'created_at' => '2020-05-11 13:31:14', 'updated_at' => '2020-05-11 13:31:14', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '182', 'name' => 'DUMMY', 'product_id' => '134', 'sub_sku' => 'AS0134', 'product_variation_id' => '136', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '897.0000', 'dpp_inc_tax' => '897.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '1121.2500', 'sell_price_inc_tax' => '1121.2500', 'created_at' => '2020-05-11 13:32:01', 'updated_at' => '2020-05-11 13:32:01', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '183', 'name' => 'DUMMY', 'product_id' => '135', 'sub_sku' => 'AS0135', 'product_variation_id' => '137', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '10000.0000', 'dpp_inc_tax' => '10000.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '12500.0000', 'sell_price_inc_tax' => '12500.0000', 'created_at' => '2020-05-11 13:34:38', 'updated_at' => '2020-05-11 13:34:38', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '184', 'name' => 'DUMMY', 'product_id' => '136', 'sub_sku' => 'AS0136', 'product_variation_id' => '138', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '56464.0000', 'dpp_inc_tax' => '56464.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '70580.0000', 'sell_price_inc_tax' => '70580.0000', 'created_at' => '2020-05-11 13:35:40', 'updated_at' => '2020-05-11 13:35:40', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '185', 'name' => 'DUMMY', 'product_id' => '137', 'sub_sku' => 'AS0137', 'product_variation_id' => '139', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '898.0000', 'dpp_inc_tax' => '898.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '1122.5000', 'sell_price_inc_tax' => '1122.5000', 'created_at' => '2020-05-11 13:36:25', 'updated_at' => '2020-05-11 13:36:25', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '186', 'name' => 'DUMMY', 'product_id' => '138', 'sub_sku' => 'AS0138', 'product_variation_id' => '140', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '8978.0000', 'dpp_inc_tax' => '8978.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '11222.5000', 'sell_price_inc_tax' => '11222.5000', 'created_at' => '2020-05-11 13:37:28', 'updated_at' => '2020-05-11 13:37:28', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '187', 'name' => 'DUMMY', 'product_id' => '139', 'sub_sku' => 'AS0139', 'product_variation_id' => '141', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '8998.0000', 'dpp_inc_tax' => '8998.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '11247.5000', 'sell_price_inc_tax' => '11247.5000', 'created_at' => '2020-05-11 13:38:24', 'updated_at' => '2020-05-11 13:38:24', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '188', 'name' => 'DUMMY', 'product_id' => '140', 'sub_sku' => 'AS0140', 'product_variation_id' => '142', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '2000.0000', 'dpp_inc_tax' => '2000.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '2500.0000', 'sell_price_inc_tax' => '2500.0000', 'created_at' => '2020-05-11 13:39:16', 'updated_at' => '2020-05-11 13:39:16', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '189', 'name' => 'DUMMY', 'product_id' => '141', 'sub_sku' => 'AS0141', 'product_variation_id' => '143', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '89747.0000', 'dpp_inc_tax' => '89747.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '112183.7500', 'sell_price_inc_tax' => '112183.7500', 'created_at' => '2020-05-11 13:40:55', 'updated_at' => '2020-05-11 13:40:55', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '190', 'name' => 'DUMMY', 'product_id' => '142', 'sub_sku' => 'AS0142', 'product_variation_id' => '144', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '89748.0000', 'dpp_inc_tax' => '89748.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '112185.0000', 'sell_price_inc_tax' => '112185.0000', 'created_at' => '2020-05-11 13:42:14', 'updated_at' => '2020-05-11 13:42:14', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '191', 'name' => 'DUMMY', 'product_id' => '143', 'sub_sku' => 'AS0143', 'product_variation_id' => '145', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '6000.0000', 'dpp_inc_tax' => '6000.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '7500.0000', 'sell_price_inc_tax' => '7500.0000', 'created_at' => '2020-05-11 13:43:25', 'updated_at' => '2020-05-11 13:43:25', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '192', 'name' => 'DUMMY', 'product_id' => '144', 'sub_sku' => 'AS0144', 'product_variation_id' => '146', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '9000.0000', 'dpp_inc_tax' => '9000.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '11250.0000', 'sell_price_inc_tax' => '11250.0000', 'created_at' => '2020-05-11 13:44:10', 'updated_at' => '2020-05-11 13:44:10', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '193', 'name' => 'DUMMY', 'product_id' => '145', 'sub_sku' => 'AS0145', 'product_variation_id' => '147', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '6000.0000', 'dpp_inc_tax' => '6000.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '7500.0000', 'sell_price_inc_tax' => '7500.0000', 'created_at' => '2020-05-11 13:44:53', 'updated_at' => '2020-05-11 13:44:53', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '194', 'name' => 'DUMMY', 'product_id' => '146', 'sub_sku' => 'AS0146', 'product_variation_id' => '148', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '890000.0000', 'dpp_inc_tax' => '890000.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '1112500.0000', 'sell_price_inc_tax' => '1112500.0000', 'created_at' => '2020-05-11 13:46:18', 'updated_at' => '2020-05-11 13:46:18', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '195', 'name' => 'DUMMY', 'product_id' => '147', 'sub_sku' => 'AS0147', 'product_variation_id' => '149', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '89000.0000', 'dpp_inc_tax' => '89000.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '111250.0000', 'sell_price_inc_tax' => '111250.0000', 'created_at' => '2020-05-11 13:47:32', 'updated_at' => '2020-05-11 13:47:32', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '196', 'name' => 'DUMMY', 'product_id' => '148', 'sub_sku' => 'AS0148', 'product_variation_id' => '150', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '5000.0000', 'dpp_inc_tax' => '5000.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '6250.0000', 'sell_price_inc_tax' => '6250.0000', 'created_at' => '2020-05-11 13:48:51', 'updated_at' => '2020-05-11 13:48:51', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '197', 'name' => 'DUMMY', 'product_id' => '149', 'sub_sku' => 'AS0149', 'product_variation_id' => '151', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '5646.0000', 'dpp_inc_tax' => '5646.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '7057.5000', 'sell_price_inc_tax' => '7057.5000', 'created_at' => '2020-05-11 13:49:20', 'updated_at' => '2020-05-11 13:49:20', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '198', 'name' => 'DUMMY', 'product_id' => '150', 'sub_sku' => 'AS0150', 'product_variation_id' => '152', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '5646.0000', 'dpp_inc_tax' => '5646.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '7057.5000', 'sell_price_inc_tax' => '7057.5000', 'created_at' => '2020-05-11 13:49:45', 'updated_at' => '2020-05-11 13:49:45', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '199', 'name' => 'DUMMY', 'product_id' => '151', 'sub_sku' => 'AS0151', 'product_variation_id' => '153', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '500.0000', 'dpp_inc_tax' => '500.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '625.0000', 'sell_price_inc_tax' => '625.0000', 'created_at' => '2020-05-11 13:50:12', 'updated_at' => '2020-05-11 13:50:12', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '200', 'name' => 'DUMMY', 'product_id' => '152', 'sub_sku' => 'AS0152', 'product_variation_id' => '154', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '7897.0000', 'dpp_inc_tax' => '7897.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '9871.2500', 'sell_price_inc_tax' => '9871.2500', 'created_at' => '2020-05-11 13:51:17', 'updated_at' => '2020-05-11 13:51:17', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '201', 'name' => 'DUMMY', 'product_id' => '153', 'sub_sku' => 'AS0153', 'product_variation_id' => '155', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '600.0000', 'dpp_inc_tax' => '600.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '750.0000', 'sell_price_inc_tax' => '750.0000', 'created_at' => '2020-05-11 13:52:03', 'updated_at' => '2020-05-11 13:52:03', 'deleted_at' => null, 'combo_variations' => '[]'], ['id' => '202', 'name' => 'DUMMY', 'product_id' => '154', 'sub_sku' => 'AS0154', 'product_variation_id' => '156', 'woocommerce_variation_id' => null, 'variation_value_id' => null, 'default_purchase_price' => '800.0000', 'dpp_inc_tax' => '800.0000', 'profit_percent' => '25.0000', 'default_sell_price' => '1000.0000', 'sell_price_inc_tax' => '1000.0000', 'created_at' => '2020-05-11 13:52:47', 'updated_at' => '2020-05-11 13:52:47', 'deleted_at' => null, 'combo_variations' => '[]'], ]; DB::table('variations')->insert($variations); $res_product_modifier_sets = [ ['modifier_set_id' => '78', 'product_id' => '72'], ['modifier_set_id' => '78', 'product_id' => '73'], ['modifier_set_id' => '79', 'product_id' => '73'], ['modifier_set_id' => '79', 'product_id' => '69'], ['modifier_set_id' => '79', 'product_id' => '72'], ['modifier_set_id' => '79', 'product_id' => '75'], ['modifier_set_id' => '79', 'product_id' => '68'], ]; DB::table('res_product_modifier_sets')->insert($res_product_modifier_sets); DB::insert("INSERT INTO variation_templates (id, name, business_id, created_at, updated_at) VALUES (1, 'Size (Tshirts)', 1, '2018-01-04 02:52:13', '2018-01-04 02:52:13'), (2, 'Size (Shoes)', 1, '2018-01-04 02:53:21', '2018-01-04 02:53:21'), (3, 'Waist Size (Jeans)', 1, '2018-01-04 02:54:34', '2018-01-04 02:54:34'), (4, 'Color', 1, '2018-01-06 12:42:52', '2018-01-06 12:42:52')"); DB::insert("INSERT INTO variation_value_templates (id, name, variation_template_id, created_at, updated_at) VALUES (1, 'S', 1, '2018-01-04 02:52:13', '2018-01-04 02:52:13'), (2, 'M', 1, '2018-01-04 02:52:13', '2018-01-04 02:52:13'), (3, 'L', 1, '2018-01-04 02:52:13', '2018-01-04 02:52:13'), (4, 'XL', 1, '2018-01-04 02:52:13', '2018-01-04 02:52:13'), (5, '5', 2, '2018-01-04 02:53:21', '2018-01-04 02:53:21'), (6, '6', 2, '2018-01-04 02:53:21', '2018-01-04 02:53:21'), (7, '7', 2, '2018-01-04 02:53:21', '2018-01-04 02:53:21'), (8, '8', 2, '2018-01-04 02:53:21', '2018-01-04 02:53:21'), (9, '9', 2, '2018-01-04 02:53:21', '2018-01-04 02:53:21'), (10, '28', 3, '2018-01-04 02:54:34', '2018-01-04 02:54:34'), (11, '30', 3, '2018-01-04 02:54:34', '2018-01-04 02:54:34'), (12, '32', 3, '2018-01-04 02:54:34', '2018-01-04 02:54:34'), (13, '34', 3, '2018-01-04 02:54:35', '2018-01-04 02:54:35'), (14, '36', 3, '2018-01-04 02:54:35', '2018-01-04 02:54:35'), (16, 'Black', 4, '2018-01-06 12:43:17', '2018-01-06 12:43:17'), (17, 'Blue', 4, '2018-01-06 12:43:17', '2018-01-06 12:43:17'), (18, 'Brown', 4, '2018-01-06 12:43:17', '2018-01-06 12:43:17'), (19, 'Grey', 4, '2018-01-06 12:43:17', '2018-01-06 12:43:17'), (20, 'Gold', 4, '2018-01-06 12:43:17', '2018-01-06 12:43:17')"); $purchase_lines = [ ['id' => '1', 'transaction_id' => '1', 'product_id' => '2', 'variation_id' => '2', 'quantity' => '100', 'pp_without_discount' => '70.00', 'discount_percent' => '0.00', 'purchase_price' => '70.00', 'purchase_price_inc_tax' => '77.00', 'item_tax' => '7.00', 'tax_id' => '1', 'quantity_sold' => '50.00', 'quantity_adjusted' => '0.00', 'mfg_date' => null, 'exp_date' => null, 'lot_number' => null, 'created_at' => '2018-01-06 06:57:11', 'updated_at' => '2018-06-13 11:39:08'], ['id' => '2', 'transaction_id' => '1', 'product_id' => '2', 'variation_id' => '3', 'quantity' => '150', 'pp_without_discount' => '70.00', 'discount_percent' => '0.00', 'purchase_price' => '70.00', 'purchase_price_inc_tax' => '77.00', 'item_tax' => '7.00', 'tax_id' => '1', 'quantity_sold' => '60.00', 'quantity_adjusted' => '0.00', 'mfg_date' => null, 'exp_date' => null, 'lot_number' => null, 'created_at' => '2018-01-06 06:57:11', 'updated_at' => '2018-06-13 11:39:08'], ['id' => '3', 'transaction_id' => '1', 'product_id' => '2', 'variation_id' => '4', 'quantity' => '150', 'pp_without_discount' => '70.00', 'discount_percent' => '0.00', 'purchase_price' => '70.00', 'purchase_price_inc_tax' => '77.00', 'item_tax' => '7.00', 'tax_id' => '1', 'quantity_sold' => '0.00', 'quantity_adjusted' => '0.00', 'mfg_date' => null, 'exp_date' => null, 'lot_number' => null, 'created_at' => '2018-01-06 06:57:11', 'updated_at' => '2018-06-13 11:39:07'], ['id' => '4', 'transaction_id' => '1', 'product_id' => '2', 'variation_id' => '5', 'quantity' => '150', 'pp_without_discount' => '72.00', 'discount_percent' => '0.00', 'purchase_price' => '72.00', 'purchase_price_inc_tax' => '79.20', 'item_tax' => '7.20', 'tax_id' => '1', 'quantity_sold' => '0.00', 'quantity_adjusted' => '0.00', 'mfg_date' => null, 'exp_date' => null, 'lot_number' => null, 'created_at' => '2018-01-06 06:57:11', 'updated_at' => '2018-06-13 11:39:07'], ['id' => '5', 'transaction_id' => '1', 'product_id' => '2', 'variation_id' => '6', 'quantity' => '100', 'pp_without_discount' => '72.00', 'discount_percent' => '0.00', 'purchase_price' => '72.00', 'purchase_price_inc_tax' => '79.20', 'item_tax' => '7.20', 'tax_id' => '1', 'quantity_sold' => '0.00', 'quantity_adjusted' => '0.00', 'mfg_date' => null, 'exp_date' => null, 'lot_number' => null, 'created_at' => '2018-01-06 06:57:11', 'updated_at' => '2018-06-13 11:39:07'], ['id' => '6', 'transaction_id' => '2', 'product_id' => '14', 'variation_id' => '47', 'quantity' => '100', 'pp_without_discount' => '700.00', 'discount_percent' => '0.00', 'purchase_price' => '700.00', 'purchase_price_inc_tax' => '770.00', 'item_tax' => '70.00', 'tax_id' => '1', 'quantity_sold' => '0.00', 'quantity_adjusted' => '0.00', 'mfg_date' => null, 'exp_date' => null, 'lot_number' => null, 'created_at' => '2018-01-06 06:58:10', 'updated_at' => '2018-06-13 11:39:07'], ['id' => '7', 'transaction_id' => '3', 'product_id' => '28', 'variation_id' => '71', 'quantity' => '500', 'pp_without_discount' => '10.00', 'discount_percent' => '0.00', 'purchase_price' => '10.00', 'purchase_price_inc_tax' => '11.00', 'item_tax' => '1.00', 'tax_id' => '1', 'quantity_sold' => '30.00', 'quantity_adjusted' => '0.00', 'mfg_date' => null, 'exp_date' => null, 'lot_number' => null, 'created_at' => '2018-01-06 07:02:22', 'updated_at' => '2018-06-13 11:39:08'], ['id' => '8', 'transaction_id' => '4', 'product_id' => '21', 'variation_id' => '64', 'quantity' => '200', 'pp_without_discount' => '10.00', 'discount_percent' => '0.00', 'purchase_price' => '10.00', 'purchase_price_inc_tax' => '10.00', 'item_tax' => '0.00', 'tax_id' => null, 'quantity_sold' => '60.00', 'quantity_adjusted' => '0.00', 'mfg_date' => null, 'exp_date' => null, 'lot_number' => null, 'created_at' => '2018-01-06 07:03:12', 'updated_at' => '2018-06-13 11:39:08'], ['id' => '9', 'transaction_id' => '5', 'product_id' => '27', 'variation_id' => '70', 'quantity' => '500', 'pp_without_discount' => '20.00', 'discount_percent' => '0.00', 'purchase_price' => '20.00', 'purchase_price_inc_tax' => '22.00', 'item_tax' => '2.00', 'tax_id' => '1', 'quantity_sold' => '30.00', 'quantity_adjusted' => '0.00', 'mfg_date' => null, 'exp_date' => null, 'lot_number' => null, 'created_at' => '2018-01-06 07:05:26', 'updated_at' => '2018-06-13 11:39:07'], ['id' => '10', 'transaction_id' => '11', 'product_id' => '34', 'variation_id' => '77', 'quantity' => '50', 'pp_without_discount' => '6.00', 'discount_percent' => '0.00', 'purchase_price' => '6.00', 'purchase_price_inc_tax' => '6.00', 'item_tax' => '0.00', 'tax_id' => null, 'quantity_sold' => '10.00', 'quantity_adjusted' => '0.00', 'mfg_date' => '2018-04-10', 'exp_date' => $next_12_month, 'lot_number' => null, 'created_at' => '2018-04-10 10:18:16', 'updated_at' => '2018-06-13 11:39:08'], ['id' => '11', 'transaction_id' => '12', 'product_id' => '32', 'variation_id' => '75', 'quantity' => '100', 'pp_without_discount' => '12.00', 'discount_percent' => '0.00', 'purchase_price' => '12.00', 'purchase_price_inc_tax' => '12.00', 'item_tax' => '0.00', 'tax_id' => null, 'quantity_sold' => '7.00', 'quantity_adjusted' => '0.00', 'mfg_date' => '2018-04-12', 'exp_date' => $next_6_month, 'lot_number' => null, 'created_at' => '2018-04-10 10:19:40', 'updated_at' => '2018-06-13 11:39:08'], ['id' => '12', 'transaction_id' => '13', 'product_id' => '36', 'variation_id' => '79', 'quantity' => '150', 'pp_without_discount' => '9.00', 'discount_percent' => '0.00', 'purchase_price' => '9.00', 'purchase_price_inc_tax' => '9.00', 'item_tax' => '0.00', 'tax_id' => null, 'quantity_sold' => '0.00', 'quantity_adjusted' => '0.00', 'mfg_date' => '2018-03-30', 'exp_date' => $next_12_month, 'lot_number' => null, 'created_at' => '2018-04-10 10:20:41', 'updated_at' => '2018-06-13 11:39:07'], ['id' => '13', 'transaction_id' => '14', 'product_id' => '33', 'variation_id' => '76', 'quantity' => '180', 'pp_without_discount' => '12.00', 'discount_percent' => '0.00', 'purchase_price' => '12.00', 'purchase_price_inc_tax' => '12.00', 'item_tax' => '0.00', 'tax_id' => null, 'quantity_sold' => '27.00', 'quantity_adjusted' => '0.00', 'mfg_date' => '2018-04-10', 'exp_date' => $yesterday, 'lot_number' => null, 'created_at' => '2018-04-10 10:21:38', 'updated_at' => '2018-06-13 11:39:08'], ['id' => '14', 'transaction_id' => '18', 'product_id' => '46', 'variation_id' => '89', 'quantity' => '30', 'pp_without_discount' => '321.00', 'discount_percent' => '0.00', 'purchase_price' => '321.00', 'purchase_price_inc_tax' => '321.00', 'item_tax' => '0.00', 'tax_id' => null, 'quantity_sold' => '0.00', 'quantity_adjusted' => '0.00', 'mfg_date' => null, 'exp_date' => null, 'lot_number' => null, 'created_at' => '2018-04-10 11:39:54', 'updated_at' => '2018-06-13 11:39:07'], ['id' => '15', 'transaction_id' => '19', 'product_id' => '41', 'variation_id' => '84', 'quantity' => '40', 'pp_without_discount' => '500.00', 'discount_percent' => '0.00', 'purchase_price' => '500.00', 'purchase_price_inc_tax' => '500.00', 'item_tax' => '0.00', 'tax_id' => null, 'quantity_sold' => '26.00', 'quantity_adjusted' => '0.00', 'mfg_date' => null, 'exp_date' => null, 'lot_number' => null, 'created_at' => '2018-04-10 11:40:51', 'updated_at' => '2018-06-13 11:39:09'], ['id' => '16', 'transaction_id' => '20', 'product_id' => '45', 'variation_id' => '88', 'quantity' => '45', 'pp_without_discount' => '300.00', 'discount_percent' => '0.00', 'purchase_price' => '300.00', 'purchase_price_inc_tax' => '300.00', 'item_tax' => '0.00', 'tax_id' => null, 'quantity_sold' => '0.00', 'quantity_adjusted' => '0.00', 'mfg_date' => null, 'exp_date' => null, 'lot_number' => null, 'created_at' => '2018-04-10 11:41:45', 'updated_at' => '2018-06-13 11:39:07'], ['id' => '17', 'transaction_id' => '21', 'product_id' => '44', 'variation_id' => '87', 'quantity' => '100', 'pp_without_discount' => '195.00', 'discount_percent' => '0.00', 'purchase_price' => '195.00', 'purchase_price_inc_tax' => '195.00', 'item_tax' => '0.00', 'tax_id' => null, 'quantity_sold' => '20.00', 'quantity_adjusted' => '0.00', 'mfg_date' => null, 'exp_date' => null, 'lot_number' => null, 'created_at' => '2018-04-10 11:42:34', 'updated_at' => '2018-06-13 11:39:09'], ['id' => '18', 'transaction_id' => '22', 'product_id' => '43', 'variation_id' => '86', 'quantity' => '30', 'pp_without_discount' => '400.00', 'discount_percent' => '0.00', 'purchase_price' => '400.00', 'purchase_price_inc_tax' => '400.00', 'item_tax' => '0.00', 'tax_id' => null, 'quantity_sold' => '5.00', 'quantity_adjusted' => '0.00', 'mfg_date' => null, 'exp_date' => null, 'lot_number' => null, 'created_at' => '2018-04-10 11:43:12', 'updated_at' => '2018-06-13 11:39:09'], ['id' => '19', 'transaction_id' => '27', 'product_id' => '42', 'variation_id' => '85', 'quantity' => '50', 'pp_without_discount' => '520.00', 'discount_percent' => '0.00', 'purchase_price' => '520.00', 'purchase_price_inc_tax' => '520.00', 'item_tax' => '0.00', 'tax_id' => null, 'quantity_sold' => '20.00', 'quantity_adjusted' => '0.00', 'mfg_date' => null, 'exp_date' => null, 'lot_number' => null, 'created_at' => '2018-04-10 11:53:36', 'updated_at' => '2018-06-13 11:39:09'], ['id' => '20', 'transaction_id' => '37', 'product_id' => '61', 'variation_id' => '104', 'quantity' => '20', 'pp_without_discount' => '34.00', 'discount_percent' => '0.00', 'purchase_price' => '34.00', 'purchase_price_inc_tax' => '34.00', 'item_tax' => '0.00', 'tax_id' => null, 'quantity_sold' => '0.00', 'quantity_adjusted' => '0.00', 'mfg_date' => null, 'exp_date' => null, 'lot_number' => null, 'created_at' => '2018-06-11 16:47:07', 'updated_at' => '2018-06-13 11:39:07'], ['id' => '21', 'transaction_id' => '37', 'product_id' => '64', 'variation_id' => '107', 'quantity' => '200', 'pp_without_discount' => '10.00', 'discount_percent' => '0.00', 'purchase_price' => '10.00', 'purchase_price_inc_tax' => '10.00', 'item_tax' => '0.00', 'tax_id' => null, 'quantity_sold' => '0.00', 'quantity_adjusted' => '0.00', 'mfg_date' => null, 'exp_date' => null, 'lot_number' => null, 'created_at' => '2018-06-11 16:47:07', 'updated_at' => '2018-06-13 11:39:07'], ['id' => '22', 'transaction_id' => '37', 'product_id' => '63', 'variation_id' => '106', 'quantity' => '200', 'pp_without_discount' => '10.00', 'discount_percent' => '0.00', 'purchase_price' => '10.00', 'purchase_price_inc_tax' => '10.00', 'item_tax' => '0.00', 'tax_id' => null, 'quantity_sold' => '0.00', 'quantity_adjusted' => '0.00', 'mfg_date' => null, 'exp_date' => null, 'lot_number' => null, 'created_at' => '2018-06-11 16:47:07', 'updated_at' => '2018-06-13 11:39:07'], ['id' => '23', 'transaction_id' => '37', 'product_id' => '65', 'variation_id' => '108', 'quantity' => '50', 'pp_without_discount' => '10.00', 'discount_percent' => '0.00', 'purchase_price' => '10.00', 'purchase_price_inc_tax' => '10.00', 'item_tax' => '0.00', 'tax_id' => null, 'quantity_sold' => '0.00', 'quantity_adjusted' => '0.00', 'mfg_date' => null, 'exp_date' => null, 'lot_number' => null, 'created_at' => '2018-06-11 16:47:07', 'updated_at' => '2018-06-13 11:39:07'], ['id' => '24', 'transaction_id' => '38', 'product_id' => '17', 'variation_id' => '57', 'quantity' => '30', 'pp_without_discount' => '350.00', 'discount_percent' => '0.00', 'purchase_price' => '350.00', 'purchase_price_inc_tax' => '350.00', 'item_tax' => '0.00', 'tax_id' => null, 'quantity_sold' => '0.00', 'quantity_adjusted' => '0.00', 'mfg_date' => null, 'exp_date' => null, 'lot_number' => null, 'created_at' => '2018-06-12 23:18:04', 'updated_at' => '2018-06-12 23:18:04'], ['id' => '25', 'transaction_id' => '38', 'product_id' => '17', 'variation_id' => '58', 'quantity' => '50', 'pp_without_discount' => '350.00', 'discount_percent' => '0.00', 'purchase_price' => '350.00', 'purchase_price_inc_tax' => '350.00', 'item_tax' => '0.00', 'tax_id' => null, 'quantity_sold' => '0.00', 'quantity_adjusted' => '0.00', 'mfg_date' => null, 'exp_date' => null, 'lot_number' => null, 'created_at' => '2018-06-12 23:18:04', 'updated_at' => '2018-06-12 23:18:04'], ['id' => '26', 'transaction_id' => '38', 'product_id' => '64', 'variation_id' => '107', 'quantity' => '100', 'pp_without_discount' => '10.00', 'discount_percent' => '0.00', 'purchase_price' => '10.00', 'purchase_price_inc_tax' => '10.00', 'item_tax' => '0.00', 'tax_id' => null, 'quantity_sold' => '0.00', 'quantity_adjusted' => '0.00', 'mfg_date' => null, 'exp_date' => null, 'lot_number' => null, 'created_at' => '2018-06-12 23:18:04', 'updated_at' => '2018-06-12 23:18:04'], ['id' => '27', 'transaction_id' => '38', 'product_id' => '15', 'variation_id' => '49', 'quantity' => '30', 'pp_without_discount' => '950.00', 'discount_percent' => '0.00', 'purchase_price' => '950.00', 'purchase_price_inc_tax' => '1045.00', 'item_tax' => '95.00', 'tax_id' => '1', 'quantity_sold' => '0.00', 'quantity_adjusted' => '0.00', 'mfg_date' => null, 'exp_date' => null, 'lot_number' => null, 'created_at' => '2018-06-12 23:18:04', 'updated_at' => '2018-06-12 23:18:04'], ['id' => '28', 'transaction_id' => '38', 'product_id' => '15', 'variation_id' => '50', 'quantity' => '20', 'pp_without_discount' => '950.00', 'discount_percent' => '0.00', 'purchase_price' => '950.00', 'purchase_price_inc_tax' => '1045.00', 'item_tax' => '95.00', 'tax_id' => '1', 'quantity_sold' => '0.00', 'quantity_adjusted' => '0.00', 'mfg_date' => null, 'exp_date' => null, 'lot_number' => null, 'created_at' => '2018-06-12 23:18:04', 'updated_at' => '2018-06-12 23:18:04'], ['id' => '29', 'transaction_id' => '38', 'product_id' => '15', 'variation_id' => '51', 'quantity' => '30', 'pp_without_discount' => '950.00', 'discount_percent' => '0.00', 'purchase_price' => '950.00', 'purchase_price_inc_tax' => '1045.00', 'item_tax' => '95.00', 'tax_id' => '1', 'quantity_sold' => '0.00', 'quantity_adjusted' => '0.00', 'mfg_date' => null, 'exp_date' => null, 'lot_number' => null, 'created_at' => '2018-06-12 23:18:04', 'updated_at' => '2018-06-12 23:18:04'], ['id' => '30', 'transaction_id' => '38', 'product_id' => '15', 'variation_id' => '52', 'quantity' => '20', 'pp_without_discount' => '950.00', 'discount_percent' => '0.00', 'purchase_price' => '950.00', 'purchase_price_inc_tax' => '1045.00', 'item_tax' => '95.00', 'tax_id' => '1', 'quantity_sold' => '0.00', 'quantity_adjusted' => '0.00', 'mfg_date' => null, 'exp_date' => null, 'lot_number' => null, 'created_at' => '2018-06-12 23:18:04', 'updated_at' => '2018-06-12 23:18:04'], ['id' => '31', 'transaction_id' => '38', 'product_id' => '15', 'variation_id' => '53', 'quantity' => '40', 'pp_without_discount' => '1010.00', 'discount_percent' => '0.00', 'purchase_price' => '1010.00', 'purchase_price_inc_tax' => '1111.00', 'item_tax' => '101.00', 'tax_id' => '1', 'quantity_sold' => '0.00', 'quantity_adjusted' => '0.00', 'mfg_date' => null, 'exp_date' => null, 'lot_number' => null, 'created_at' => '2018-06-12 23:18:04', 'updated_at' => '2018-06-12 23:18:04'], ['id' => '32', 'transaction_id' => '38', 'product_id' => '18', 'variation_id' => '59', 'quantity' => '20', 'pp_without_discount' => '1350.00', 'discount_percent' => '0.00', 'purchase_price' => '1350.00', 'purchase_price_inc_tax' => '1350.00', 'item_tax' => '0.00', 'tax_id' => null, 'quantity_sold' => '0.00', 'quantity_adjusted' => '0.00', 'mfg_date' => null, 'exp_date' => null, 'lot_number' => null, 'created_at' => '2018-06-12 23:18:04', 'updated_at' => '2018-06-12 23:18:04'], ['id' => '33', 'transaction_id' => '38', 'product_id' => '18', 'variation_id' => '60', 'quantity' => '20', 'pp_without_discount' => '1450.00', 'discount_percent' => '0.00', 'purchase_price' => '1450.00', 'purchase_price_inc_tax' => '1450.00', 'item_tax' => '0.00', 'tax_id' => null, 'quantity_sold' => '0.00', 'quantity_adjusted' => '0.00', 'mfg_date' => null, 'exp_date' => null, 'lot_number' => null, 'created_at' => '2018-06-12 23:18:04', 'updated_at' => '2018-06-12 23:18:04'], ['id' => '34', 'transaction_id' => '38', 'product_id' => '63', 'variation_id' => '106', 'quantity' => '100', 'pp_without_discount' => '10.00', 'discount_percent' => '0.00', 'purchase_price' => '10.00', 'purchase_price_inc_tax' => '10.00', 'item_tax' => '0.00', 'tax_id' => null, 'quantity_sold' => '0.00', 'quantity_adjusted' => '0.00', 'mfg_date' => null, 'exp_date' => null, 'lot_number' => null, 'created_at' => '2018-06-12 23:18:04', 'updated_at' => '2018-06-12 23:18:04'], ['id' => '35', 'transaction_id' => '38', 'product_id' => '19', 'variation_id' => '61', 'quantity' => '30', 'pp_without_discount' => '8.00', 'discount_percent' => '0.00', 'purchase_price' => '8.00', 'purchase_price_inc_tax' => '8.00', 'item_tax' => '0.00', 'tax_id' => null, 'quantity_sold' => '0.00', 'quantity_adjusted' => '0.00', 'mfg_date' => null, 'exp_date' => null, 'lot_number' => null, 'created_at' => '2018-06-12 23:18:04', 'updated_at' => '2018-06-12 23:18:04'], ['id' => '36', 'transaction_id' => '38', 'product_id' => '22', 'variation_id' => '65', 'quantity' => '10', 'pp_without_discount' => '8.00', 'discount_percent' => '0.00', 'purchase_price' => '8.00', 'purchase_price_inc_tax' => '8.80', 'item_tax' => '0.80', 'tax_id' => '1', 'quantity_sold' => '0.00', 'quantity_adjusted' => '0.00', 'mfg_date' => null, 'exp_date' => null, 'lot_number' => null, 'created_at' => '2018-06-12 23:18:04', 'updated_at' => '2018-06-12 23:18:04'], ['id' => '37', 'transaction_id' => '38', 'product_id' => '24', 'variation_id' => '67', 'quantity' => '10', 'pp_without_discount' => '8.00', 'discount_percent' => '0.00', 'purchase_price' => '8.00', 'purchase_price_inc_tax' => '8.80', 'item_tax' => '0.80', 'tax_id' => '1', 'quantity_sold' => '0.00', 'quantity_adjusted' => '0.00', 'mfg_date' => null, 'exp_date' => null, 'lot_number' => null, 'created_at' => '2018-06-12 23:18:04', 'updated_at' => '2018-06-12 23:18:04'], ['id' => '38', 'transaction_id' => '38', 'product_id' => '25', 'variation_id' => '68', 'quantity' => '20', 'pp_without_discount' => '15.00', 'discount_percent' => '0.00', 'purchase_price' => '15.00', 'purchase_price_inc_tax' => '15.00', 'item_tax' => '0.00', 'tax_id' => null, 'quantity_sold' => '0.00', 'quantity_adjusted' => '0.00', 'mfg_date' => null, 'exp_date' => null, 'lot_number' => null, 'created_at' => '2018-06-12 23:18:04', 'updated_at' => '2018-06-12 23:18:04'], ['id' => '39', 'transaction_id' => '39', 'product_id' => '77', 'variation_id' => '120', 'quantity' => '100', 'pp_without_discount' => '3.00', 'discount_percent' => '0.00', 'purchase_price' => '3.00', 'purchase_price_inc_tax' => '3.00', 'item_tax' => '0.00', 'tax_id' => null, 'quantity_sold' => '0.00', 'quantity_adjusted' => '0.00', 'mfg_date' => null, 'exp_date' => null, 'lot_number' => null, 'created_at' => '2018-07-13 07:34:45', 'updated_at' => '2018-07-13 07:34:45'], ['id' => '40', 'transaction_id' => '39', 'product_id' => '76', 'variation_id' => '119', 'quantity' => '200', 'pp_without_discount' => '8.00', 'discount_percent' => '0.00', 'purchase_price' => '8.00', 'purchase_price_inc_tax' => '8.00', 'item_tax' => '0.00', 'tax_id' => null, 'quantity_sold' => '0.00', 'quantity_adjusted' => '0.00', 'mfg_date' => null, 'exp_date' => null, 'lot_number' => null, 'created_at' => '2018-07-13 07:34:45', 'updated_at' => '2018-07-13 07:34:45'], ['id' => '41', 'transaction_id' => '40', 'product_id' => '76', 'variation_id' => '119', 'quantity' => '100', 'pp_without_discount' => '8.00', 'discount_percent' => '0.00', 'purchase_price' => '8.00', 'purchase_price_inc_tax' => '8.00', 'item_tax' => '0.00', 'tax_id' => null, 'quantity_sold' => '0.00', 'quantity_adjusted' => '0.00', 'mfg_date' => null, 'exp_date' => null, 'lot_number' => null, 'created_at' => '2018-07-13 07:38:24', 'updated_at' => '2018-07-13 07:38:24'], ]; DB::table('purchase_lines')->insert($purchase_lines); $mfg_purchase_lines = [ ['id' => '42', 'transaction_id' => '45', 'product_id' => '88', 'variation_id' => '136', 'quantity' => '2000.0000', 'pp_without_discount' => '0.50', 'discount_percent' => '0.00', 'purchase_price' => '0.50', 'purchase_price_inc_tax' => '0.50', 'item_tax' => '0.00', 'tax_id' => null, 'quantity_sold' => '0.0000', 'quantity_adjusted' => '0.0000', 'quantity_returned' => '0.0000', 'mfg_quantity_used' => '100.0000', 'mfg_date' => null, 'exp_date' => null, 'lot_number' => null, 'created_at' => '2019-08-18 19:01:34', 'updated_at' => '2019-08-18 19:09:20'], ['id' => '43', 'transaction_id' => '46', 'product_id' => '87', 'variation_id' => '135', 'quantity' => '2000.0000', 'pp_without_discount' => '0.20', 'discount_percent' => '0.00', 'purchase_price' => '0.20', 'purchase_price_inc_tax' => '0.20', 'item_tax' => '0.00', 'tax_id' => null, 'quantity_sold' => '0.0000', 'quantity_adjusted' => '0.0000', 'quantity_returned' => '0.0000', 'mfg_quantity_used' => '500.0000', 'mfg_date' => null, 'exp_date' => null, 'lot_number' => null, 'created_at' => '2019-08-18 19:01:49', 'updated_at' => '2019-08-18 19:09:20'], ['id' => '44', 'transaction_id' => '47', 'product_id' => '86', 'variation_id' => '134', 'quantity' => '1000.0000', 'pp_without_discount' => '0.50', 'discount_percent' => '0.00', 'purchase_price' => '0.50', 'purchase_price_inc_tax' => '0.50', 'item_tax' => '0.00', 'tax_id' => null, 'quantity_sold' => '0.0000', 'quantity_adjusted' => '0.0000', 'quantity_returned' => '0.0000', 'mfg_quantity_used' => '0.0000', 'mfg_date' => null, 'exp_date' => null, 'lot_number' => null, 'created_at' => '2019-08-18 19:02:07', 'updated_at' => '2019-08-18 19:02:07'], ['id' => '45', 'transaction_id' => '48', 'product_id' => '84', 'variation_id' => '132', 'quantity' => '2000.0000', 'pp_without_discount' => '0.20', 'discount_percent' => '0.00', 'purchase_price' => '0.20', 'purchase_price_inc_tax' => '0.20', 'item_tax' => '0.00', 'tax_id' => null, 'quantity_sold' => '0.0000', 'quantity_adjusted' => '0.0000', 'quantity_returned' => '0.0000', 'mfg_quantity_used' => '50.0000', 'mfg_date' => null, 'exp_date' => null, 'lot_number' => null, 'created_at' => '2019-08-18 19:02:20', 'updated_at' => '2019-08-18 19:09:20'], ['id' => '46', 'transaction_id' => '49', 'product_id' => '82', 'variation_id' => '130', 'quantity' => '1000.0000', 'pp_without_discount' => '20.00', 'discount_percent' => '0.00', 'purchase_price' => '20.00', 'purchase_price_inc_tax' => '20.00', 'item_tax' => '0.00', 'tax_id' => null, 'quantity_sold' => '0.0000', 'quantity_adjusted' => '0.0000', 'quantity_returned' => '0.0000', 'mfg_quantity_used' => '5.0000', 'mfg_date' => null, 'exp_date' => null, 'lot_number' => null, 'created_at' => '2019-08-18 19:02:33', 'updated_at' => '2019-08-18 19:09:20'], ['id' => '47', 'transaction_id' => '50', 'product_id' => '85', 'variation_id' => '133', 'quantity' => '100.0000', 'pp_without_discount' => '0.20', 'discount_percent' => '0.00', 'purchase_price' => '0.20', 'purchase_price_inc_tax' => '0.20', 'item_tax' => '0.00', 'tax_id' => null, 'quantity_sold' => '0.0000', 'quantity_adjusted' => '0.0000', 'quantity_returned' => '0.0000', 'mfg_quantity_used' => '100.0000', 'mfg_date' => null, 'exp_date' => null, 'lot_number' => null, 'created_at' => '2019-08-18 19:02:52', 'updated_at' => '2019-08-18 19:09:20'], ['id' => '48', 'transaction_id' => '51', 'product_id' => '83', 'variation_id' => '131', 'quantity' => '2000.0000', 'pp_without_discount' => '0.10', 'discount_percent' => '0.00', 'purchase_price' => '0.10', 'purchase_price_inc_tax' => '0.10', 'item_tax' => '0.00', 'tax_id' => null, 'quantity_sold' => '0.0000', 'quantity_adjusted' => '0.0000', 'quantity_returned' => '0.0000', 'mfg_quantity_used' => '502.5000', 'mfg_date' => null, 'exp_date' => null, 'lot_number' => null, 'created_at' => '2019-08-18 19:03:10', 'updated_at' => '2019-08-18 19:09:20'], ['id' => '49', 'transaction_id' => '52', 'product_id' => '81', 'variation_id' => '129', 'quantity' => '5.0000', 'pp_without_discount' => '2937.00', 'discount_percent' => '0.00', 'purchase_price' => '2937.00', 'purchase_price_inc_tax' => '2937.00', 'item_tax' => '0.00', 'tax_id' => null, 'quantity_sold' => '0.0000', 'quantity_adjusted' => '0.0000', 'quantity_returned' => '0.0000', 'mfg_quantity_used' => '0.0000', 'mfg_date' => '2019-08-18', 'exp_date' => null, 'lot_number' => null, 'created_at' => '2019-08-18 19:09:19', 'updated_at' => '2019-08-18 19:09:19'], ]; DB::table('purchase_lines')->insert($mfg_purchase_lines); DB::insert("INSERT INTO transactions (id, business_id, location_id, type, status, payment_status, adjustment_type, contact_id, customer_group_id, invoice_no, ref_no, transaction_date, total_before_tax, tax_id, tax_amount, discount_type, discount_amount, shipping_details, shipping_charges, additional_notes, staff_note, final_total, expense_category_id, expense_for, commission_agent, document, is_direct_sale, exchange_rate, total_amount_recovered, transfer_parent_id, opening_stock_product_id, created_by, created_at, updated_at) VALUES (1, 1, 1, 'purchase', 'received', 'paid', NULL, 2, NULL, NULL, '35001BCVX', '$last_15th_day', '50600.00', 1, '5060.00', NULL, '0', NULL, '0.00', NULL, NULL, '55660.00', NULL, NULL, NULL, NULL, 0, '1.000', NULL, NULL, NULL, 1, '2018-01-06 06:57:11', '2018-01-06 06:57:11'), (2, 1, 1, 'purchase', 'received', 'paid', NULL, 5, NULL, NULL, '35001BJGN', '$last_15th_day', '77000.00', 1, '7700.00', NULL, '0', NULL, '0.00', NULL, NULL, '84700.00', NULL, NULL, NULL, NULL, 0, '1.000', NULL, NULL, NULL, 1, '2018-01-06 06:58:10', '2018-01-06 06:58:10'), (3, 1, 1, 'purchase', 'received', 'partial', NULL, 6, NULL, NULL, '35001BCVJ', '$last_month', '5500.00', 1, '550.00', NULL, '0', NULL, '0.00', NULL, NULL, '6050.00', NULL, NULL, NULL, NULL, 0, '1.000', NULL, NULL, NULL, 1, '2018-01-06 07:02:22', '2018-01-06 07:02:22'), (4, 1, 1, 'purchase', 'received', 'paid', NULL, 6, NULL, NULL, '35001BCVK', '$last_month', '2000.00', NULL, '0.00', NULL, '0', NULL, '0.00', NULL, NULL, '2000.00', NULL, NULL, NULL, NULL, 0, '1.000', NULL, NULL, NULL, 1, '2018-01-06 07:03:12', '2018-01-06 07:03:12'), (5, 1, 1, 'purchase', 'received', 'due', NULL, 6, NULL, NULL, '35001BCVD', '$last_week', '11000.00', 1, '1100.00', NULL, '0', NULL, '0.00', NULL, NULL, '12100.00', NULL, NULL, NULL, NULL, 0, '1.000', NULL, NULL, NULL, 1, '2018-01-06 07:05:26', '2018-01-06 07:05:26'), (6, 1, 1, 'sell', 'final', 'paid', NULL, 4, NULL, 'AS0001', '', '2018-04-10 13:23:21', '770.00', NULL, '0.00', 'percentage', '0', NULL, '0.00', NULL, NULL, '770.00', NULL, NULL, NULL, NULL, 0, '1.000', NULL, NULL, NULL, 1, '2018-01-06 07:06:11', '2018-01-06 07:06:11'), (7, 1, 1, 'sell', 'final', 'paid', NULL, 1, NULL, 'AS0002', '', '$yesterday', '825.00', NULL, '0.00', 'percentage', '0', NULL, '0.00', NULL, NULL, '825.00', NULL, NULL, NULL, NULL, 0, '1.000', NULL, NULL, NULL, 1, '2018-01-06 07:06:31', '2018-01-06 07:06:31'), (8, 1, 1, 'sell', 'final', 'paid', NULL, 4, NULL, 'AS0003', '', '$yesterday', '7700.00', NULL, '0.00', 'percentage', '0', NULL, '0.00', NULL, NULL, '7700.00', NULL, NULL, NULL, NULL, 0, '1.000', NULL, NULL, NULL, 1, '2018-01-06 07:07:22', '2018-01-06 07:07:22'), (9, 1, 1, 'sell', 'final', 'paid', NULL, 1, NULL, 'AS0004', '', '$today', '750.00', NULL, '0.00', 'percentage', '0', NULL, '0.00', NULL, NULL, '750.00', NULL, NULL, NULL, NULL, 0, '1.000', NULL, NULL, NULL, 1, '2018-01-06 07:07:45', '2018-01-06 07:07:45'), (10, 1, 1, 'sell', 'final', 'paid', NULL, 1, NULL, 'AS0005', '', '$today', '412.50', NULL, '0.00', 'percentage', '0', NULL, '0.00', NULL, NULL, '412.50', NULL, NULL, NULL, NULL, 0, '1.000', NULL, NULL, NULL, 1, '2018-01-06 07:08:03', '2018-01-06 07:08:03'), (11, 2, 2, 'purchase', 'received', 'paid', NULL, 8, NULL, NULL, '56247065', '$last_week', '300.00', NULL, '0.00', NULL, '0', NULL, '0.00', NULL, NULL, '300.00', NULL, NULL, NULL, NULL, 0, '1.000', NULL, NULL, NULL, 4, '2018-04-10 10:18:16', '2018-04-10 10:18:47'), (12, 2, 2, 'purchase', 'received', 'paid', NULL, 9, NULL, NULL, '547887025', '$last_week', '1200.00', NULL, '0.00', NULL, '0', NULL, '0.00', NULL, NULL, '1200.00', NULL, NULL, NULL, NULL, 0, '1.000', NULL, NULL, NULL, 4, '2018-04-10 10:19:40', '2018-04-10 10:19:49'), (13, 2, 2, 'purchase', 'received', 'paid', NULL, 9, NULL, NULL, '45470025', '$last_month', '1350.00', NULL, '0.00', NULL, '0', NULL, '0.00', NULL, NULL, '1350.00', NULL, NULL, NULL, NULL, 0, '1.000', NULL, NULL, NULL, 4, '2018-04-10 10:20:41', '2018-04-10 10:20:55'), (14, 2, 2, 'purchase', 'received', 'partial', NULL, 9, NULL, NULL, '65589898', '$last_month', '2160.00', NULL, '0.00', NULL, '0', NULL, '0.00', NULL, NULL, '2160.00', NULL, NULL, NULL, NULL, 0, '1.000', NULL, NULL, NULL, 4, '2018-04-10 10:21:38', '2018-04-10 10:22:10'), (15, 2, 2, 'sell', 'final', 'paid', NULL, 7, NULL, '0001', '', '$yesterday', '75.00', NULL, '0.00', 'percentage', '0', NULL, '0.00', NULL, NULL, '75.00', NULL, NULL, NULL, NULL, 0, '1.000', NULL, NULL, NULL, 4, '2018-04-10 10:23:35', '2018-04-10 10:23:35'), (16, 2, 2, 'sell', 'final', 'paid', NULL, 7, NULL, '0002', '', '$yesterday', '105.00', NULL, '0.00', 'percentage', '0', NULL, '0.00', NULL, NULL, '105.00', NULL, NULL, NULL, NULL, 0, '1.000', NULL, NULL, NULL, 4, '2018-04-10 10:23:58', '2018-04-10 10:23:58'), (17, 2, 2, 'sell', 'final', 'paid', NULL, 7, NULL, '0003', '', '$today', '405.00', NULL, '0.00', 'percentage', '0', NULL, '0.00', NULL, NULL, '405.00', NULL, NULL, NULL, NULL, 0, '1.000', NULL, NULL, NULL, 4, '2018-04-10 10:24:21', '2018-04-10 10:26:26'), (18, 3, 3, 'purchase', 'received', 'paid', NULL, 11, NULL, NULL, '548471117', '$last_month', '9630.00', NULL, '0.00', NULL, '0', NULL, '0.00', NULL, NULL, '9630.00', NULL, NULL, NULL, NULL, 0, '1.000', NULL, NULL, NULL, 5, '2018-04-10 11:39:54', '2018-04-10 11:40:02'), (19, 3, 3, 'purchase', 'received', 'paid', NULL, 12, NULL, NULL, '548222220', '$last_week', '20000.00', NULL, '0.00', NULL, '0', NULL, '0.00', NULL, NULL, '20000.00', NULL, NULL, NULL, NULL, 0, '1.000', NULL, NULL, NULL, 5, '2018-04-10 11:40:51', '2018-04-10 11:40:58'), (20, 3, 3, 'purchase', 'received', 'paid', NULL, 12, NULL, NULL, '878445524', '$last_15th_day', '13500.00', NULL, '0.00', NULL, '0', NULL, '0.00', NULL, NULL, '13500.00', NULL, NULL, NULL, NULL, 0, '1.000', NULL, NULL, NULL, 5, '2018-04-10 11:41:45', '2018-04-10 11:43:19'), (21, 3, 3, 'purchase', 'received', 'paid', NULL, 12, NULL, NULL, '582500058', '$last_15th_day', '19500.00', NULL, '0.00', NULL, '0', NULL, '0.00', NULL, NULL, '19500.00', NULL, NULL, NULL, NULL, 0, '1.000', NULL, NULL, NULL, 5, '2018-04-10 11:42:34', '2018-04-10 11:43:24'), (22, 3, 3, 'purchase', 'received', 'partial', NULL, 11, NULL, NULL, '848485552', '$last_week', '12000.00', NULL, '0.00', NULL, '0', NULL, '0.00', NULL, NULL, '12000.00', NULL, NULL, NULL, NULL, 0, '1.000', NULL, NULL, NULL, 5, '2018-04-10 11:43:12', '2018-04-10 11:43:35'), (23, 3, 3, 'sell', 'final', 'paid', NULL, 10, NULL, 'AE0001', '', '$today', '2500.00', NULL, '0.00', 'percentage', '0', NULL, '0.00', NULL, NULL, '2500.00', NULL, NULL, NULL, NULL, 0, '1.000', NULL, NULL, NULL, 5, '2018-04-10 11:44:47', '2018-04-10 11:47:10'), (24, 3, 3, 'sell', 'final', 'paid', NULL, 10, NULL, 'AE0002', '', '$yesterday', '4875.00', NULL, '0.00', 'percentage', '0', NULL, '0.00', NULL, NULL, '4875.00', NULL, NULL, NULL, NULL, 0, '1.000', NULL, NULL, NULL, 5, '2018-04-10 11:45:06', '2018-04-10 11:46:43'), (25, 3, 3, 'sell', 'final', 'paid', NULL, 10, NULL, 'AE0003', '', '$yesterday', '625.00', NULL, '0.00', 'percentage', '0', NULL, '0.00', NULL, NULL, '625.00', NULL, NULL, NULL, NULL, 0, '1.000', NULL, NULL, NULL, 5, '2018-04-10 11:46:02', '2018-04-10 11:46:02'), (26, 3, 3, 'sell', 'final', 'paid', NULL, 10, NULL, 'AE0004', '', '$today', '15625.00', NULL, '0.00', 'percentage', '0', NULL, '0.00', NULL, NULL, '15625.00', NULL, NULL, NULL, NULL, 0, '1.000', NULL, NULL, NULL, 5, '2018-04-10 11:48:48', '2018-04-10 11:48:48'), (27, 3, 3, 'purchase', 'received', 'due', NULL, 12, NULL, NULL, '1545477882', '$last_15th_day', '26000.00', NULL, '0.00', NULL, '0', NULL, '0.00', NULL, NULL, '26000.00', NULL, NULL, NULL, NULL, 0, '1.000', NULL, NULL, NULL, 5, '2018-04-10 11:53:36', '2018-04-10 11:53:36'), (28, 3, 3, 'sell', 'final', 'paid', NULL, 10, NULL, 'AE0005', '', '$yesterday', '13000.00', NULL, '0.00', 'percentage', '0', NULL, '0.00', NULL, NULL, '13000.00', NULL, NULL, NULL, NULL, 0, '1.000', NULL, NULL, NULL, 5, '2018-04-10 11:54:16', '2018-04-10 11:54:16'), (29, 4, 4, 'sell', 'final', 'paid', NULL, 13, NULL, '0001', '', '$today', '656.25', NULL, '0.00', 'percentage', '0', NULL, '0.00', NULL, NULL, '656.25', NULL, NULL, NULL, NULL, 0, '1.000', NULL, NULL, NULL, 6, '2018-04-10 13:04:40', '2018-04-10 13:04:40'), (30, 4, 4, 'sell', 'final', 'paid', NULL, 13, NULL, '0002', '', '$yesterday', '250.00', NULL, '0.00', 'percentage', '0', NULL, '0.00', NULL, NULL, '250.00', NULL, NULL, NULL, NULL, 0, '1.000', NULL, NULL, NULL, 6, '2018-04-10 13:04:54', '2018-04-10 13:04:54'), (31, 4, 4, 'sell', 'final', 'paid', NULL, 13, NULL, '0003', '', '$today', '75.00', NULL, '0.00', 'percentage', '0', NULL, '0.00', NULL, NULL, '75.00', NULL, NULL, NULL, NULL, 0, '1.000', NULL, NULL, NULL, 6, '2018-04-10 13:05:19', '2018-04-10 13:05:19'), (32, 4, 4, 'sell', 'final', 'paid', NULL, 13, NULL, '0004', '', '$today', '37.50', NULL, '0.00', 'percentage', '0', NULL, '0.00', NULL, NULL, '37.50', NULL, NULL, NULL, NULL, 0, '1.000', NULL, NULL, NULL, 6, '2018-04-10 13:07:50', '2018-04-10 13:07:50'), (33, 4, 4, 'sell', 'final', 'paid', NULL, 13, NULL, '0005', '', '$yesterday', '375.00', NULL, '0.00', 'percentage', '0', NULL, '0.00', NULL, NULL, '375.00', NULL, NULL, NULL, NULL, 0, '1.000', NULL, NULL, NULL, 6, '2018-04-10 13:08:01', '2018-04-10 13:08:01'), (34, 4, 4, 'sell', 'final', 'paid', NULL, 13, NULL, '0006', '', '$yesterday', '250.00', NULL, '0.00', 'percentage', '0', NULL, '0.00', NULL, NULL, '250.00', NULL, NULL, NULL, NULL, 0, '1.000', NULL, NULL, NULL, 6, '2018-04-10 13:08:15', '2018-04-10 13:08:15'), (35, 4, 4, 'sell', 'final', 'paid', NULL, 13, NULL, '0007', '', '$today', '100.00', NULL, '0.00', 'percentage', '0', NULL, '0.00', NULL, NULL, '100.00', NULL, NULL, NULL, NULL, 0, '1.000', NULL, NULL, NULL, 6, '2018-04-10 13:08:27', '2018-04-10 13:08:27'), (36, 4, 4, 'sell', 'final', 'paid', NULL, 13, NULL, '0008', '', '$yesterday', '125.00', NULL, '0.00', 'percentage', '0', NULL, '0.00', NULL, NULL, '125.00', NULL, NULL, NULL, NULL, 0, '1.000', NULL, NULL, NULL, 6, '2018-04-10 13:08:49', '2018-04-10 13:08:49'), (37, 1, 1, 'purchase', 'received', 'due', NULL, 6, NULL, NULL, 'PO2018/0001','$yesterday', '5180.00', NULL, '0.00', NULL, '0', NULL, '0.00', NULL, NULL, '5180.00', NULL, NULL, NULL, NULL, '0', '1.000', NULL, NULL, NULL, 1 , '2018-06-11 22:17:07', '2018-06-11 22:17:07'), (38, 1, 1, 'purchase', 'received', 'due', NULL, 6, NULL, NULL, 'PO2018/0002', '$today', '235656.00', NULL,'0.00', NULL, '0', NULL, '0.00', NULL, NULL, '235656.00', NULL, NULL, NULL, NULL, '0', '1.000', NULL, NULL,NULL, 1, '2018-06-12 23:18:04', '2018-06-12 23:18:04')"); $new_transactions = [ ['id' => '39', 'business_id' => '5', 'location_id' => '5', 'res_table_id' => null, 'res_waiter_id' => null, 'res_order_status' => null, 'type' => 'purchase', 'status' => 'received', 'is_quotation' => '0', 'payment_status' => 'due', 'adjustment_type' => null, 'contact_id' => '15', 'customer_group_id' => null, 'invoice_no' => null, 'ref_no' => 'PO2018/0001', 'transaction_date' => $yesterday, 'total_before_tax' => '1900.00', 'tax_id' => null, 'tax_amount' => '0.00', 'discount_type' => null, 'discount_amount' => '0', 'shipping_details' => null, 'shipping_charges' => '0.00', 'additional_notes' => null, 'staff_note' => null, 'final_total' => '1900.00', 'expense_category_id' => null, 'expense_for' => null, 'commission_agent' => null, 'document' => null, 'is_direct_sale' => '0', 'exchange_rate' => '1.000', 'total_amount_recovered' => null, 'transfer_parent_id' => null, 'opening_stock_product_id' => null, 'created_by' => '7', 'created_at' => '2018-07-13 07:34:45', 'updated_at' => '2018-07-13 07:34:45'], ['id' => '40', 'business_id' => '5', 'location_id' => '5', 'res_table_id' => null, 'res_waiter_id' => null, 'res_order_status' => null, 'type' => 'purchase', 'status' => 'received', 'is_quotation' => '0', 'payment_status' => 'due', 'adjustment_type' => null, 'contact_id' => '15', 'customer_group_id' => null, 'invoice_no' => null, 'ref_no' => 'PO2018/0002', 'transaction_date' => $yesterday, 'total_before_tax' => '800.00', 'tax_id' => null, 'tax_amount' => '0.00', 'discount_type' => null, 'discount_amount' => '0', 'shipping_details' => null, 'shipping_charges' => '0.00', 'additional_notes' => null, 'staff_note' => null, 'final_total' => '800.00', 'expense_category_id' => null, 'expense_for' => null, 'commission_agent' => null, 'document' => null, 'is_direct_sale' => '0', 'exchange_rate' => '1.000', 'total_amount_recovered' => null, 'transfer_parent_id' => null, 'opening_stock_product_id' => null, 'created_by' => '7', 'created_at' => '2018-07-13 07:38:24', 'updated_at' => '2018-07-13 07:38:24'], ['id' => '41', 'business_id' => '5', 'location_id' => '5', 'res_table_id' => '1', 'res_waiter_id' => '8', 'res_order_status' => 'served', 'type' => 'sell', 'status' => 'final', 'is_quotation' => '0', 'payment_status' => 'paid', 'adjustment_type' => null, 'contact_id' => '14', 'customer_group_id' => null, 'invoice_no' => '0001', 'ref_no' => '', 'transaction_date' => $today, 'total_before_tax' => '42.50', 'tax_id' => null, 'tax_amount' => '0.00', 'discount_type' => 'percentage', 'discount_amount' => '0', 'shipping_details' => null, 'shipping_charges' => '0.00', 'additional_notes' => null, 'staff_note' => null, 'final_total' => '42.50', 'expense_category_id' => null, 'expense_for' => null, 'commission_agent' => null, 'document' => null, 'is_direct_sale' => '0', 'exchange_rate' => '1.000', 'total_amount_recovered' => null, 'transfer_parent_id' => null, 'opening_stock_product_id' => null, 'created_by' => '7', 'created_at' => '2018-07-13 07:44:40', 'updated_at' => '2018-07-13 07:48:07'], ['id' => '42', 'business_id' => '5', 'location_id' => '5', 'res_table_id' => '2', 'res_waiter_id' => '8', 'res_order_status' => null, 'type' => 'sell', 'status' => 'final', 'is_quotation' => '0', 'payment_status' => 'paid', 'adjustment_type' => null, 'contact_id' => '14', 'customer_group_id' => null, 'invoice_no' => '0002', 'ref_no' => '', 'transaction_date' => $today, 'total_before_tax' => '77.50', 'tax_id' => null, 'tax_amount' => '0.00', 'discount_type' => 'percentage', 'discount_amount' => '0', 'shipping_details' => null, 'shipping_charges' => '0.00', 'additional_notes' => null, 'staff_note' => null, 'final_total' => '77.50', 'expense_category_id' => null, 'expense_for' => null, 'commission_agent' => null, 'document' => null, 'is_direct_sale' => '0', 'exchange_rate' => '1.000', 'total_amount_recovered' => null, 'transfer_parent_id' => null, 'opening_stock_product_id' => null, 'created_by' => '7', 'created_at' => '2018-07-13 07:45:28', 'updated_at' => '2018-07-13 07:45:29'], ['id' => '43', 'business_id' => '5', 'location_id' => '5', 'res_table_id' => '3', 'res_waiter_id' => '8', 'res_order_status' => null, 'type' => 'sell', 'status' => 'final', 'is_quotation' => '0', 'payment_status' => 'paid', 'adjustment_type' => null, 'contact_id' => '14', 'customer_group_id' => null, 'invoice_no' => '0003', 'ref_no' => '', 'transaction_date' => $today, 'total_before_tax' => '33.75', 'tax_id' => null, 'tax_amount' => '0.00', 'discount_type' => 'percentage', 'discount_amount' => '0', 'shipping_details' => null, 'shipping_charges' => '0.00', 'additional_notes' => null, 'staff_note' => null, 'final_total' => '33.75', 'expense_category_id' => null, 'expense_for' => null, 'commission_agent' => null, 'document' => null, 'is_direct_sale' => '0', 'exchange_rate' => '1.000', 'total_amount_recovered' => null, 'transfer_parent_id' => null, 'opening_stock_product_id' => null, 'created_by' => '7', 'created_at' => '2018-07-13 07:46:04', 'updated_at' => '2018-07-13 07:46:04'], ['id' => '44', 'business_id' => '5', 'location_id' => '5', 'res_table_id' => null, 'res_waiter_id' => null, 'res_order_status' => 'cooked', 'type' => 'sell', 'status' => 'final', 'is_quotation' => '0', 'payment_status' => 'paid', 'adjustment_type' => null, 'contact_id' => '14', 'customer_group_id' => null, 'invoice_no' => '0004', 'ref_no' => '', 'transaction_date' => $today, 'total_before_tax' => '71.25', 'tax_id' => null, 'tax_amount' => '0.00', 'discount_type' => 'percentage', 'discount_amount' => '0', 'shipping_details' => null, 'shipping_charges' => '0.00', 'additional_notes' => null, 'staff_note' => null, 'final_total' => '71.25', 'expense_category_id' => null, 'expense_for' => null, 'commission_agent' => null, 'document' => null, 'is_direct_sale' => '0', 'exchange_rate' => '1.000', 'total_amount_recovered' => null, 'transfer_parent_id' => null, 'opening_stock_product_id' => null, 'created_by' => '7', 'created_at' => '2018-07-13 07:46:36', 'updated_at' => '2018-07-13 07:46:55'], ]; DB::table('transactions')->insert($new_transactions); $mfg_transactions = [ ['id' => '45', 'business_id' => '6', 'location_id' => '6', 'res_table_id' => null, 'res_waiter_id' => null, 'res_order_status' => null, 'type' => 'opening_stock', 'status' => 'received', 'is_quotation' => '0', 'payment_status' => 'paid', 'adjustment_type' => null, 'contact_id' => null, 'customer_group_id' => null, 'invoice_no' => null, 'ref_no' => null, 'subscription_no' => null, 'transaction_date' => '2019-01-01 19:01:33', 'total_before_tax' => '1000.00', 'tax_id' => null, 'tax_amount' => '0.00', 'discount_type' => null, 'discount_amount' => null, 'shipping_details' => null, 'shipping_charges' => '0.00', 'additional_notes' => null, 'staff_note' => null, 'final_total' => '1000.00', 'expense_category_id' => null, 'expense_for' => null, 'commission_agent' => null, 'document' => null, 'is_direct_sale' => '0', 'exchange_rate' => '1.000', 'total_amount_recovered' => null, 'transfer_parent_id' => null, 'opening_stock_product_id' => '88', 'created_by' => '12', 'mfg_parent_production_purchase_id' => null, 'mfg_wasted_units' => null, 'mfg_production_cost' => '0.0000', 'mfg_is_final' => '0', 'created_at' => '2019-08-18 19:01:33', 'updated_at' => '2019-08-18 19:01:33'], ['id' => '46', 'business_id' => '6', 'location_id' => '6', 'res_table_id' => null, 'res_waiter_id' => null, 'res_order_status' => null, 'type' => 'opening_stock', 'status' => 'received', 'is_quotation' => '0', 'payment_status' => 'paid', 'adjustment_type' => null, 'contact_id' => null, 'customer_group_id' => null, 'invoice_no' => null, 'ref_no' => null, 'subscription_no' => null, 'transaction_date' => '2019-01-01 19:01:49', 'total_before_tax' => '400.00', 'tax_id' => null, 'tax_amount' => '0.00', 'discount_type' => null, 'discount_amount' => null, 'shipping_details' => null, 'shipping_charges' => '0.00', 'additional_notes' => null, 'staff_note' => null, 'final_total' => '400.00', 'expense_category_id' => null, 'expense_for' => null, 'commission_agent' => null, 'document' => null, 'is_direct_sale' => '0', 'exchange_rate' => '1.000', 'total_amount_recovered' => null, 'transfer_parent_id' => null, 'opening_stock_product_id' => '87', 'created_by' => '12', 'mfg_parent_production_purchase_id' => null, 'mfg_wasted_units' => null, 'mfg_production_cost' => '0.0000', 'mfg_is_final' => '0', 'created_at' => '2019-08-18 19:01:49', 'updated_at' => '2019-08-18 19:01:49'], ['id' => '47', 'business_id' => '6', 'location_id' => '6', 'res_table_id' => null, 'res_waiter_id' => null, 'res_order_status' => null, 'type' => 'opening_stock', 'status' => 'received', 'is_quotation' => '0', 'payment_status' => 'paid', 'adjustment_type' => null, 'contact_id' => null, 'customer_group_id' => null, 'invoice_no' => null, 'ref_no' => null, 'subscription_no' => null, 'transaction_date' => '2019-01-01 19:02:07', 'total_before_tax' => '500.00', 'tax_id' => null, 'tax_amount' => '0.00', 'discount_type' => null, 'discount_amount' => null, 'shipping_details' => null, 'shipping_charges' => '0.00', 'additional_notes' => null, 'staff_note' => null, 'final_total' => '500.00', 'expense_category_id' => null, 'expense_for' => null, 'commission_agent' => null, 'document' => null, 'is_direct_sale' => '0', 'exchange_rate' => '1.000', 'total_amount_recovered' => null, 'transfer_parent_id' => null, 'opening_stock_product_id' => '86', 'created_by' => '12', 'mfg_parent_production_purchase_id' => null, 'mfg_wasted_units' => null, 'mfg_production_cost' => '0.0000', 'mfg_is_final' => '0', 'created_at' => '2019-08-18 19:02:07', 'updated_at' => '2019-08-18 19:02:07'], ['id' => '48', 'business_id' => '6', 'location_id' => '6', 'res_table_id' => null, 'res_waiter_id' => null, 'res_order_status' => null, 'type' => 'opening_stock', 'status' => 'received', 'is_quotation' => '0', 'payment_status' => 'paid', 'adjustment_type' => null, 'contact_id' => null, 'customer_group_id' => null, 'invoice_no' => null, 'ref_no' => null, 'subscription_no' => null, 'transaction_date' => '2019-01-01 19:02:20', 'total_before_tax' => '400.00', 'tax_id' => null, 'tax_amount' => '0.00', 'discount_type' => null, 'discount_amount' => null, 'shipping_details' => null, 'shipping_charges' => '0.00', 'additional_notes' => null, 'staff_note' => null, 'final_total' => '400.00', 'expense_category_id' => null, 'expense_for' => null, 'commission_agent' => null, 'document' => null, 'is_direct_sale' => '0', 'exchange_rate' => '1.000', 'total_amount_recovered' => null, 'transfer_parent_id' => null, 'opening_stock_product_id' => '84', 'created_by' => '12', 'mfg_parent_production_purchase_id' => null, 'mfg_wasted_units' => null, 'mfg_production_cost' => '0.0000', 'mfg_is_final' => '0', 'created_at' => '2019-08-18 19:02:20', 'updated_at' => '2019-08-18 19:02:20'], ['id' => '49', 'business_id' => '6', 'location_id' => '6', 'res_table_id' => null, 'res_waiter_id' => null, 'res_order_status' => null, 'type' => 'opening_stock', 'status' => 'received', 'is_quotation' => '0', 'payment_status' => 'paid', 'adjustment_type' => null, 'contact_id' => null, 'customer_group_id' => null, 'invoice_no' => null, 'ref_no' => null, 'subscription_no' => null, 'transaction_date' => '2019-01-01 19:02:33', 'total_before_tax' => '20000.00', 'tax_id' => null, 'tax_amount' => '0.00', 'discount_type' => null, 'discount_amount' => null, 'shipping_details' => null, 'shipping_charges' => '0.00', 'additional_notes' => null, 'staff_note' => null, 'final_total' => '20000.00', 'expense_category_id' => null, 'expense_for' => null, 'commission_agent' => null, 'document' => null, 'is_direct_sale' => '0', 'exchange_rate' => '1.000', 'total_amount_recovered' => null, 'transfer_parent_id' => null, 'opening_stock_product_id' => '82', 'created_by' => '12', 'mfg_parent_production_purchase_id' => null, 'mfg_wasted_units' => null, 'mfg_production_cost' => '0.0000', 'mfg_is_final' => '0', 'created_at' => '2019-08-18 19:02:33', 'updated_at' => '2019-08-18 19:02:33'], ['id' => '50', 'business_id' => '6', 'location_id' => '6', 'res_table_id' => null, 'res_waiter_id' => null, 'res_order_status' => null, 'type' => 'opening_stock', 'status' => 'received', 'is_quotation' => '0', 'payment_status' => 'paid', 'adjustment_type' => null, 'contact_id' => null, 'customer_group_id' => null, 'invoice_no' => null, 'ref_no' => null, 'subscription_no' => null, 'transaction_date' => '2019-01-01 19:02:52', 'total_before_tax' => '20.00', 'tax_id' => null, 'tax_amount' => '0.00', 'discount_type' => null, 'discount_amount' => null, 'shipping_details' => null, 'shipping_charges' => '0.00', 'additional_notes' => null, 'staff_note' => null, 'final_total' => '20.00', 'expense_category_id' => null, 'expense_for' => null, 'commission_agent' => null, 'document' => null, 'is_direct_sale' => '0', 'exchange_rate' => '1.000', 'total_amount_recovered' => null, 'transfer_parent_id' => null, 'opening_stock_product_id' => '85', 'created_by' => '12', 'mfg_parent_production_purchase_id' => null, 'mfg_wasted_units' => null, 'mfg_production_cost' => '0.0000', 'mfg_is_final' => '0', 'created_at' => '2019-08-18 19:02:52', 'updated_at' => '2019-08-18 19:02:52'], ['id' => '51', 'business_id' => '6', 'location_id' => '6', 'res_table_id' => null, 'res_waiter_id' => null, 'res_order_status' => null, 'type' => 'opening_stock', 'status' => 'received', 'is_quotation' => '0', 'payment_status' => 'paid', 'adjustment_type' => null, 'contact_id' => null, 'customer_group_id' => null, 'invoice_no' => null, 'ref_no' => null, 'subscription_no' => null, 'transaction_date' => '2019-01-01 19:03:10', 'total_before_tax' => '200.00', 'tax_id' => null, 'tax_amount' => '0.00', 'discount_type' => null, 'discount_amount' => null, 'shipping_details' => null, 'shipping_charges' => '0.00', 'additional_notes' => null, 'staff_note' => null, 'final_total' => '200.00', 'expense_category_id' => null, 'expense_for' => null, 'commission_agent' => null, 'document' => null, 'is_direct_sale' => '0', 'exchange_rate' => '1.000', 'total_amount_recovered' => null, 'transfer_parent_id' => null, 'opening_stock_product_id' => '83', 'created_by' => '12', 'mfg_parent_production_purchase_id' => null, 'mfg_wasted_units' => null, 'mfg_production_cost' => '0.0000', 'mfg_is_final' => '0', 'created_at' => '2019-08-18 19:03:10', 'updated_at' => '2019-08-18 19:03:10'], ['id' => '52', 'business_id' => '6', 'location_id' => '6', 'res_table_id' => null, 'res_waiter_id' => null, 'res_order_status' => null, 'type' => 'production_purchase', 'status' => 'received', 'is_quotation' => '0', 'payment_status' => 'due', 'adjustment_type' => null, 'contact_id' => null, 'customer_group_id' => null, 'invoice_no' => null, 'ref_no' => '2019/0001', 'subscription_no' => null, 'transaction_date' => '2019-08-18 19:08:00', 'total_before_tax' => '0.00', 'tax_id' => null, 'tax_amount' => '0.00', 'discount_type' => null, 'discount_amount' => null, 'shipping_details' => null, 'shipping_charges' => '0.00', 'additional_notes' => null, 'staff_note' => null, 'final_total' => '14685.00', 'expense_category_id' => null, 'expense_for' => null, 'commission_agent' => null, 'document' => null, 'is_direct_sale' => '0', 'exchange_rate' => '1.000', 'total_amount_recovered' => null, 'transfer_parent_id' => null, 'opening_stock_product_id' => null, 'created_by' => '12', 'mfg_parent_production_purchase_id' => null, 'mfg_wasted_units' => '0.0000', 'mfg_production_cost' => '10.0000', 'mfg_is_final' => '1', 'created_at' => '2019-08-18 19:09:19', 'updated_at' => '2019-08-18 19:09:19'], ['id' => '53', 'business_id' => '6', 'location_id' => '6', 'res_table_id' => null, 'res_waiter_id' => null, 'res_order_status' => null, 'type' => 'production_sell', 'status' => 'final', 'is_quotation' => '0', 'payment_status' => 'due', 'adjustment_type' => null, 'contact_id' => null, 'customer_group_id' => null, 'invoice_no' => null, 'ref_no' => null, 'subscription_no' => null, 'transaction_date' => '2019-08-18 19:08:00', 'total_before_tax' => '0.00', 'tax_id' => null, 'tax_amount' => '0.00', 'discount_type' => null, 'discount_amount' => null, 'shipping_details' => null, 'shipping_charges' => '0.00', 'additional_notes' => null, 'staff_note' => null, 'final_total' => '14685.00', 'expense_category_id' => null, 'expense_for' => null, 'commission_agent' => null, 'document' => null, 'is_direct_sale' => '0', 'exchange_rate' => '1.000', 'total_amount_recovered' => null, 'transfer_parent_id' => null, 'opening_stock_product_id' => null, 'created_by' => '12', 'mfg_parent_production_purchase_id' => '52', 'mfg_wasted_units' => null, 'mfg_production_cost' => '0.0000', 'mfg_is_final' => '0', 'created_at' => '2019-08-18 19:09:19', 'updated_at' => '2019-08-18 19:09:19'], ]; DB::table('transactions')->insert($mfg_transactions); DB::insert("INSERT INTO transaction_payments (id, transaction_id, amount, method, card_transaction_number, card_number, card_type, card_holder_name, card_month, card_year, card_security, cheque_number, bank_account_number, paid_on, created_by, payment_for, parent_id, note, created_at, updated_at) VALUES (1, 6, '770.00', 'cash', NULL, NULL, 'visa', NULL, NULL, NULL, NULL, NULL, NULL, '2018-01-09 17:30:35', 1, NULL, NULL, NULL, '2018-01-06 01:36:11', '2018-01-06 01:36:11'), (2, 7, '825.00', 'cash', NULL, NULL, 'visa', NULL, NULL, NULL, NULL, NULL, NULL, '2018-01-09 17:30:35', 1, NULL, NULL, NULL, '2018-01-06 01:36:31', '2018-01-06 01:36:31'), (3, 8, '7700.00', 'cash', NULL, NULL, 'visa', NULL, NULL, NULL, NULL, NULL, NULL, '2018-01-09 17:30:35', 1, NULL, NULL, NULL, '2018-01-06 01:37:23', '2018-01-06 01:37:23'), (4, 9, '750.00', 'cash', NULL, NULL, 'visa', NULL, NULL, NULL, NULL, NULL, NULL, '2018-01-09 17:30:35', 1, NULL, NULL, NULL, '2018-01-06 01:37:45', '2018-01-06 01:37:45'), (5, 10, '412.50', 'cash', NULL, NULL, 'visa', NULL, NULL, NULL, NULL, NULL, NULL, '2018-01-09 17:30:35', 1, NULL, NULL, NULL, '2018-01-06 01:38:03', '2018-01-06 01:38:03'), (6, 4, '2000.00', 'cash', NULL, NULL, 'visa', NULL, NULL, NULL, NULL, NULL, NULL, '2018-01-11 17:32:56', 1, NULL, NULL, 'Cash Payment', '2018-01-11 06:32:56', '2018-01-11 06:32:56'), (7, 3, '3000.00', 'bank_transfer', NULL, NULL, 'visa', NULL, NULL, NULL, NULL, NULL, '502110000631', '2018-01-11 17:34:10', 1, NULL, NULL, '3000 Paid Via Bank Transfer', '2018-01-11 06:34:10', '2018-01-11 06:34:10'), (8, 2, '84700.00', 'cash', NULL, NULL, 'visa', NULL, NULL, NULL, NULL, NULL, NULL, '2018-01-11 17:34:36', 1, NULL, NULL, NULL, '2018-01-11 06:34:36', '2018-01-11 06:34:36'), (9, 1, '50000.00', 'cash', NULL, NULL, 'visa', NULL, NULL, NULL, NULL, NULL, NULL, '2018-01-11 17:35:04', 1, NULL, NULL, NULL, '2018-01-11 06:35:04', '2018-01-11 06:35:04'), (10, 1, '5660.00', 'cash', NULL, NULL, 'visa', NULL, NULL, NULL, NULL, NULL, NULL, '2018-01-11 17:35:17', 1, NULL, NULL, NULL, '2018-01-11 06:35:17', '2018-01-11 06:35:17'), (11, 11, '300.00', 'cash', NULL, NULL, 'visa', NULL, NULL, NULL, NULL, NULL, NULL, '2018-04-10 15:48:47', 4, 8, NULL, NULL, '2018-04-10 10:18:47', '2018-04-10 10:18:47'), (12, 12, '1200.00', 'cash', NULL, NULL, 'visa', NULL, NULL, NULL, NULL, NULL, NULL, '2018-04-10 15:49:49', 4, 9, NULL, NULL, '2018-04-10 10:19:49', '2018-04-10 10:19:49'), (13, 13, '1350.00', 'cash', NULL, NULL, 'visa', NULL, NULL, NULL, NULL, NULL, NULL, '2018-04-10 15:50:55', 4, 9, NULL, NULL, '2018-04-10 10:20:55', '2018-04-10 10:20:55'), (14, 14, '1500.00', 'cash', NULL, NULL, 'visa', NULL, NULL, NULL, NULL, NULL, NULL, '2018-04-10 15:52:10', 4, 9, NULL, NULL, '2018-04-10 10:22:10', '2018-04-10 10:22:10'), (15, 15, '75.00', 'cash', NULL, NULL, 'visa', NULL, NULL, NULL, NULL, NULL, NULL, '2018-04-10 15:53:35', 4, 7, NULL, NULL, '2018-04-10 10:23:35', '2018-04-10 10:23:35'), (16, 16, '105.00', 'cash', NULL, NULL, 'visa', NULL, NULL, NULL, NULL, NULL, NULL, '2018-04-10 15:53:58', 4, 7, NULL, NULL, '2018-04-10 10:23:58', '2018-04-10 10:23:58'), (17, 17, '405.00', 'cash', NULL, NULL, 'visa', NULL, NULL, NULL, NULL, NULL, NULL, '2018-04-10 15:54:21', 4, 7, NULL, NULL, '2018-04-10 10:24:21', '2018-04-10 10:26:26'), (18, 18, '9630.00', 'cash', NULL, NULL, 'visa', NULL, NULL, NULL, NULL, NULL, NULL, '2018-04-10 17:10:02', 5, 11, NULL, NULL, '2018-04-10 11:40:02', '2018-04-10 11:40:02'), (19, 19, '20000.00', 'cash', NULL, NULL, 'visa', NULL, NULL, NULL, NULL, NULL, NULL, '2018-04-10 17:10:58', 5, 12, NULL, NULL, '2018-04-10 11:40:58', '2018-04-10 11:40:58'), (20, 20, '13500.00', 'cash', NULL, NULL, 'visa', NULL, NULL, NULL, NULL, NULL, NULL, '2018-04-10 17:13:19', 5, 12, NULL, NULL, '2018-04-10 11:43:19', '2018-04-10 11:43:19'), (21, 21, '19500.00', 'cash', NULL, NULL, 'visa', NULL, NULL, NULL, NULL, NULL, NULL, '2018-04-10 17:13:24', 5, 12, NULL, NULL, '2018-04-10 11:43:24', '2018-04-10 11:43:24'), (22, 22, '5000.00', 'cash', NULL, NULL, 'visa', NULL, NULL, NULL, NULL, NULL, NULL, '2018-04-10 17:13:35', 5, 11, NULL, NULL, '2018-04-10 11:43:35', '2018-04-10 11:43:35'), (23, 23, '2500.00', 'cash', NULL, NULL, 'visa', NULL, NULL, NULL, NULL, NULL, NULL, '2018-04-10 17:14:47', 5, 10, NULL, NULL, '2018-04-10 11:44:47', '2018-04-10 11:47:10'), (24, 24, '4875.00', 'cash', NULL, NULL, 'visa', NULL, NULL, NULL, NULL, NULL, NULL, '2018-04-10 17:15:06', 5, 10, NULL, NULL, '2018-04-10 11:45:06', '2018-04-10 11:46:43'), (25, 25, '625.00', 'cash', NULL, NULL, 'visa', NULL, NULL, NULL, NULL, NULL, NULL, '2018-04-10 17:16:02', 5, 10, NULL, NULL, '2018-04-10 11:46:02', '2018-04-10 11:46:02'), (26, 26, '15625.00', 'cash', NULL, NULL, 'visa', NULL, NULL, NULL, NULL, NULL, NULL, '2018-04-10 17:18:48', 5, 10, NULL, NULL, '2018-04-10 11:48:48', '2018-04-10 11:48:48'), (27, 28, '13000.00', 'cash', NULL, NULL, 'visa', NULL, NULL, NULL, NULL, NULL, NULL, '2018-04-10 17:24:16', 5, 10, NULL, NULL, '2018-04-10 11:54:16', '2018-04-10 11:54:16'), (28, 29, '656.25', 'cash', NULL, NULL, 'visa', NULL, NULL, NULL, NULL, NULL, NULL, '2018-04-10 18:34:40', 6, 13, NULL, NULL, '2018-04-10 13:04:40', '2018-04-10 13:04:40'), (29, 30, '250.00', 'cash', NULL, NULL, 'visa', NULL, NULL, NULL, NULL, NULL, NULL, '2018-04-10 18:34:54', 6, 13, NULL, NULL, '2018-04-10 13:04:54', '2018-04-10 13:04:54'), (30, 31, '75.00', 'cash', NULL, NULL, 'visa', NULL, NULL, NULL, NULL, NULL, NULL, '2018-04-10 18:35:19', 6, 13, NULL, NULL, '2018-04-10 13:05:19', '2018-04-10 13:05:19'), (31, 32, '37.50', 'cash', NULL, NULL, 'visa', NULL, NULL, NULL, NULL, NULL, NULL, '2018-04-10 18:37:50', 6, 13, NULL, NULL, '2018-04-10 13:07:50', '2018-04-10 13:07:50'), (32, 33, '375.00', 'cash', NULL, NULL, 'visa', NULL, NULL, NULL, NULL, NULL, NULL, '2018-04-10 18:38:01', 6, 13, NULL, NULL, '2018-04-10 13:08:01', '2018-04-10 13:08:01'), (33, 34, '250.00', 'cash', NULL, NULL, 'visa', NULL, NULL, NULL, NULL, NULL, NULL, '2018-04-10 18:38:15', 6, 13, NULL, NULL, '2018-04-10 13:08:15', '2018-04-10 13:08:15'), (34, 35, '100.00', 'cash', NULL, NULL, 'visa', NULL, NULL, NULL, NULL, NULL, NULL, '2018-04-10 18:38:27', 6, 13, NULL, NULL, '2018-04-10 13:08:27', '2018-04-10 13:08:27'), (35, 36, '125.00', 'cash', NULL, NULL, 'visa', NULL, NULL, NULL, NULL, NULL, NULL, '2018-04-10 18:38:49', 6, 13, NULL, NULL, '2018-04-10 13:08:49', '2018-04-10 13:08:49')"); $transaction_sell_lines = [ ['id' => '1', 'transaction_id' => '6', 'product_id' => '2', 'variation_id' => '3', 'quantity' => '10', 'unit_price' => '70.00', 'unit_price_inc_tax' => '77.00', 'item_tax' => '7.00', 'tax_id' => '1', 'sell_line_note' => null, 'parent_sell_line_id' => null, 'created_at' => '2018-01-06 07:06:11', 'updated_at' => '2018-01-06 07:06:11', 'unit_price_before_discount' => '70.00'], ['id' => '2', 'transaction_id' => '7', 'product_id' => '27', 'variation_id' => '70', 'quantity' => '30', 'unit_price' => '25.00', 'unit_price_inc_tax' => '27.50', 'item_tax' => '2.50', 'tax_id' => '1', 'sell_line_note' => null, 'parent_sell_line_id' => null, 'created_at' => '2018-01-06 07:06:31', 'updated_at' => '2018-01-06 07:06:31', 'unit_price_before_discount' => '25.00'], ['id' => '3', 'transaction_id' => '8', 'product_id' => '2', 'variation_id' => '3', 'quantity' => '50', 'unit_price' => '70.00', 'unit_price_inc_tax' => '77.00', 'item_tax' => '7.00', 'tax_id' => '1', 'sell_line_note' => null, 'parent_sell_line_id' => null, 'created_at' => '2018-01-06 07:07:23', 'updated_at' => '2018-01-06 07:07:23', 'unit_price_before_discount' => '70.00'], ['id' => '4', 'transaction_id' => '8', 'product_id' => '2', 'variation_id' => '2', 'quantity' => '50', 'unit_price' => '70.00', 'unit_price_inc_tax' => '77.00', 'item_tax' => '7.00', 'tax_id' => '1', 'sell_line_note' => null, 'parent_sell_line_id' => null, 'created_at' => '2018-01-06 07:07:23', 'updated_at' => '2018-01-06 07:07:23', 'unit_price_before_discount' => '70.00'], ['id' => '5', 'transaction_id' => '9', 'product_id' => '21', 'variation_id' => '64', 'quantity' => '60', 'unit_price' => '12.50', 'unit_price_inc_tax' => '12.50', 'item_tax' => '0.00', 'tax_id' => null, 'sell_line_note' => null, 'parent_sell_line_id' => null, 'created_at' => '2018-01-06 07:07:45', 'updated_at' => '2018-01-06 07:07:45', 'unit_price_before_discount' => '12.50'], ['id' => '6', 'transaction_id' => '10', 'product_id' => '28', 'variation_id' => '71', 'quantity' => '30', 'unit_price' => '12.50', 'unit_price_inc_tax' => '13.75', 'item_tax' => '1.25', 'tax_id' => '1', 'sell_line_note' => null, 'parent_sell_line_id' => null, 'created_at' => '2018-01-06 07:08:03', 'updated_at' => '2018-01-06 07:08:03', 'unit_price_before_discount' => '12.50'], ['id' => '7', 'transaction_id' => '15', 'product_id' => '34', 'variation_id' => '77', 'quantity' => '10', 'unit_price' => '7.50', 'unit_price_inc_tax' => '7.50', 'item_tax' => '0.00', 'tax_id' => null, 'sell_line_note' => '', 'parent_sell_line_id' => null, 'created_at' => '2018-04-10 10:23:35', 'updated_at' => '2018-04-10 10:23:35', 'unit_price_before_discount' => '7.50'], ['id' => '8', 'transaction_id' => '16', 'product_id' => '32', 'variation_id' => '75', 'quantity' => '7', 'unit_price' => '15.00', 'unit_price_inc_tax' => '15.00', 'item_tax' => '0.00', 'tax_id' => null, 'sell_line_note' => '', 'parent_sell_line_id' => null, 'created_at' => '2018-04-10 10:23:58', 'updated_at' => '2018-04-10 10:23:58', 'unit_price_before_discount' => '15.00'], ['id' => '9', 'transaction_id' => '17', 'product_id' => '33', 'variation_id' => '76', 'quantity' => '27', 'unit_price' => '15.00', 'unit_price_inc_tax' => '15.00', 'item_tax' => '0.00', 'tax_id' => null, 'sell_line_note' => '', 'parent_sell_line_id' => null, 'created_at' => '2018-04-10 10:24:21', 'updated_at' => '2018-04-10 10:26:26', 'unit_price_before_discount' => '15.00'], ['id' => '10', 'transaction_id' => '23', 'product_id' => '43', 'variation_id' => '86', 'quantity' => '5', 'unit_price' => '500.00', 'unit_price_inc_tax' => '500.00', 'item_tax' => '0.00', 'tax_id' => null, 'sell_line_note' => 'IHN45822225007', 'parent_sell_line_id' => null, 'created_at' => '2018-04-10 11:44:47', 'updated_at' => '2018-04-10 11:47:10', 'unit_price_before_discount' => '500.00'], ['id' => '11', 'transaction_id' => '24', 'product_id' => '44', 'variation_id' => '87', 'quantity' => '20', 'unit_price' => '243.75', 'unit_price_inc_tax' => '243.75', 'item_tax' => '0.00', 'tax_id' => null, 'sell_line_note' => 'SMJ7558455524', 'parent_sell_line_id' => null, 'created_at' => '2018-04-10 11:45:06', 'updated_at' => '2018-04-10 11:46:43', 'unit_price_before_discount' => '243.75'], ['id' => '12', 'transaction_id' => '25', 'product_id' => '41', 'variation_id' => '84', 'quantity' => '1', 'unit_price' => '625.00', 'unit_price_inc_tax' => '625.00', 'item_tax' => '0.00', 'tax_id' => null, 'sell_line_note' => 'EXSD1225778855', 'parent_sell_line_id' => null, 'created_at' => '2018-04-10 11:46:02', 'updated_at' => '2018-04-10 11:46:02', 'unit_price_before_discount' => '625.00'], ['id' => '13', 'transaction_id' => '26', 'product_id' => '41', 'variation_id' => '84', 'quantity' => '25', 'unit_price' => '625.00', 'unit_price_inc_tax' => '625.00', 'item_tax' => '0.00', 'tax_id' => null, 'sell_line_note' => 'HP020555548444', 'parent_sell_line_id' => null, 'created_at' => '2018-04-10 11:48:48', 'updated_at' => '2018-04-10 11:48:48', 'unit_price_before_discount' => '625.00'], ['id' => '14', 'transaction_id' => '28', 'product_id' => '42', 'variation_id' => '85', 'quantity' => '20', 'unit_price' => '650.00', 'unit_price_inc_tax' => '650.00', 'item_tax' => '0.00', 'tax_id' => null, 'sell_line_note' => 'HP68400258F', 'parent_sell_line_id' => null, 'created_at' => '2018-04-10 11:54:16', 'updated_at' => '2018-04-10 11:54:16', 'unit_price_before_discount' => '650.00'], ['id' => '15', 'transaction_id' => '29', 'product_id' => '53', 'variation_id' => '96', 'quantity' => '5', 'unit_price' => '131.25', 'unit_price_inc_tax' => '131.25', 'item_tax' => '0.00', 'tax_id' => null, 'sell_line_note' => '', 'parent_sell_line_id' => null, 'created_at' => '2018-04-10 13:04:40', 'updated_at' => '2018-04-10 13:04:40', 'unit_price_before_discount' => '131.25'], ['id' => '16', 'transaction_id' => '30', 'product_id' => '51', 'variation_id' => '94', 'quantity' => '2', 'unit_price' => '125.00', 'unit_price_inc_tax' => '125.00', 'item_tax' => '0.00', 'tax_id' => null, 'sell_line_note' => '', 'parent_sell_line_id' => null, 'created_at' => '2018-04-10 13:04:54', 'updated_at' => '2018-04-10 13:04:54', 'unit_price_before_discount' => '125.00'], ['id' => '17', 'transaction_id' => '31', 'product_id' => '57', 'variation_id' => '100', 'quantity' => '3', 'unit_price' => '25.00', 'unit_price_inc_tax' => '25.00', 'item_tax' => '0.00', 'tax_id' => null, 'sell_line_note' => '', 'parent_sell_line_id' => null, 'created_at' => '2018-04-10 13:05:19', 'updated_at' => '2018-04-10 13:05:19', 'unit_price_before_discount' => '25.00'], ['id' => '18', 'transaction_id' => '32', 'product_id' => '60', 'variation_id' => '103', 'quantity' => '2', 'unit_price' => '18.75', 'unit_price_inc_tax' => '18.75', 'item_tax' => '0.00', 'tax_id' => null, 'sell_line_note' => '', 'parent_sell_line_id' => null, 'created_at' => '2018-04-10 13:07:50', 'updated_at' => '2018-04-10 13:07:50', 'unit_price_before_discount' => '18.75'], ['id' => '19', 'transaction_id' => '33', 'product_id' => '56', 'variation_id' => '99', 'quantity' => '2', 'unit_price' => '187.50', 'unit_price_inc_tax' => '187.50', 'item_tax' => '0.00', 'tax_id' => null, 'sell_line_note' => '', 'parent_sell_line_id' => null, 'created_at' => '2018-04-10 13:08:01', 'updated_at' => '2018-04-10 13:08:01', 'unit_price_before_discount' => '187.50'], ['id' => '20', 'transaction_id' => '34', 'product_id' => '54', 'variation_id' => '97', 'quantity' => '20', 'unit_price' => '12.50', 'unit_price_inc_tax' => '12.50', 'item_tax' => '0.00', 'tax_id' => null, 'sell_line_note' => '', 'parent_sell_line_id' => null, 'created_at' => '2018-04-10 13:08:15', 'updated_at' => '2018-04-10 13:08:15', 'unit_price_before_discount' => '12.50'], ['id' => '21', 'transaction_id' => '35', 'product_id' => '55', 'variation_id' => '98', 'quantity' => '10', 'unit_price' => '10.00', 'unit_price_inc_tax' => '10.00', 'item_tax' => '0.00', 'tax_id' => null, 'sell_line_note' => '', 'parent_sell_line_id' => null, 'created_at' => '2018-04-10 13:08:27', 'updated_at' => '2018-04-10 13:08:27', 'unit_price_before_discount' => '10.00'], ['id' => '22', 'transaction_id' => '36', 'product_id' => '57', 'variation_id' => '100', 'quantity' => '5', 'unit_price' => '25.00', 'unit_price_inc_tax' => '25.00', 'item_tax' => '0.00', 'tax_id' => null, 'sell_line_note' => '', 'parent_sell_line_id' => null, 'created_at' => '2018-04-10 13:08:49', 'updated_at' => '2018-04-10 13:08:49', 'unit_price_before_discount' => '25.00'], ['id' => '23', 'transaction_id' => '41', 'product_id' => '71', 'variation_id' => '114', 'quantity' => '2', 'unit_price' => '21.25', 'unit_price_inc_tax' => '21.25', 'item_tax' => '0.00', 'tax_id' => null, 'sell_line_note' => '', 'parent_sell_line_id' => null, 'created_at' => '2018-07-13 07:44:40', 'updated_at' => '2018-07-13 07:44:40', 'unit_price_before_discount' => '21.25'], ['id' => '24', 'transaction_id' => '42', 'product_id' => '70', 'variation_id' => '113', 'quantity' => '2', 'unit_price' => '15.00', 'unit_price_inc_tax' => '15.00', 'item_tax' => '0.00', 'tax_id' => null, 'sell_line_note' => '', 'parent_sell_line_id' => null, 'created_at' => '2018-07-13 07:45:28', 'updated_at' => '2018-07-13 07:45:28', 'unit_price_before_discount' => '15.00'], ['id' => '25', 'transaction_id' => '42', 'product_id' => '67', 'variation_id' => '110', 'quantity' => '2', 'unit_price' => '10.00', 'unit_price_inc_tax' => '10.00', 'item_tax' => '0.00', 'tax_id' => null, 'sell_line_note' => '', 'parent_sell_line_id' => null, 'created_at' => '2018-07-13 07:45:28', 'updated_at' => '2018-07-13 07:45:28', 'unit_price_before_discount' => '10.00'], ['id' => '26', 'transaction_id' => '42', 'product_id' => '68', 'variation_id' => '111', 'quantity' => '2', 'unit_price' => '13.75', 'unit_price_inc_tax' => '13.75', 'item_tax' => '0.00', 'tax_id' => null, 'sell_line_note' => '', 'parent_sell_line_id' => null, 'created_at' => '2018-07-13 07:45:28', 'updated_at' => '2018-07-13 07:45:28', 'unit_price_before_discount' => '13.75'], ['id' => '27', 'transaction_id' => '43', 'product_id' => '74', 'variation_id' => '117', 'quantity' => '1', 'unit_price' => '8.75', 'unit_price_inc_tax' => '8.75', 'item_tax' => '0.00', 'tax_id' => null, 'sell_line_note' => '', 'parent_sell_line_id' => null, 'created_at' => '2018-07-13 07:46:04', 'updated_at' => '2018-07-13 07:46:04', 'unit_price_before_discount' => '8.75'], ['id' => '28', 'transaction_id' => '43', 'product_id' => '73', 'variation_id' => '116', 'quantity' => '1', 'unit_price' => '25.00', 'unit_price_inc_tax' => '25.00', 'item_tax' => '0.00', 'tax_id' => null, 'sell_line_note' => '', 'parent_sell_line_id' => null, 'created_at' => '2018-07-13 07:46:04', 'updated_at' => '2018-07-13 07:46:04', 'unit_price_before_discount' => '25.00'], ['id' => '29', 'transaction_id' => '44', 'product_id' => '74', 'variation_id' => '117', 'quantity' => '3', 'unit_price' => '8.75', 'unit_price_inc_tax' => '8.75', 'item_tax' => '0.00', 'tax_id' => null, 'sell_line_note' => '', 'parent_sell_line_id' => null, 'created_at' => '2018-07-13 07:46:36', 'updated_at' => '2018-07-13 07:46:36', 'unit_price_before_discount' => '8.75'], ['id' => '30', 'transaction_id' => '44', 'product_id' => '69', 'variation_id' => '112', 'quantity' => '3', 'unit_price' => '15.00', 'unit_price_inc_tax' => '15.00', 'item_tax' => '0.00', 'tax_id' => null, 'sell_line_note' => '', 'parent_sell_line_id' => null, 'created_at' => '2018-07-13 07:46:36', 'updated_at' => '2018-07-13 07:46:36', 'unit_price_before_discount' => '15.00'], ]; DB::table('transaction_sell_lines')->insert($transaction_sell_lines); $mfg_sell_lines = [ ['id' => '31', 'transaction_id' => '53', 'product_id' => '82', 'variation_id' => '130', 'quantity' => '5.0000', 'mfg_waste_percent' => '0.00', 'quantity_returned' => '0.0000', 'unit_price_before_discount' => '20.00', 'unit_price' => '20.00', 'line_discount_type' => null, 'line_discount_amount' => '0.00', 'unit_price_inc_tax' => '20.00', 'item_tax' => '0.00', 'tax_id' => null, 'discount_id' => null, 'lot_no_line_id' => null, 'sell_line_note' => '', 'res_service_staff_id' => null, 'res_line_order_status' => null, 'woocommerce_line_items_id' => null, 'parent_sell_line_id' => null, 'children_type' => '', 'sub_unit_id' => null, 'created_at' => '2019-08-18 19:09:19', 'updated_at' => '2019-08-18 19:09:19'], ['id' => '32', 'transaction_id' => '53', 'product_id' => '83', 'variation_id' => '131', 'quantity' => '502.5000', 'mfg_waste_percent' => '0.50', 'quantity_returned' => '0.0000', 'unit_price_before_discount' => '20.00', 'unit_price' => '20.00', 'line_discount_type' => null, 'line_discount_amount' => '0.00', 'unit_price_inc_tax' => '20.00', 'item_tax' => '0.00', 'tax_id' => null, 'discount_id' => null, 'lot_no_line_id' => null, 'sell_line_note' => '', 'res_service_staff_id' => null, 'res_line_order_status' => null, 'woocommerce_line_items_id' => null, 'parent_sell_line_id' => null, 'children_type' => '', 'sub_unit_id' => null, 'created_at' => '2019-08-18 19:09:19', 'updated_at' => '2019-08-18 19:09:19'], ['id' => '33', 'transaction_id' => '53', 'product_id' => '84', 'variation_id' => '132', 'quantity' => '50.0000', 'mfg_waste_percent' => '0.00', 'quantity_returned' => '0.0000', 'unit_price_before_discount' => '20.00', 'unit_price' => '20.00', 'line_discount_type' => null, 'line_discount_amount' => '0.00', 'unit_price_inc_tax' => '20.00', 'item_tax' => '0.00', 'tax_id' => null, 'discount_id' => null, 'lot_no_line_id' => null, 'sell_line_note' => '', 'res_service_staff_id' => null, 'res_line_order_status' => null, 'woocommerce_line_items_id' => null, 'parent_sell_line_id' => null, 'children_type' => '', 'sub_unit_id' => null, 'created_at' => '2019-08-18 19:09:19', 'updated_at' => '2019-08-18 19:09:19'], ['id' => '34', 'transaction_id' => '53', 'product_id' => '85', 'variation_id' => '133', 'quantity' => '100.0000', 'mfg_waste_percent' => '0.00', 'quantity_returned' => '0.0000', 'unit_price_before_discount' => '2.00', 'unit_price' => '2.00', 'line_discount_type' => null, 'line_discount_amount' => '0.00', 'unit_price_inc_tax' => '2.00', 'item_tax' => '0.00', 'tax_id' => null, 'discount_id' => null, 'lot_no_line_id' => null, 'sell_line_note' => '', 'res_service_staff_id' => null, 'res_line_order_status' => null, 'woocommerce_line_items_id' => null, 'parent_sell_line_id' => null, 'children_type' => '', 'sub_unit_id' => null, 'created_at' => '2019-08-18 19:09:19', 'updated_at' => '2019-08-18 19:09:19'], ['id' => '35', 'transaction_id' => '53', 'product_id' => '87', 'variation_id' => '135', 'quantity' => '500.0000', 'mfg_waste_percent' => '0.00', 'quantity_returned' => '0.0000', 'unit_price_before_discount' => '2.00', 'unit_price' => '2.00', 'line_discount_type' => null, 'line_discount_amount' => '0.00', 'unit_price_inc_tax' => '2.00', 'item_tax' => '0.00', 'tax_id' => null, 'discount_id' => null, 'lot_no_line_id' => null, 'sell_line_note' => '', 'res_service_staff_id' => null, 'res_line_order_status' => null, 'woocommerce_line_items_id' => null, 'parent_sell_line_id' => null, 'children_type' => '', 'sub_unit_id' => null, 'created_at' => '2019-08-18 19:09:19', 'updated_at' => '2019-08-18 19:09:19'], ['id' => '36', 'transaction_id' => '53', 'product_id' => '88', 'variation_id' => '136', 'quantity' => '100.0000', 'mfg_waste_percent' => '0.00', 'quantity_returned' => '0.0000', 'unit_price_before_discount' => '10.00', 'unit_price' => '10.00', 'line_discount_type' => null, 'line_discount_amount' => '0.00', 'unit_price_inc_tax' => '10.00', 'item_tax' => '0.00', 'tax_id' => null, 'discount_id' => null, 'lot_no_line_id' => null, 'sell_line_note' => '', 'res_service_staff_id' => null, 'res_line_order_status' => null, 'woocommerce_line_items_id' => null, 'parent_sell_line_id' => null, 'children_type' => '', 'sub_unit_id' => null, 'created_at' => '2019-08-18 19:09:19', 'updated_at' => '2019-08-18 19:09:19'], ]; DB::table('transaction_sell_lines')->insert($mfg_sell_lines); $variation_location_details = [ ['id' => '1', 'product_id' => '2', 'product_variation_id' => '2', 'variation_id' => '2', 'location_id' => '1', 'qty_available' => '50.00', 'created_at' => '2018-01-06 06:57:11', 'updated_at' => '2018-01-06 07:07:23'], ['id' => '2', 'product_id' => '2', 'product_variation_id' => '2', 'variation_id' => '3', 'location_id' => '1', 'qty_available' => '90.00', 'created_at' => '2018-01-06 06:57:11', 'updated_at' => '2018-01-06 07:07:23'], ['id' => '3', 'product_id' => '2', 'product_variation_id' => '2', 'variation_id' => '4', 'location_id' => '1', 'qty_available' => '150.00', 'created_at' => '2018-01-06 06:57:11', 'updated_at' => '2018-01-06 06:57:11'], ['id' => '4', 'product_id' => '2', 'product_variation_id' => '2', 'variation_id' => '5', 'location_id' => '1', 'qty_available' => '150.00', 'created_at' => '2018-01-06 06:57:11', 'updated_at' => '2018-01-06 06:57:11'], ['id' => '5', 'product_id' => '2', 'product_variation_id' => '2', 'variation_id' => '6', 'location_id' => '1', 'qty_available' => '100.00', 'created_at' => '2018-01-06 06:57:11', 'updated_at' => '2018-01-06 06:57:11'], ['id' => '6', 'product_id' => '14', 'product_variation_id' => '15', 'variation_id' => '47', 'location_id' => '1', 'qty_available' => '100.00', 'created_at' => '2018-01-06 06:58:10', 'updated_at' => '2018-01-06 06:58:10'], ['id' => '7', 'product_id' => '28', 'product_variation_id' => '30', 'variation_id' => '71', 'location_id' => '1', 'qty_available' => '470.00', 'created_at' => '2018-01-06 07:02:22', 'updated_at' => '2018-01-06 07:08:03'], ['id' => '8', 'product_id' => '21', 'product_variation_id' => '23', 'variation_id' => '64', 'location_id' => '1', 'qty_available' => '140.00', 'created_at' => '2018-01-06 07:03:12', 'updated_at' => '2018-01-06 07:07:45'], ['id' => '9', 'product_id' => '27', 'product_variation_id' => '29', 'variation_id' => '70', 'location_id' => '1', 'qty_available' => '470.00', 'created_at' => '2018-01-06 07:05:26', 'updated_at' => '2018-01-06 07:06:32'], ['id' => '10', 'product_id' => '34', 'product_variation_id' => '36', 'variation_id' => '77', 'location_id' => '2', 'qty_available' => '40.00', 'created_at' => '2018-04-10 10:18:16', 'updated_at' => '2018-04-10 10:23:35'], ['id' => '11', 'product_id' => '32', 'product_variation_id' => '34', 'variation_id' => '75', 'location_id' => '2', 'qty_available' => '93.00', 'created_at' => '2018-04-10 10:19:40', 'updated_at' => '2018-04-10 10:23:58'], ['id' => '12', 'product_id' => '36', 'product_variation_id' => '38', 'variation_id' => '79', 'location_id' => '2', 'qty_available' => '150.00', 'created_at' => '2018-04-10 10:20:41', 'updated_at' => '2018-04-10 10:20:41'], ['id' => '13', 'product_id' => '33', 'product_variation_id' => '35', 'variation_id' => '76', 'location_id' => '2', 'qty_available' => '153.00', 'created_at' => '2018-04-10 10:21:38', 'updated_at' => '2018-04-10 10:24:21'], ['id' => '14', 'product_id' => '46', 'product_variation_id' => '48', 'variation_id' => '89', 'location_id' => '3', 'qty_available' => '30.00', 'created_at' => '2018-04-10 11:39:54', 'updated_at' => '2018-04-10 11:39:54'], ['id' => '15', 'product_id' => '41', 'product_variation_id' => '43', 'variation_id' => '84', 'location_id' => '3', 'qty_available' => '14.00', 'created_at' => '2018-04-10 11:40:51', 'updated_at' => '2018-04-10 11:48:48'], ['id' => '16', 'product_id' => '45', 'product_variation_id' => '47', 'variation_id' => '88', 'location_id' => '3', 'qty_available' => '45.00', 'created_at' => '2018-04-10 11:41:45', 'updated_at' => '2018-04-10 11:41:45'], ['id' => '17', 'product_id' => '44', 'product_variation_id' => '46', 'variation_id' => '87', 'location_id' => '3', 'qty_available' => '80.00', 'created_at' => '2018-04-10 11:42:34', 'updated_at' => '2018-04-10 11:45:06'], ['id' => '18', 'product_id' => '43', 'product_variation_id' => '45', 'variation_id' => '86', 'location_id' => '3', 'qty_available' => '25.00', 'created_at' => '2018-04-10 11:43:12', 'updated_at' => '2018-04-10 11:44:47'], ['id' => '19', 'product_id' => '42', 'product_variation_id' => '44', 'variation_id' => '85', 'location_id' => '3', 'qty_available' => '30.00', 'created_at' => '2018-04-10 11:53:36', 'updated_at' => '2018-04-10 11:54:16'], ['id' => '20', 'product_id' => '61', 'product_variation_id' => '63', 'variation_id' => '104', 'location_id' => '1', 'qty_available' => '20.00', 'created_at' => '2018-06-11 22:17:07', 'updated_at' => '2018-06-11 22:17:07'], ['id' => '21', 'product_id' => '64', 'product_variation_id' => '66', 'variation_id' => '107', 'location_id' => '1', 'qty_available' => '300.00', 'created_at' => '2018-06-11 22:17:07', 'updated_at' => '2018-06-12 23:18:04'], ['id' => '22', 'product_id' => '63', 'product_variation_id' => '65', 'variation_id' => '106', 'location_id' => '1', 'qty_available' => '300.00', 'created_at' => '2018-06-11 22:17:07', 'updated_at' => '2018-06-12 23:18:04'], ['id' => '23', 'product_id' => '65', 'product_variation_id' => '67', 'variation_id' => '108', 'location_id' => '1', 'qty_available' => '50.00', 'created_at' => '2018-06-11 22:17:07', 'updated_at' => '2018-06-11 22:17:07'], ['id' => '24', 'product_id' => '17', 'product_variation_id' => '19', 'variation_id' => '57', 'location_id' => '1', 'qty_available' => '30.00', 'created_at' => '2018-06-12 23:18:04', 'updated_at' => '2018-06-12 23:18:04'], ['id' => '25', 'product_id' => '17', 'product_variation_id' => '19', 'variation_id' => '58', 'location_id' => '1', 'qty_available' => '50.00', 'created_at' => '2018-06-12 23:18:04', 'updated_at' => '2018-06-12 23:18:04'], ['id' => '26', 'product_id' => '15', 'product_variation_id' => '16', 'variation_id' => '49', 'location_id' => '1', 'qty_available' => '30.00', 'created_at' => '2018-06-12 23:18:04', 'updated_at' => '2018-06-12 23:18:04'], ['id' => '27', 'product_id' => '15', 'product_variation_id' => '16', 'variation_id' => '50', 'location_id' => '1', 'qty_available' => '20.00', 'created_at' => '2018-06-12 23:18:04', 'updated_at' => '2018-06-12 23:18:04'], ['id' => '28', 'product_id' => '15', 'product_variation_id' => '16', 'variation_id' => '51', 'location_id' => '1', 'qty_available' => '30.00', 'created_at' => '2018-06-12 23:18:04', 'updated_at' => '2018-06-12 23:18:04'], ['id' => '29', 'product_id' => '15', 'product_variation_id' => '17', 'variation_id' => '52', 'location_id' => '1', 'qty_available' => '20.00', 'created_at' => '2018-06-12 23:18:04', 'updated_at' => '2018-06-12 23:18:04'], ['id' => '30', 'product_id' => '15', 'product_variation_id' => '17', 'variation_id' => '53', 'location_id' => '1', 'qty_available' => '40.00', 'created_at' => '2018-06-12 23:18:04', 'updated_at' => '2018-06-12 23:18:04'], ['id' => '31', 'product_id' => '18', 'product_variation_id' => '20', 'variation_id' => '59', 'location_id' => '1', 'qty_available' => '20.00', 'created_at' => '2018-06-12 23:18:04', 'updated_at' => '2018-06-12 23:18:04'], ['id' => '32', 'product_id' => '18', 'product_variation_id' => '20', 'variation_id' => '60', 'location_id' => '1', 'qty_available' => '20.00', 'created_at' => '2018-06-12 23:18:04', 'updated_at' => '2018-06-12 23:18:04'], ['id' => '33', 'product_id' => '19', 'product_variation_id' => '21', 'variation_id' => '61', 'location_id' => '1', 'qty_available' => '30.00', 'created_at' => '2018-06-12 23:18:04', 'updated_at' => '2018-06-12 23:18:04'], ['id' => '34', 'product_id' => '22', 'product_variation_id' => '24', 'variation_id' => '65', 'location_id' => '1', 'qty_available' => '10.00', 'created_at' => '2018-06-12 23:18:04', 'updated_at' => '2018-06-12 23:18:04'], ['id' => '35', 'product_id' => '24', 'product_variation_id' => '26', 'variation_id' => '67', 'location_id' => '1', 'qty_available' => '10.00', 'created_at' => '2018-06-12 23:18:04', 'updated_at' => '2018-06-12 23:18:04'], ['id' => '36', 'product_id' => '25', 'product_variation_id' => '27', 'variation_id' => '68', 'location_id' => '1', 'qty_available' => '20.00', 'created_at' => '2018-06-12 23:18:04', 'updated_at' => '2018-06-12 23:18:04'], ['id' => '37', 'product_id' => '77', 'product_variation_id' => '79', 'variation_id' => '120', 'location_id' => '5', 'qty_available' => '100.00', 'created_at' => '2018-07-13 07:34:45', 'updated_at' => '2018-07-13 07:34:45'], ['id' => '38', 'product_id' => '76', 'product_variation_id' => '78', 'variation_id' => '119', 'location_id' => '5', 'qty_available' => '300.00', 'created_at' => '2018-07-13 07:34:45', 'updated_at' => '2018-07-13 07:38:24'], ['id' => '39', 'product_id' => '88', 'product_variation_id' => '90', 'variation_id' => '136', 'location_id' => '6', 'qty_available' => '1900.0000', 'created_at' => '2019-08-18 19:01:33', 'updated_at' => '2019-08-18 19:09:20'], ['id' => '40', 'product_id' => '87', 'product_variation_id' => '89', 'variation_id' => '135', 'location_id' => '6', 'qty_available' => '1500.0000', 'created_at' => '2019-08-18 19:01:49', 'updated_at' => '2019-08-18 19:09:20'], ['id' => '41', 'product_id' => '86', 'product_variation_id' => '88', 'variation_id' => '134', 'location_id' => '6', 'qty_available' => '1000.0000', 'created_at' => '2019-08-18 19:02:07', 'updated_at' => '2019-08-18 19:02:07'], ['id' => '42', 'product_id' => '84', 'product_variation_id' => '86', 'variation_id' => '132', 'location_id' => '6', 'qty_available' => '1950.0000', 'created_at' => '2019-08-18 19:02:20', 'updated_at' => '2019-08-18 19:09:20'], ['id' => '43', 'product_id' => '82', 'product_variation_id' => '84', 'variation_id' => '130', 'location_id' => '6', 'qty_available' => '995.0000', 'created_at' => '2019-08-18 19:02:33', 'updated_at' => '2019-08-18 19:09:19'], ['id' => '44', 'product_id' => '85', 'product_variation_id' => '87', 'variation_id' => '133', 'location_id' => '6', 'qty_available' => '0.0000', 'created_at' => '2019-08-18 19:02:52', 'updated_at' => '2019-08-18 19:09:20'], ['id' => '45', 'product_id' => '83', 'product_variation_id' => '85', 'variation_id' => '131', 'location_id' => '6', 'qty_available' => '1497.5000', 'created_at' => '2019-08-18 19:03:10', 'updated_at' => '2019-08-18 19:09:20'], ['id' => '46', 'product_id' => '81', 'product_variation_id' => '83', 'variation_id' => '129', 'location_id' => '6', 'qty_available' => '5.0000', 'created_at' => '2019-08-18 19:09:19', 'updated_at' => '2019-08-18 19:09:19'], ['id' => '47', 'product_id' => '94', 'product_variation_id' => '96', 'variation_id' => '142', 'location_id' => '1', 'qty_available' => '8.0000', 'created_at' => '2020-05-07 21:18:22', 'updated_at' => '2020-05-07 21:18:22'], ['id' => '48', 'product_id' => '95', 'product_variation_id' => '97', 'variation_id' => '143', 'location_id' => '1', 'qty_available' => '7.0000', 'created_at' => '2020-05-07 21:19:10', 'updated_at' => '2020-05-09 10:28:58'], ]; DB::table('variation_location_details')->insert($variation_location_details); $system = [ ['key' => 'default_business_active_status', 'value' => '1'], ['key' => 'superadmin_version', 'value' => config('superadmin.module_version')], ['key' => 'app_currency_id', 'value' => '2'], ['key' => 'invoice_business_name', 'value' => 'Ultimate POS'], ['key' => 'invoice_business_landmark', 'value' => 'Linking Street'], ['key' => 'invoice_business_zip', 'value' => '85001'], ['key' => 'invoice_business_state', 'value' => 'Arizona'], ['key' => 'invoice_business_city', 'value' => 'Phoenix'], ['key' => 'invoice_business_country', 'value' => 'USA'], ['key' => 'email', 'value' => 'thewebfosters@gmail.com'], ['key' => 'enable_offline_payment', 'value' => '1'], ]; foreach ($system as $row) { DB::table('system')->where('key', $row['key'])->update(['value' => $row['value']]); } $packages = [ ['id' => '1', 'name' => 'Starter - Free', 'description' => 'Give it a test drive...', 'location_count' => '1', 'user_count' => '2', 'product_count' => '30', 'bookings' => '0', 'kitchen' => '0', 'order_screen' => '0', 'tables' => '0', 'invoice_count' => '30', 'interval' => 'months', 'interval_count' => '1', 'trial_days' => '10', 'price' => '0.0000', 'created_by' => '1', 'sort_order' => '0', 'is_active' => '1', 'deleted_at' => null, 'created_at' => $today, 'updated_at' => '2018-08-01 20:10:49', 'custom_permissions' => '{"essentials_module":"1","woocommerce_module":"1"}'], ['id' => '2', 'name' => 'Regular', 'description' => 'For Small Shops', 'location_count' => '0', 'user_count' => '0', 'product_count' => '0', 'bookings' => '0', 'kitchen' => '0', 'order_screen' => '0', 'tables' => '0', 'invoice_count' => '0', 'interval' => 'months', 'interval_count' => '1', 'trial_days' => '10', 'price' => '199.9900', 'custom_permissions' => '{"repair_module":"1"}', 'created_by' => '1', 'sort_order' => '1', 'is_active' => '1', 'deleted_at' => null, 'created_at' => $today, 'updated_at' => $today], ['id' => '3', 'name' => 'Unlimited', 'description' => 'For Large Business', 'location_count' => '0', 'user_count' => '0', 'product_count' => '0', 'bookings' => '0', 'kitchen' => '0', 'order_screen' => '0', 'tables' => '0', 'invoice_count' => '0', 'interval' => 'months', 'interval_count' => '1', 'trial_days' => '10', 'price' => '599.9900', 'created_by' => '1', 'sort_order' => '1', 'is_active' => '1', 'deleted_at' => null, 'created_at' => $today, 'updated_at' => '2018-08-01 20:13:50', 'custom_permissions' => ''], ['id' => '4', 'name' => 'Business', 'description' => 'For Small & Growing Shops...', 'location_count' => '10', 'user_count' => '10', 'product_count' => '15000', 'bookings' => '0', 'kitchen' => '0', 'order_screen' => '0', 'tables' => '0', 'invoice_count' => '1000', 'interval' => 'months', 'interval_count' => '1', 'trial_days' => '10', 'price' => '259.9900', 'created_by' => '1', 'sort_order' => '5', 'is_active' => '0', 'deleted_at' => null, 'created_at' => $today, 'updated_at' => '2018-08-01 20:16:14', 'custom_permissions' => ''], ]; DB::table('packages')->insert($packages); $subscription_start = \Carbon::today()->subDay(2)->toDateString(); $subscription_trial = \Carbon::today()->addDays(8)->toDateString(); $subscription_end = \Carbon::today()->addDays(28)->toDateString(); $subscriptions = [ ['id' => '1', 'business_id' => '1', 'package_id' => '3', 'start_date' => $subscription_start, 'trial_end_date' => $subscription_trial, 'end_date' => $subscription_end, 'package_price' => '599.99', 'package_details' => '{"location_count":0,"user_count":0,"product_count":0,"invoice_count":0,"name":"Unlimited","woocommerce_module":1, "essentials_module":1}', 'created_id' => '1', 'paid_via' => 'stripe', 'payment_transaction_id' => 'ch_1CuLdQAhokBpT93LVZNg2At6', 'status' => 'approved', 'deleted_at' => null, 'created_at' => '2018-08-01 07:49:09', 'updated_at' => '2018-08-01 07:49:09'], ['id' => '2', 'business_id' => '2', 'package_id' => '3', 'start_date' => $subscription_start, 'trial_end_date' => $subscription_trial, 'end_date' => $subscription_end, 'package_price' => '599.99', 'package_details' => '{"location_count":0,"user_count":0,"product_count":0,"invoice_count":0,"name":"Unlimited"}', 'created_id' => '4', 'paid_via' => 'stripe', 'payment_transaction_id' => 'ch_1CuLggAhokBpT93LbaE29pMW', 'status' => 'approved', 'deleted_at' => null, 'created_at' => '2018-08-01 09:52:31', 'updated_at' => '2018-08-01 09:52:31'], ['id' => '3', 'business_id' => '4', 'package_id' => '2', 'start_date' => $subscription_start, 'trial_end_date' => $subscription_trial, 'end_date' => $subscription_end, 'package_price' => '199.9900', 'package_details' => '{"location_count":0,"user_count":0,"product_count":0,"invoice_count":0,"name":"Regular","repair_module":"1"}', 'created_id' => '6', 'paid_via' => 'stripe', 'payment_transaction_id' => 'ch_1CuLkoAhokBpT93LW0UAFC7N', 'status' => 'approved', 'deleted_at' => null, 'created_at' => '2018-08-01 09:56:48', 'updated_at' => '2018-08-01 09:56:48'], ['id' => '4', 'business_id' => '3', 'package_id' => '3', 'start_date' => $subscription_start, 'trial_end_date' => $subscription_trial, 'end_date' => $subscription_end, 'package_price' => '599.99', 'package_details' => '{"location_count":0,"user_count":0,"product_count":0,"invoice_count":0,"name":"Unlimited"}', 'created_id' => '5', 'paid_via' => 'stripe', 'payment_transaction_id' => 'ch_1CuLljAhokBpT93LGozt93Wn', 'status' => 'approved', 'deleted_at' => null, 'created_at' => '2018-08-01 09:57:44', 'updated_at' => '2018-08-01 09:57:44'], ['id' => '5', 'business_id' => '5', 'package_id' => '3', 'start_date' => $subscription_start, 'trial_end_date' => $subscription_trial, 'end_date' => $subscription_end, 'package_price' => '599.99', 'package_details' => '{"location_count":0,"user_count":0,"product_count":0,"invoice_count":0,"name":"Unlimited"}', 'created_id' => '7', 'paid_via' => 'stripe', 'payment_transaction_id' => 'ch_1CuLmXAhokBpT93LOUCvEIKD', 'status' => 'approved', 'deleted_at' => null, 'created_at' => '2018-08-01 09:58:34', 'updated_at' => '2018-08-01 09:58:34'], ['id' => '6', 'business_id' => '6', 'package_id' => '5', 'start_date' => $subscription_start, 'trial_end_date' => $subscription_trial, 'end_date' => $subscription_end, 'package_price' => '200.00', 'package_details' => '{"location_count":0,"user_count":0,"product_count":0,"invoice_count":0,"name":"Manufacturing Module package","manufacturing_module":"1"}', 'created_id' => '1', 'paid_via' => 'offline', 'payment_transaction_id' => '121333434', 'status' => 'approved', 'deleted_at' => null, 'created_at' => '2019-08-18 18:41:56', 'updated_at' => '2019-08-18 18:41:56'], ]; DB::table('subscriptions')->insert($subscriptions); $notification_template_data = NotificationTemplate::defaultNotificationTemplates(); $notification_template_array = []; for ($i = 1; $i < 6; $i++) { foreach ($notification_template_data as $notification_template) { $notification_template['business_id'] = $i; $notification_template_array[] = $notification_template; } } DB::table('notification_templates')->insert($notification_template_array); $mfg_recipes = [ ['id' => '1', 'product_id' => '81', 'variation_id' => '129', 'instructions' => '<p>Steps for making pizza can be written here ...</p>', 'waste_percent' => '0.00', 'ingredients_cost' => '2660.0000', 'extra_cost' => '10.0000', 'total_quantity' => '1.0000', 'final_price' => '2926.0000', 'sub_unit_id' => '9', 'created_at' => '2019-08-18 19:05:09', 'updated_at' => '2019-08-18 19:08:12'], ['id' => '2', 'product_id' => '93', 'variation_id' => '141', 'instructions' => null, 'waste_percent' => '0.00', 'ingredients_cost' => '31.5000', 'extra_cost' => '10.0000', 'total_quantity' => '1.0000', 'final_price' => '34.6500', 'sub_unit_id' => '9', 'created_at' => '2019-08-18 19:22:40', 'updated_at' => '2019-08-18 19:22:40'], ]; DB::table('mfg_recipes')->insert($mfg_recipes); $mfg_recipe_ingredients = [ ['id' => '1', 'mfg_recipe_id' => '1', 'variation_id' => '130', 'quantity' => '1.0000', 'waste_percent' => '0.00', 'sub_unit_id' => null, 'created_at' => '2019-08-18 19:05:09', 'updated_at' => '2019-08-18 19:08:12'], ['id' => '2', 'mfg_recipe_id' => '1', 'variation_id' => '136', 'quantity' => '20.0000', 'waste_percent' => '0.00', 'sub_unit_id' => null, 'created_at' => '2019-08-18 19:05:09', 'updated_at' => '2019-08-18 19:08:12'], ['id' => '3', 'mfg_recipe_id' => '1', 'variation_id' => '135', 'quantity' => '100.0000', 'waste_percent' => '0.00', 'sub_unit_id' => null, 'created_at' => '2019-08-18 19:05:09', 'updated_at' => '2019-08-18 19:08:12'], ['id' => '4', 'mfg_recipe_id' => '1', 'variation_id' => '132', 'quantity' => '10.0000', 'waste_percent' => '0.00', 'sub_unit_id' => null, 'created_at' => '2019-08-18 19:05:09', 'updated_at' => '2019-08-18 19:08:12'], ['id' => '5', 'mfg_recipe_id' => '1', 'variation_id' => '133', 'quantity' => '20.0000', 'waste_percent' => '0.00', 'sub_unit_id' => null, 'created_at' => '2019-08-18 19:08:13', 'updated_at' => '2019-08-18 19:08:13'], ['id' => '6', 'mfg_recipe_id' => '1', 'variation_id' => '131', 'quantity' => '100.0000', 'waste_percent' => '0.50', 'sub_unit_id' => null, 'created_at' => '2019-08-18 19:08:13', 'updated_at' => '2019-08-18 19:08:13'], ['id' => '7', 'mfg_recipe_id' => '2', 'variation_id' => '139', 'quantity' => '6.0000', 'waste_percent' => '0.00', 'sub_unit_id' => null, 'created_at' => '2019-08-18 19:22:41', 'updated_at' => '2019-08-18 19:22:41'], ['id' => '8', 'mfg_recipe_id' => '2', 'variation_id' => '138', 'quantity' => '0.5000', 'waste_percent' => '0.00', 'sub_unit_id' => null, 'created_at' => '2019-08-18 19:22:41', 'updated_at' => '2019-08-18 19:22:41'], ['id' => '9', 'mfg_recipe_id' => '2', 'variation_id' => '140', 'quantity' => '1.0000', 'waste_percent' => '0.00', 'sub_unit_id' => null, 'created_at' => '2019-08-18 19:22:41', 'updated_at' => '2019-08-18 19:22:41'], ['id' => '10', 'mfg_recipe_id' => '2', 'variation_id' => '137', 'quantity' => '2.5000', 'waste_percent' => '0.50', 'sub_unit_id' => null, 'created_at' => '2019-08-18 19:22:41', 'updated_at' => '2019-08-18 19:22:41'], ]; DB::table('mfg_recipe_ingredients')->insert($mfg_recipe_ingredients); $product_locations = [ ['product_id' => '1', 'location_id' => '1'], ['product_id' => '2', 'location_id' => '1'], ['product_id' => '3', 'location_id' => '1'], ['product_id' => '4', 'location_id' => '1'], ['product_id' => '8', 'location_id' => '1'], ['product_id' => '9', 'location_id' => '1'], ['product_id' => '10', 'location_id' => '1'], ['product_id' => '11', 'location_id' => '1'], ['product_id' => '12', 'location_id' => '1'], ['product_id' => '13', 'location_id' => '1'], ['product_id' => '14', 'location_id' => '1'], ['product_id' => '15', 'location_id' => '1'], ['product_id' => '16', 'location_id' => '1'], ['product_id' => '17', 'location_id' => '1'], ['product_id' => '18', 'location_id' => '1'], ['product_id' => '19', 'location_id' => '1'], ['product_id' => '20', 'location_id' => '1'], ['product_id' => '21', 'location_id' => '1'], ['product_id' => '22', 'location_id' => '1'], ['product_id' => '23', 'location_id' => '1'], ['product_id' => '24', 'location_id' => '1'], ['product_id' => '25', 'location_id' => '1'], ['product_id' => '26', 'location_id' => '1'], ['product_id' => '27', 'location_id' => '1'], ['product_id' => '28', 'location_id' => '1'], ['product_id' => '29', 'location_id' => '1'], ['product_id' => '30', 'location_id' => '1'], ['product_id' => '61', 'location_id' => '1'], ['product_id' => '62', 'location_id' => '1'], ['product_id' => '63', 'location_id' => '1'], ['product_id' => '64', 'location_id' => '1'], ['product_id' => '65', 'location_id' => '1'], ['product_id' => '41', 'location_id' => '3'], ['product_id' => '42', 'location_id' => '3'], ['product_id' => '43', 'location_id' => '3'], ['product_id' => '44', 'location_id' => '3'], ['product_id' => '45', 'location_id' => '3'], ['product_id' => '46', 'location_id' => '3'], ['product_id' => '47', 'location_id' => '3'], ['product_id' => '48', 'location_id' => '3'], ['product_id' => '49', 'location_id' => '3'], ['product_id' => '50', 'location_id' => '3'], ['product_id' => '31', 'location_id' => '2'], ['product_id' => '32', 'location_id' => '2'], ['product_id' => '33', 'location_id' => '2'], ['product_id' => '34', 'location_id' => '2'], ['product_id' => '35', 'location_id' => '2'], ['product_id' => '36', 'location_id' => '2'], ['product_id' => '37', 'location_id' => '2'], ['product_id' => '38', 'location_id' => '2'], ['product_id' => '39', 'location_id' => '2'], ['product_id' => '40', 'location_id' => '2'], ['product_id' => '51', 'location_id' => '4'], ['product_id' => '52', 'location_id' => '4'], ['product_id' => '53', 'location_id' => '4'], ['product_id' => '54', 'location_id' => '4'], ['product_id' => '55', 'location_id' => '4'], ['product_id' => '56', 'location_id' => '4'], ['product_id' => '57', 'location_id' => '4'], ['product_id' => '58', 'location_id' => '4'], ['product_id' => '59', 'location_id' => '4'], ['product_id' => '60', 'location_id' => '4'], ['product_id' => '81', 'location_id' => '6'], ['product_id' => '82', 'location_id' => '6'], ['product_id' => '83', 'location_id' => '6'], ['product_id' => '84', 'location_id' => '6'], ['product_id' => '85', 'location_id' => '6'], ['product_id' => '86', 'location_id' => '6'], ['product_id' => '87', 'location_id' => '6'], ['product_id' => '88', 'location_id' => '6'], ['product_id' => '89', 'location_id' => '6'], ['product_id' => '90', 'location_id' => '6'], ['product_id' => '91', 'location_id' => '6'], ['product_id' => '92', 'location_id' => '6'], ['product_id' => '93', 'location_id' => '6'], ['product_id' => '74', 'location_id' => '5'], ['product_id' => '77', 'location_id' => '5'], ['product_id' => '72', 'location_id' => '5'], ['product_id' => '69', 'location_id' => '5'], ['product_id' => '75', 'location_id' => '5'], ['product_id' => '70', 'location_id' => '5'], ['product_id' => '66', 'location_id' => '5'], ['product_id' => '71', 'location_id' => '5'], ['product_id' => '67', 'location_id' => '5'], ['product_id' => '68', 'location_id' => '5'], ['product_id' => '76', 'location_id' => '5'], ['product_id' => '73', 'location_id' => '5'], ['product_id' => '154', 'location_id' => '4'], ['product_id' => '95', 'location_id' => '4'], ['product_id' => '99', 'location_id' => '4'], ['product_id' => '100', 'location_id' => '4'], ['product_id' => '101', 'location_id' => '4'], ['product_id' => '102', 'location_id' => '4'], ['product_id' => '103', 'location_id' => '4'], ['product_id' => '104', 'location_id' => '4'], ['product_id' => '105', 'location_id' => '4'], ['product_id' => '106', 'location_id' => '4'], ['product_id' => '107', 'location_id' => '4'], ['product_id' => '108', 'location_id' => '4'], ['product_id' => '109', 'location_id' => '4'], ['product_id' => '110', 'location_id' => '4'], ['product_id' => '111', 'location_id' => '4'], ['product_id' => '112', 'location_id' => '4'], ['product_id' => '113', 'location_id' => '4'], ['product_id' => '114', 'location_id' => '4'], ['product_id' => '115', 'location_id' => '4'], ['product_id' => '116', 'location_id' => '4'], ['product_id' => '117', 'location_id' => '4'], ['product_id' => '118', 'location_id' => '4'], ['product_id' => '119', 'location_id' => '4'], ['product_id' => '120', 'location_id' => '4'], ['product_id' => '121', 'location_id' => '4'], ['product_id' => '122', 'location_id' => '4'], ['product_id' => '123', 'location_id' => '4'], ['product_id' => '124', 'location_id' => '4'], ['product_id' => '125', 'location_id' => '4'], ['product_id' => '126', 'location_id' => '4'], ['product_id' => '127', 'location_id' => '4'], ['product_id' => '128', 'location_id' => '4'], ['product_id' => '129', 'location_id' => '4'], ['product_id' => '130', 'location_id' => '4'], ['product_id' => '131', 'location_id' => '4'], ['product_id' => '132', 'location_id' => '4'], ['product_id' => '133', 'location_id' => '4'], ['product_id' => '134', 'location_id' => '4'], ['product_id' => '135', 'location_id' => '4'], ['product_id' => '136', 'location_id' => '4'], ['product_id' => '137', 'location_id' => '4'], ['product_id' => '138', 'location_id' => '4'], ['product_id' => '139', 'location_id' => '4'], ['product_id' => '140', 'location_id' => '4'], ['product_id' => '141', 'location_id' => '4'], ['product_id' => '142', 'location_id' => '4'], ['product_id' => '143', 'location_id' => '4'], ['product_id' => '144', 'location_id' => '4'], ['product_id' => '145', 'location_id' => '4'], ['product_id' => '146', 'location_id' => '4'], ['product_id' => '147', 'location_id' => '4'], ['product_id' => '148', 'location_id' => '4'], ['product_id' => '149', 'location_id' => '4'], ['product_id' => '150', 'location_id' => '4'], ['product_id' => '151', 'location_id' => '4'], ['product_id' => '152', 'location_id' => '4'], ['product_id' => '153', 'location_id' => '4'], ]; DB::table('product_locations')->insert($product_locations); //Roles and permissions for business 1 $admin_role1 = Role::create(['name' => 'Admin#1', 'business_id' => 1, 'guard_name' => 'web', 'is_default' => 1, ]); $cashier_role1 = Role::create(['name' => 'Cashier#1', 'business_id' => 1, 'guard_name' => 'web', ]); $cashier_role1->syncPermissions(['sell.view', 'sell.create', 'sell.update', 'sell.delete', 'view_cash_register', 'close_cash_register', 'print_invoice']); $admin1 = User::findOrFail(1); $admin_essentials = User::findOrFail(11); $superadmin1 = User::findOrFail(9); $woocommerce1 = User::findOrFail(10); $cashier1 = User::findOrFail(2); $demo_user1 = User::findOrFail(3); $admin1->assignRole('Admin#1'); $admin_essentials->assignRole('Admin#1'); $superadmin1->assignRole('Admin#1'); $cashier1->assignRole('Cashier#1'); $demo_user1->assignRole('Admin#1'); $woocommerce1->assignRole('Admin#1'); Permission::create(['name' => 'location.1']); //give location.1 permissions $cashier1->givePermissionTo('location.1'); //Roles and permissions for business 2 $admin_role2 = Role::create(['name' => 'Admin#2', 'business_id' => 2, 'guard_name' => 'web', 'is_default' => 1, ]); $cashier_role2 = Role::create(['name' => 'Cashier#2', 'business_id' => 2, 'guard_name' => 'web', ]); $cashier_role2->syncPermissions(['sell.view', 'sell.create', 'sell.update', 'sell.delete', 'view_cash_register', 'close_cash_register', 'print_invoice']); $admin2 = User::findOrFail(4); $admin2->assignRole('Admin#2'); Permission::create(['name' => 'location.2']); //Roles and permissions for business 3 $admin_role3 = Role::create(['name' => 'Admin#3', 'business_id' => 3, 'guard_name' => 'web', ]); $cashier_role3 = Role::create(['name' => 'Cashier#3', 'business_id' => 3, 'guard_name' => 'web', ]); $cashier_role3->syncPermissions(['sell.view', 'sell.create', 'sell.update', 'sell.delete', 'view_cash_register', 'close_cash_register', 'print_invoice']); $admin3 = User::findOrFail(5); $admin3->assignRole('Admin#3'); Permission::create(['name' => 'location.3']); //Roles and permissions for business 4 $admin_role4 = Role::create(['name' => 'Admin#4', 'business_id' => 4, 'guard_name' => 'web', 'is_default' => 1, ]); $cashier_role4 = Role::create(['name' => 'Cashier#4', 'business_id' => 4, 'guard_name' => 'web', ]); $cashier_role4->syncPermissions(['sell.view', 'sell.create', 'sell.update', 'sell.delete', 'view_cash_register', 'close_cash_register', 'print_invoice']); $admin4 = User::findOrFail(6); $admin4->assignRole('Admin#4'); Permission::create(['name' => 'location.4']); //Roles and permissions for business 5 $admin_role5 = Role::create(['name' => 'Admin#5', 'business_id' => 5, 'guard_name' => 'web', 'is_default' => 1, ]); $cashier_role5 = Role::create(['name' => 'Cashier#5', 'business_id' => 5, 'guard_name' => 'web', ]); $cashier_role5->syncPermissions(['sell.view', 'sell.create', 'sell.update', 'sell.delete', 'view_cash_register', 'close_cash_register', 'print_invoice']); $admin5 = User::findOrFail(7); $admin5->assignRole('Admin#5'); Permission::create(['name' => 'location.5']); $waiter_role5 = Role::create(['name' => 'Waiter#5', 'business_id' => 5, 'guard_name' => 'web', 'is_service_staff' => 1, ]); $waiter_role5->syncPermissions(['dashboard.data']); $waiter5 = User::findOrFail(8); $waiter5->assignRole('Waiter#5'); $waiter5->givePermissionTo('location.5'); $admin_role6 = Role::create(['name' => 'Admin#6', 'business_id' => 6, 'guard_name' => 'web', 'is_default' => 1, ]); $admin6 = User::findOrFail(12); $admin6->assignRole('Admin#6'); //Essential Module : Dummy Data $essentials_leave_types = [ ['id' => '1', 'leave_type' => 'Sick Leave', 'max_leave_count' => null, 'leave_count_interval' => null, 'business_id' => '1', 'created_at' => '2019-08-07 00:00:36', 'updated_at' => '2019-08-07 00:00:36'], ['id' => '2', 'leave_type' => 'Vacation Leaves', 'max_leave_count' => null, 'leave_count_interval' => null, 'business_id' => '1', 'created_at' => '2019-08-07 00:00:49', 'updated_at' => '2019-08-07 00:00:49'], ['id' => '3', 'leave_type' => 'Maternity leave', 'max_leave_count' => null, 'leave_count_interval' => null, 'business_id' => '1', 'created_at' => '2019-08-07 00:01:11', 'updated_at' => '2019-08-07 00:01:11'], ['id' => '4', 'leave_type' => 'Others', 'max_leave_count' => '1', 'leave_count_interval' => 'month', 'business_id' => '1', 'created_at' => '2019-08-07 00:01:34', 'updated_at' => '2019-08-07 00:01:34'], ]; DB::table('essentials_leave_types')->insert($essentials_leave_types); //Repair Module Dummy Data [product/device(categories) added above] $repair_device_models = [ ['id' => '1', 'business_id' => '4', 'name' => 'Samsung Galaxy M21', 'repair_checklist' => '"MIC|WiFi|Bluetooth|Sound|Camera|Ram"', 'brand_id' => '24', 'device_id' => '48', 'created_by' => '1', 'created_at' => '2020-05-07 21:07:24', 'updated_at' => '2020-05-11 12:35:00'], ['id' => '2', 'business_id' => '4', 'name' => 'Samsung Galaxy S20+', 'repair_checklist' => '"MIC|WiFi|Bluetooth|Sound|Camera|Ram"', 'brand_id' => '24', 'device_id' => '48', 'created_by' => '1', 'created_at' => '2020-05-07 21:08:11', 'updated_at' => '2020-05-11 12:34:34'], ['id' => '3', 'business_id' => '4', 'name' => 'DB43J 43 Inch Full HD Monitor', 'repair_checklist' => '"RAM|Wifi|keyBoard|Sound Quallity | Battery capacity | Mouse | USB Ports | Graphics"', 'brand_id' => '24', 'device_id' => '47', 'created_by' => '1', 'created_at' => '2020-05-07 21:09:15', 'updated_at' => '2020-05-11 12:33:47'], ['id' => '4', 'business_id' => '4', 'name' => 'LS24E510CS 23.5 inch LED Monitor', 'repair_checklist' => '"Keyboard|Ram|Sound Quallity | Battery capacity | Mouse | USB Ports | Graphics"', 'brand_id' => '24', 'device_id' => '47', 'created_by' => '1', 'created_at' => '2020-05-07 21:10:11', 'updated_at' => '2020-05-11 12:33:28'], ['id' => '5', 'business_id' => '4', 'name' => 'Samsung ChromeBook XE50', 'repair_checklist' => '"Camera | Windows | KeyBoard | Mouse | Battery capacity | Ram | USB Ports | Graphics"', 'brand_id' => '24', 'device_id' => '46', 'created_by' => '1', 'created_at' => '2020-05-07 21:11:44', 'updated_at' => '2020-05-11 12:30:48'], ['id' => '6', 'business_id' => '4', 'name' => 'Samsung Spin 7 NP730QAA', 'repair_checklist' => '"Battery capacity | Ram | Mouse | USB Ports | Graphics"', 'brand_id' => '24', 'device_id' => '46', 'created_by' => '1', 'created_at' => '2020-05-07 21:12:48', 'updated_at' => '2020-05-11 12:30:18'], ['id' => '7', 'business_id' => '4', 'name' => 'Apple MacBook Pro MVVK2LL', 'repair_checklist' => '"Camera | Windows | KeyBoard | Mouse | Battery capacity | Ram | USB Ports | Graphics"', 'brand_id' => '25', 'device_id' => '46', 'created_by' => '1', 'created_at' => '2020-05-07 21:13:54', 'updated_at' => '2020-05-11 12:37:44'], ['id' => '8', 'business_id' => '4', 'name' => 'iMac (Retina 5K, 27-inch, 2019)', 'repair_checklist' => '"Keyboard|Ram|Sound Quallity | Battery capacity | Mouse | USB Ports | Graphics"', 'brand_id' => '25', 'device_id' => '47', 'created_by' => '1', 'created_at' => '2020-05-07 21:14:39', 'updated_at' => '2020-05-11 12:38:06'], ['id' => '9', 'business_id' => '4', 'name' => 'Apple iPhone X', 'repair_checklist' => '"MIC|WiFi|Bluetooth|Sound|Camera|Ram"', 'brand_id' => '25', 'device_id' => '48', 'created_by' => '1', 'created_at' => '2020-05-07 21:15:38', 'updated_at' => '2020-05-11 12:38:48'], ]; DB::table('repair_device_models')->insert($repair_device_models); $repair_statuses = [ ['id' => '1', 'name' => 'Repaired', 'color' => '#3bd914', 'sort_order' => '4', 'business_id' => '4', 'created_at' => '2020-05-07 21:02:40', 'updated_at' => '2020-05-07 21:02:40'], ['id' => '2', 'name' => 'In Progress', 'color' => '#e3b81e', 'sort_order' => '2', 'business_id' => '4', 'created_at' => '2020-05-07 21:03:14', 'updated_at' => '2020-05-07 21:03:14'], ['id' => '3', 'name' => 'Not Started', 'color' => '#e3631b', 'sort_order' => '1', 'business_id' => '4', 'created_at' => '2020-05-07 21:03:43', 'updated_at' => '2020-05-07 21:03:43'], ['id' => '4', 'name' => 'Can\'t be repaired', 'color' => '#f5164b', 'sort_order' => '3', 'business_id' => '4', 'created_at' => '2020-05-07 21:04:10', 'updated_at' => '2020-05-08 10:04:58'], ]; DB::table('repair_statuses')->insert($repair_statuses); $essentials_shifts = [ ['id' => '1', 'name' => 'Morning Shift', 'type' => 'fixed_shift', 'business_id' => '1', 'start_time' => '09:00:00', 'end_time' => '18:00:00', 'holidays' => '["sunday","saturday"]', 'created_at' => '2020-05-11 05:26:56', 'updated_at' => '2020-05-11 21:27:03'], ['id' => '2', 'name' => 'Evening Shift', 'type' => 'flexible_shift', 'business_id' => '1', 'start_time' => null, 'end_time' => null, 'holidays' => '["sunday","saturday"]', 'created_at' => '2020-05-11 05:28:17', 'updated_at' => '2020-05-11 05:28:17'], ]; DB::table('essentials_shifts')->insert($essentials_shifts); $essentials_user_shifts = [ ['id' => '2', 'user_id' => '3', 'essentials_shift_id' => '1', 'start_date' => $start_of_week, 'end_date' => $end_of_week, 'created_at' => '2020-05-11 21:27:50', 'updated_at' => '2020-05-11 21:27:50'], ['id' => '3', 'user_id' => '9', 'essentials_shift_id' => '1', 'start_date' => $start_of_week, 'end_date' => $end_of_week, 'created_at' => '2020-05-11 21:27:50', 'updated_at' => '2020-05-11 21:27:50'], ['id' => '5', 'user_id' => '10', 'essentials_shift_id' => '2', 'start_date' => $start_of_week, 'end_date' => $end_of_week, 'created_at' => '2020-05-11 21:28:15', 'updated_at' => '2020-05-11 21:28:15'], ['id' => '6', 'user_id' => '11', 'essentials_shift_id' => '2', 'start_date' => $start_of_week, 'end_date' => $end_of_week, 'created_at' => '2020-05-11 21:28:15', 'updated_at' => '2020-05-11 21:28:15'], ['id' => '7', 'user_id' => '1', 'essentials_shift_id' => '2', 'start_date' => $start_of_week, 'end_date' => $end_of_week, 'created_at' => '2020-05-11 21:29:16', 'updated_at' => '2020-05-11 21:29:16'], ['id' => '8', 'user_id' => '2', 'essentials_shift_id' => '1', 'start_date' => $start_of_week, 'end_date' => $end_of_week, 'created_at' => '2020-05-11 21:29:45', 'updated_at' => '2020-05-11 21:29:45'], ]; DB::table('essentials_user_shifts')->insert($essentials_user_shifts); DB::statement('SET FOREIGN_KEY_CHECKS = 1'); $installUtil = new InstallUtil(); $installUtil->createExistingProductsVariationsToTemplate(); DB::commit(); } } factories/UserFactory.php 0000644 00000001742 15001704611 0011501 0 ustar 00 <?php namespace Database\Factories; use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Str; /* |-------------------------------------------------------------------------- | Model Factories |-------------------------------------------------------------------------- | | Here you may define all of your model factories. Model factories give | you a convenient way to create models for testing and seeding your | database. Just tell the factory how a default model should look. | */ class UserFactory extends Factory { /** * Define the model's default state. * * @return array */ public function definition() { static $password; return [ 'name' => $this->faker->name(), 'email' => $this->faker->unique()->safeEmail(), 'password' => $password ?: $password = Hash::make('secret'), 'remember_token' => Str::random(10), ]; } }
| ver. 1.4 |
Github
|
.
| PHP 8.2.28 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings