1

لا يقوم النظام بتجميع فواتير العملاء والموردين بسندات القبض والصرف؟

لا يقوم النظام بتجميع فواتير العملاء والمواردين بسندات القبض والصرف؟

Eldabbas's avatar
9k
Eldabbas
asked 2018-07-18 08:23:30 +0200, updated 2019-04-09 07:49:39 +0200
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

السبب في ذلك أن حساب الذمة الذي ينتمي إليه العميل (أو المورد) لا يتابع أعمار الديون
قم بتفعيل الخيار (متابعة أعمار الديون) بالحساب الذي تنتمي إليه الذمة المذكورة بسند القبض (أو الصرف)
إذا ظل النظام لا يقوم بتجميع الفواتير فمعنى ذلك أنه تم إدخال حركات قبل ذلك لم يتم فيها اعتبار متابعة أعمار الديون
في هذه الحالة، قم بتشغيل جملة الاستعلام التالية

truncate table DebtLineMatcher
go
truncate table AllManualDebtLines
go
delete from DebtLine
go
truncate table UnmatchedManualDebtLine
go
with debtAgeReqs as  (
select distinct lr.id from  LedgerTransReq lr inner join LedgerTrans lt on lt.requestId = lr.id inner join LedgerTransLine ltr on ltr.ledgerTrans_id = lt.id left join Account acc on acc.id = ltr.account_id
where requestType <> 'Delete'  and acc.trackDebtAges = 1 and transStatus = 'Processed'
)
update lr set transStatus = 'Retry',hasDebtAges=1,debtAgesProcessed=0,reqProcessed=1 from
LedgerTransReq lr inner join debtAgeReqs dar on dar.id = lr.id

Eldabbas's avatar
9k
Eldabbas
answered 2018-07-18 08:27:14 +0200, updated 2019-04-09 07:07:04 +0200
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Login/Signup to Answer