diff --git a/app/Services/Setup.php b/app/Services/Setup.php index d3674651c..95e605e7f 100755 --- a/app/Services/Setup.php +++ b/app/Services/Setup.php @@ -212,6 +212,7 @@ public function runMigration( $fields ) $this->options = app()->make( Options::class ); $this->options->set( 'ns_store_name', $fields[ 'ns_store_name' ] ); $this->options->set( 'ns_registration_enabled', false ); + $this->options->set( 'ns_pos_order_types', [ 'takeaway', 'delivery' ]); return [ 'status' => 'success', diff --git a/database/migrations/misc/2021_11_17_215824_update_create_options_for_order_type.php b/database/migrations/misc/2021_11_17_215824_update_create_options_for_order_type.php new file mode 100644 index 000000000..1cfbbb8f0 --- /dev/null +++ b/database/migrations/misc/2021_11_17_215824_update_create_options_for_order_type.php @@ -0,0 +1,28 @@ +option->set( 'ns_pos_order_types', [ 'takeaway', 'delivery' ]); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + // + } +}