From 8dee0da4340c266d079edc1188ee2fb9dc8dd1bb Mon Sep 17 00:00:00 2001 From: edevrob Date: Wed, 9 Dec 2020 21:13:56 +0200 Subject: [PATCH] PDF templates fix DomPDF font-weight problems fix --- .../views/app/pdf/estimate/estimate3.blade.php | 2 +- resources/views/app/pdf/invoice/invoice2.blade.php | 2 +- resources/views/app/pdf/invoice/invoice3.blade.php | 2 +- resources/views/app/pdf/payment/payment.blade.php | 10 +++++++--- resources/views/app/pdf/reports/expenses.blade.php | 12 ++++++------ .../views/app/pdf/reports/profit-loss.blade.php | 14 +++++++------- .../app/pdf/reports/sales-customers.blade.php | 12 ++++++------ .../views/app/pdf/reports/sales-items.blade.php | 12 ++++++------ .../views/app/pdf/reports/tax-summary.blade.php | 12 ++++++------ 9 files changed, 41 insertions(+), 37 deletions(-) diff --git a/resources/views/app/pdf/estimate/estimate3.blade.php b/resources/views/app/pdf/estimate/estimate3.blade.php index a7f33c14..936aa1b9 100644 --- a/resources/views/app/pdf/estimate/estimate3.blade.php +++ b/resources/views/app/pdf/estimate/estimate3.blade.php @@ -354,7 +354,7 @@

{{$estimate->user->company->name}}

