bug fix in tafsil word

This commit is contained in:
Hesabix 2025-09-02 23:31:56 +03:30
parent d7a258d9a6
commit ecfebfad6e
16 changed files with 20 additions and 20 deletions

View file

@ -440,7 +440,7 @@ class BankController extends AbstractController
'تاریخ',
'توضیحات',
'شرح سند',
'تفضیل',
'تفصیل',
'بستانکار',
'بدهکار',
'سال مالی',

View file

@ -389,7 +389,7 @@ class CashdeskController extends AbstractController
'تاریخ',
'توضیحات',
'شرح سند',
'تفضیل',
'تفصیل',
'بستانکار',
'بدهکار',
'سال مالی',

View file

@ -1112,11 +1112,11 @@ class HesabdariController extends AbstractController
return $this->json(['result' => 0, 'message' => 'نام ردیف حساب و آیدی والد الزامی است'], 400);
}
// بررسی نوع تفضیل حساب
// بررسی نوع تفصیل حساب
$allowedTypes = ['calc', 'person', 'commodity', 'bank', 'salary', 'cashdesk'];
$accountType = $params['accountType'] ?? 'calc';
if (!in_array($accountType, $allowedTypes)) {
return $this->json(['result' => 0, 'message' => 'نوع تفضیل حساب نامعتبر است'], 400);
return $this->json(['result' => 0, 'message' => 'نوع تفصیل حساب نامعتبر است'], 400);
}
$parentNode = $entityManager->getRepository(HesabdariTable::class)->findOneBy(['code' => $params['parentId']]);

View file

@ -747,7 +747,7 @@ class PersonsController extends AbstractController
'شماره تراکنش',
'تاریخ',
'توضیحات',
'تفضیل',
'تفصیل',
'بستانکار',
'بدهکار',
'تشخیص',

View file

@ -405,7 +405,7 @@ class SalaryController extends AbstractController
'شماره تراکنش',
'تاریخ',
'توضیحات',
'تفضیل',
'تفصیل',
'بستانکار',
'بدهکار',
'سال مالی',

View file

@ -49,7 +49,7 @@
<td class="center item">تاریخ</td>
<td class="center item">توضیحات</td>
<td class="center item">شرح سند</td>
<td class="center item">تفضیل</td>
<td class="center item">تفصیل</td>
<td class="center item">بدهکار</td>
<td class="center item">بستانکار</td>
<td class="center item">سال مالی</td>

View file

@ -42,7 +42,7 @@
<td class="center item">تاریخ</td>
<td class="center item">توضیحات</td>
<td class="center item">شرح سند</td>
<td class="center item">تفضیل</td>
<td class="center item">تفصیل</td>
<td class="center item">واریز</td>
<td class="center item">برداشت</td>
<td class="center item">سال مالی</td>

View file

@ -78,7 +78,7 @@
<td class="center item">فاکتور/سند</td>
<td class="center item">تاریخ</td>
<td class="center item">توضیحات</td>
<td class="center item">تفضیل</td>
<td class="center item">تفصیل</td>
<td class="center item">بدهکار</td>
<td class="center item">بستانکار</td>
<td class="center item">تشخیص</td>

View file

@ -52,7 +52,7 @@
<th class="text-white">ردیف</th>
<th class="text-white">جدول حساب</th>
<th class="text-white">مرجع</th>
<th class="text-white">تفضیل</th>
<th class="text-white">تفصیل</th>
<th class="text-white">بستانکار</th>
<th class="text-white">بدهکار</th>
<th class="text-white">توضیحات</th>

View file

@ -37,7 +37,7 @@
<td class="center item">شماره سند</td>
<td class="center item">تاریخ</td>
<td class="center item">توضیحات</td>
<td class="center item">تفضیل</td>
<td class="center item">تفصیل</td>
<td class="center item">بدهکار</td>
<td class="center item">بستانکار</td>
<td class="center item">شرح سند</td>

View file

