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\Purchase\CreateBill;
use App\Models\Purchase\Bill;
use App\Jobs\Document\CreateDocument;
use App\Models\Document\Document;
use App\Notifications\Purchase\Bill as BillNotification;
use App\Utilities\Date;
use Illuminate\Support\Facades\Notification as Notification;
@ -24,7 +24,7 @@ class BillReminderTest extends FeatureTestCase
{
Notification::fake();
$bill = $this->dispatch(new CreateBill($this->getRequest()));
$bill = $this->dispatch(new CreateDocument($this->getRequest()));
Date::setTestNow(Date::now()->subDays($this->add_days));
@ -41,7 +41,7 @@ class BillReminderTest extends FeatureTestCase
public function getRequest()
{
return Bill::factory()->items()->received()->raw([
return Document::factory()->bill()->items()->received()->raw([
'due_at' => Date::now()->subDays($this->add_days - 1),
]);
}