nimash3eshan / COMBook

Should not have unused variables JS-0128
Bug risk
Major
a year agoa year old
'deleteRecord' is defined but never used. Allowed unused vars must match /^_/u
199        table.tBodies[0].innerHTML = '';
200}
201
202function  deleteRecord(id){203    colRecords.doc(id).delete().then(() => {
204        console.log("Document successfully deleted!");
205        updateRecords();
'reload' is assigned a value but never used. Allowed unused vars must match /^_/u
 12const app = firebase.initializeApp(firebaseConfig);
 13const db = app.firestore();
 14let colRecords = db.collection("records");
 15let reload = false; 16
 17
 18$(document).ready(() => {
'r' is defined but never used. Allowed unused args must match /^_/u
16let totDebit = 0;
17let totCredit = 0;
18
19loadRecords().then(r => addTotalRow());20
21
22
'OtherReceivables' is assigned a value but never used. Allowed unused vars must match /^_/u
 32const Property = document.getElementById("Property");
 33const Allowance = document.getElementById("Allowance");
 34const Value = document.getElementById("Value");
 35const OtherReceivables = document.getElementById("OtherReceivables"); 36const Goodwill = document.getElementById("Goodwill");
 37const WebsiteAndDomains = document.getElementById("WebsiteAndDomains");
 38const OtherIntangibleAssets = document.getElementById("OtherIntangibleAssets");
'cash' is assigned a value but never used. Allowed unused vars must match /^_/u
 13const db = app.firestore();
 14let colRecords = db.collection("records");
 15
 16const cash = document.getElementById("Cash"); 17const ShortInvestments = document.getElementById("ShortInvestments");
 18const AccountsReceivable = document.getElementById("AccountsReceivable");
 19const PrepaidRent = document.getElementById("PrepaidRent");