[ic] showing items in order reports
Davideth
Davideth at whojamadoogle.com
Wed Apr 11 22:00:53 UTC 2018
Still not able to add items into report:
from pending.html
________________________
[perl tables="store orderline"]
my $mary;
$line->{items}="..";
return <<EOF unless $mary = $Tmp->{main};
<TR class=rnorm>
<TD VALIGN=top>
<H2>Bad query specified, caused error.</H2>
</TD>
EOF
$out = '';
my $skustring = '';
my $skudisplay = '';
if(my $qary = $Tmp->{qual}) {
$skustring = '&sku=';
my @skus = split /[\s,\0]+/, $CGI->{sku};
$skustring .= join('&sku=', @skus);
$skudisplay = join(', ', @skus);
$line->{items} = $skudisplay; # show skus
- - - - - - - - - - - - - - - extra omitted
foreach $line (@$mary) {
if ( $line->{status} eq 'pending') { ### pending orders only
my $items = $line->{items};
$total_sales += $line->{total_cost};
$amount = $Tag->currency({}, $line->{total_cost});
$line->{status} = $Tag->loc('', $line->{status});
$url = $Tag->area({ href => '__UI_BASE__/order_view',
form => "order=$line->{order_number}", });
$out .= <<EOF;
<TR class=rnorm BORDER=4>
<TD VALIGN=top>
<A HREF="$url">$line->{order_number}</A>
</TD>
<TD VALIGN=top>
$line->{affiliate}
</TD>
<TD VALIGN=top>
$line->{items} .. $items<!-- -->
</TD>
____________________________
The problem is that while the .. is being displayed, I am not showing
any items.
More information about the interchange-users
mailing list