mirror of
https://github.com/itflow-org/itflow
synced 2026-03-11 00:04:50 +00:00
Fix long Invoice/Quote notes overflowing into the invoice/quote footer by removing a rowspan class, adjusted the page margins from 15 to 10 and adjusted the invoice/quote notes to use font size 9 instead of 10
This commit is contained in:
@@ -300,7 +300,7 @@ if (isset($_GET['export_quote_pdf'])) {
|
|||||||
|
|
||||||
// Start TCPDF
|
// Start TCPDF
|
||||||
$pdf = new TCPDF('P', 'mm', 'A4', true, 'UTF-8', false);
|
$pdf = new TCPDF('P', 'mm', 'A4', true, 'UTF-8', false);
|
||||||
$pdf->SetMargins(15, 15, 15);
|
$pdf->SetMargins(10, 10, 10);
|
||||||
$pdf->setPrintHeader(false);
|
$pdf->setPrintHeader(false);
|
||||||
$pdf->setPrintFooter(false);
|
$pdf->setPrintFooter(false);
|
||||||
$pdf->AddPage();
|
$pdf->AddPage();
|
||||||
@@ -397,7 +397,7 @@ if (isset($_GET['export_quote_pdf'])) {
|
|||||||
// Totals
|
// Totals
|
||||||
$html .= '<table width="100%" cellspacing="0" cellpadding="4">
|
$html .= '<table width="100%" cellspacing="0" cellpadding="4">
|
||||||
<tr>
|
<tr>
|
||||||
<td width="60%" rowspan="6" valign="top"><i>' . nl2br($quote_note) . '</i></td>
|
<td width="60%"><i style="font-size:9pt;">' . nl2br($quote_note) . '</i></td>
|
||||||
<td width="40%">
|
<td width="40%">
|
||||||
<table width="100%" cellpadding="3" cellspacing="0">
|
<table width="100%" cellpadding="3" cellspacing="0">
|
||||||
<tr><td>Subtotal:</td><td align="right">' . numfmt_format_currency($currency_format, $sub_total, $quote_currency_code) . '</td></tr>';
|
<tr><td>Subtotal:</td><td align="right">' . numfmt_format_currency($currency_format, $sub_total, $quote_currency_code) . '</td></tr>';
|
||||||
@@ -526,7 +526,7 @@ if (isset($_GET['export_invoice_pdf'])) {
|
|||||||
|
|
||||||
// Start TCPDF
|
// Start TCPDF
|
||||||
$pdf = new TCPDF('P', 'mm', 'A4', true, 'UTF-8', false);
|
$pdf = new TCPDF('P', 'mm', 'A4', true, 'UTF-8', false);
|
||||||
$pdf->SetMargins(15, 15, 15);
|
$pdf->SetMargins(10, 10, 10);
|
||||||
$pdf->setPrintHeader(false);
|
$pdf->setPrintHeader(false);
|
||||||
$pdf->setPrintFooter(false);
|
$pdf->setPrintFooter(false);
|
||||||
$pdf->AddPage();
|
$pdf->AddPage();
|
||||||
@@ -620,7 +620,7 @@ if (isset($_GET['export_invoice_pdf'])) {
|
|||||||
// Totals
|
// Totals
|
||||||
$html .= '<table width="100%" cellspacing="0" cellpadding="4">
|
$html .= '<table width="100%" cellspacing="0" cellpadding="4">
|
||||||
<tr>
|
<tr>
|
||||||
<td width="60%" rowspan="6" valign="top"><i>' . nl2br($invoice_note) . '</i></td>
|
<td width="60%"><i style="font-size:9pt;">' . nl2br($invoice_note) . '</i></td>
|
||||||
<td width="40%">
|
<td width="40%">
|
||||||
<table width="100%" cellpadding="3" cellspacing="0">
|
<table width="100%" cellpadding="3" cellspacing="0">
|
||||||
<tr><td>Subtotal:</td><td align="right">' . numfmt_format_currency($currency_format, $sub_total, $invoice_currency_code) . '</td></tr>';
|
<tr><td>Subtotal:</td><td align="right">' . numfmt_format_currency($currency_format, $sub_total, $invoice_currency_code) . '</td></tr>';
|
||||||
|
|||||||
@@ -2232,7 +2232,7 @@ if (isset($_GET['export_invoice_pdf'])) {
|
|||||||
|
|
||||||
// Start TCPDF
|
// Start TCPDF
|
||||||
$pdf = new TCPDF('P', 'mm', 'A4', true, 'UTF-8', false);
|
$pdf = new TCPDF('P', 'mm', 'A4', true, 'UTF-8', false);
|
||||||
$pdf->SetMargins(15, 15, 15);
|
$pdf->SetMargins(10, 10, 10);
|
||||||
$pdf->setPrintHeader(false);
|
$pdf->setPrintHeader(false);
|
||||||
$pdf->setPrintFooter(false);
|
$pdf->setPrintFooter(false);
|
||||||
$pdf->AddPage();
|
$pdf->AddPage();
|
||||||
@@ -2326,7 +2326,7 @@ if (isset($_GET['export_invoice_pdf'])) {
|
|||||||
// Totals
|
// Totals
|
||||||
$html .= '<table width="100%" cellspacing="0" cellpadding="4">
|
$html .= '<table width="100%" cellspacing="0" cellpadding="4">
|
||||||
<tr>
|
<tr>
|
||||||
<td width="60%" rowspan="6" valign="top"><i>' . nl2br($invoice_note) . '</i></td>
|
<td width="60%"><i style="font-size:9pt;">' . nl2br($invoice_note) . '</i></td>
|
||||||
<td width="40%">
|
<td width="40%">
|
||||||
<table width="100%" cellpadding="3" cellspacing="0">
|
<table width="100%" cellpadding="3" cellspacing="0">
|
||||||
<tr><td>Subtotal:</td><td align="right">' . numfmt_format_currency($currency_format, $sub_total, $invoice_currency_code) . '</td></tr>';
|
<tr><td>Subtotal:</td><td align="right">' . numfmt_format_currency($currency_format, $sub_total, $invoice_currency_code) . '</td></tr>';
|
||||||
|
|||||||
@@ -669,7 +669,7 @@ if (isset($_GET['export_quote_pdf'])) {
|
|||||||
|
|
||||||
// Start TCPDF
|
// Start TCPDF
|
||||||
$pdf = new TCPDF('P', 'mm', 'A4', true, 'UTF-8', false);
|
$pdf = new TCPDF('P', 'mm', 'A4', true, 'UTF-8', false);
|
||||||
$pdf->SetMargins(15, 15, 15);
|
$pdf->SetMargins(10, 10, 10);
|
||||||
$pdf->setPrintHeader(false);
|
$pdf->setPrintHeader(false);
|
||||||
$pdf->setPrintFooter(false);
|
$pdf->setPrintFooter(false);
|
||||||
$pdf->AddPage();
|
$pdf->AddPage();
|
||||||
@@ -766,7 +766,7 @@ if (isset($_GET['export_quote_pdf'])) {
|
|||||||
// Totals
|
// Totals
|
||||||
$html .= '<table width="100%" cellspacing="0" cellpadding="4">
|
$html .= '<table width="100%" cellspacing="0" cellpadding="4">
|
||||||
<tr>
|
<tr>
|
||||||
<td width="60%" rowspan="6" valign="top"><i>' . nl2br($quote_note) . '</i></td>
|
<td width="60%"><i style="font-size:9pt;">' . nl2br($quote_note) . '</i></td>
|
||||||
<td width="40%">
|
<td width="40%">
|
||||||
<table width="100%" cellpadding="3" cellspacing="0">
|
<table width="100%" cellpadding="3" cellspacing="0">
|
||||||
<tr><td>Subtotal:</td><td align="right">' . numfmt_format_currency($currency_format, $sub_total, $quote_currency_code) . '</td></tr>';
|
<tr><td>Subtotal:</td><td align="right">' . numfmt_format_currency($currency_format, $sub_total, $quote_currency_code) . '</td></tr>';
|
||||||
|
|||||||
Reference in New Issue
Block a user