FormMargin
class FormMargin (View source)
Class permettant la generation de composants html autre Only common components are here.
Properties
| DoliDB | $db | ||
| string | $error |
Methods
array{pa_products: float, pv_products: float, margin_on_products: float, margin_rate_products: string, mark_rate_products: string, pa_services: float, pv_services: float, margin_on_services: float, margin_rate_services: string, mark_rate_services: string, pa_total: float, pv_total: float, total_margin: float, total_margin_rate: string, total_mark_rate: string}
getMarginInfosArray($object, bool $force_price = false)
get array with margin information from lines of object TODO Move this in common class.
Details
__construct(DoliDB $db)
Constructor
array{pa_products: float, pv_products: float, margin_on_products: float, margin_rate_products: string, mark_rate_products: string, pa_services: float, pv_services: float, margin_on_services: float, margin_rate_services: string, mark_rate_services: string, pa_total: float, pv_total: float, total_margin: float, total_margin_rate: string, total_mark_rate: string}
getMarginInfosArray($object, bool $force_price = false)
get array with margin information from lines of object TODO Move this in common class.
@param CommonObject $object Object we want to get margin information for
displayMarginInfos(CommonObject $object, $force_price = false)
Show the array with all margin infos