@ -313,7 +313,7 @@ const fa_lang = {
add_new: "افزودن جدید",
delete: "حذف",
manage_columns: "مدیریت ستون‌ها",
person_with_det_report: 'گزارش تفضیلی اشخاص',
person_with_det_report: 'گزارش تفصیلی اشخاص',
change_password_label: 'تغییر کلمه عبور',
download: 'دانلود',
delete_group: 'حذف گروهی',
@ -855,7 +855,7 @@ const fa_lang = {
"income": "درآمد",
"sell_receive": "دریافت فاکتور فروش",
"buy_send": "پرداخت فاکتور فروش",
"detail": "تفضیل",
"detail": "تفصیل",
"reject_cheque": "برگشت چک",
"modify_cheque": "ثبت چک",
"modify_cheque_output": "دریافت چک",
@ -897,7 +897,7 @@ const fa_lang = {
"debtor": "بدهکار",
"settled": "تسویه‌شده",
"accounting_status": "وضعیت حسابداری",
"detail": "تفضیل",
"detail": "تفصیل",
"settlement": "تشخیص",
"running_balance": "باقی‌مانده",
"available_balance": "موجودی",

View file

@ -71,7 +71,7 @@
:items="accountTypes"
item-title="label"
item-value="value"
label="نوع تفضیل حساب"
label="نوع تفصیل حساب"
:disabled="dialogLoading"
class="mt-4"
>
@ -279,7 +279,7 @@ export default {
...node,
text: `(${node.id}) ${node.text}`,
originalText: node.text, // ذخیره نام اصلی برای استفاده در ویرایش
type: node.type || 'calc' // اضافه کردن نوع تفضیل حساب
type: node.type || 'calc' // اضافه کردن نوع تفصیل حساب
};
});

View file

@ -86,7 +86,7 @@ const item = ref({
const headers = [
{ title: 'ردیف', key: 'index', align: 'center', sortable: false },
{ title: 'حساب', key: 'table', sortable: false },
{ title: 'تفضیل', key: 'refCode', sortable: false },
{ title: 'تفصیل', key: 'refCode', sortable: false },
{ title: 'شرح', key: 'des', sortable: false },
{ title: 'بدهکار', key: 'bd', sortable: false },
{ title: 'بستانکار', key: 'bs', sortable: false }

View file

@ -125,7 +125,7 @@ export default {
{ text: "عملیات", value: "operation" },
{ text: "تاریخ", value: "date", 'sortable': true },
{ text: "شرح", value: "des" },
{ text: "تفضیل", value: "ref", 'sortable': true },
{ text: "تفصیل", value: "ref", 'sortable': true },
{ text: "واریز", value: "bd", 'sortable': true },
{ text: "برداشت", value: "bs", 'sortable': true },
]

View file

@ -130,7 +130,7 @@ export default {
{ text: 'بدهکاران', to: '/acc/reports/persons/debtors', showIf: null },
{ text: 'بستانکاران', to: '/acc/reports/persons/depositors', showIf: null },
{ text: 'خرید و فروش های اشخاص', to: '/acc/reports/persons/buysell', showIf: null },
{ text: 'گزارش تفضیلی اشخاص', to: '/acc/reports/persons/withdet', showIf: 'accpro' }
{ text: 'گزارش تفصیلی اشخاص', to: '/acc/reports/persons/withdet', showIf: 'accpro' }
],
bankReports: [
{ text: 'گردش حساب بانک', to: '/acc/banks/card/view/' },

View file

@ -165,7 +165,7 @@ export default {
{ title: 'شماره سند', key: "code", align: "center", sortable: true },
{ title: 'تاریخ', key: "date", align: "center", sortable: true },
{ title: 'شرح', key: "des", align: "center" },
{ title: 'تفضیل', key: "ref", align: "center", sortable: true },
{ title: 'تفصیل', key: "ref", align: "center", sortable: true },
{ title: 'بدهکار', key: "bd", align: "center", sortable: true },
{ title: 'بستانکار', key: "bs", align: "center", sortable: true },
],