Bug 31257: (follow-up) Fix display of PDF
authorAleisha Amohia <aleishaamohia@hotmail.com>
Tue, 4 Oct 2022 03:34:01 +0000 (03:34 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 11 Oct 2022 13:44:10 +0000 (10:44 -0300)
This patch rearranges the Qty and Document columns and shifts the
vendor account number field lower to make room for address fields

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/pdfformat/layout1page.pm

index 8badf75..aa7fa4f 100644 (file)
@@ -57,7 +57,7 @@ sub printorders {
 
     my $abaskets;
     my $arrbasket;
-    my @keys = ('Document', 'Qty', 'RRP tax inc.', 'Discount', 'Tax', 'Total tax exc.', 'Total tax inc.');
+    my @keys = ('Qty', 'Document', 'RRP tax inc.', 'Discount', 'Tax', 'Total tax exc.', 'Total tax inc.');
     for my $bkey (@keys) {
         push(@$arrbasket, $bkey);
     }
@@ -87,8 +87,8 @@ sub printorders {
                     ( $line->{copyrightdate} ? ' '. $line->{copyrightdate} : '');
             }
             push( @$arrbasket,
-                $titleinfo. ($line->{order_vendornote} ? "\n----------------\nNote for vendor : " . $line->{order_vendornote} : '' ),
                 $line->{quantity},
+                $titleinfo. ($line->{order_vendornote} ? "\n----------------\nNote for vendor : " . $line->{order_vendornote} : '' ),
                 Koha::Number::Price->new( $line->{rrp_tax_included} )->format,
                 Koha::Number::Price->new( $line->{discount} )->format . '%',
                 Koha::Number::Price->new( $line->{tax_rate} * 100 )->format . '%',
@@ -183,7 +183,7 @@ sub printhead {
             $start += 4;
         }
     }
-    $text->translate(20/mm, ($height-50)/mm);
+    $text->translate(20/mm, ($height-57)/mm);
     $text->text($bookseller->accountnumber);
 
     # print delivery infos