CommonIncoterm
trait CommonIncoterm (View source)
Trait for incoterm classes
Properties expected on the host class:
Properties
| int | $fk_incoterms | ||
| string | $label_incoterms | ||
| string | $location_incoterms | ||
| DoliDB | $db | ||
| int | $id | ||
| string[] | $errors | ||
| string | $table_element |
Methods
display_incoterms()
Return incoterms information TODO Use a cache for label get
getIncotermsForPDF()
Return incoterms information for pdf display
setIncoterms($id_incoterm, string $location)
Define incoterms values of current object
Details
display_incoterms()
Return incoterms information TODO Use a cache for label get
@return string incoterms info
getIncotermsForPDF()
Return incoterms information for pdf display
@return string|boolean Incoterms info or false
setIncoterms($id_incoterm, string $location)
Define incoterms values of current object
@param int $id_incoterm Id of incoterm to set or '' to remove