File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed
Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -330,6 +330,7 @@ export default function StatsPage() {
330330 < tr className = "bg-default-100" >
331331 < th className = "p-3 text-left" > { t ( "purchase-date" ) } </ th >
332332 < th className = "p-3 text-left" > { t ( "refund-date" ) } </ th >
333+ < th className = "p-3 text-left" > { t ( "order" ) } </ th >
333334 < th className = "p-3 text-right" > { t ( "purchase-amount" ) } </ th >
334335 < th className = "p-3 text-right" > { t ( "refund-amount" ) } </ th >
335336 < th className = "p-3 text-right" > { t ( "difference" ) } </ th >
@@ -348,6 +349,7 @@ export default function StatsPage() {
348349 < td className = "p-3" >
349350 { new Date ( item . refundDate ) . toLocaleDateString ( ) }
350351 </ td >
352+ < td className = "p-3" > { item . order } </ td >
351353 < td className = "p-3 text-right" >
352354 { item . purchaseAmount . toFixed ( 2 ) } €
353355 </ td >
Original file line number Diff line number Diff line change @@ -2119,6 +2119,8 @@ const statsRoutes = (router: Router, env: Env) => {
21192119 * refundDate:
21202120 * type: string
21212121 * format: date
2122+ * order:
2123+ * type: string
21222124 * averageDelayInDays:
21232125 * type: number
21242126 * description: Average delay between purchase and refund in days
@@ -2186,7 +2188,8 @@ const statsRoutes = (router: Router, env: Env) => {
21862188 refundAmount : refund . amount ,
21872189 delayInDays,
21882190 purchaseDate : purchase . date ,
2189- refundDate : refund . refundDate
2191+ refundDate : refund . refundDate ,
2192+ order : purchase . order ,
21902193 } ) ;
21912194 }
21922195 }
Original file line number Diff line number Diff line change @@ -308,6 +308,7 @@ export interface RefundDelayData {
308308 delayInDays : number ;
309309 purchaseDate : Date ;
310310 refundDate : Date ;
311+ order : string ;
311312}
312313
313314export interface RefundBalanceResponse {
You can’t perform that action at this time.
0 commit comments