Commit 78717c0e by Owo Sugiana

Kota Cimahi tambah ORM Perolehan

1 parent eda60a06
0.4.12 2026-06-21
-----------------
- Kota Cimahi tambah ORM Perolehan untuk digunakan di payment report.
0.4.11 2026-06-13 0.4.11 2026-06-13
----------------- -----------------
- Tambah Kota Cimahi - Tambah Kota Cimahi
......
...@@ -6,6 +6,7 @@ from sqlalchemy import ( ...@@ -6,6 +6,7 @@ from sqlalchemy import (
Float, Float,
Text, Text,
UniqueConstraint, UniqueConstraint,
ForeignKey,
) )
from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.ext.declarative import declarative_base
...@@ -19,6 +20,12 @@ class Notaris(Base): ...@@ -19,6 +20,12 @@ class Notaris(Base):
nama_ppat = Column(Text, nullable=False) nama_ppat = Column(Text, nullable=False)
class Perolehan(Base):
__tablename__ = 'r_hak_perolehan'
kode = Column(String(2), primary_key=True)
uraian = Column(Text, nullable=False, unique=True)
class Invoice(Base): class Invoice(Base):
__tablename__ = 'bookppat' __tablename__ = 'bookppat'
doc_id = Column(Integer, primary_key=True) doc_id = Column(Integer, primary_key=True)
...@@ -66,7 +73,7 @@ class Invoice(Base): ...@@ -66,7 +73,7 @@ class Invoice(Base):
nilai_bang = Column(Integer) nilai_bang = Column(Integer)
njop_pbb = Column(Integer) njop_pbb = Column(Integer)
harga_tran = Column(Integer) harga_tran = Column(Integer)
kd_jphtb = Column(String(2)) kd_jphtb = Column(String(2), ForeignKey(Perolehan.kode))
pecah_bag = Column(Integer) pecah_bag = Column(Integer)
dari_bag = Column(Integer) dari_bag = Column(Integer)
npop = Column(Integer) npop = Column(Integer)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!