Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Owo Sugiana
/
opensipkd-pad-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 45d884ac
authored
Jan 04, 2024
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Tahun terbit 2024 diizinkan
1 parent
9ed5dbeb
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
0 additions
and
28 deletions
opensipkd/pad/services/banjar.py
opensipkd/pad/services/bekasi_kab.py
opensipkd/pad/services/ciamis.py
opensipkd/pad/services/cirebon_kab.py
opensipkd/pad/services/kuningan.py
opensipkd/pad/services/pangandaran.py
opensipkd/pad/services/subang.py
opensipkd/pad/services/banjar.py
View file @
45d884a
...
...
@@ -12,10 +12,6 @@ from ..models.banjar import (
class
Inquiry
(
BaseInquiry
):
# Cekal 2024, Pak Yasir, 3-1-2024
def
is_available
(
self
):
return
super
()
.
is_available
()
and
self
.
tahun_terbit
<
2024
def
get_invoice_model
(
self
):
# Override
return
Invoice
...
...
opensipkd/pad/services/bekasi_kab.py
View file @
45d884a
...
...
@@ -89,10 +89,6 @@ NOTE_TGL_TERIMA = 'field terimatgl {tgl} >= ' + dmy(AKHIR_TERIMA)
class
Inquiry
(
BaseInquiry
):
invoice_id_structure
=
INVOICE_ID
# Cekal 2024, Pak Yasir, 2-1-2024
def
is_available
(
self
):
# Override
return
super
()
.
is_available
()
and
self
.
tahun_terbit
<
2024
def
hitung_denda
(
self
):
# Override
bunga
=
self
.
invoice
.
bunga
or
0
self
.
denda
=
self
.
bunga
=
round_up
(
bunga
)
...
...
opensipkd/pad/services/ciamis.py
View file @
45d884a
...
...
@@ -17,10 +17,6 @@ INVOICE_ID = [
class
Inquiry
(
BaseInquiry
):
invoice_id_structure
=
INVOICE_ID
# Cekal 2024, Iwan, 4-1-2024
def
is_available
(
self
):
# Override
return
super
()
.
is_available
()
and
self
.
tahun_terbit
<
2024
def
get_kohir_model
(
self
):
# Override
return
Kohir
...
...
opensipkd/pad/services/cirebon_kab.py
View file @
45d884a
...
...
@@ -22,10 +22,6 @@ AKHIR_DISC = date(2022, 3, 31)
class
Inquiry
(
BaseInquiry
):
invoice_id_structure
=
INVOICE_ID
# Cekal 2024, Pak Yasir, 2-1-2024
def
is_available
(
self
):
# Override
return
super
()
.
is_available
()
and
self
.
tahun_terbit
<
2024
def
get_discount_denda
(
self
):
# Override
tgl_bayar
=
self
.
tgl_bayar
.
date
()
if
tgl_bayar
<=
AKHIR_DISC
:
...
...
opensipkd/pad/services/kuningan.py
View file @
45d884a
...
...
@@ -21,10 +21,6 @@ NOTE_TAHUN = str(AWAL_TAHUN) + ' <= field tahun {tahun} <= ' + str(AKHIR_TAHUN)
class
Inquiry
(
BaseInquiry
):
# Cekal 2024, Pak Yasir, 3-1-2024
def
is_available
(
self
):
# Override
return
super
()
.
is_available
()
and
self
.
tahun_terbit
<
2024
def
get_discount_denda
(
self
):
# Override
tgl_bayar
=
self
.
tgl_bayar
.
date
()
if
tgl_bayar
>
AKHIR_TGL_BAYAR
:
...
...
opensipkd/pad/services/pangandaran.py
View file @
45d884a
...
...
@@ -7,10 +7,6 @@ from ..models.ciamis import Kohir
class
Inquiry
(
BaseInquiry
):
# Cekal 2024, Pak Yasir, 3-1-2024
def
is_available
(
self
):
return
super
()
.
is_available
()
and
self
.
tahun_terbit
<
2024
def
get_kohir_model
(
self
):
# Override
return
Kohir
...
...
opensipkd/pad/services/subang.py
View file @
45d884a
...
...
@@ -17,10 +17,6 @@ AKHIR_TGL_BAYAR = date(2021, 12, 31)
class
Inquiry
(
BaseInquiry
):
# Cekal 2024, Pak Yasir, 2-1-2024
def
is_available
(
self
):
# Override
return
super
()
.
is_available
()
and
self
.
tahun_terbit
<
2024
def
get_discount_denda
(
self
):
# Override
tgl_bayar
=
self
.
tgl_bayar
.
date
()
if
self
.
invoice
.
tahun
==
2020
and
self
.
invoice
.
sptno
==
6307
:
...
...
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