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

Prepare universal edit controls and project roles

davoodmehraban89 committed Sep 28, 2026 at 12:46 UTC 3bf170d7d197bf18c7f43776d46c043b77d93ed3
1 file changed +9 -9
index.html
+9 -9
@@ -401,7 +401,7 @@ html,body{background:#fff!important;color:#000!important;margin:0!important;padd
401 <div class="form-group"><label>قیمت فروش (<span class="cur-label">ریال</span>)</label><input type="text" inputmode="decimal" id="prod-sale-input" class="form-control" value="0" oninput="handleMoneyInput(this)" /></div>
402 <div class="form-group"><label>شناسه کالا/خدمت داخلی</label><input type="text" id="prod-internal-id-input" class="form-control" placeholder="2330004169617" /></div>
403 </div>
404 -<button class="btn btn-success" onclick="commitSaveProduct()">➕ ثبت کالا</button>
404 +<div style="display:flex;gap:8px;flex-wrap:wrap"><button id="product-save-btn" class="btn btn-success" onclick="commitSaveProduct()">➕ ثبت کالا</button><button id="product-edit-cancel-btn" class="btn btn-secondary" style="display:none" onclick="cancelProductEdit()">انصراف از اصلاح</button></div>
405 </div>
406 <div class="card">
407 <h3 style="font-size:15px;margin-bottom:12px">کالاهای ثبت‌شده</h3>
@@ -426,7 +426,7 @@ html,body{background:#fff!important;color:#000!important;margin:0!important;padd
426 <div class="form-group" style="grid-column:span 2" id="box-contact-name"><label>نام طرف حساب</label><input type="text" id="contact-name-input" class="form-control" placeholder="دانشگاه صنعتی شریف..." /></div>
427 </div>
428 <div class="form-row">
429 -<div class="form-group"><label>نقش</label><select id="contact-role-input" class="form-control"><option value="customer">مشتری</option><option value="supplier">تامین‌کننده</option></select></div>
429 +<div class="form-group"><label>نقش</label><select id="contact-role-input" class="form-control"><option value="customer">مشتری / خریدار</option><option value="supplier">تأمین‌کننده / فروشنده</option><option value="both">هر دو (خرید و فروش)</option></select></div>
430 <div class="form-group"><label>همراه</label><input type="text" id="contact-mobile-input" class="form-control" /></div>
431 <div class="form-group"><label id="label-contact-national">شناسه ملی</label><input type="text" id="contact-national-input" class="form-control" /></div>
432 <div class="form-group" id="box-contact-economic"><label>کد اقتصادی</label><input type="text" id="contact-economic-input" class="form-control" /></div>
@@ -437,9 +437,9 @@ html,body{background:#fff!important;color:#000!important;margin:0!important;padd
437 <div class="form-group" style="grid-column:span 2"><label>نشانی</label><input type="text" id="contact-address-input" class="form-control" /></div>
438 </div>
439 <div class="form-row">
440 -<div class="form-group"><label>حالت پروژه</label><select id="contact-project-mode" class="form-control"><option value="single">تک‌پروژه (بدون تفکیک پروژه)</option><option value="multi">پروژه‌محور (چند پروژه)</option></select></div>
440 +<div class="form-group"><label>حالت پروژه</label><select id="contact-project-mode" class="form-control"><option value="single">بدون پروژه</option><option value="multi">پروژه‌محور (پروژه و زیرپروژه)</option></select></div>
441 </div>
442 -<button class="btn btn-success" onclick="commitSaveContact()">➕ ثبت طرف حساب</button>
442 +<div style="display:flex;gap:8px;flex-wrap:wrap"><button id="contact-save-btn" class="btn btn-success" onclick="commitSaveContact()">➕ ثبت طرف حساب</button><button id="contact-edit-cancel-btn" class="btn btn-secondary" style="display:none" onclick="cancelContactEdit()">انصراف از اصلاح</button></div>
443 </div>
444 <div class="card">
445 <h3 style="font-size:15px;margin-bottom:12px">دفتر اشخاص</h3>
@@ -463,11 +463,11 @@ html,body{background:#fff!important;color:#000!important;margin:0!important;padd
463 <div class="form-group"><label>سررسید</label><input type="text" id="chq-due-input" class="form-control" placeholder="1405/06/30" /></div>
464 <div class="form-group"><label>وضعیت</label><select id="chq-status-input" class="form-control"><option value="registered">در جریان</option><option value="cleared">وصول شده</option></select></div>
465 </div>
466 -<button class="btn btn-success" onclick="commitSaveCheque()">➕ ثبت چک</button>
466 +<div style="display:flex;gap:8px;flex-wrap:wrap"><button id="cheque-save-btn" class="btn btn-success" onclick="commitSaveCheque()">➕ ثبت چک</button><button id="cheque-edit-cancel-btn" class="btn btn-secondary" style="display:none" onclick="cancelChequeEdit()">انصراف از اصلاح</button></div>
467 </div>
468 <div class="card">
469 <h3 style="font-size:15px;margin-bottom:12px">لیست چک‌ها</h3>
470 -<div class="table-responsive"><table><thead><tr><th>نوع</th><th>طرف حساب</th><th>بانک / صیاد</th><th>مبلغ (<span class="cur-label">ریال</span>)</th><th>سررسید</th><th>وضعیت</th></tr></thead><tbody id="cheques-ledger-table-body"></tbody></table></div>
470 +<div class="table-responsive"><table><thead><tr><th>نوع</th><th>طرف حساب</th><th>بانک / صیاد</th><th>مبلغ (<span class="cur-label">ریال</span>)</th><th>سررسید</th><th>وضعیت</th><th>عملیات</th></tr></thead><tbody id="cheques-ledger-table-body"></tbody></table></div>
471 </div>
472 </section>
473
@@ -480,11 +480,11 @@ html,body{background:#fff!important;color:#000!important;margin:0!important;padd
480 <div class="form-group"><label>مبلغ (<span class="cur-label">ریال</span>)</label><input type="text" inputmode="decimal" id="trx-amount-input" class="form-control" oninput="handleMoneyInput(this)" /></div>
481 <div class="form-group"><label>شرح</label><input type="text" id="trx-desc-input" class="form-control" /></div>
482 </div>
483 -<button class="btn btn-success" onclick="commitSaveExpense()">➕ ثبت سند</button>
483 +<div style="display:flex;gap:8px;flex-wrap:wrap"><button id="expense-save-btn" class="btn btn-success" onclick="commitSaveExpense()">➕ ثبت سند</button><button id="expense-edit-cancel-btn" class="btn btn-secondary" style="display:none" onclick="cancelExpenseEdit()">انصراف از اصلاح</button></div>
484 </div>
485 <div class="card">
486 <h3 style="font-size:15px;margin-bottom:12px">گردش هزینه و درآمد</h3>
487 -<div class="table-responsive"><table><thead><tr><th>نوع</th><th>سرفصل</th><th>شرح</th><th>مبلغ (<span class="cur-label">ریال</span>)</th></tr></thead><tbody id="expenses-ledger-table-body"></tbody></table></div>
487 +<div class="table-responsive"><table><thead><tr><th>نوع</th><th>سرفصل</th><th>شرح</th><th>مبلغ (<span class="cur-label">ریال</span>)</th><th>عملیات</th></tr></thead><tbody id="expenses-ledger-table-body"></tbody></table></div>
488 </div>
489 </section>
490
@@ -731,7 +731,7 @@ html,body{background:#fff!important;color:#000!important;margin:0!important;padd
731 <script src="js/money-format.js"></script>
732 <script src="js/projects.js"></script>
733 <script src="js/invoice-excel-import.js"></script>
734 -<script src="js/purchases.js?v=20260928-purchasefix"></script>
734 +<script src="js/purchases.js?v=20260928-purchasefix"></script>\n<script src="js/operations.js?v=20260928-crud-drilldown"></script>
735
736 </body>
737 </html>