Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
aa.gusti
/
eis
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 1e43b80c
authored
Jun 11, 2025
by
aa.gustiana@gmail.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
perhitungan pbb
1 parent
68251610
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
9 deletions
eispajak/models/payment.py
eispajak/views/pcpd.py
eispajak/views/templates/pcpd.pt
eispajak/models/payment.py
View file @
1e43b80
from
datetime
import
timedelta
,
datetime
from
datetime
import
timedelta
,
datetime
import
sys
import
sys
from
opensipkd.base.models
import
(
from
opensipkd.base.models
import
(
Base
,
DBSession
,
CommonModel
,
DefaultModel
,
NamaModel
,
KodeModel
,
DBSession
,
Base
,
CommonModel
,
DefaultModel
,
NamaModel
,
KodeModel
,
TABLE_ARGS
TABLE_ARGS
)
)
from
sqlalchemy
import
(
Column
,
Integer
,
DateTime
,
String
,
Text
,
ForeignKey
,
Float
,
from
sqlalchemy
import
(
Column
,
Integer
,
DateTime
,
String
,
Text
,
ForeignKey
,
Float
,
...
@@ -59,9 +59,20 @@ class PaymentPBB(PCBase, DefaultModel):
...
@@ -59,9 +59,20 @@ class PaymentPBB(PCBase, DefaultModel):
UniqueConstraint
(
'stan'
,
'ntb'
),
UniqueConstraint
(
'stan'
,
'ntb'
),
)
)
@classmethod
def
qry_sum
(
cls
,
columns
=
[]):
qry
=
PCDBSession
.
query
(
func
.
sum
(
cls
.
jml_sppt_yg_dibayar
)
.
label
(
'bayar'
),
func
.
sum
(
cls
.
denda_sppt
)
.
label
(
'denda'
),
func
.
count
(
cls
.
id
)
.
label
(
'trx'
))
.
select_from
(
cls
)
for
col
in
columns
:
qry
=
qry
.
add_columns
(
col
)
return
qry
@classmethod
@classmethod
def
sum_data
(
cls
):
def
sum_data
(
cls
):
return
DBSession
.
query
(
return
PC
DBSession
.
query
(
func
.
to_char
(
cls
.
tgl_pembayaran_sppt
,
func
.
to_char
(
cls
.
tgl_pembayaran_sppt
,
'yyyy-mm-dd'
)
.
label
(
'tanggal'
),
'yyyy-mm-dd'
)
.
label
(
'tanggal'
),
func
.
sum
(
cls
.
jml_sppt_yg_dibayar
)
.
label
(
'bayar'
),
func
.
sum
(
cls
.
jml_sppt_yg_dibayar
)
.
label
(
'bayar'
),
...
@@ -109,7 +120,7 @@ class PaymentBPHTB(PCBase, CommonModel):
...
@@ -109,7 +120,7 @@ class PaymentBPHTB(PCBase, CommonModel):
@classmethod
@classmethod
def
sum_data
(
cls
):
def
sum_data
(
cls
):
return
DBSession
.
query
(
func
.
sum
(
cls
.
nilai_bphtb
)
.
label
(
'bayar'
),
return
PC
DBSession
.
query
(
func
.
sum
(
cls
.
nilai_bphtb
)
.
label
(
'bayar'
),
func
.
sum
(
'0'
)
.
label
(
'denda'
))
func
.
sum
(
'0'
)
.
label
(
'denda'
))
@classmethod
@classmethod
...
@@ -165,7 +176,7 @@ class PaymentPAD(PCBase, CommonModel):
...
@@ -165,7 +176,7 @@ class PaymentPAD(PCBase, CommonModel):
@classmethod
@classmethod
def
sum_data
(
cls
):
def
sum_data
(
cls
):
return
DBSession
.
query
(
func
.
sum
(
cls
.
jml_bayar
)
.
label
(
'bayar'
),
return
PC
DBSession
.
query
(
func
.
sum
(
cls
.
jml_bayar
)
.
label
(
'bayar'
),
func
.
sum
(
cls
.
denda
+
cls
.
bunga
)
.
label
(
'denda'
))
func
.
sum
(
cls
.
denda
+
cls
.
bunga
)
.
label
(
'denda'
))
@classmethod
@classmethod
...
@@ -208,7 +219,7 @@ class PaymentWEBR(PCBase, CommonModel):
...
@@ -208,7 +219,7 @@ class PaymentWEBR(PCBase, CommonModel):
@classmethod
@classmethod
def
sum_data
(
cls
):
def
sum_data
(
cls
):
return
DBSession
.
query
(
func
.
sum
(
cls
.
jml_bayar
)
.
label
(
'bayar'
),
return
PC
DBSession
.
query
(
func
.
sum
(
cls
.
jml_bayar
)
.
label
(
'bayar'
),
func
.
sum
(
cls
.
denda
)
.
label
(
'denda'
))
func
.
sum
(
cls
.
denda
)
.
label
(
'denda'
))
@classmethod
@classmethod
...
...
eispajak/views/pcpd.py
View file @
1e43b80
This diff is collapsed.
Click to expand it.
eispajak/views/templates/pcpd.pt
View file @
1e43b80
...
@@ -349,6 +349,7 @@
...
@@ -349,6 +349,7 @@
$
(
"#rangeType"
).
change
(
function
()
{
$
(
"#rangeType"
).
change
(
function
()
{
trendChart
();
trendChart
();
});
});
$
().
datarefresh
();
});
});
function
addData
(
chart
,
data
)
{
function
addData
(
chart
,
data
)
{
labels
=
[];
labels
=
[];
...
@@ -415,6 +416,11 @@
...
@@ -415,6 +416,11 @@
}
else
{
}
else
{
console
.
log
(
"Request failed."
);
console
.
log
(
"Request failed."
);
}
}
setTimeout
(
function
()
{
console
.
log
(
"timeout"
);
$
().
datarefresh
();
},
15000
);
});
});
// $().get_realisasi();
// $().get_realisasi();
// $().get_harian();
// $().get_harian();
...
@@ -423,10 +429,6 @@
...
@@ -423,10 +429,6 @@
}
}
setTimeout
(
function
()
{
console
.
log
(
"timeout"
);
$
().
datarefresh
();
},
1
);
</script>
</script>
...
...
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