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