$entity_label
diff --git a/resources/views/pdf-designs/clean.html b/resources/views/pdf-designs/clean.html
index 43be53fa46..dde2c19325 100644
--- a/resources/views/pdf-designs/clean.html
+++ b/resources/views/pdf-designs/clean.html
@@ -93,7 +93,7 @@
.client-and-entity-wrapper {
padding: 1rem;
display: grid;
- grid-template-columns: 1fr auto 1fr;
+ grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
align-items: start;
border-top: 1px solid #d8d8d8;
border-bottom: 1px solid #d8d8d8;
diff --git a/resources/views/pdf-designs/plain.html b/resources/views/pdf-designs/plain.html
index 2517cd8aa2..fe24621331 100644
--- a/resources/views/pdf-designs/plain.html
+++ b/resources/views/pdf-designs/plain.html
@@ -73,7 +73,7 @@
line-height: var(--line-height) !important;
white-space: nowrap;
border: 0px solid #000;
- float:right;
+ float:right;
}
#entity-details>tr,
@@ -111,7 +111,6 @@
min-width: 100%;
table-layout: fixed;
overflow-wrap: break-word;
- margin-bottom: 5px;
}
.task-time-details {
@@ -146,7 +145,6 @@
margin-top: 0rem;
display: grid;
grid-template-columns: 2fr 1fr;
- padding-top: .5rem;
margin-right: .75rem;
gap: 80px;
page-break-inside: auto;
@@ -241,54 +239,11 @@
[data-ref='product_table-product.description-td'],
[data-ref='task_table-task.description-th']{
- min-width: 100px !important;
+ min-width: 150px !important;
overflow-wrap: break-word;
}
- [data-ref='product_table-product.item-th'],
- [data-ref='product_table-product.unit_cost-th'],
- [data-ref='task_table-task.service-th'],
- [data-ref='task_table-task.cost-th']{
- width: 12%;
- }
-
- [data-ref='product_table-product.quantity-th'],
- [data-ref='task_table-task.hours-th'],
- [data-ref='task_table-task.quantity-th'],
- [data-ref='product_table-product.product1-th'],
- [data-ref='product_table-product.product2-th'],
- [data-ref='product_table-product.product3-th'],
- [data-ref='product_table-product.product4-th'] {
- width: 10%;
- }
-
- [data-ref='product_table-product.tax1-th'] {
- width: 6%;
- }
-
- [data-ref='product_table-product.line_total-th'],
- [data-ref='product_table-product.line_total-td'],
- [data-ref='task_table-task.line_total-th'],
- [data-ref='task_table-task.line_total-td'] {
- width: 12%;
- text-align: right;
- }
-
- [data-ref='task_table-task.discount-th'],
- [data-ref='task_table-task.task1-th'],
- [data-ref='task_table-task.task2-th'],
- [data-ref='task_table-task.task3-th'],
- [data-ref='task_table-task.task4-th'] {
- width: 10%;
- }
-
-
-
- [data-ref='task_table-task.tax1-th'] {
- width: 10%;
- }
-
.stamp {
transform: rotate(12deg);
color: #555;
diff --git a/resources/views/pdf-designs/tech.html b/resources/views/pdf-designs/tech.html
index 8b2343c561..91b523abb2 100644
--- a/resources/views/pdf-designs/tech.html
+++ b/resources/views/pdf-designs/tech.html
@@ -279,7 +279,7 @@
[data-ref='product_table-product.description-td'],
[data-ref='task_table-task.description-td']{
- min-width: 100px !important;
+ min-width: 150px !important;
overflow-wrap: break-word;
}
@@ -288,51 +288,6 @@
width: 10%;
}
- [data-ref='product_table-product.unit_cost-th'],
- [data-ref='task_table-task.cost-th'] {
- width: 13%;
- }
-
- [data-ref='product_table-product.quantity-th'],
- [data-ref='task_table-task.hours-th'],
- [data-ref='product_table-product.product1-th'],
- [data-ref='product_table-product.product2-th'],
- [data-ref='product_table-product.product3-th'],
- [data-ref='product_table-product.product4-th'] {
- width: 8%;
- }
-
- [data-ref='product_table-product.tax1-th'] {
- width: 6%;
- }
-
- [data-ref='product_table-product.line_total-th'],
- [data-ref='product_table-product.line_total-td'] {
- width: 13%;
- text-align: right;
- }
-
- [data-ref='task_table-task.discount-th'],
- [data-ref='task_table-task.quantity-th'],
- [data-ref='task_table-task.task1-th'],
- [data-ref='task_table-task.task2-th'],
- [data-ref='task_table-task.task3-th'],
- [data-ref='task_table-task.task4-th'] {
- width: 10%;
- }
-
-
- [data-ref='task_table-task.tax1-th'] {
- width: 10%;
- }
-
- [data-ref='task_table-task.line_total-th'],
- [data-ref='task_table-task.line_total-td'] {
- width: 13%;
- text-align: right !important;
- }
-
-
.stamp {
transform: rotate(12deg);
color: #555;
diff --git a/tests/Pdf/PdfServiceTest.php b/tests/Pdf/PdfServiceTest.php
index bf612e17fd..be422adc08 100644
--- a/tests/Pdf/PdfServiceTest.php
+++ b/tests/Pdf/PdfServiceTest.php
@@ -66,6 +66,7 @@ class PdfServiceTest extends TestCase
$settings->use_credits_payment = 'always';
$settings->timezone_id = '1';
$settings->entity_send_time = 0;
+ $settings->hide_empty_columns_on_pdf = true;
$company = Company::factory()->create([
'account_id' => $this->account->id,
@@ -141,6 +142,7 @@ class PdfServiceTest extends TestCase
$settings->use_credits_payment = 'always';
$settings->timezone_id = '1';
$settings->entity_send_time = 0;
+ $settings->hide_empty_columns_on_pdf = true;
$company = Company::factory()->create([
'account_id' => $this->account->id,