Compare commits
No commits in common. "4eb94a736a90419952573a321ca8b08e11d40c28" and "4500ce0c273cb536e2ea0b85c04f9d59c025da72" have entirely different histories.
4eb94a736a
...
4500ce0c27
@ -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')->nullable();
|
$table->string('product_name');
|
||||||
$table->string('color')->nullable();
|
$table->string('color')->nullable();
|
||||||
|
|
||||||
$table->softDeletes();
|
$table->softDeletes();
|
||||||
|
@ -54,7 +54,7 @@
|
|||||||
->assertHasNoErrors();
|
->assertHasNoErrors();
|
||||||
|
|
||||||
$this->assertDatabaseHas('invoices', [
|
$this->assertDatabaseHas('invoices', [
|
||||||
'internal_id' => 'TN4001',
|
'internal_id' => 'TN40001',
|
||||||
'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', 'TN4001')->firstOrFail();
|
$invoice = Invoice::where('internal_id', 'TN40001')->firstOrFail();
|
||||||
|
|
||||||
$this->assertEquals($invoice->orders->isEmpty(), true);
|
$this->assertEquals($invoice->orders->isEmpty(), true);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user