38if (empty($object) || !is_object($object)) {
39 print
"Error, template page can't be called as URL";
43print
"<!-- BEGIN PHP TEMPLATE objectline_title.tpl.php -->\n";
48print
'<tr class="liste_titre nodrag nodrop">';
51if (!empty($conf->global->MAIN_VIEW_LINE_NUMBER)) {
52 print
'<th class="linecolnum center"> </th>';
56print
'<th class="linecoldescription">'.$langs->trans(
'Description').
'</th>';
59if ($this->element ==
'supplier_proposal' || $this->element ==
'order_supplier' || $this->element ==
'invoice_supplier' || $this->element ==
'invoice_supplier_rec') {
60 print
'<th class="linerefsupplier maxwidth125"><span id="title_fourn_ref">'.$langs->trans(
"SupplierRef").
'</span></th>';
64print
'<th class="linecolvat right nowraponall">';
65if (!empty($conf->global->FACTURE_LOCAL_TAX1_OPTION) || !empty($conf->global->FACTURE_LOCAL_TAX2_OPTION)) {
66 print $langs->trans(
'Taxes');
68 print $langs->trans(
'VAT');
71if (in_array($object->element, array(
'propal',
'commande',
'facture',
'supplier_proposal',
'order_supplier',
'invoice_supplier')) && $object->status == $object::STATUS_DRAFT) {
74 if (empty($disableedit) &&
GETPOST(
'mode',
'aZ09') !=
'vatforalllines') {
75 print
'<a class="reposition" href="'.$_SERVER[
"PHP_SELF"].
'?mode=vatforalllines&id='.$object->id.
'">'.
img_edit($langs->trans(
"UpdateForAllLines"), 0,
'class="clickvatforalllines opacitymedium paddingleft cursorpointer"').
'</a>';
78 if (
GETPOST(
'mode',
'aZ09') ==
'vatforalllines') {
79 print
'<div class="classvatforalllines inline-block nowraponall">';
80 print $form->load_tva(
'vatforalllines',
'', $mysoc, $object->thirdparty, 0, 0,
'',
false, 1);
81 print
'<input class="inline-block button smallpaddingimp" type="submit" name="submitforalllines" value="'.$langs->trans(
"Update").
'">';
88print
'<th class="linecoluht right nowraponall">'.$langs->trans(
'PriceUHT').
'</th>';
91if (isModEnabled(
"multicurrency") && $this->multicurrency_code != $conf->currency) {
92 print
'<th class="linecoluht_currency right" style="width: 80px">'.$langs->trans(
'PriceUHTCurrency', $this->multicurrency_code).
'</th>';
95if (!empty($inputalsopricewithtax) && !
getDolGlobalInt(
'MAIN_NO_INPUT_PRICE_WITH_TAX')) {
96 print
'<th class="right nowraponall">'.$langs->trans(
'PriceUTTC').
'</th>';
100print
'<th class="linecolqty right">'.$langs->trans(
'Qty').
'</th>';
103if (!empty($conf->global->PRODUCT_USE_UNITS)) {
104 print
'<th class="linecoluseunit left">'.$langs->trans(
'Unit').
'</th>';
108print
'<th class="linecoldiscount right nowraponall">';
109print $langs->trans(
'ReductionShort');
111if (in_array($object->element, array(
'propal',
'commande',
'facture')) && $object->status == $object::STATUS_DRAFT) {
114 if (empty($disableedit) &&
GETPOST(
'mode',
'aZ09') !=
'remiseforalllines') {
115 print
'<a class="reposition" href="'.$_SERVER[
"PHP_SELF"].
'?mode=remiseforalllines&id='.$object->id.
'">'.
img_edit($langs->trans(
"UpdateForAllLines"), 0,
'class="clickvatforalllines opacitymedium paddingleft cursorpointer"').
'</a>';
118 if (
GETPOST(
'mode',
'aZ09') ==
'remiseforalllines') {
119 print
'<div class="remiseforalllines inline-block nowraponall">';
120 print
'<input class="inline-block smallpaddingimp width50 right" name="remiseforalllines" value="" placeholder="%">';
121 print
'<input class="inline-block button smallpaddingimp" type="submit" name="submitforalllines" value="'.$langs->trans(
"Update").
'">';
128if (isset($this->situation_cycle_ref) && $this->situation_cycle_ref) {
129 print
'<th class="linecolcycleref right">'.$langs->trans(
'Progress').
'</th>';
130 print
'<th class="linecolcycleref2 right">'.$form->textwithpicto($langs->trans(
'TotalHT100Short'), $langs->trans(
'UnitPriceXQtyLessDiscount')).
'</th>';
134if ($usemargins && isModEnabled(
'margin') && empty($user->socid)) {
135 if (!empty($user->rights->margins->creer)) {
136 if ($conf->global->MARGIN_TYPE ==
"1") {
137 print
'<th class="linecolmargin1 margininfos right width75">'.$langs->trans(
'BuyingPrice').
'</th>';
139 print
'<th class="linecolmargin1 margininfos right width75">'.$langs->trans(
'CostPrice').
'</th>';
143 if (!empty($conf->global->DISPLAY_MARGIN_RATES) && $user->rights->margins->liretous) {
144 print
'<th class="linecolmargin2 margininfos right width75">'.$langs->trans(
'MarginRate');
145 if ($user->hasRight(
"propal",
"creer")) {
146 print
'<a class="reposition" href="'.$_SERVER[
"PHP_SELF"].
'?mode=marginforalllines&id='.$object->id.
'">'.
img_edit($langs->trans(
"UpdateForAllLines"), 0,
'class="clickmarginforalllines opacitymedium paddingleft cursorpointer"').
'</a>';
147 if (
GETPOST(
'mode',
'aZ09') ==
'marginforalllines') {
148 print
'<div class="classmarginforalllines inline-block nowraponall">';
149 print
'<input type="number" name="marginforalllines" min="0" max="999.9" value="20.0" step="0.1" class="width50"><label>%</label>';
150 print
'<input class="inline-block button smallpaddingimp" type="submit" name="submitforallmargins" value="'.$langs->trans(
"Update").
'">';
156 if (!empty($conf->global->DISPLAY_MARK_RATES) && $user->rights->margins->liretous) {
157 print
'<th class="linecolmargin2 margininfos right width75">'.$langs->trans(
'MarkRate').
'</th>';
162print
'<th class="linecolht right">'.$langs->trans(
'TotalHTShort').
'</th>';
165if (isModEnabled(
"multicurrency") && $this->multicurrency_code != $conf->currency) {
166 print
'<th class="linecoltotalht_currency right">'.$langs->trans(
'TotalHTShortCurrency', $this->multicurrency_code).
'</th>';
169if ($outputalsopricetotalwithtax) {
170 print
'<th class="right" style="width: 80px">'.$langs->trans(
'TotalTTCShort').
'</th>';
173if (isModEnabled(
'asset') && $object->element ==
'invoice_supplier') {
174 print
'<th class="linecolasset"></th>';
177print
'<th class="linecoledit"></th>';
179print
'<th class="linecoldelete" style="width: 10px"></th>';
181print
'<th class="linecolmove" style="width: 10px"></th>';
183if ($action ==
'selectlines') {
184 print
'<th class="linecolcheckall center">';
185 print
'<input type="checkbox" class="linecheckboxtoggle" />';
186 print
'<script>$(document).ready(function() {$(".linecheckboxtoggle").click(function() {var checkBoxes = $(".linecheckbox");checkBoxes.prop("checked", this.checked);})});</script>';
193print
"<!-- END PHP TEMPLATE objectline_title.tpl.php -->\n";
getDolGlobalInt($key, $default=0)
Return dolibarr global constant int value.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
img_edit($titlealt='default', $float=0, $other='')
Show logo editer/modifier fiche.