UI improvement to the Vendor Payouts screen. Display username in parentheses after actual name.

This commit is contained in:
Colin Kuskie 2010-01-29 09:07:02 -08:00
parent 02f4211f12
commit 44193585ad

View file

@ -687,10 +687,13 @@ sub www_vendorTotalsAsJSON {
foreach my $vendorId (keys %{ $vendorPayoutData }) {
my $vendor = WebGUI::Shop::Vendor->new( $session, $vendorId );
push @dataset, {
my $dataset = {
%{ $vendor->get },
%{ $vendorPayoutData->{ $vendorId } },
}
};
my $user = WebGUI::User->new($session, $vendor->get('userId'));
$dataset->{name} .= ' ('.$user->username.')';
push @dataset, $dataset;
}
$session->http->setMimeType( 'application/json' );