Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Owo Sugiana
/
sismiop-models
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 1f6990b6
authored
Jan 16, 2024
by
iwan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Bug fixed Kabupaten Kuningan
1 parent
ed7e0f9a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
sismiop/services/kuningan.py
sismiop/services/kuningan.py
View file @
1f6990b
from
datetime
import
date
from
datetime
import
date
from
sqlalchemy
import
func
from
opensipkd.hitung
import
round_up
from
..models.kuningan
import
PembayaranSppt
from
..models.kuningan
import
PembayaranSppt
from
.cilegon
import
(
from
.cilegon
import
(
Inquiry
as
BaseInquiry
,
Inquiry
as
BaseInquiry
,
Reversal
as
BaseReversal
,
Reversal
as
BaseReversal
,
AvailableInvoice
,
AvailableInvoice
,
)
)
from
.base
import
get_db_session
AKHIR_DISC
=
date
(
2023
,
12
,
31
)
AKHIR_DISC
=
date
(
2023
,
12
,
31
)
...
@@ -17,6 +20,7 @@ class Inquiry(BaseInquiry):
...
@@ -17,6 +20,7 @@ class Inquiry(BaseInquiry):
def
hitung_pokok
(
self
):
# Override
def
hitung_pokok
(
self
):
# Override
Payment
=
self
.
get_payment_model
()
Payment
=
self
.
get_payment_model
()
DBSession
=
get_db_session
()
q
=
DBSession
.
query
(
q
=
DBSession
.
query
(
func
.
sum
(
Payment
.
jml_sppt_yg_dibayar
)
.
func
.
sum
(
Payment
.
jml_sppt_yg_dibayar
)
.
label
(
'jml_sppt_yg_dibayar'
),
label
(
'jml_sppt_yg_dibayar'
),
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment