Compare commits

...

7 Commits

Author SHA1 Message Date
4eb94a736a Fix InvoiceTest and add placeholder file for Feature folder 2025-04-07 19:52:21 -04:00
07c250eaac Fix product name nullability in migration 2025-04-07 19:44:04 -04:00
4500ce0c27 Merge pull request 'development' (#139) from development into main
Reviewed-on: #139
2025-04-08 01:38:08 +02:00
4e952f96c0 add local env file
Some checks failed
Deploy / deploy (push) Failing after 9s
2025-04-02 15:08:10 -04:00
43eebd9528 Merge branch 'development'
Some checks failed
Deploy / deploy (push) Failing after 8s
2025-03-11 12:52:46 -04:00
ea4f46f96d #122 Non-admins can see payments in customer edit page 2025-03-11 12:52:34 -04:00
3defbd8253 Merge pull request 'Version 20250311' (#121) from development into main
Some checks failed
Deploy / deploy (push) Failing after 6s
Reviewed-on: nisse/topnotch_website#121
2025-03-11 17:33:40 +01:00
4 changed files with 21 additions and 16 deletions

View File

@ -1,9 +1,9 @@
APP_NAME=Laravel APP_NAME="Top Notch"
APP_ENV=local APP_ENV=local
APP_KEY= APP_KEY=base64:vRgghlbIdXQxXIEvgUArbI9FURhgdyqx3LDXDwHYSmA=
APP_DEBUG=true APP_DEBUG=true
APP_TIMEZONE=UTC APP_TIMEZONE=UTC
APP_URL=http://localhost APP_URL=localhost
APP_LOCALE=en APP_LOCALE=en
APP_FALLBACK_LOCALE=en APP_FALLBACK_LOCALE=en
@ -19,12 +19,12 @@ LOG_STACK=single
LOG_DEPRECATIONS_CHANNEL=null LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug LOG_LEVEL=debug
DB_CONNECTION=sqlite DB_CONNECTION=mysql
# DB_HOST=127.0.0.1 DB_HOST=mysql
# DB_PORT=3306 DB_PORT=3306
# DB_DATABASE=laravel DB_DATABASE=laravel
# DB_USERNAME=root DB_USERNAME=sail
# DB_PASSWORD= DB_PASSWORD=password
SESSION_DRIVER=database SESSION_DRIVER=database
SESSION_LIFETIME=120 SESSION_LIFETIME=120
@ -42,13 +42,13 @@ CACHE_PREFIX=
MEMCACHED_HOST=127.0.0.1 MEMCACHED_HOST=127.0.0.1
REDIS_CLIENT=phpredis REDIS_CLIENT=phpredis
REDIS_HOST=127.0.0.1 REDIS_HOST=redis
REDIS_PASSWORD=null REDIS_PASSWORD=null
REDIS_PORT=6379 REDIS_PORT=6379
MAIL_MAILER=log MAIL_MAILER=smtp
MAIL_HOST=127.0.0.1 MAIL_HOST=mailpit
MAIL_PORT=2525 MAIL_PORT=1025
MAIL_USERNAME=null MAIL_USERNAME=null
MAIL_PASSWORD=null MAIL_PASSWORD=null
MAIL_ENCRYPTION=null MAIL_ENCRYPTION=null
@ -62,3 +62,8 @@ AWS_BUCKET=
AWS_USE_PATH_STYLE_ENDPOINT=false AWS_USE_PATH_STYLE_ENDPOINT=false
VITE_APP_NAME="${APP_NAME}" VITE_APP_NAME="${APP_NAME}"
SCOUT_DRIVER=meilisearch
MEILISEARCH_HOST=http://meilisearch:7700
MEILISEARCH_NO_ANALYTICS=false

View File

@ -12,7 +12,7 @@ public function up(): void
$table->id(); $table->id();
$table->foreignId('order_id')->constrained(); $table->foreignId('order_id')->constrained();
$table->string('sku')->nullable(); $table->string('sku')->nullable();
$table->string('product_name'); $table->string('product_name')->nullable();
$table->string('color')->nullable(); $table->string('color')->nullable();
$table->softDeletes(); $table->softDeletes();

View File

View File

@ -54,7 +54,7 @@
->assertHasNoErrors(); ->assertHasNoErrors();
$this->assertDatabaseHas('invoices', [ $this->assertDatabaseHas('invoices', [
'internal_id' => 'TN40001', 'internal_id' => 'TN4001',
'customer_id' => $formData['customer_id'], 'customer_id' => $formData['customer_id'],
'status' => $formData['status'], 'status' => $formData['status'],
'has_gst' => $formData['has_gst'], 'has_gst' => $formData['has_gst'],
@ -65,7 +65,7 @@
'hst_rate' => $hst_rate, 'hst_rate' => $hst_rate,
]); ]);
$invoice = Invoice::where('internal_id', 'TN40001')->firstOrFail(); $invoice = Invoice::where('internal_id', 'TN4001')->firstOrFail();
$this->assertEquals($invoice->orders->isEmpty(), true); $this->assertEquals($invoice->orders->isEmpty(), true);
}); });