Re: Invoice.PHP 156 vs 154
I don't see a difference. Did you customize 1.5.4? Perhaps tweak the print styles?
Re: Invoice.PHP 156 vs 154
PS> I have never been wild about 4 columns of prices either. Maybe we can make that switchable in the future.
Re: Invoice.PHP 156 vs 154
Quote:
Originally Posted by
swguy
I don't see a difference. Did you customize 1.5.4? Perhaps tweak the print styles?
No edits on my part. There is a huge difference in the files from the 154 distribution and the 156 distribution. Printing a single line product may not be significant. A product with 2 or more attributes is a huge difference. 156 puts a blank line after each product and draws a line between products.
In 154, 2 products with 2 attributes each, prints in the same amount of paper as a single product with 2 attributes in 156 invoice.php
I don't think the forum will allow me to attach the 2 distribution files so that you don't have to go find them.
Re: Invoice.PHP 156 vs 154
Quote:
Originally Posted by
swguy
PS> I have never been wild about 4 columns of prices either. Maybe we can make that switchable in the future.
Some might need to see CUSTOMER, SOLD TO and SHIP TO but in our small world, the paper used to just print the CUSTOMER when it is duplicated, in most cases, twice below it.
Having all admins capable of logging in is more important to remedy than an inch of paper.
Re: Invoice.PHP 156 vs 154
Quote:
CUSTOMER, SOLD TO and SHIP TO
The CUSTOMER portion in both 1.5.4 and 1.5.6c is only shown when either of two conditions are met. If billing name and delivery name are different or the billing street address and delivery street address are different
Code:
$show_customer = false;
if ($order->billing['name'] != $order->delivery['name']) {
$show_customer = true;
}
if ($order->billing['street_address'] != $order->delivery['street_address']) {
$show_customer = true;
}
Re: Invoice.PHP 156 vs 154
I played with the invoice in developer tools in the browser and most of the extra spacing you are seeing in the 1.5.6c version is padding or margin-bottom. So you could play around to figure out which paddings/margins you need to set to 0 to collapse the line items in the invoice to make it fit better when printing and put those rules in the admin/includes/stylesheet_print.css to only apply those adjustments for the print job.
Re: Invoice.PHP 156 vs 154
Quote:
Originally Posted by
barco57
The CUSTOMER portion in both 1.5.4 and 1.5.6c is only shown when either of two conditions are met. If billing name and delivery name are different or the billing street address and delivery street address are different
Code:
$show_customer = false;
if ($order->billing['name'] != $order->delivery['name']) {
$show_customer = true;
}
if ($order->billing['street_address'] != $order->delivery['street_address']) {
$show_customer = true;
}
TNX Mike, I'll have a look... probably after I get all the admin logins resolved.
My first example is an order where Customer and Sold to names and addresses are identical. Ship to is effectively identical but has the word street spelled out for the shipto and abbreviated for the Customer and Sold to. All 3 are on the printed page.
Thank you for the references to areas to 'play with'. That is very helpful for a non-coder, like me.
Re: Invoice.PHP 156 vs 154
Quote:
Originally Posted by
RixStix
Ship to is effectively identical but has the word street spelled out for the shipto and abbreviated for the Customer and Sold to. All 3 are on the printed page.
"effectively identical" and "actually identical" are different things and would satisfy the if and setting $show_customer = true
Re: Invoice.PHP 156 vs 154
TNX. I understand after you explained the logic.