سامانه صدور فاکتور و حسابداری
Mirrored from https://github.com/davoodmehraban89/Factor-easy.git
Synced Dec 3, 17:00 UTC
Update version references from 4.3 to 4.4
davoodmehraban89 committed
Sep 16, 2026 at 16:36 UTC
ef4a61418d6433f09870864a810160bf61a772aa
1 file changed
+13
-13
index.html
+13
-13
@@ -44,7 +44,7 @@
44
.brand-icon { width: 40px; height: 40px; background: var(--primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: bold; font-size: 18px; }
45
46
.sidebar-menu { list-style: none; padding: 16px 8px; flex: 1; overflow-y: auto; }
47
- .sidebar-menu li a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: var(--text); text-decoration: none; border-radius: 8px; margin-bottom: 4px; font-size: 14px; font-weight: 500; transition: all 0.2s; }
47
+ .sidebar-menu li a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: var(--text); text-decoration: none; border-radius: 8px; margin-bottom: 4px; font-size: 14px; font-weight: 500; transition: all 0.2s; cursor: pointer; }
48
.sidebar-menu li a:hover, .sidebar-menu li a.active { background: #eff6ff; color: var(--primary); font-weight: bold; }
49
50
.sidebar-footer { padding: 12px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-muted); text-align: center; display:flex; flex-direction:column; gap:6px; }
@@ -62,7 +62,7 @@
62
.kpi-val { font-size: 17px; font-weight: bold; margin-top: 4px; }
63
.kpi-lbl { color: var(--text-muted); font-size: 12px; font-weight: 500; }
64
65
- .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 8px 16px; background: var(--primary); color: #fff; border: none; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 600; transition: background 0.2s; }
65
+ .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 16px; background: var(--primary); color: #fff; border: none; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 600; transition: background 0.2s; }
66
.btn:hover { background: var(--primary-hover); }
67
.btn-secondary { background: #e2e8f0; color: var(--text); }
68
.btn-secondary:hover { background: #cbd5e1; }
@@ -71,7 +71,7 @@
71
72
.form-group { margin-bottom: 14px; width: 100%; }
73
.form-group label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: #334155; }
74
- .form-control { width: 100%; min-height: 42px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; outline: none; background: #fff; transition: border-color 0.2s; }
74
+ .form-control { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; outline: none; background: #fff; transition: border-color 0.2s; }
75
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.15); }
76
.form-control:disabled { background-color: #f1f5f9; color: #94a3b8; cursor: not-allowed; }
77
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; width: 100%; }
@@ -152,7 +152,7 @@
152
<div class="brand-icon">ایزی</div>
153
<div>
154
<h2 style="font-size: 15px; font-weight: bold;">ایزی فاکتور</h2>
155
- <small style="color: var(--text-muted); font-size: 11px;">نگارش ۴.۳ (تیرهزدایی کش)</small>
155
+ <small style="color: var(--text-muted); font-size: 11px;">نگارش ۴.۴ (پایدار موبایل)</small>
156
</div>
157
</div>
158
<ul class="sidebar-menu">
@@ -167,7 +167,7 @@
167
</ul>
168
<div class="sidebar-footer">
169
<span id="logged-user-label">کاربر</span>
170
- <button class="btn btn-danger btn-inline" style="padding:4px 10px; font-size:11px; min-height:28px; width:100%;" onclick="handleLogout()">🚪 خروج از حساب کاربری</button>
170
+ <button class="btn btn-danger btn-inline" style="padding:4px 10px; font-size:11px; min-height:28px; width:100%; margin-top:4px;" onclick="handleLogout()">🚪 خروج از حساب کاربری</button>
171
</div>
172
</aside>
173
@@ -183,7 +183,7 @@
183
</div>
184
<div style="display:flex; align-items:center; gap:10px;">
185
<span id="user-license-status-badge" class="badge badge-warning">آزمایشی</span>
186
- <button class="btn btn-inline no-print" onclick="startNewInvoice()">➕ صدور فاکتور جدید</button>
186
+ <button class="btn btn-inline no-print" onclick="startNewInvoice()">➕ فاکتور جدید</button>
187
</div>
188
</div>
189
@@ -641,7 +641,7 @@
641
<div class="accordion-body">
642
<h3 style="font-size:16px; font-weight:bold;">ایزی فاکتور - EasyFactor</h3>
643
<p style="color:var(--text-muted); font-size:13px; margin:6px 0 12px 0;">سیستم هوشمند صدور فاکتور رسمی و غیررسمی (ریال)</p>
644
- <p style="font-size:13px; margin-bottom:14px;">نگارش فعال: <strong>نسخه ۴.۳ (تیرهزدایی کش)</strong></p>
644
+ <p style="font-size:13px; margin-bottom:14px;">نگارش فعال: <strong>نسخه ۴.۴ (پایدار موبایل)</strong></p>
645
<div style="display:flex; gap:10px;">
646
<button class="btn btn-primary" onclick="alert('آخرین نگارش نصب است.')">بررسی آپدیت</button>
647
<button class="btn btn-secondary" onclick="alert('پشتیبانی فعال است.')">گزارش باگ</button>
@@ -755,8 +755,8 @@
755
</nav>
756
757
<script>
758
- const STORAGE_KEY = 'easy_factor_commercial_v4_3';
759
- const AUTH_KEY = 'easy_factor_auth_users_v4_3';
758
+ const STORAGE_KEY = 'easy_factor_commercial_v4_4';
759
+ const AUTH_KEY = 'easy_factor_auth_users_v4_4';
760
761
let currentUser = null;
762
let usersDb = [
@@ -811,7 +811,7 @@
811
localStorage.setItem(AUTH_KEY, JSON.stringify(usersDb));
812
}
813
814
- const activeSession = sessionStorage.getItem('easy_factor_session_v4_3');
814
+ const activeSession = sessionStorage.getItem('easy_factor_session_v4_4');
815
if (activeSession) {
816
const u = usersDb.find(x => x.username === activeSession);
817
if (u) {
@@ -832,7 +832,7 @@
832
return;
833
}
834
835
- sessionStorage.setItem('easy_factor_session_v4_3', found.username);
835
+ sessionStorage.setItem('easy_factor_session_v4_4', found.username);
836
loginSuccess(found);
837
}
838
@@ -864,7 +864,7 @@
864
865
usersDb.push(newUser);
866
localStorage.setItem(AUTH_KEY, JSON.stringify(usersDb));
867
- sessionStorage.setItem('easy_factor_session_v4_3', newUser.username);
867
+ sessionStorage.setItem('easy_factor_session_v4_4', newUser.username);
868
alert('ثبتنام با موفقیت انجام شد. حساب شما به مدت ۱۵ روز آزمایشی فعال شد.');
869
loginSuccess(newUser);
870
}
@@ -905,7 +905,7 @@
905
}
906
907
function handleLogout() {
908
- sessionStorage.removeItem('easy_factor_session_v4_3');
908
+ sessionStorage.removeItem('easy_factor_session_v4_4');
909
window.location.reload();
910
}
911