Merge pull request #14743 from cfoellmann/minor-fix-bydates
fix for broken table on dispatch when hiding sellby/eatby dates
This commit is contained in:
commit
81d71589d9
@ -923,6 +923,9 @@ if ($id > 0 || !empty($ref)) {
|
|||||||
print '<td colspan="3"> </td>'; // Supplier ref + Qty ordered + qty already dispatched
|
print '<td colspan="3"> </td>'; // Supplier ref + Qty ordered + qty already dispatched
|
||||||
} else {
|
} else {
|
||||||
$type = 'dispatch';
|
$type = 'dispatch';
|
||||||
|
$colspan = 7;
|
||||||
|
$colspan = (!empty($conf->global->PRODUCT_DISABLE_EATBY)) ? --$colspan : $colspan;
|
||||||
|
$colspan = (!empty($conf->global->PRODUCT_DISABLE_SELLBY)) ? --$colspan : $colspan;
|
||||||
print '<td class="right">';
|
print '<td class="right">';
|
||||||
print '</td>'; // Qty to dispatch
|
print '</td>'; // Qty to dispatch
|
||||||
print '<td>';
|
print '<td>';
|
||||||
@ -949,7 +952,7 @@ if ($id > 0 || !empty($ref)) {
|
|||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
print '<tr class="oddeven" name="'.$type.$suffix.'">';
|
print '<tr class="oddeven" name="'.$type.$suffix.'">';
|
||||||
print '<td colspan="7">';
|
print '<td colspan="'.$colspan.'">';
|
||||||
print '<input name="fk_commandefourndet'.$suffix.'" type="hidden" value="'.$objp->rowid.'">';
|
print '<input name="fk_commandefourndet'.$suffix.'" type="hidden" value="'.$objp->rowid.'">';
|
||||||
print '<input name="product'.$suffix.'" type="hidden" value="'.$objp->fk_product.'">';
|
print '<input name="product'.$suffix.'" type="hidden" value="'.$objp->fk_product.'">';
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user