|
dolibarr 18.0.8
|
Library for common margin functions. More...
Go to the source code of this file.
Functions | |
| marges_admin_prepare_head () | |
| Define head array for tabs of marges tools setup pages. | |
| marges_prepare_head () | |
| Return array of tabs to used on pages for third parties cards. | |
| getMarginInfos ($pvht, $remise_percent, $tva_tx, $localtax1_tx, $localtax2_tx, $fk_pa, $paht) | |
| Return an array with margins information of a line. | |
Library for common margin functions.
Definition in file margins.lib.php.
| getMarginInfos | ( | $pvht, | |
| $remise_percent, | |||
| $tva_tx, | |||
| $localtax1_tx, | |||
| $localtax2_tx, | |||
| $fk_pa, | |||
| $paht ) |
Return an array with margins information of a line.
| float | $pvht | Selling price without tax |
| float | $remise_percent | Discount percent on line |
| float | $tva_tx | Vat rate (not used) |
| float | $localtax1_tx | Vat rate special 1 (not used) |
| float | $localtax2_tx | Vat rate special 2 (not used) |
| int | $fk_pa | Id of buying price (prefer set this to 0 and provide $paht instead. With id, buying price may have change) |
| float | $paht | Buying price without tax |
Definition at line 118 of file margins.lib.php.
References price2num().
Referenced by Facture\createFromContract(), Facture\createFromOrder(), Commande\createFromProposal(), ContratLigne\fetch(), FactureLigne\fetch(), OrderLine\fetch(), PropaleLigne\fetch(), SupplierProposal\fetch(), SupplierProposalLine\fetch(), Commande\fetch_lines(), Contrat\fetch_lines(), Facture\fetch_lines(), FactureRec\fetch_lines(), Propal\fetch_lines(), SupplierProposal\getLinesArray(), and Invoices\postLine().
| marges_admin_prepare_head | ( | ) |
Define head array for tabs of marges tools setup pages.
Definition at line 31 of file margins.lib.php.
References complete_head_from_modules().
| marges_prepare_head | ( | ) |
Return array of tabs to used on pages for third parties cards.
Definition at line 59 of file margins.lib.php.
References complete_head_from_modules().