Commit 08335cb4 authored by Fares's avatar Fares

fix(waiver): remove 'الانتقال إلى السداد' buttons from all waiver views

Debt tables still show for reference but the payment navigation button
is removed per user request — from create, show, and JS debt checker.
Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent 619c24d2
...@@ -48,10 +48,7 @@ ...@@ -48,10 +48,7 @@
</tr> </tr>
</tfoot> </tfoot>
</table> </table>
<div style="margin-top:12px;display:flex;align-items:center;gap:12px;"> <div style="margin-top:12px;">
<a href="/payments/process/<?= (int) $member['id'] ?>" class="btn btn-outline" style="padding:8px 16px;font-size:13px;color:#DC2626;border-color:#DC2626;">
الانتقال إلى السداد ←
</a>
<span style="font-size:12px;color:#7F1D1D;">يجب سداد جميع المبالغ المستحقة (بما فيها مديونيات التابعين) قبل تقديم طلب التنازل.</span> <span style="font-size:12px;color:#7F1D1D;">يجب سداد جميع المبالغ المستحقة (بما فيها مديونيات التابعين) قبل تقديم طلب التنازل.</span>
</div> </div>
</div> </div>
...@@ -189,7 +186,6 @@ ...@@ -189,7 +186,6 @@
</form> </form>
<?php else: ?> <?php else: ?>
<div style="padding:20px;text-align:center;"> <div style="padding:20px;text-align:center;">
<a href="/payments/process/<?= (int) $member['id'] ?>" class="btn btn-primary" style="background:#DC2626;">الانتقال إلى السداد</a>
<a href="/members/<?= (int) $member['id'] ?>" class="btn btn-outline">رجوع</a> <a href="/members/<?= (int) $member['id'] ?>" class="btn btn-outline">رجوع</a>
</div> </div>
<?php endif; ?> <?php endif; ?>
...@@ -280,7 +276,7 @@ function checkTargetDebts(memberId) { ...@@ -280,7 +276,7 @@ function checkTargetDebts(memberId) {
}); });
html += '</tbody></table>'; html += '</tbody></table>';
html += '<div style="margin-top:8px;font-size:13px;font-weight:700;color:#DC2626;">الإجمالي: ' + (data.total||'0') + ' ج.م</div>'; html += '<div style="margin-top:8px;font-size:13px;font-weight:700;color:#DC2626;">الإجمالي: ' + (data.total||'0') + ' ج.م</div>';
html += '<div style="margin-top:8px;"><a href="/payments/process/' + memberId + '" class="btn btn-outline" style="padding:6px 12px;font-size:12px;color:#DC2626;border-color:#DC2626;">الانتقال إلى السداد ←</a></div>'; html += '<div style="margin-top:8px;font-size:12px;color:#7F1D1D;">يجب سداد المديونيات قبل إتمام التنازل.</div>';
html += '</div>'; html += '</div>';
statusDiv.innerHTML = html; statusDiv.innerHTML = html;
window._targetHasDebts = true; window._targetHasDebts = true;
......
...@@ -62,11 +62,6 @@ $statusIcon = match($waiver['status']) { 'requested' => '⏳', 'approved' => ' ...@@ -62,11 +62,6 @@ $statusIcon = match($waiver['status']) { 'requested' => '⏳', 'approved' => '
</tr> </tr>
</tfoot> </tfoot>
</table> </table>
<div style="margin-top:10px;text-align:left;">
<a href="/payments/process/<?= (int) $waiver['source_member_id'] ?>" class="btn btn-outline" style="padding:6px 14px;font-size:12px;color:#DC2626;border-color:#DC2626;">
الانتقال إلى السداد ←
</a>
</div>
</div> </div>
<?php endif; ?> <?php endif; ?>
...@@ -101,11 +96,6 @@ $statusIcon = match($waiver['status']) { 'requested' => '⏳', 'approved' => ' ...@@ -101,11 +96,6 @@ $statusIcon = match($waiver['status']) { 'requested' => '⏳', 'approved' => '
</tr> </tr>
</tfoot> </tfoot>
</table> </table>
<div style="margin-top:10px;text-align:left;">
<a href="/payments/process/<?= (int) $waiver['target_member_id'] ?>" class="btn btn-outline" style="padding:6px 14px;font-size:12px;color:#DC2626;border-color:#DC2626;">
الانتقال إلى السداد ←
</a>
</div>
</div> </div>
<?php endif; ?> <?php endif; ?>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment