Skip to content

Create wrangler.toml#79989

Open
jiji15899-arch wants to merge 1 commit intoDigitalPlatDev:mainfrom
jiji15899-arch:main
Open

Create wrangler.toml#79989
jiji15899-arch wants to merge 1 commit intoDigitalPlatDev:mainfrom
jiji15899-arch:main

Conversation

@jiji15899-arch
Copy link
Copy Markdown

Cloudflare Pages 배포 설정

제작: 아백 (아로스)

생성일: 2025-12-27

name = "freedomainchoi"
compatibility_date = "2025-12-27"

[assets]
directory = "."
html_handling = "auto-trailing-slash"

404 페이지 설정

[[assets.fallback_routes]]
pattern = "/*"
destination = "/index.html"

@muhdanashakkeem-stack
Copy link
Copy Markdown

<title>Aflaha Traders Billing</title> <style> body { font-family: Arial; background: #0a192f; color: white; margin: 0; padding: 10px; } .container { background: #112240; padding: 15px; border-radius: 10px; max-width: 1000px; margin: auto; } h2,h3 { text-align:center; color:#64ffda; } #datetime { text-align:center; margin-bottom:10px; font-size:14px; color:#ccc; } input, select { padding:10px; margin:5px; border-radius:5px; border:1px solid #233554; background:#0a192f; color:white; } button { padding:10px; border:none; border-radius:5px; background:#64ffda; cursor:pointer; font-weight:bold; } button:hover { background:#52e0c4; } .error { color:red; display:none; } table { width:100%; border-collapse:collapse; } th,td { padding:10px; border-bottom:1px solid #233554; text-align:center; } th { background:#1f4068; color:#64ffda; } .total { text-align:right; font-size:18px; margin-top:10px; } </style>

🔒 Aflaha Traders


Login

Wrong Password

Aflaha Traders Billing

Shop:

KG GRAM LITRE

➕ Add

GST %: GST OFF
Product Qty Unit Rate Total Delete
Subtotal ₹ 0.00
GST ₹ 0.00
Final ₹ 0.00

⬅ Prev Next ➡

📄 Download Bill
📚 Daily Report
Logout

<script> // LOGIN const PASSWORD = "12345678"; function checkLogin(){ let p = document.getElementById("pass").value; if(p === PASSWORD){ document.getElementById("login").style.display="none"; document.getElementById("app").style.display="block"; updateTime(); setInterval(updateTime,1000); } else { document.getElementById("err").style.display="block"; } } function logout(){ location.reload(); } // TIME function updateTime(){ let el = document.getElementById("datetime"); if(!el) return; let now = new Date(); let date = now.toLocaleDateString(); let time = now.toLocaleTimeString(); el.innerText = date + " | " + time; } // PRODUCTS let products = [ "MASALA KADALA","ROSTED KADALA","GREEN PEECE", "MULAKU MIXTURE","GARLIC MIXTURE","BOMBAY MIXTURE" ]; function loadProducts(){ let d=document.getElementById("plist"); d.innerHTML=""; products.forEach(p=>{ let o=document.createElement("option"); o.value=p; d.appendChild(o); }); } loadProducts(); // BILL SYSTEM let bills=[{shop:"",items:[],total:0}]; let i=0; let gstEnabled=false; function addItem(){ let shop=document.getElementById("shop").value; let product=document.getElementById("product").value.toUpperCase(); let qty=parseFloat(document.getElementById("qty").value); let price=parseFloat(document.getElementById("price").value); let unit=document.getElementById("unit").value; if(!shop||!product||!qty||!price){ alert("Fill all fields"); return; } if(!products.includes(product)){ products.push(product); loadProducts(); } let total=qty*price; let b=bills[i]; b.shop=shop; b.items.push({product,qty,unit,price,total}); b.total+=total; render(); document.getElementById("product").value=""; document.getElementById("qty").value=""; document.getElementById("price").value=""; } function render(){ let b=bills[i]; let body=document.getElementById("body"); if(!body) return; body.innerHTML=""; let subtotal = 0; b.items.forEach((x,index)=>{ subtotal += x.total; body.innerHTML+=` ${x.product} ${x.qty} ${x.unit} ₹${x.price} ₹${x.total.toFixed(2)} ❌ `; }); let gstPercent = parseFloat(document.getElementById("gstPercent").value) || 0; let gstAmount = gstEnabled ? (subtotal * gstPercent / 100) : 0; let finalTotal = subtotal + gstAmount; document.getElementById("subtotal").innerText = subtotal.toFixed(2); document.getElementById("gstAmount").innerText = gstAmount.toFixed(2); document.getElementById("total").innerText = finalTotal.toFixed(2); document.getElementById("shopTitle").innerText="Shop: "+b.shop; } function deleteItem(index){ let b = bills[i]; b.total -= b.items[index].total; b.items.splice(index, 1); render(); } function toggleGST(){ gstEnabled = !gstEnabled; let btn=document.getElementById("gstBtn"); if(gstEnabled){ btn.innerText="GST ON"; btn.style.background="green"; } else { btn.innerText="GST OFF"; btn.style.background="gray"; } render(); } function next(){ i++; if(!bills[i]) bills.push({shop:"",items:[],total:0}); render(); } function prev(){ if(i>0){ i--; render(); } } // REPORT function report(){ let totalSales = 0; let allHTML = ""; bills.forEach((b,index)=>{ if(b.items.length===0) return; allHTML += `

Bill ${index+1} - ${b.shop}

`; allHTML += ``; b.items.forEach(x=>{ totalSales += x.total; allHTML += ` `; }); allHTML += `
Product Qty Unit Rate Total
${x.product} ${x.qty} ${x.unit} ₹${x.price} ₹${x.total.toFixed(2)}
`; }); let win = window.open("", "_blank"); win.document.write(` <title>Daily Report</title>

Aflaha Traders - Daily Report

Total Sales: ₹${totalSales.toFixed(2)}

Expenses

Driver:
Salesman:
Petrol:
Food:
Calculate Profit Download

Expense ₹0
Profit ₹${totalSales.toFixed(2)}


All Orders

${allHTML} <script> function calc(){ let d=+document.getElementById('d').value||0; let s=+document.getElementById('s').value||0; let p=+document.getElementById('p').value||0; let f=+document.getElementById('f').value||0; let exp=d+s+p+f; let sales=${totalSales}; let profit=sales-exp; document.getElementById("result").innerHTML= "Expense ₹"+exp.toFixed(2)+"
Profit ₹"+profit.toFixed(2); } <\/script> `); win.document.close(); } </script>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants