🚀 مُصادَق: تحديث برمجي جديد 2026-05-03 02:23

This commit is contained in:
Hamza-Ayed
2026-05-03 02:23:42 +03:00
parent 623df3f9fa
commit 2579998cc7

View File

@@ -486,17 +486,17 @@
let optionsHtml = '<option value="" disabled selected>-- اختر الشركة --</option>';
companies.forEach(c => {
optionsHtml += \`<option value="\${c.id}">\${c.name} (\${c.tax_identification_number || ''})</option>\`;
optionsHtml += `<option value="${c.id}">${c.name} (${c.tax_identification_number || ''})</option>`;
});
const modals = document.getElementById('modals');
modals.innerHTML = \`
modals.innerHTML = `
<div class="fixed inset-0 bg-black/60 backdrop-blur-sm z-[100] flex items-center justify-center" id="invoice-modal">
<div class="glass-panel p-8 rounded-3xl w-full max-w-md border border-white/10 shadow-2xl">
<h3 class="text-2xl font-bold mb-6">رفع فاتورة للتدقيق</h3>
<form id="upload-invoice-form" class="space-y-4" enctype="multipart/form-data">
<select id="inv-comp-id" class="w-full bg-black/20 border border-white/10 rounded-xl px-4 py-3 text-white focus:border-primary outline-none" required>
\${optionsHtml}
${optionsHtml}
</select>
<div class="p-4 border-2 border-dashed border-white/20 rounded-xl bg-black/10 text-center">
<p class="text-sm text-slate-400 mb-2">اختر ملف الفاتورة (JSON/XML/PDF)</p>
@@ -509,7 +509,7 @@
</form>
</div>
</div>
\`;
`;
document.getElementById('upload-invoice-form').onsubmit = async (e) => {
e.preventDefault();