Fixing style errors.

This commit is contained in:
stickler-ci 2021-08-04 15:50:59 +00:00
parent 7b702d19d4
commit ee55a7de5a

View File

@ -638,8 +638,7 @@ if (!empty($arrayfields['e.date_delivery']['checked'])) {
print '</div>'; print '</div>';
print '</td>'; print '</td>';
} }
if (!empty($arrayfields['e.shipping_method_id']['checked'])) if (!empty($arrayfields['e.shipping_method_id']['checked'])) {
{
// Delivery method // Delivery method
print '<td class="liste_titre center">'; print '<td class="liste_titre center">';
$shipment->fetch_delivery_methods(); $shipment->fetch_delivery_methods();
@ -885,12 +884,11 @@ while ($i < min($num, $limit)) {
print dol_print_date($db->jdate($obj->delivery_date), "dayhour"); print dol_print_date($db->jdate($obj->delivery_date), "dayhour");
print "</td>\n"; print "</td>\n";
} }
if (!empty($arrayfields['e.shipping_method_id']['checked'])) if (!empty($arrayfields['e.shipping_method_id']['checked'])) {
{
// Get code using getLabelFromKey // Get code using getLabelFromKey
$code=$langs->getLabelFromKey($db, $shipment->shipping_method_id, 'c_shipment_mode', 'rowid', 'code'); $code=$langs->getLabelFromKey($db, $shipment->shipping_method_id, 'c_shipment_mode', 'rowid', 'code');
print '<td class="center">'; print '<td class="center">';
if($shipment->shipping_method_id > 0) print $langs->trans("SendingMethod".strtoupper($code)); if ($shipment->shipping_method_id > 0) print $langs->trans("SendingMethod".strtoupper($code));
print '</td>'; print '</td>';
} }
// Tracking number // Tracking number