Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
Clubphp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Clubphp
Commits
67d7a31c
Commit
67d7a31c
authored
Sep 12, 2026
by
DevPilot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(accounting): إلغاء رسم المقاصة يرجع للرسم المعتمد للفرع لو المبلغ مش متسجّل على الشيك
parent
72b1eb8f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
ChequeClearingFeeService.php
app/Modules/Accounting/Services/ChequeClearingFeeService.php
+17
-0
No files found.
app/Modules/Accounting/Services/ChequeClearingFeeService.php
View file @
67d7a31c
...
@@ -85,6 +85,23 @@ final class ChequeClearingFeeService
...
@@ -85,6 +85,23 @@ final class ChequeClearingFeeService
}
}
$fee
=
self
::
money
((
string
)
(
$chq
[
'clearing_fee_amount'
]
??
'0'
));
$fee
=
self
::
money
((
string
)
(
$chq
[
'clearing_fee_amount'
]
??
'0'
));
// شيكات قديمة اتعلّم عليها إنها محمّلة من غير ما يتسجّل المبلغ.
// في الحالة دي بنرجع للرسم المعتمد لفرع الخطة، وإلا الإلغاء
// هيعدّي من غير ما يعمل حاجة وإحنا فاكرينه اشتغل.
if
(
bccomp
(
$fee
,
'0.01'
,
self
::
SCALE
)
<
0
)
{
$branch
=
$db
->
selectOne
(
"SELECT m.branch_id FROM installment_plans ip
LEFT JOIN members m ON m.id = ip.member_id
WHERE ip.id = ?"
,
[(
int
)
$chq
[
'installment_plan_id'
]]
);
$fee
=
BranchFeeService
::
amount
(
'cheque_clearing_fee'
,
!
empty
(
$branch
[
'branch_id'
])
?
(
int
)
$branch
[
'branch_id'
]
:
null
);
}
if
(
bccomp
(
$fee
,
'0.01'
,
self
::
SCALE
)
<
0
)
{
if
(
bccomp
(
$fee
,
'0.01'
,
self
::
SCALE
)
<
0
)
{
return
[
'reversed'
=>
false
,
'amount'
=>
'0.00'
,
'error'
=>
null
];
return
[
'reversed'
=>
false
,
'amount'
=>
'0.00'
,
'error'
=>
null
];
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment