tango-app-api-infra 3.9.13 → 3.9.14
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
|
@@ -3898,26 +3898,6 @@ export async function ticketList( req, res ) {
|
|
|
3898
3898
|
'Issue Date': item?.dateString ? dayjs( item.dateString ).format( 'DD MMM, YYYY' ) : '',
|
|
3899
3899
|
'Ticket Type': item?.type,
|
|
3900
3900
|
'Actual FF': item?.footfallCount,
|
|
3901
|
-
|
|
3902
|
-
'Due Date (Formatted)': ( () => {
|
|
3903
|
-
if ( Array.isArray( item?.mappingInfo ) ) {
|
|
3904
|
-
// Find last mappingInfo whose type is NOT 'finalRevison'
|
|
3905
|
-
const filtered = item.mappingInfo.filter(
|
|
3906
|
-
( f ) => f.dueDate && f.type !== 'finalRevison',
|
|
3907
|
-
);
|
|
3908
|
-
if ( filtered.length > 0 ) {
|
|
3909
|
-
const lastDueDate = filtered[filtered.length - 1].dueDate;
|
|
3910
|
-
if ( lastDueDate ) {
|
|
3911
|
-
if ( dayjs( lastDueDate ).isSame( dayjs(), 'day' ) ) {
|
|
3912
|
-
return 'Due Today';
|
|
3913
|
-
}
|
|
3914
|
-
return dayjs( lastDueDate ).format( 'DD MMM, YYYY' );
|
|
3915
|
-
}
|
|
3916
|
-
}
|
|
3917
|
-
}
|
|
3918
|
-
return '';
|
|
3919
|
-
} )(),
|
|
3920
|
-
|
|
3921
3901
|
'Store (Accuracy%)': item?.mappingInfo?.find( ( f ) => f.type === 'tagging' )?.revicedPerc || '--',
|
|
3922
3902
|
'Reviewer (Accuracy%)': item?.mappingInfo?.find( ( f ) => f.type === 'review' )?.revicedPerc || '--',
|
|
3923
3903
|
'Approver (Accuracy%)': item?.mappingInfo?.find( ( f ) => f.type === 'approve' )?.revicedPerc || '--',
|
|
@@ -3938,13 +3918,6 @@ export async function ticketList( req, res ) {
|
|
|
3938
3918
|
ticketRaised: item?.createdAt,
|
|
3939
3919
|
issueDate: item?.dateString,
|
|
3940
3920
|
footfall: item?.footfallCount,
|
|
3941
|
-
dueDate: ( () => {
|
|
3942
|
-
if ( Array.isArray( item?.mappingInfo ) ) {
|
|
3943
|
-
const filtered = item.mappingInfo.filter( ( f ) => f?.dueDate && f?.type !== 'finalRevisoon' );
|
|
3944
|
-
return filtered.length > 0 ? filtered[filtered.length - 1].dueDate : '';
|
|
3945
|
-
}
|
|
3946
|
-
return '';
|
|
3947
|
-
} )(),
|
|
3948
3921
|
type: item?.type || 'store',
|
|
3949
3922
|
storeRevisedAccuracy: item?.mappingInfo?.find( ( f ) => f.type === 'tagging' )?.revicedPerc || '--',
|
|
3950
3923
|
reviewerRevisedAccuracy: item?.mappingInfo?.find( ( f ) => f.type === 'review' )?.revicedPerc || '--',
|