Added total_items_imported value to queue summary API call. Displaying
value in vandelay queue summary area.
$summary->{total_items} = $e->json_query($query)->[0]->{count};
$query->{where}->{import_error} = {'!=' => undef};
$summary->{item_import_errors} = $e->json_query($query)->[0]->{count};
+ delete $query->{where}->{import_error};
+ $query->{where}->{import_time} = {'!=' => undef};
+ $summary->{total_items_imported} = $e->json_query($query)->[0]->{count};
}
return $summary;
dojo.byId('vl-queue-summary-total-count').innerHTML = summary.total +'';
dojo.byId('vl-queue-summary-import-count').innerHTML = summary.imported + '';
dojo.byId('vl-queue-summary-import-item-count').innerHTML = summary.total_items + '';
+ dojo.byId('vl-queue-summary-import-item-imported-count').innerHTML = summary.total_items_imported + '';
dojo.byId('vl-queue-summary-rec-error-count').innerHTML = summary.rec_import_errors + '';
dojo.byId('vl-queue-summary-item-error-count').innerHTML = summary.item_import_errors + '';
}
<tr><td>&vandelay.queue.imported;</td><td> <span style='font-weight:bold;' id='vl-queue-summary-import-count'/></td></tr>
<tr><td>Record Import Failures</td><td> <span style='font-weight:bold;' id='vl-queue-summary-rec-error-count'/></td></tr>
<tr><td>Items in Queue</td><td> <span style='font-weight:bold;' id='vl-queue-summary-import-item-count'/></td></tr>
+ <tr><td>Items Imported</td><td> <span style='font-weight:bold;' id='vl-queue-summary-import-item-imported-count'/></td></tr>
<tr><td>Item Import Failures</td><td> <span style='font-weight:bold;' id='vl-queue-summary-item-error-count'/></td></tr>
</tbody>
</table>