tango-app-api-audit 3.4.34 → 3.4.36
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
|
@@ -60,6 +60,7 @@ export async function auditUserSummary( req, res ) {
|
|
|
60
60
|
'User Email': '$userEmail',
|
|
61
61
|
'File Date From': '$fileDateFrom',
|
|
62
62
|
'File Date To': '$fileDateTo',
|
|
63
|
+
'No. of Days': '$noOfDays',
|
|
63
64
|
'Total Files': '$totalFilesCount',
|
|
64
65
|
'Total BC': '$totalBeforeCount',
|
|
65
66
|
'Total AC': '$totalAfterCount',
|
|
@@ -81,6 +82,7 @@ export async function auditUserSummary( req, res ) {
|
|
|
81
82
|
'userEmail': '$userEmail',
|
|
82
83
|
'fileDateFrom': '$fileDateFrom',
|
|
83
84
|
'fileDateTo': '$fileDateTo',
|
|
85
|
+
'noOfDays': '$noOfDays',
|
|
84
86
|
'totalFiles': '$totalFilesCount',
|
|
85
87
|
'totalBC': '$totalBeforeCount',
|
|
86
88
|
'totalAC': '$totalAfterCount',
|
|
@@ -283,7 +285,7 @@ export async function consolidatedCard( req, res ) {
|
|
|
283
285
|
'totalFiles': '$totalFilesCount',
|
|
284
286
|
'totalBC': '$totalBeforeCount',
|
|
285
287
|
'totalAC': '$totalAfterCount',
|
|
286
|
-
'totalEarnings
|
|
288
|
+
'totalEarnings': { $round: [ '$totalEarn', 2 ] },
|
|
287
289
|
'totalReducedAmount': { $round: [ '$totalReducedAmount', 2 ] },
|
|
288
290
|
'totalCredit': { $round: [ '$totalCredit', 2 ] },
|
|
289
291
|
'message': req.message,
|
|
@@ -292,7 +294,16 @@ export async function consolidatedCard( req, res ) {
|
|
|
292
294
|
];
|
|
293
295
|
const result = await aggregateAuditUserWallet( query );
|
|
294
296
|
if ( result.length == 0 ) {
|
|
295
|
-
return res.
|
|
297
|
+
return res.sendSuccess( { result: {
|
|
298
|
+
'userEmail': inputData.userEmail,
|
|
299
|
+
'totalFiles': 0,
|
|
300
|
+
'totalBC': 0,
|
|
301
|
+
'totalAC': 0,
|
|
302
|
+
'totalEarnings': 0,
|
|
303
|
+
'totalReducedAmount': 0,
|
|
304
|
+
'totalCredit': 0,
|
|
305
|
+
'message': req.message,
|
|
306
|
+
} } );
|
|
296
307
|
}
|
|
297
308
|
return res.sendSuccess( { result: result[0] } );
|
|
298
309
|
} catch ( error ) {
|