diff options
| author | Indoteknik . <it@fixcomart.co.id> | 2025-07-19 15:11:31 +0700 |
|---|---|---|
| committer | Indoteknik . <it@fixcomart.co.id> | 2025-07-19 15:11:31 +0700 |
| commit | 698e075cf3874d4eaf5ac3f44f4a5b1b1832b93c (patch) | |
| tree | 172a054173be40f39a85dfeadcdd78952eebdb41 /indoteknik_custom/models/down_payment.py | |
| parent | 09c24278d60eb5bc5a92ad9b3f5389d329641228 (diff) | |
(andri) add widget for remaining & due date, add validasi confirm payment
Diffstat (limited to 'indoteknik_custom/models/down_payment.py')
| -rw-r--r-- | indoteknik_custom/models/down_payment.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/indoteknik_custom/models/down_payment.py b/indoteknik_custom/models/down_payment.py index 920b1b5b..df6c0eba 100644 --- a/indoteknik_custom/models/down_payment.py +++ b/indoteknik_custom/models/down_payment.py @@ -143,8 +143,12 @@ class DownPayment(models.Model): def action_confirm_payment(self): - # Logic untuk konfirmasi pembayaran - return + for rec in self: + if not rec.attachment_file_image and not rec.attachment_file_pdf: + raise UserError('Tidak bisa konfirmasi pembayaran karena belum ada bukti attachment (PDF/Image).') + + rec.status_pay_down_payment = 'payment' + def action_approval_check(self): for record in self: |
