@davoodmehraban89 / Factor-easy / commits / 4eb0a45
Fork 0

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

Expose account type in chart editor

davoodmehraban89 committed Sep 29, 2026 at 22:16 UTC 4eb0a451daf93b8a55caed4bff035430f81f7534
1 file changed +1 -1
js/accounting-foundation-ui.js
+1 -1
@@ -6,7 +6,7 @@ function ensureAccountingFoundationView(){
6 <div class="card"><div style="display:flex;justify-content:space-between;gap:8px;align-items:center;flex-wrap:wrap"><div><h3>کدینگ حساب‌ها — کل ← معین ← تفصیلی</h3><p class="af-hint">می‌توانید کدینگ پیشنهادی نوع شرکت را بپذیرید، کدینگ را دستی بسازید یا روی شرکتِ دارای کدینگ خالی از Excel وارد کنید.</p></div><div style="display:flex;gap:6px;flex-wrap:wrap"><label class="btn btn-secondary btn-inline">ورود کدینگ از Excel<input type="file" accept=".xlsx,.xls" style="display:none" onchange="afImportAccountsFromExcel(event)"></label><button class="btn btn-secondary btn-inline" onclick="downloadAccountsExcelTemplate()">نمونه Excel کدینگ</button></div></div><div class="form-row">
7 <div class="form-group"><label>سطح</label><select id="af-account-level" class="form-control" onchange="afParents()"><option value="gl">کل</option><option value="subsidiary">معین</option><option value="detail">تفصیلی</option></select></div>
8 <div class="form-group"><label>کد</label><input id="af-account-code" class="form-control"></div><div class="form-group"><label>عنوان</label><input id="af-account-title" class="form-control"></div>
9 - <div class="form-group"><label>ماهیت</label><select id="af-account-nature" class="form-control"><option value="debit">بدهکار</option><option value="credit">بستانکار</option><option value="both">دوماهیتی</option></select></div></div>
9 + <div class="form-group"><label>ماهیت</label><select id="af-account-nature" class="form-control"><option value="debit">بدهکار</option><option value="credit">بستانکار</option><option value="both">دوماهیتی</option></select></div><div class="form-group"><label>نوع حساب</label><select id="af-account-type" class="form-control"><option value="asset">دارایی</option><option value="liability">بدهی</option><option value="equity">حقوق مالکانه</option><option value="revenue">درآمد</option><option value="expense">هزینه</option><option value="memorandum">انتظامی</option><option value="control">کنترلی</option></select></div></div>
10 <div class="form-group"><label>حساب والد</label><select id="af-account-parent" class="form-control"></select></div><button class="btn btn-success" onclick="afSaveAccount()">ثبت حساب</button>
11 <div class="table-responsive af-space"><table><thead><tr><th>کد</th><th>عنوان</th><th>سطح</th><th>ماهیت</th><th>ثبت</th><th></th></tr></thead><tbody id="af-accounts-body"></tbody></table></div></div>
12 <div class="card"><h3>قواعد تفصیلی شناور</h3><div class="form-row"><div class="form-group"><label>حساب</label><select id="af-rule-account" class="form-control"></select></div><div class="form-group"><label>تفصیلی</label><select id="af-rule-dimension" class="form-control"></select></div><div class="form-group"><label>کاربرد</label><select id="af-rule-app" class="form-control"><option value="required">الزامی</option><option value="optional">اختیاری</option><option value="unavailable">غیرمجاز</option></select></div></div><button class="btn btn-primary" onclick="afSaveRule()">ثبت قاعده</button><div id="af-rules-list" class="af-list"></div></div>