Fix can edit condition and mode of payment even if not draft.
This commit is contained in:
parent
9019576394
commit
544b123bdd
@ -2147,7 +2147,7 @@ if ($action == 'create' && $user->rights->commande->creer)
|
||||
print '<table class="nobordernopadding" width="100%"><tr><td>';
|
||||
print $langs->trans('PaymentConditionsShort');
|
||||
print '</td>';
|
||||
if ($action != 'editconditions' && $object->brouillon)
|
||||
if ($action != 'editconditions')
|
||||
print '<td align="right"><a href="' . $_SERVER["PHP_SELF"] . '?action=editconditions&id=' . $object->id . '">' . img_edit($langs->trans('SetConditions'), 1) . '</a></td>';
|
||||
print '</tr></table>';
|
||||
print '</td><td colspan="3">';
|
||||
@ -2165,7 +2165,7 @@ if ($action == 'create' && $user->rights->commande->creer)
|
||||
print '<table class="nobordernopadding" width="100%"><tr><td>';
|
||||
print $langs->trans('PaymentMode');
|
||||
print '</td>';
|
||||
if ($action != 'editmode' && $object->brouillon)
|
||||
if ($action != 'editmode')
|
||||
print '<td align="right"><a href="' . $_SERVER["PHP_SELF"] . '?action=editmode&id=' . $object->id . '">' . img_edit($langs->trans('SetMode'), 1) . '</a></td>';
|
||||
print '</tr></table>';
|
||||
print '</td><td colspan="3">';
|
||||
|
||||
@ -2653,7 +2653,7 @@ form.liste_total div {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.margintable {
|
||||
.paymenttable, .margintable {
|
||||
border-top-width: <?php echo $borderwith ?>px !important;
|
||||
border-top-color: rgb(<?php echo $colortopbordertitle1 ?>) !important;
|
||||
border-top-style: solid !important;
|
||||
|
||||
@ -2527,6 +2527,12 @@ input.liste_titre {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.paymenttable, .margintable {
|
||||
border-top-width: <?php echo $borderwith ?>px !important;
|
||||
border-top-color: rgb(<?php echo $colortopbordertitle1 ?>) !important;
|
||||
border-top-style: solid !important;
|
||||
}
|
||||
|
||||
.margintable td {
|
||||
border: 0px !important;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user