فاکتور | الگانس پوشاک
الگانس پوشاک
اطلاعات مشتری
نام الزامی است
نام خانوادگی الزامی است
شماره تماس معتبر وارد کنید
آدرس الزامی است
محصولات
نام محصول تعداد قیمت واحد نوع تخفیف مقدار تخفیف مبلغ نهایی
خلاصه فاکتور
تعداد کل اقلام ۰
تعداد انواع کالا ۰
جمع مبلغ محصولات ۰ تومان
مجموع تخفیف خطی ۰ تومان
مبلغ نهایی قابل پرداخت ۰ تومان
`); w.document.close(); } // ================== UTILS ================== function showToast(msg, error = false) { const t = document.getElementById('toast'); t.textContent = msg; t.style.background = error ? '#b91c1c' : '#111111'; t.style.display = 'block'; setTimeout(() => t.style.display = 'none', 2600); } function initialize() { loadStore(); // Initial sample products const tbody = document.getElementById('products-tbody'); tbody.innerHTML = ''; addProductRow({ name: "پیراهن لینن لوکس سفید", qty: 2, price: 2450000, discountType: "percent", discountValue: 10 }); addProductRow({ name: "شلوار جین premium آبی تیره", qty: 1, price: 2850000, discountType: "none", discountValue: 0 }); // Live calculation on summary fields ['invoice-discount','shipping','tax'].forEach(id => { const el = document.getElementById(id); if (el) el.addEventListener('input', calculateTotals); }); setTimeout(calculateTotals, 100); // Keyboard escape document.addEventListener('keydown', e => { if (e.key === 'Escape') { document.querySelectorAll('.modal').forEach(m => m.style.display = 'none'); } }); console.log('%c[Premium Invoice] Minimal luxury version initialized.', 'color:#666'); } initialize();