jeremy 4 달 전
부모
커밋
7cd103c3e0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      backend/src/routes/charges.js

+ 1 - 1
backend/src/routes/charges.js

@@ -267,7 +267,7 @@ router.get('/bilan/:property_id/:year/pdf', async (req, res) => {
   const totalChargesReelles = parseFloat(totalChargesRow?.total || 0);
 
   const chargesList = (await pool.query(`
-    SELECT * FROM charges WHERE property_id = $1 AND year = $2 AND user_id = $3
+    SELECT * FROM charges WHERE property_id = $1 AND year = $2 AND user_id = $3 AND recoverable_type = 'recoverable'
     ORDER BY date ASC
   `, [property_id, year, req.userId])).rows;