|
Lines 70-75
use C4::Suggestions;
Link Here
|
| 70 |
use JSON; |
70 |
use JSON; |
| 71 |
|
71 |
|
| 72 |
my $input=new CGI; |
72 |
my $input=new CGI; |
|
|
73 |
my $sticky_filters = $input->param('sticky_filters') || 0; |
| 73 |
|
74 |
|
| 74 |
sub get_value_with_gst_params { |
75 |
sub get_value_with_gst_params { |
| 75 |
my $value = shift; |
76 |
my $value = shift; |
|
Lines 203-214
push @book_foot_loop, map { $_ } values %foot;
Link Here
|
| 203 |
my @loop_orders = (); |
204 |
my @loop_orders = (); |
| 204 |
if(!defined $invoice->{closedate}) { |
205 |
if(!defined $invoice->{closedate}) { |
| 205 |
my $pendingorders; |
206 |
my $pendingorders; |
| 206 |
if($input->param('op') eq "search"){ |
207 |
if ( $op eq "search" or $sticky_filters ) { |
| 207 |
my $search = $input->param('summaryfilter') || ''; |
208 |
my ( $search, $ean, $basketname, $orderno, $basketgroupname ); |
| 208 |
my $ean = $input->param('eanfilter') || ''; |
209 |
if ( $sticky_filters ) { |
| 209 |
my $basketname = $input->param('basketfilter') || ''; |
210 |
$search = $input->cookie("filter_parcel_summary"); |
| 210 |
my $orderno = $input->param('orderfilter') || ''; |
211 |
$ean = $input->cookie("filter_parcel_ean"); |
| 211 |
my $basketgroupname = $input->param('basketgroupnamefilter') || ''; |
212 |
$basketname = $input->cookie("filter_parcel_basketname"); |
|
|
213 |
$orderno = $input->cookie("filter_parcel_orderno"); |
| 214 |
$basketgroupname = $input->cookie("filter_parcel_basketgroupname"); |
| 215 |
} else { |
| 216 |
$search = $input->param('summaryfilter') || ''; |
| 217 |
$ean = $input->param('eanfilter') || ''; |
| 218 |
$basketname = $input->param('basketfilter') || ''; |
| 219 |
$orderno = $input->param('orderfilter') || ''; |
| 220 |
$basketgroupname = $input->param('basketgroupnamefilter') || ''; |
| 221 |
} |
| 212 |
$pendingorders = SearchOrders({ |
222 |
$pendingorders = SearchOrders({ |
| 213 |
booksellerid => $booksellerid, |
223 |
booksellerid => $booksellerid, |
| 214 |
basketname => $basketname, |
224 |
basketname => $basketname, |
|
Lines 313-317
$template->param(
Link Here
|
| 313 |
total_quantity => $total_quantity, |
323 |
total_quantity => $total_quantity, |
| 314 |
total_gste => sprintf( "%.2f", $total_gste ), |
324 |
total_gste => sprintf( "%.2f", $total_gste ), |
| 315 |
total_gsti => sprintf( "%.2f", $total_gsti ), |
325 |
total_gsti => sprintf( "%.2f", $total_gsti ), |
|
|
326 |
sticky_filters => $sticky_filters, |
| 316 |
); |
327 |
); |
| 317 |
output_html_with_http_headers $input, $cookie, $template->output; |
328 |
output_html_with_http_headers $input, $cookie, $template->output; |