Fixes for statement designs

This commit is contained in:
David Bomba 2023-09-19 11:43:26 +10:00
parent 74ea46b0b2
commit 34e170f7a3
2 changed files with 2 additions and 2 deletions

View File

@ -241,7 +241,7 @@ trait DesignHelpers
{
// We want to show headers for statements, no exceptions.
$statements = "
document.querySelectorAll('#statement-invoice-table > thead > tr > th, #statement-payment-table > thead > tr > th, #statement-aging-table > thead > tr > th').forEach(t => {
document.querySelectorAll('#statement-credit-table > thead > tr > th, #statement-invoice-table > thead > tr > th, #statement-payment-table > thead > tr > th, #statement-aging-table > thead > tr > th').forEach(t => {
t.hidden = false;
});
";

View File

@ -388,7 +388,7 @@ $entity_images
];
tables.forEach((tableIdentifier) => {
document.getElementById(tableIdentifier).childElementCount === 0
document.getElementById(tableIdentifier) && document.getElementById(tableIdentifier).childElementCount === 0
? document.getElementById(tableIdentifier).style.display = 'none'
: '';
});