سامانه صدور فاکتور و حسابداری
Mirrored from https://github.com/davoodmehraban89/Factor-easy.git
Synced Dec 4, 01:45 UTC
feat(pilot): display purchase accounting documents in central manager
davoodmehraban89 committed
Oct 14, 2026 at 08:54 UTC
5b4b64be98dd6e3d0ea40d1410b3d06c3bef0a4e
1 file changed
+2
-2
js/journal-ui.js
+2
-2
@@ -5,10 +5,10 @@ function ensureJournalView(){
5
<div class="form-row"><div class="form-group" style="flex:1"><label>شرح سند</label><input id="je-desc" class="form-control"></div></div><div id="je-lines"></div>
6
<div id="je-totals" class="af-hint" style="margin:10px 0;font-weight:700"></div><input type="hidden" id="je-edit-voucher-id" value=""><div style="display:flex;gap:8px;flex-wrap:wrap"><button class="btn btn-secondary" onclick="jeAddRow()">+ آرتیکل</button><button id="je-save-draft-button" class="btn btn-success" onclick="jeSaveManual()">ثبت پیشنویس</button><button id="je-cancel-edit-button" class="btn btn-secondary" onclick="jeClearManualForm()" style="display:none">انصراف از ویرایش</button></div></div>
7
<div class="card" data-finora-task="register"><h3>فهرست اسناد حسابداری</h3><div class="table-responsive"><table><thead><tr><th>شماره</th><th>تاریخ</th><th>نوع</th><th>مرجع</th><th>شرح</th><th>وضعیت</th><th>بدهکار</th><th>بستانکار</th><th>منبع</th><th>عملیات</th></tr></thead><tbody id="je-vouchers"></tbody></table></div></div>
8
- <div class="card" data-finora-task="documents"><h3>مدیریت اسناد — تأیید و قطعیسازی فاکتورهای فروش</h3>
8
+ <div class="card" data-finora-task="documents"><h3>مدیریت اسناد — اصلاح، قطعیسازی و ابطال فاکتورهای فروش و خرید</h3>
9
<p class="af-hint">برای اسناد فروش، «برگشت قطعی به موقت» یک سند برگشتی ثبت میکند و نسخه اصلاحی قابل ویرایش میسازد؛ سند قطعی و شماره اصلی در تاریخچه باقی میماند. حذفِ قطعی بهصورت ابطال قابلردیابی است و حذف مستقیم فقط برای پیشنویس بدون سند حسابداری مجاز است. برای اسناد مرتبط با تسویه یا مؤدیان، ابتدا تطبیق جداگانه لازم است.</p>
10
<label for="document-status-filter">نمایش وضعیت</label> <select id="document-status-filter" class="form-control" style="max-width:200px" onchange="renderDocumentManagement()"><option value="all">همه</option><option value="draft">پیشنویس</option><option value="posted">قطعی</option><option value="reversed">ابطال/برگشتشده</option><option value="legacy_review">قدیمی و نیازمند تطبیق</option></select>
11
- <div class="table-responsive"><table><thead><tr><th>شماره</th><th>تاریخ</th><th>شرکت</th><th>طرف حساب</th><th>مبلغ</th><th>وضعیت</th><th>عملیات</th></tr></thead><tbody id="finora-document-management-body"></tbody></table></div></div>
11
+ <div class="table-responsive"><table><thead><tr><th>شماره</th><th>تاریخ</th><th>شرکت</th><th>طرف حساب</th><th>مبلغ</th><th>وضعیت</th><th>عملیات</th></tr></thead><tbody id="finora-document-management-body"></tbody></table></div><h4 style="margin:16px 0 8px">فاکتورهای خرید — مدیریت وضعیت حسابداری</h4><div class="table-responsive"><table><thead><tr><th>شماره</th><th>تاریخ</th><th>تأمینکننده</th><th>مبلغ</th><th>وضعیت</th><th>عملیات</th></tr></thead><tbody id="finora-purchase-document-management-body"></tbody></table></div></div>
12
<div class="card" data-finora-task="trial"><h3>تراز آزمایشی</h3><div class="table-responsive"><table><thead><tr><th>کد</th><th>حساب</th><th>بدهکار</th><th>بستانکار</th><th>مانده</th></tr></thead><tbody id="je-trial"></tbody></table></div></div>`;const main=document.querySelector('.main-surface'),p=document.getElementById('printable-invoice');p?main.insertBefore(s,p):main.appendChild(s);
13
}
14
function jeAccountOptions(){return getMyAccounts().filter(x=>x.postingAllowed&&x.active!==false).map(x=>'<option value="'+x.id+'">'+esc(x.code)+' — '+esc(x.title)+'</option>').join('')}