Commit 71064fb1 by Owo Sugiana

Bug fixed total tagihan saat kurang bayar

1 parent 042197c9
0.6.14 2026-10-05
-----------------
- Bug fixed total tagihan saat kurang bayar.
0.6.13 2026-10-03
-----------------
- Bug fixed saat query field tahun dibandingkan dengan string, seharusnya integer.
......
......@@ -358,7 +358,6 @@ class Inquiry(BaseInquiry):
self.hitung_tagihan()
self.hitung_denda()
self.hitung_bayar()
self.total = self.total_pokok + self.denda - self.total_bayar
if self.total_bayar:
if (total_bayar := self.total_bayar) >= self.pokok:
self.total_pokok -= self.pokok
......@@ -366,6 +365,8 @@ class Inquiry(BaseInquiry):
if total_bayar >= self.denda_pokok:
self.denda -= self.denda_pokok
self.denda_pokok = 0
self.total = self.total_pokok + self.denda - self.total_bayar
self.total_pokok -= self.total_bayar
if self.total < 0 or self.is_paid():
self.total = 0
......
......@@ -3,7 +3,7 @@ requires = ['setuptools >= 64']
[project]
name = 'opensipkd-pad-models'
version = '0.6.13'
version = '0.6.14'
dependencies = [
'sqlalchemy',
'zope.sqlalchemy',
......@@ -17,7 +17,7 @@ authors = [
]
description = 'Struktur tabel PAD'
readme = 'README.rst'
license = {text='PostgreSQL License'}
license = 'PostgreSQL'
classifiers = [
'Programming Language :: Python :: 3',
'Operating System :: OS Independent',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!