Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Owo Sugiana
/
opensipkd-bphtb-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 2a692820
authored
Nov 18, 2020
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Tambah Kota Banjar
1 parent
0ead0f56
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
125 additions
and
28 deletions
CHANGES.txt
opensipkd/bphtb/models/banjar.py
opensipkd/bphtb/models/default.py
opensipkd/bphtb/models/invoice.py
opensipkd/bphtb/models/kecamatan.py
opensipkd/bphtb/models/kelurahan.py
opensipkd/bphtb/models/payment.py
opensipkd/bphtb/services/banjar.py
CHANGES.txt
View file @
2a69282
0.3.1 2020-11-18
----------------
- Tambah Kota Banjar
0.3 2020-11-15
0.3 2020-11-15
--------------
--------------
- Penyesuaian untuk Kabupaten Cirebon
- Penyesuaian untuk Kabupaten Cirebon
...
...
opensipkd/bphtb/models/banjar.py
0 → 100644
View file @
2a69282
from
sqlalchemy
import
(
Column
,
Integer
,
ForeignKey
,
)
from
sqlalchemy.ext.declarative
import
(
declarative_base
,
declared_attr
,
)
from
.provinsi
import
ProvinsiMixin
from
.kabupaten
import
KabupatenMixin
from
.kecamatan
import
KecamatanMixin
from
.kelurahan
import
KelurahanMixin
from
.customer
import
CustomerMixin
from
.perolehan
import
PerolehanMixin
from
.invoice
import
InvoiceMixin
from
.payment
import
BasePaymentMixin
from
.iso_payment
import
IsoPaymentMixin
from
.iso_reversal
import
IsoReversalMixin
Base
=
declarative_base
()
class
Provinsi
(
ProvinsiMixin
,
Base
):
pass
class
Kabupaten
(
KabupatenMixin
,
Base
):
pass
class
Kecamatan
(
KecamatanMixin
,
Base
):
__table_args__
=
dict
(
schema
=
None
)
class
Kelurahan
(
KelurahanMixin
,
Base
):
__table_args__
=
dict
(
schema
=
None
)
class
Customer
(
CustomerMixin
,
Base
):
pass
class
Perolehan
(
PerolehanMixin
,
Base
):
pass
class
Invoice
(
InvoiceMixin
,
Base
):
pass
class
Payment
(
BasePaymentMixin
,
Base
):
pass
class
IsoPayment
(
IsoPaymentMixin
,
Base
):
pass
class
IsoReversal
(
IsoReversalMixin
,
Base
):
__table_args__
=
dict
(
schema
=
None
)
id
=
Column
(
Integer
,
ForeignKey
(
'bphtb_payment.id'
),
primary_key
=
True
)
opensipkd/bphtb/models/default.py
View file @
2a69282
# Kabupaten Tangerang
# Kabupaten Tangerang
from
sqlalchemy.ext.declarative
import
declarative_base
from
sqlalchemy.ext.declarative
import
(
declarative_base
,
declared_attr
,
)
from
.provinsi
import
ProvinsiMixin
from
.provinsi
import
ProvinsiMixin
from
.kabupaten
import
KabupatenMixin
from
.kabupaten
import
KabupatenMixin
from
.kecamatan
import
KecamatanMixin
from
.kecamatan
import
KecamatanMixin
...
...
opensipkd/bphtb/models/invoice.py
View file @
2a69282
...
@@ -406,9 +406,9 @@ class InvoiceMixin:
...
@@ -406,9 +406,9 @@ class InvoiceMixin:
def
ketetapan_jatuh_tempo_tgl
(
self
):
def
ketetapan_jatuh_tempo_tgl
(
self
):
return
Column
(
DateTime
)
return
Column
(
DateTime
)
@declared_attr
#
@declared_attr
def
pembayaran_ke
(
self
):
#
def pembayaran_ke(self):
return
Column
(
Integer
,
nullable
=
False
)
#
return Column(Integer, nullable=False)
@declared_attr
@declared_attr
def
mutasi_penuh
(
self
):
def
mutasi_penuh
(
self
):
...
@@ -434,25 +434,25 @@ class InvoiceMixin:
...
@@ -434,25 +434,25 @@ class InvoiceMixin:
# def sts_id(self):
# def sts_id(self):
# return Column(Integer, nullable=False)
# return Column(Integer, nullable=False)
@declared_attr
#
@declared_attr
def
bng_luas_beban
(
self
):
#
def bng_luas_beban(self):
return
Column
(
Integer
)
#
return Column(Integer)
@declared_attr
#
@declared_attr
def
bng_njop_beban
(
self
):
#
def bng_njop_beban(self):
return
Column
(
Integer
)
#
return Column(Integer)
# @declared_attr
# @declared_attr
# def bphtb_sudah_dibayarkan_tgl(self):
# def bphtb_sudah_dibayarkan_tgl(self):
# return Column(Date)
# return Column(Date)
@declared_attr
#
@declared_attr
def
bumi_luas_beban
(
self
):
#
def bumi_luas_beban(self):
return
Column
(
Integer
)
#
return Column(Integer)
@declared_attr
#
@declared_attr
def
bumi_njop_beban
(
self
):
#
def bumi_njop_beban(self):
return
Column
(
Integer
)
#
return Column(Integer)
@declared_attr
@declared_attr
def
wp_alamat_asal
(
self
):
def
wp_alamat_asal
(
self
):
...
...
opensipkd/bphtb/models/kecamatan.py
View file @
2a69282
...
@@ -11,6 +11,10 @@ class KecamatanMixin:
...
@@ -11,6 +11,10 @@ class KecamatanMixin:
return
'ref_kecamatan'
return
'ref_kecamatan'
@declared_attr
@declared_attr
def
__table_args__
(
self
):
return
dict
(
schema
=
'pbb'
)
@declared_attr
def
kd_propinsi
(
self
):
def
kd_propinsi
(
self
):
return
Column
(
String
(
2
),
primary_key
=
True
)
return
Column
(
String
(
2
),
primary_key
=
True
)
...
@@ -25,7 +29,3 @@ class KecamatanMixin:
...
@@ -25,7 +29,3 @@ class KecamatanMixin:
@declared_attr
@declared_attr
def
nm_kecamatan
(
self
):
def
nm_kecamatan
(
self
):
return
Column
(
String
(
30
),
nullable
=
False
)
return
Column
(
String
(
30
),
nullable
=
False
)
@declared_attr
def
__table_args__
(
self
):
return
dict
(
schema
=
'pbb'
)
opensipkd/bphtb/models/kelurahan.py
View file @
2a69282
...
@@ -12,6 +12,10 @@ class KelurahanMixin:
...
@@ -12,6 +12,10 @@ class KelurahanMixin:
return
'ref_kelurahan'
return
'ref_kelurahan'
@declared_attr
@declared_attr
def
__table_args__
(
self
):
return
dict
(
schema
=
'pbb'
)
@declared_attr
def
kd_propinsi
(
self
):
def
kd_propinsi
(
self
):
return
Column
(
String
(
2
),
primary_key
=
True
)
return
Column
(
String
(
2
),
primary_key
=
True
)
...
@@ -42,7 +46,3 @@ class KelurahanMixin:
...
@@ -42,7 +46,3 @@ class KelurahanMixin:
@declared_attr
@declared_attr
def
kd_pos_kelurahan
(
self
):
def
kd_pos_kelurahan
(
self
):
return
Column
(
String
(
5
))
return
Column
(
String
(
5
))
@declared_attr
def
__table_args__
(
self
):
return
dict
(
schema
=
'pbb'
)
opensipkd/bphtb/models/payment.py
View file @
2a69282
...
@@ -9,7 +9,7 @@ from sqlalchemy import (
...
@@ -9,7 +9,7 @@ from sqlalchemy import (
from
sqlalchemy.ext.declarative
import
declared_attr
from
sqlalchemy.ext.declarative
import
declared_attr
class
PaymentMixin
:
class
Base
PaymentMixin
:
@declared_attr
@declared_attr
def
__tablename__
(
self
):
def
__tablename__
(
self
):
return
'bphtb_bank'
return
'bphtb_bank'
...
@@ -214,9 +214,9 @@ class PaymentMixin:
...
@@ -214,9 +214,9 @@ class PaymentMixin:
# def wp_propinsi(self):
# def wp_propinsi(self):
# return Column(String(100))
# return Column(String(100))
@declared_attr
#
@declared_attr
def
pembayaran_ke
(
self
):
#
def pembayaran_ke(self):
return
Column
(
Integer
,
nullable
=
False
)
#
return Column(Integer, nullable=False)
# @declared_attr
# @declared_attr
# def sts_id(self):
# def sts_id(self):
...
@@ -231,3 +231,9 @@ class PaymentMixin:
...
@@ -231,3 +231,9 @@ class PaymentMixin:
return
(
return
(
UniqueConstraint
(
'tanggal'
,
'jam'
,
'seq'
,
'transno'
),
UniqueConstraint
(
'tanggal'
,
'jam'
,
'seq'
,
'transno'
),
dict
(
schema
=
'bphtb'
))
dict
(
schema
=
'bphtb'
))
class
PaymentMixin
(
BasePaymentMixin
):
@declared_attr
def
pembayaran_ke
(
self
):
return
Column
(
Integer
,
nullable
=
False
)
opensipkd/bphtb/services/banjar.py
0 → 100644
View file @
2a69282
from
..models.banjar
import
(
Invoice
,
Kecamatan
,
Kelurahan
,
)
from
.default
import
(
Inquiry
as
BaseInquiry
,
Reversal
,
AvailableInvoice
as
BaseAvailableInvoice
,
)
class
Inquiry
(
BaseInquiry
):
invoice_model
=
Invoice
kecamatan_model
=
Kecamatan
kelurahan_model
=
Kelurahan
class
AvailableInvoice
(
BaseAvailableInvoice
):
incoice_model
=
Invoice
inquiry_cls
=
Inquiry
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