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

@@ -0,0 +1,65 @@
<?php
namespace App\Traits;
use App\Models\Document\Document;
use Illuminate\Support\Collection;
/**
* @deprecated
* @see Documents
*/
trait Purchases
{
use Documents;
/**
* Generate next bill number
*
* @deprecated
* @see Documents::getNextDocumentNumber()
*/
public function getNextBillNumber(): string
{
return $this->getNextDocumentNumber(Document::BILL_TYPE);
}
/**
* Increase the next bill number
*
* @deprecated`1
* @see Documents::increaseNextDocumentNumber()
*/
public function increaseNextBillNumber(): void
{
$this->increaseNextDocumentNumber(Document::BILL_TYPE);
}
/**
* Get a collection bill statuses
*
* @deprecated
* @see Documents::getBillStatuses()
*/
public function getBillStatuses(): Collection
{
return $this->getDocumentStatuses(Document::BILL_TYPE);
}
/**
* @deprecated
* @see Documents::getDocumentFileName()
*/
public function getBillFileName(Document $bill, string $separator = '-', string $extension = 'pdf'): string
{
return $this->getDocumentFileName($bill, $separator, $extension);
}
/**
* @deprecated
* @see Documents::getSafeDocumentNumber()
*/
public function getSafeBillNumber(Document $bill, string $separator = '-'): string
{
return $this->getSafeDocumentNumber($bill, $separator);
}
}