include wrapper inside
This commit is contained in:
@@ -4,6 +4,7 @@ namespace App\Modules\Invoice\Actions;
|
||||
|
||||
use App\Modules\Excell\Excell;
|
||||
use App\Modules\Excell\Fonts\FONTS;
|
||||
use App\Modules\Excell\Types\iRichText\RichTextWrapper;
|
||||
use App\Modules\Invoice\Data\InvoiceExcellData;
|
||||
use App\Modules\Invoice\Data\InvoiceItem;
|
||||
use App\Modules\Makeable;
|
||||
@@ -101,6 +102,16 @@ class GenerateInvoiceExcell
|
||||
$this->worksheet = $this->spreadsheet->getActiveSheet();
|
||||
}
|
||||
|
||||
/**
|
||||
* Return new RichTextWrapper
|
||||
*/
|
||||
public function richText(): RichTextWrapper
|
||||
{
|
||||
return Excell::richText()
|
||||
->setDefaultFont(FONTS::TIMES_NEW_ROMAN)
|
||||
->setDefaultSize(10);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fill the cells
|
||||
*/
|
||||
@@ -290,9 +301,7 @@ class GenerateInvoiceExcell
|
||||
*/
|
||||
public function satyjySalgytBelgi(): RichText
|
||||
{
|
||||
return Excell::richText()
|
||||
->setDefaultFont(FONTS::TIMES_NEW_ROMAN)
|
||||
->setDefaultSize(10)
|
||||
return $this->richText()
|
||||
->add('Satyjynyň şahsy salgyt belgisi: ')
|
||||
->add($this->data->seller_ssb, bold: true)
|
||||
->toRichText();
|
||||
@@ -303,9 +312,7 @@ class GenerateInvoiceExcell
|
||||
*/
|
||||
public function satyjyBanky(): RichText
|
||||
{
|
||||
return Excell::richText()
|
||||
->setDefaultFont(FONTS::TIMES_NEW_ROMAN)
|
||||
->setDefaultSize(10)
|
||||
return $this->richText()
|
||||
->add(sprintf('Satyjynyň bankynyň ady %s, hasap № ', $this->data->seller_bank_name))
|
||||
->add($this->data->seller_bank_hb_1, bold: true)
|
||||
->toRichText();
|
||||
@@ -316,9 +323,7 @@ class GenerateInvoiceExcell
|
||||
*/
|
||||
public function satyjyBankyMaglumatlary(): RichText
|
||||
{
|
||||
return Excell::richText()
|
||||
->setDefaultFont(FONTS::TIMES_NEW_ROMAN)
|
||||
->setDefaultSize(10)
|
||||
return $this->richText()
|
||||
->add('şäherde (etrapda) ')
|
||||
->add($this->data->seller_bank_city, bold: true)
|
||||
->add(' BAB ')
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user