added space left, reduced item padding, zip city

This commit is contained in:
elank 2021-12-27 10:23:09 +01:00
parent 589eee31d7
commit 4455a18654
2 changed files with 40 additions and 20 deletions

View file

@ -12,15 +12,25 @@ body {
font-size: 12px; font-size: 12px;
} }
/* color of Invoice Heading */ /* color of Invoice Heading fixed */
.invoice-title { .invoice-title {
color: #668100; color: #668100;
} }
/* left space due to DIN 5008 2.5mm */
main {
margin-left: 2.5mm;
}
/* reduces padding in item-table */
table.item-table td {
padding: 5px 10px;
}
/* defines german DIN_5008_Form_B sichtbriefumschlag position */ /* defines german DIN_5008_Form_B sichtbriefumschlag position */
#client { #client {
position: absolute; position: absolute;
top: 50mm; top: 56mm;
left: 20mm; left: 20mm;
width: 90mm; width: 90mm;
} }
@ -90,14 +100,14 @@ table.item-table {
} }
if ($invoice->client_city || $invoice->client_state || $invoice->client_zip) { if ($invoice->client_city || $invoice->client_state || $invoice->client_zip) {
echo '<div>'; echo '<div>';
if ($invoice->client_zip) {
echo htmlsc($invoice->client_zip) . ' ';
}
if ($invoice->client_city) { if ($invoice->client_city) {
echo htmlsc($invoice->client_city) . ' '; echo htmlsc($invoice->client_city) . ' ';
} }
if ($invoice->client_state) { if ($invoice->client_state) {
echo htmlsc($invoice->client_state) . ' '; echo htmlsc($invoice->client_state);
}
if ($invoice->client_zip) {
echo htmlsc($invoice->client_zip);
} }
echo '</div>'; echo '</div>';
} }
@ -136,14 +146,14 @@ table.item-table {
} }
if ($invoice->user_city || $invoice->user_state || $invoice->user_zip) { if ($invoice->user_city || $invoice->user_state || $invoice->user_zip) {
echo '<div>'; echo '<div>';
if ($invoice->user_zip) {
echo htmlsc($invoice->user_zip) . ' ';
}
if ($invoice->user_city) { if ($invoice->user_city) {
echo htmlsc($invoice->user_city) . ' '; echo htmlsc($invoice->user_city) . ' ';
} }
if ($invoice->user_state) { if ($invoice->user_state) {
echo htmlsc($invoice->user_state) . ' '; echo htmlsc($invoice->user_state);
}
if ($invoice->user_zip) {
echo htmlsc($invoice->user_zip);
} }
echo '</div>'; echo '</div>';
} }

View file

@ -12,15 +12,25 @@ body {
font-size: 12px; font-size: 12px;
} }
/* color of Invoice Heading */ /* color of Invoice Heading fixed */
.invoice-title { .invoice-title {
color: #668100; color: #668100;
} }
/* left space due to DIN 5008 2.5mm */
main {
margin-left: 2.5mm;
}
/* reduces padding in item-table */
table.item-table td {
padding: 5px 10px;
}
/* defines german DIN_5008_Form_B sichtbriefumschlag position */ /* defines german DIN_5008_Form_B sichtbriefumschlag position */
#client { #client {
position: absolute; position: absolute;
top: 50mm; top: 56mm;
left: 20mm; left: 20mm;
width: 90mm; width: 90mm;
} }
@ -90,14 +100,14 @@ table.item-table {
} }
if ($invoice->client_city || $invoice->client_state || $invoice->client_zip) { if ($invoice->client_city || $invoice->client_state || $invoice->client_zip) {
echo '<div>'; echo '<div>';
if ($invoice->client_zip) {
echo htmlsc($invoice->client_zip) . ' ';
}
if ($invoice->client_city) { if ($invoice->client_city) {
echo htmlsc($invoice->client_city) . ' '; echo htmlsc($invoice->client_city) . ' ';
} }
if ($invoice->client_state) { if ($invoice->client_state) {
echo htmlsc($invoice->client_state) . ' '; echo htmlsc($invoice->client_state);
}
if ($invoice->client_zip) {
echo htmlsc($invoice->client_zip);
} }
echo '</div>'; echo '</div>';
} }
@ -136,14 +146,14 @@ table.item-table {
} }
if ($invoice->user_city || $invoice->user_state || $invoice->user_zip) { if ($invoice->user_city || $invoice->user_state || $invoice->user_zip) {
echo '<div>'; echo '<div>';
if ($invoice->user_zip) {
echo htmlsc($invoice->user_zip) . ' ';
}
if ($invoice->user_city) { if ($invoice->user_city) {
echo htmlsc($invoice->user_city) . ' '; echo htmlsc($invoice->user_city) . ' ';
} }
if ($invoice->user_state) { if ($invoice->user_state) {
echo htmlsc($invoice->user_state) . ' '; echo htmlsc($invoice->user_state);
}
if ($invoice->user_zip) {
echo htmlsc($invoice->user_zip);
} }
echo '</div>'; echo '</div>';
} }