Example #1
0
 print $objsoc->tva_intra;
 print '</td></tr>';
 // Conditions de reglement par defaut
 $langs->load('bills');
 $html = new Form($db);
 print '<tr><td nowrap>';
 print '<table width="100%" class="nobordernopadding"><tr><td nowrap>';
 print $langs->trans('PaymentConditions');
 print '<td>';
 if ($_GET['action'] != 'editconditions' && $user->rights->societe->creer) {
     print '<td align="right"><a href="' . $_SERVER["PHP_SELF"] . '?action=editconditions&amp;socid=' . $objsoc->id . '">' . img_edit($langs->trans('SetConditions'), 1) . '</a></td>';
 }
 print '</tr></table>';
 print '</td><td colspan="3">';
 if ($_GET['action'] == 'editconditions') {
     $html->form_conditions_reglement($_SERVER['PHP_SELF'] . '?socid=' . $objsoc->id, $objsoc->cond_reglement, 'cond_reglement_id', -1, 1);
 } else {
     $html->form_conditions_reglement($_SERVER['PHP_SELF'] . '?socid=' . $objsoc->id, $objsoc->cond_reglement, 'none');
 }
 print "</td>";
 print '</tr>';
 // Mode de reglement par defaut
 print '<tr><td nowrap>';
 print '<table width="100%" class="nobordernopadding"><tr><td nowrap>';
 print $langs->trans('PaymentMode');
 print '<td>';
 if ($_GET['action'] != 'editmode' && $user->rights->societe->creer) {
     print '<td align="right"><a href="' . $_SERVER["PHP_SELF"] . '?action=editmode&amp;socid=' . $objsoc->id . '">' . img_edit($langs->trans('SetMode'), 1) . '</a></td>';
 }
 print '</tr></table>';
 print '</td><td colspan="3">';
Example #2
0
     $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');
     } else {
         $form->form_conditions_reglement($_SERVER['PHP_SELF'] . '?facid=' . $object->id, $object->cond_reglement_id, 'none');
     }
 } else {
     print '&nbsp;';
 }
 print '</td></tr>';
 // Date payment term
 print '<tr><td>';
 print '<table class="nobordernopadding" width="100%"><tr><td>';
 print $langs->trans('DateMaxPayment');
 print '</td>';
 if ($object->type != Facture::TYPE_CREDIT_NOTE && $action != 'editpaymentterm' && !empty($object->brouillon) && $user->rights->facture->creer) {
     print '<td align="right"><a href="' . $_SERVER["PHP_SELF"] . '?action=editpaymentterm&amp;facid=' . $object->id . '">' . img_edit($langs->trans('SetDate'), 1) . '</a></td>';
 }
Example #3
0
         $html->form_address($_SERVER['PHP_SELF'] . '?id=' . $object->id, $object->fk_delivery_address, $socid, 'none', 'commande', $object->id);
     }
     print '</td></tr>';
 }
 // Terms of payment
 print '<tr><td height="10">';
 print '<table class="nobordernopadding" width="100%"><tr><td>';
 print $langs->trans('PaymentConditionsShort');
 print '</td>';
 if ($action != 'editconditions' && $object->brouillon) {
     print '<td align="right"><a href="' . $_SERVER["PHP_SELF"] . '?action=editconditions&amp;id=' . $object->id . '">' . img_edit($langs->trans('SetConditions'), 1) . '</a></td>';
 }
 print '</tr></table>';
 print '</td><td colspan="2">';
 if ($action == 'editconditions') {
     $html->form_conditions_reglement($_SERVER['PHP_SELF'] . '?id=' . $object->id, $object->cond_reglement_id, 'cond_reglement_id', 1);
 } else {
     $html->form_conditions_reglement($_SERVER['PHP_SELF'] . '?id=' . $object->id, $object->cond_reglement_id, 'none', 1);
 }
 print '</td>';
 print '</tr>';
 // Mode of payment
 print '<tr><td height="10">';
 print '<table class="nobordernopadding" width="100%"><tr><td>';
 print $langs->trans('PaymentMode');
 print '</td>';
 if ($action != 'editmode' && $object->brouillon) {
     print '<td align="right"><a href="' . $_SERVER["PHP_SELF"] . '?action=editmode&amp;id=' . $object->id . '">' . img_edit($langs->trans('SetMode'), 1) . '</a></td>';
 }
 print '</tr></table>';
 print '</td><td colspan="2">';
Example #4
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 ($fac->type != 2 && $_GET['action'] != 'editconditions' && $fac->brouillon && $user->rights->facture->creer) print '<td align="right"><a href="'.$_SERVER["PHP_SELF"].'?action=editconditions&amp;facid='.$fac->id.'">'.img_edit($langs->trans('SetConditions'),1).'</a></td>';
        print '</tr></table>';
        print '</td><td colspan="3">';
        if ($fac->type != 2)
        {
            if ($_GET['action'] == 'editconditions')
            {
                $html->form_conditions_reglement($_SERVER['PHP_SELF'].'?facid='.$fac->id,$fac->cond_reglement_id,'cond_reglement_id');
            }
            else
            {
                $html->form_conditions_reglement($_SERVER['PHP_SELF'].'?facid='.$fac->id,$fac->cond_reglement_id,'none');
            }
        }
        else
        {
            print '&nbsp;';
        }
        print '</td></tr>';

        // Mode de reglement
        print '<tr><td>';
        print '<table class="nobordernopadding" width="100%"><tr><td>';
