tango-app-api-infra 3.8.1-beta.30 → 3.8.1-beta.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -379,6 +379,7 @@ export async function ticketList( req, res ) {
|
|
|
379
379
|
'Store Name': item._source.storeName || '--',
|
|
380
380
|
'Store ID': item._source.storeId,
|
|
381
381
|
'Ticket raised on': dayjs( item._source.createdAt ).format( 'DD MMM, YYYY' ),
|
|
382
|
+
'Issue Date': dayjs( item._source.dateString ).format( 'DD MMM, YYYY' ),
|
|
382
383
|
'Total Footfalls': item._source.footfallCount,
|
|
383
384
|
'Duplicates': item._source.duplicateCount,
|
|
384
385
|
'Employee/Staff': item._source.employeeCount,
|
|
@@ -1054,8 +1055,6 @@ export async function downloadTickets( req, res ) {
|
|
|
1054
1055
|
const inputData = req.query;
|
|
1055
1056
|
const limit = inputData.limit;
|
|
1056
1057
|
const skip = inputData.offset == 0 ? 0 : ( inputData.offset - 1 ) * limit || 0;
|
|
1057
|
-
inputData.storeId = inputData?.storeId?.split( ',' ); // convert strig to array
|
|
1058
|
-
logger.info( { inputData: inputData, limit: limit, skip: skip } );
|
|
1059
1058
|
let source = [ 'storeId', 'dateString', 'ticketName', 'footfallCount', 'employeeCount', 'houseKeepingCount', 'duplicateCount', 'comments', 'employee', 'houseKeeping', 'duplicateImages', 'ticketId', 'clientId', 'storeName', 'createdAt', 'updatedAt', 'userName', 'role', 'status', 'employeeStatus', 'houseKeepingStatus', 'duplicateStatus' ];
|
|
1060
1059
|
let filter = [
|
|
1061
1060
|
|