apiGetDailyReprtSum javítva.

This commit is contained in:
Vincze József 2025-07-23 09:51:56 +02:00
parent 9d07f9d3bd
commit ed7cbd167e
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ exports.apiGetDailyReportSum=asyncHandler(async (req,res)=>{
} }
]) ])
if (count) wtSum=count[0].count*8 if (count.length) wtSum=count[0].count*8
res.send({'response':'ok', 'dailyReportSum':wtSum}); res.send({'response':'ok', 'dailyReportSum':wtSum});
}catch(err){ }catch(err){

View File

@ -106,7 +106,7 @@ block content
img(src='/pdf.jpg',align='right', width='16px', height='16px') img(src='/pdf.jpg',align='right', width='16px', height='16px')
div.col-md-5 div.col-md-5
//a(href="/cmfile/"+encodeURIComponent(work._id)+"/"+i)= file //a(href="/cmfile/"+encodeURIComponent(work._id)+"/"+i)= file
a(href=`localhost:5000/api/db/getDocumentByPath?param=${encodeURIComponent(work.pathCM+"\\"+encodeURIComponent(work.filesCM[i]))}` target='_blank')= file a(href=`https://cmmunkaszam.klelectro.eu/api/db/getDocumentByPath?param=${encodeURIComponent(work.pathCM+"\\"+encodeURIComponent(work.filesCM[i]))}` target='_blank')= file
.panel-footer .panel-footer