Merge Invoice and Bill into Document

This commit is contained in:
Burak Çakırel
2020-12-24 01:28:38 +03:00
parent 830cc05957
commit 0c1424db47
436 changed files with 31655 additions and 37350 deletions

View File

@ -2,8 +2,8 @@
namespace Tests\Feature\Commands;
use App\Jobs\Sale\CreateInvoice;
use App\Models\Sale\Invoice;
use App\Jobs\Document\CreateDocument;
use App\Models\Document\Document;
use App\Notifications\Sale\Invoice as InvoiceNotification;
use App\Utilities\Date;
use Illuminate\Support\Facades\Notification;
@ -24,7 +24,7 @@ class InvoiceReminderTest extends FeatureTestCase
{
Notification::fake();
$invoice = $this->dispatch(new CreateInvoice($this->getRequest()));
$invoice = $this->dispatch(new CreateDocument($this->getRequest()));
Date::setTestNow(Date::now()->addDay($this->add_days));
@ -41,7 +41,7 @@ class InvoiceReminderTest extends FeatureTestCase
public function getRequest()
{
return Invoice::factory()->items()->sent()->raw([
return Document::factory()->invoice()->items()->sent()->raw([
'due_at' => Date::now()->subDays($this->add_days - 1),
]);
}