UI improvement to the Vendor Payouts screen. Display username in parentheses after actual name.
This commit is contained in:
parent
02f4211f12
commit
44193585ad
1 changed files with 5 additions and 2 deletions
|
|
@ -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' );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue