@davoodmehraban89 / Factor-easy-2 Mirror · read-only / commits / 57541ef
Fork 0

سامانه صدور فاکتور و حسابداری

Mirrored from https://github.com/davoodmehraban89/Factor-easy.git

Synced Dec 3, 18:15 UTC

Update cheques.js

davoodmehraban89 committed Sep 28, 2026 at 00:11 UTC 57541ef6b1da9a509d934164674bafb1b4cf96ae
1 file changed +1 -1
js/cheques.js
+1 -1
@@ -6,7 +6,7 @@ function commitSaveCheque(){
6 const contactName=contactSelect.options[contactSelect.selectedIndex]?.text||'';
7 const sayad_id=document.getElementById('chq-sayad-input').value;
8 const bank=document.getElementById('chq-bank-input').value;
9 - const amount=parseFloat(document.getElementById('chq-amount-input').value)||0;
9 + const amount=parseFormattedNumber(document.getElementById('chq-amount-input').value);
10 if(!sayad_id||amount<=0){alert('اطلاعات چک نامعتبر است.');return;}
11 datastore.cheques.push({id:'CHQ_'+Date.now(),ownerUserId:currentUser.id,direction,contactName,sayad_id,bank,amount,due_date:document.getElementById('chq-due-input').value,status:document.getElementById('chq-status-input').value});
12 saveDatastore();