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 cbd12250
authored
Sep 17, 2022
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Bug fixed Kabupaten Cirebon
1 parent
a9eea102
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
sismiop/services/cirebon_kab.py
sismiop/services/cirebon_kab.py
View file @
cbd1225
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
.base
import
(
from
.base
import
get_db_session
get_db_session
,
Query
,
)
from
.default
import
(
from
.default
import
(
Inquiry
as
BaseInquiry
,
Inquiry
as
BaseInquiry
,
Reversal
as
BaseReversal
,
Reversal
as
BaseReversal
,
...
@@ -32,6 +31,7 @@ class Inquiry(BaseInquiry):
...
@@ -32,6 +31,7 @@ class Inquiry(BaseInquiry):
return
PembayaranSppt
return
PembayaranSppt
def
hitung_pokok
(
self
):
# Override
def
hitung_pokok
(
self
):
# Override
DBSession
=
get_db_session
()
Payment
=
self
.
get_payment_model
()
Payment
=
self
.
get_payment_model
()
q
=
DBSession
.
query
(
q
=
DBSession
.
query
(
func
.
sum
(
Payment
.
jml_sppt_yg_dibayar
)
.
func
.
sum
(
Payment
.
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