Petrol Pump Accounting In Excel Sheet Download Apr 2026
// 2. Expenses Register html += `<h3 style="margin:25px 0 5px 0; color:#1e4a2f;">📝 Expenses Register</h3>`; html += `<table id="expensesTable"><thead><tr><th>Date</th><th>Category</th><th>Amount (₹)</th><th></th></tr></thead><tbody>`; for (let i = 0; i < expensesData.length; i++) let exp = expensesData[i]; html += `<tr data-type="expense" data-index="$i"> <td><input type="text" class="exp-date" value="$exp.date" data-idx="$i"></td> <td><input type="text" class="exp-cat" value="$exp.category" data-idx="$i"></td> <td><input type="number" step="0.01" class="exp-amt" value="$exp.amount" data-idx="$i"></td> <td><button class="delRowBtn" data-type="expense" data-idx="$i" style="background:#b33;">❌</button></td> </tr>`; html += `<tr><td colspan="3"><button id="addExpenseRowBtn" style="background:#3c8c40;">+ Add Expense</button></td><td></td></tr>`; html += `</tbody></table>`;
function getTotalClosingStockValue() return stockData.reduce((sum, st) => sum + (st.closing * st.unitPrice), 0);
// 3. Stock Management Table html += `<h3 style="margin:25px 0 5px 0; color:#1e4a2f;">📦 Stock Summary (Liters / Units)</h3>`; html += `<table id="stockTable"><thead><tr><th>Product</th><th>Opening (Ltr)</th><th>Received (Ltr)</th><th>Sold (Ltr)</th><th>Closing (Ltr)</th><th>Unit Price (₹)</th><th>Stock Value (₹)</th><th></th></tr></thead><tbody>`; for (let i = 0; i < stockData.length; i++) let st = stockData[i]; let stockValue = (st.closing * st.unitPrice).toFixed(2); html += `<tr data-type="stock" data-index="$i"> <td style="background:#faf3e0;">$st.product</td> <td><input type="number" step="0.01" class="stock-opening" value="$st.opening" data-idx="$i"></td> <td><input type="number" step="0.01" class="stock-received" value="$st.received" data-idx="$i"></td> <td><input type="number" step="0.01" class="stock-sold" value="$st.sold" data-idx="$i"></td> <td class="stock-closing">$st.closing.toFixed(2)</td> <td><input type="number" step="0.01" class="stock-price" value="$st.unitPrice" data-idx="$i"></td> <td class="stock-value">$stockValue</td> <td><button class="delRowBtn" data-type="stock" data-idx="$i" style="background:#b33;">🗑️</button></td> </tr>`; html += `<tr><td colspan="7"><button id="addStockRowBtn" style="background:#3c8c40;">+ Add Stock Product</button></td><td></td></tr>`; html += `</tbody></table>`; petrol pump accounting in excel sheet download
function stockChangeHandler(e)
// Build HTML with three sections let html = `<style>td input border:1px solid #ddd; border-radius:6px; padding:6px; text-align:center; td vertical-align: middle; </style>`; h3 style="margin:25px 0 5px 0
let salesData = [ product: "Petrol (MS)", liters: 1250, rate: 102.50, amount: 128125 , product: "Diesel (HSD)", liters: 980, rate: 94.80, amount: 92904 , product: "Premium Petrol", liters: 320, rate: 115.00, amount: 36800 , product: "Engine Oil (Lube)", liters: 45, rate: 850, amount: 38250 ];
function attachInputEvents() // Sales liters & rate document.querySelectorAll('.sales-lit, .sales-rate').forEach(inp => inp.removeEventListener('input', salesChangeHandler); inp.addEventListener('input', salesChangeHandler); ); // Expenses amount document.querySelectorAll('.exp-amt').forEach(inp => inp.removeEventListener('input', expenseChangeHandler); inp.addEventListener('input', expenseChangeHandler); ); // Stock fields: opening, received, sold, price document.querySelectorAll('.stock-opening, .stock-received, .stock-sold, .stock-price').forEach(inp => inp.removeEventListener('input', stockChangeHandler); inp.addEventListener('input', stockChangeHandler); ); 📝 Expenses Register<
function deleteHandler(e) const btn = e.currentTarget; const type = btn.getAttribute('data-type'); const idx = parseInt(btn.getAttribute('data-idx')); if (type === 'sales') salesData.splice(idx, 1); else if (type === 'expense') expensesData.splice(idx, 1); else if (type === 'stock') stockData.splice(idx, 1); renderTables();
Share This
This Article Appeared In
Reshaping the women of the Bible. Standing up for immigrants now. Checking in with Jennifer Weiner. Costume art.

