示例#1
0
 $cols = 5;
 include DOL_DOCUMENT_ROOT . '/core/tpl/extrafields_view.tpl.php';
 // Amount HT
 print '<tr><td height="10">' . $langs->trans('AmountHT') . '</td>';
 print '<td class="nowrap" colspan="2">' . price($object->total_ht, '', $langs, 0, -1, -1, $conf->currency) . '</td>';
 // Margin Infos
 if (!empty($conf->margin->enabled)) {
     $rowspan = 4;
     if ($mysoc->localtax1_assuj == "1" || $object->total_localtax1 != 0) {
         $rowspan++;
     }
     if ($mysoc->localtax2_assuj == "1" || $object->total_localtax2 != 0) {
         $rowspan++;
     }
     print '<td valign="top" width="50%" colspan="3" rowspan="' . $rowspan . '">';
     $formmargin->displayMarginInfos($object);
     print '</td>';
 }
 print '</tr>';
 // Amount VAT
 print '<tr><td height="10">' . $langs->trans('AmountVAT') . '</td>';
 print '<td class="nowrap" colspan="2">' . price($object->total_tva, '', $langs, 0, -1, -1, $conf->currency) . '</td>';
 print '</tr>';
 // Amount Local Taxes
 if ($mysoc->localtax1_assuj == "1" || $object->total_localtax1 != 0) {
     print '<tr><td height="10">' . $langs->transcountry("AmountLT1", $mysoc->country_code) . '</td>';
     print '<td class="nowrap" colspan="2">' . price($object->total_localtax1, '', $langs, 0, -1, -1, $conf->currency) . '</td>';
     print '</tr>';
 }
 if ($mysoc->localtax2_assuj == "1" || $object->total_localtax2 != 0) {
     print '<tr><td height="10">' . $langs->transcountry("AmountLT2", $mysoc->country_code) . '</td>';
示例#2
0
     } else {
         print $langs->trans('ExcessPaydBack');
     }
     print ' :</td>';
     print '<td align="right" style="border: 1px solid;" bgcolor="#f0f0f0"><b>' . price($sign * $resteapayeraffiche) . '</b></td>';
     print '<td class="nowrap">&nbsp;</td></tr>';
     // Sold credit note
     // print '<tr><td colspan="'.$nbcols.'" align="right">'.$langs->trans('TotalTTC').' :</td>';
     // print '<td align="right" style="border: 1px solid;" bgcolor="#f0f0f0"><b>'.price($sign *
     // $object->total_ttc).'</b></td><td>&nbsp;</td></tr>';
 }
 print '</table>';
 // Margin Infos
 if (!empty($conf->margin->enabled)) {
     print '<br>';
     $formmargin->displayMarginInfos($object, $object->statut > 0);
 }
 print '</td></tr>';
 // Conditions de reglement
 print '<tr><td>';
 print '<table class="nobordernopadding" width="100%"><tr><td>';
 print $langs->trans('PaymentConditionsShort');
 print '</td>';
 if ($object->type != Facture::TYPE_CREDIT_NOTE && $action != 'editconditions' && !empty($object->brouillon) && $user->rights->facture->creer) {
     print '<td align="right"><a href="' . $_SERVER["PHP_SELF"] . '?action=editconditions&amp;facid=' . $object->id . '">' . img_edit($langs->trans('SetConditions'), 1) . '</a></td>';
 }
 print '</tr></table>';
 print '</td><td colspan="3">';
 if ($object->type != Facture::TYPE_CREDIT_NOTE) {
     if ($action == 'editconditions') {
         $form->form_conditions_reglement($_SERVER['PHP_SELF'] . '?facid=' . $object->id, $object->cond_reglement_id, 'cond_reglement_id');
示例#3
0
 /**
  * Show the array with all margin infos
  *
  * @param 		bool	$force_price	Force price
  * @return		void
  * @deprecated	3.8 Load FormMargin class and make a direct call to displayMarginInfos
  */
 function displayMarginInfos($force_price = false)
 {
     include_once DOL_DOCUMENT_ROOT . '/core/class/html.formmargin.class.php';
     $formmargin = new FormMargin($this->db);
     $formmargin->displayMarginInfos($this, $force_price);
 }