const fs = require('fs');

function checkFile(file) {
    if (!fs.existsSync(file)) return;
    const content = fs.readFileSync(file, 'utf8');
    const lines = content.split('\n');
    lines.forEach((line, i) => {
        if (line.includes('const supplierAcc =')) {
            console.log(`${file}:${i+1}: ${line.trim()}`);
        }
        if (line.includes('const cashParent =')) {
            console.log(`${file}:${i+1}: ${line.trim()}`);
        }
    });
}

checkFile('sales_purchases_module.js');
checkFile('vouchers_returns.js');
checkFile('app_final.js');