@endif - + {!! $company_address !!} diff --git a/resources/views/app/pdf/invoice/invoice2.blade.php b/resources/views/app/pdf/invoice/invoice2.blade.php index bb1e1d4c..c19c4920 100644 --- a/resources/views/app/pdf/invoice/invoice2.blade.php +++ b/resources/views/app/pdf/invoice/invoice2.blade.php @@ -273,7 +273,7 @@ } .total-table-attribute-value { - font-weight: 500; + font-weight: bold; text-align: right; font-size: 12px; color: #040405; diff --git a/resources/views/app/pdf/invoice/invoice3.blade.php b/resources/views/app/pdf/invoice/invoice3.blade.php index b2e6d4fc..c06bae3e 100644 --- a/resources/views/app/pdf/invoice/invoice3.blade.php +++ b/resources/views/app/pdf/invoice/invoice3.blade.php @@ -314,7 +314,7 @@

{{$invoice->user->company->name}}

@endif - + {!! $company_address !!} diff --git a/resources/views/app/pdf/payment/payment.blade.php b/resources/views/app/pdf/payment/payment.blade.php index 563fafdb..f5dd5729 100644 --- a/resources/views/app/pdf/payment/payment.blade.php +++ b/resources/views/app/pdf/payment/payment.blade.php @@ -65,6 +65,10 @@ float: right; } */ + .header-section-right { + text-align: right; + } + .header { font-size: 20px; color: rgba(0, 0, 0, 0.7); @@ -226,7 +230,7 @@ } .content-heading span { - font-weight: 400; + font-weight: normal; font-size: 14px; line-height: 25px; padding-bottom: 5px; @@ -248,7 +252,7 @@ .total-display-label { display: inline; - font-weight: 600; + font-weight: bold; font-size: 14px; line-height: 21px; color: #595959; @@ -256,7 +260,7 @@ .total-display-box span { float: right; - font-weight: 500; + font-weight: bold; font-size: 14px; line-height: 21px; text-align: right; diff --git a/resources/views/app/pdf/reports/expenses.blade.php b/resources/views/app/pdf/reports/expenses.blade.php index ae72e984..9e7c3948 100644 --- a/resources/views/app/pdf/reports/expenses.blade.php +++ b/resources/views/app/pdf/reports/expenses.blade.php @@ -20,7 +20,7 @@ } .heading-text { - font-weight: 600; + font-weight: bold; font-size: 24px; color: #5851D8; width: 100%; @@ -30,7 +30,7 @@ } .heading-date-range { - font-weight: 600; + font-weight: normal; font-size: 15px; color: #A5ACC1; width: 100%; @@ -40,7 +40,7 @@ } .sub-heading-text { - font-weight: 600; + font-weight: normal; font-size: 16px; color: #595959; padding: 0px; @@ -98,7 +98,7 @@ padding: 0px; margin: 0px; text-align: right; - font-weight: 500; + font-weight: bold; font-size: 16px; line-height: 21px; text-align: right; @@ -117,7 +117,7 @@ padding: 0px; margin: 0px; text-align: left; - font-weight: 600; + font-weight: bold; font-size: 16px; line-height: 21px; color: #595959; @@ -127,7 +127,7 @@ padding: 0px; margin: 0px; text-align: right; - font-weight: 500; + font-weight: bold; font-size: 20px; line-height: 21px; color: #5851D8; diff --git a/resources/views/app/pdf/reports/profit-loss.blade.php b/resources/views/app/pdf/reports/profit-loss.blade.php index d83147f6..7986b0e8 100644 --- a/resources/views/app/pdf/reports/profit-loss.blade.php +++ b/resources/views/app/pdf/reports/profit-loss.blade.php @@ -20,7 +20,7 @@ } .heading-text { - font-weight: 600; + font-weight: bold; font-size: 24px; color: #5851D8; width: 100%; @@ -30,7 +30,7 @@ } .heading-date-range { - font-weight: 600; + font-weight: normal; font-size: 15px; color: #A5ACC1; width: 100%; @@ -40,7 +40,7 @@ } .sub-heading-text { - font-weight: 600; + font-weight: normal; font-size: 16px; color: #595959; padding: 0px; @@ -65,7 +65,7 @@ .income-amount { padding: 0px; margin: 0px; - font-weight: 500; + font-weight: bold; font-size: 16px; line-height: 21px; text-align: right; @@ -123,7 +123,7 @@ padding: 0px; margin: 0px; text-align: right; - font-weight: 500; + font-weight: bold; font-size: 16px; line-height: 21px; text-align: right; @@ -142,7 +142,7 @@ padding: 0px; margin: 0px; text-align: left; - font-weight: 600; + font-weight: bold; font-size: 16px; line-height: 21px; color: #595959; @@ -152,7 +152,7 @@ padding: 0px; margin: 0px; text-align: right; - font-weight: 500; + font-weight: bold; font-size: 20px; line-height: 21px; color: #5851D8; diff --git a/resources/views/app/pdf/reports/sales-customers.blade.php b/resources/views/app/pdf/reports/sales-customers.blade.php index 84473137..1ce030a5 100644 --- a/resources/views/app/pdf/reports/sales-customers.blade.php +++ b/resources/views/app/pdf/reports/sales-customers.blade.php @@ -20,7 +20,7 @@ } .heading-text { - font-weight: 600; + font-weight: bold; font-size: 24px; color: #5851D8; width: 100%; @@ -30,7 +30,7 @@ } .heading-date-range { - font-weight: 600; + font-weight: normal; font-size: 15px; color: #A5ACC1; width: 100%; @@ -40,7 +40,7 @@ } .sub-heading-text { - font-weight: 600; + font-weight: bold; font-size: 16px; line-height: 21px; color: #595959; @@ -98,7 +98,7 @@ padding: 0px; margin: 0px; text-align: right; - font-weight: 500; + font-weight: bold; font-size: 16px; line-height: 21px; text-align: right; @@ -117,7 +117,7 @@ padding: 0px; margin: 0px; text-align: left; - font-weight: 600; + font-weight: bold; font-size: 16px; line-height: 21px; color: #595959; @@ -127,7 +127,7 @@ padding: 0px; margin: 0px; text-align: right; - font-weight: 500; + font-weight: bold; font-size: 20px; line-height: 21px; color: #5851D8; diff --git a/resources/views/app/pdf/reports/sales-items.blade.php b/resources/views/app/pdf/reports/sales-items.blade.php index b8b28fd5..2f735670 100644 --- a/resources/views/app/pdf/reports/sales-items.blade.php +++ b/resources/views/app/pdf/reports/sales-items.blade.php @@ -20,7 +20,7 @@ } .heading-text { - font-weight: 600; + font-weight: bold; font-size: 24px; color: #5851D8; width: 100%; @@ -30,7 +30,7 @@ } .heading-date-range { - font-weight: 600; + font-weight: normal; font-size: 15px; color: #A5ACC1; width: 100%; @@ -40,7 +40,7 @@ } .sub-heading-text { - font-weight: 600; + font-weight: bold; font-size: 16px; line-height: 21px; color: #595959; @@ -98,7 +98,7 @@ padding: 0px; margin: 0px; text-align: right; - font-weight: 500; + font-weight: bold; font-size: 16px; line-height: 21px; text-align: right; @@ -117,7 +117,7 @@ padding: 0px; margin: 0px; text-align: left; - font-weight: 600; + font-weight: bold; font-size: 16px; line-height: 21px; color: #595959; @@ -127,7 +127,7 @@ padding: 0px; margin: 0px; text-align: right; - font-weight: 500; + font-weight: bold; font-size: 20px; line-height: 21px; color: #5851D8; diff --git a/resources/views/app/pdf/reports/tax-summary.blade.php b/resources/views/app/pdf/reports/tax-summary.blade.php index 2aae4c2e..261dff0c 100644 --- a/resources/views/app/pdf/reports/tax-summary.blade.php +++ b/resources/views/app/pdf/reports/tax-summary.blade.php @@ -21,7 +21,7 @@ } .heading-text { - font-weight: 600; + font-weight: bold; font-size: 24px; color: #5851D8; width: 100%; @@ -31,7 +31,7 @@ } .heading-date-range { - font-weight: 600; + font-weight: normal; font-size: 15px; color: #A5ACC1; width: 100%; @@ -41,7 +41,7 @@ } .sub-heading-text { - font-weight: 600; + font-weight: bold; font-size: 16px; color: #595959; padding: 0px; @@ -99,7 +99,7 @@ padding: 0px; margin: 0px; text-align: right; - font-weight: 500; + font-weight: bold; font-size: 16px; line-height: 21px; text-align: right; @@ -118,7 +118,7 @@ padding: 0px; margin: 0px; text-align: left; - font-weight: 600; + font-weight: bold; font-size: 16px; line-height: 21px; color: #595959; @@ -128,7 +128,7 @@ padding: 0px; margin: 0px; text-align: right; - font-weight: 500; + font-weight: bold; font-size: 20px; line-height: 21px; color: #5851D8;