Skip to content

Latest commit

 

History

History
450 lines (212 loc) · 9.79 KB

class.HTMLTemplateSupplyOrderFormCore.md

File metadata and controls

450 lines (212 loc) · 9.79 KB

Class HTMLTemplateSupplyOrderFormCore

Contents

Properties

Methods

Properties

$address_supplier

public mixed $address_supplier

$address_warehouse

public mixed $address_warehouse

$context

public mixed $context

$supply_order

public mixed $supply_order

$warehouse

public mixed $warehouse

$available_in_your_account

public mixed $available_in_your_account = true

$date

public mixed $date

$shop

public mixed $shop

$smarty

public mixed $smarty

$title

public mixed $title

Methods

__construct

mixed HTMLTemplateSupplyOrderFormCore::__construct(\SupplyOrder $supply_order, $smarty)

Arguments

assignHookData

mixed HTMLTemplateCore::assignHookData($object)

Assign hook data

Arguments

  • $object mixed - generally the object used in the constructor

getBulkFilename

mixed HTMLTemplateSupplyOrderFormCore::getBulkFilename()

getContent

mixed HTMLTemplateSupplyOrderFormCore::getContent()

getFilename

mixed HTMLTemplateSupplyOrderFormCore::getFilename()

getFooter

mixed HTMLTemplateSupplyOrderFormCore::getFooter()

getHeader

mixed HTMLTemplateSupplyOrderFormCore::getHeader()

getLogo

mixed HTMLTemplateSupplyOrderFormCore::getLogo()

Returns the invoice logo

getShopAddress

string HTMLTemplateCore::getShopAddress()

Returns the shop address

getTaxOrderSummary

mixed HTMLTemplateSupplyOrderFormCore::getTaxOrderSummary()

getTemplate

string HTMLTemplateCore::getTemplate($template_name)

If the template is not present in the theme directory, it will return the default template in PS_PDF_DIR directory

Arguments

  • $template_name mixed

l

string HTMLTemplateCore::l(string $string)

Translatation method

Arguments

  • $string string

roundSupplyOrder

mixed HTMLTemplateSupplyOrderFormCore::roundSupplyOrder(\SupplyOrder $supply_order)

Rounds values of a SupplyOrder object

Arguments

roundSupplyOrderDetails

mixed HTMLTemplateSupplyOrderFormCore::roundSupplyOrderDetails(array|\PrestaShopCollection $collection)

Rounds values of a SupplyOrderDetail object

Arguments

  • $collection array|array