Example #5
0
			}
			print '</td></tr>';
		}

		// Terms of payment
		print '<tr><td height="10">';
		print '<table class="nobordernopadding" width="100%"><tr><td>';
		print $langs->trans('PaymentConditionsShort');
		print '</td>';

		if ($_GET['action'] != 'editconditions' && $commande->brouillon) print '<td align="right"><a href="'.$_SERVER["PHP_SELF"].'?action=editconditions&amp;id='.$commande->id.'">'.img_edit($langs->trans('SetConditions'),1).'</a></td>';
		print '</tr></table>';
		print '</td><td colspan="2">';
		if ($_GET['action'] == 'editconditions')
		{
			$html->form_conditions_reglement($_SERVER['PHP_SELF'].'?id='.$commande->id,$commande->cond_reglement_id,'cond_reglement_id');
		}
		else
		{
			$html->form_conditions_reglement($_SERVER['PHP_SELF'].'?id='.$commande->id,$commande->cond_reglement_id,'none');
		}
		print '</td></tr>';

		// Mode of payment
		print '<tr><td height="10">';
		print '<table class="nobordernopadding" width="100%"><tr><td>';
		print $langs->trans('PaymentMode');
		print '</td>';
		if ($_GET['action'] != 'editmode' && $commande->brouillon) print '<td align="right"><a href="'.$_SERVER["PHP_SELF"].'?action=editmode&amp;id='.$commande->id.'">'.img_edit($langs->trans('SetMode'),1).'</a></td>';
		print '</tr></table>';
		print '</td><td colspan="2">';
Example #6
0
 print $object->tva_intra;
 print '</td></tr>';
 // Conditions de reglement par defaut
 $langs->load('bills');
 $form = new Form($db);
 print '<tr><td>';
 print '<table width="100%" class="nobordernopadding"><tr><td>';
 print $langs->trans('PaymentConditions');
 print '<td>';
 if ($action != 'editconditions' && $user->rights->societe->creer) {
     print '<td align="right"><a href="' . $_SERVER["PHP_SELF"] . '?action=editconditions&amp;socid=' . $object->id . '">' . img_edit($langs->trans('SetConditions'), 1) . '</a></td>';
 }
 print '</tr></table>';
 print '</td><td colspan="3">';
 if ($action == 'editconditions') {
     $form->form_conditions_reglement($_SERVER['PHP_SELF'] . '?socid=' . $object->id, $object->cond_reglement_supplier_id, 'cond_reglement_supplier_id', -1, 1);
 } else {
     $form->form_conditions_reglement($_SERVER['PHP_SELF'] . '?socid=' . $object->id, $object->cond_reglement_supplier_id, 'none');
 }
 print "</td>";
 print '</tr>';
 // Mode de reglement par defaut
 print '<tr><td class="nowrap">';
 print '<table width="100%" class="nobordernopadding"><tr><td class="nowrap">';
 print $langs->trans('PaymentMode');
 print '<td>';
 if ($action != 'editmode' && $user->rights->societe->creer) {
     print '<td align="right"><a href="' . $_SERVER["PHP_SELF"] . '?action=editmode&amp;socid=' . $object->id . '">' . img_edit($langs->trans('SetMode'), 1) . '</a></td>';
 }
 print '</tr></table>';
 print '</td><td colspan="3">';
 if ($object->type != Facture::TYPE_CREDIT_NOTE) {
     if ($action == 'editpaymentterm') {
         $form->form_date($_SERVER['PHP_SELF'] . '?facid=' . $object->id, $object->date_lim_reglement, 'paymentterm');
     } else {
         print dol_print_date($object->date_lim_reglement, 'daytext');
         if ($object->date_lim_reglement < $now - $conf->facture->client->warning_delay && !$object->paye && $object->statut == 1 && !$object->am) {
             print img_warning($langs->trans('Late'));
         }
     }
 } else {
     print '&nbsp;';
 }
 print '</td></tr>';
 // Conditions reglement
 print '<tr><td>' . $langs->trans("PaymentConditionsShort") . '</td><td colspan="5">';
 $form->form_conditions_reglement($_SERVER["PHP_SELF"] . "?facid={$object->id}", $object->cond_reglement_id, "none");
 print '</td>';
 print '</td></tr>';
 // Mode de reglement
 print '<tr><td>';
 print '<table class="nobordernopadding" width="100%"><tr><td>';
 print $langs->trans('PaymentMode');
 print '</td>';
 if ($action != 'editmode' && $object->brouillon && $user->rights->facture->creer) {
     print '<td align="right"><a href="' . $_SERVER["PHP_SELF"] . '?action=editmode&amp;facid=' . $object->id . '">' . img_edit($langs->trans('SetMode'), 1) . '</a></td>';
 }
 print '</tr></table>';
 print '</td><td colspan="3">';
 if ($action == 'editmode') {
     $form->form_modes_reglement($_SERVER['PHP_SELF'] . '?facid=' . $object->id, $object->mode_reglement_id, 'mode_reglement_id');
 } else {