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 a67bc010
authored
Feb 05, 2024
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Kabupaten Cirebon menggunakan PAD versi 2
1 parent
dad6b43b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
7 deletions
CHANGES.txt
opensipkd/pad/models/cirebon_kab.py
opensipkd/pad/services/cirebon_kab.py
CHANGES.txt
View file @
a67bc01
0.5.3 2024-02-05
----------------
- Kabupaten Cirebon menggunakan PAD versi 2
0.5.2 2024-01-28
----------------
- Subang menggunakan PAD versi 2 dengan Invoice ID berawalan 4 digit kode
...
...
opensipkd/pad/models/cirebon_kab.py
View file @
a67bc01
from
sqlalchemy
import
(
Column
,
String
,
Integer
,
DateTime
,
ForeignKey
,
Text
,
UniqueConstraint
,
)
from
sqlalchemy.ext.declarative
import
declarative_base
from
.default
import
Invoice
Base
=
declarative_base
()
...
...
@@ -13,15 +14,23 @@ Base = declarative_base()
class
Kohir
(
Base
):
__tablename__
=
'pad_kohir'
id
=
Column
(
Integer
,
primary_key
=
True
)
tahun
=
Column
(
Integer
,
nullable
=
False
)
usaha_id
=
Column
(
Integer
)
kohirno
=
Column
(
Integer
,
nullable
=
False
)
spt_id
=
Column
(
Integer
,
ForeignKey
(
Invoice
.
id
),
nullable
=
False
)
kohirtgl
=
Column
(
DateTime
,
nullable
=
False
)
id
=
Column
(
Integer
,
primary_key
=
Tru
e
)
sptpd_id
=
Column
(
Integer
,
nullable
=
Fals
e
)
enabled
=
Column
(
Integer
)
create_date
=
Column
(
DateTime
)
create_uid
=
Column
(
Integer
)
write_date
=
Column
(
DateTime
)
write_uid
=
Column
(
Integer
)
posted
=
Column
(
Integer
)
__table_args__
=
(
dict
(
schema
=
'pad'
),)
is_cancel
=
Column
(
Integer
)
bap_no
=
Column
(
Text
)
bap_date
=
Column
(
DateTime
)
cancel_no
=
Column
(
Integer
)
cancel_date
=
Column
(
DateTime
)
cancel_uid
=
Column
(
Integer
)
__table_args__
=
(
UniqueConstraint
(
tahun
,
kohirno
,
usaha_id
),
dict
(
schema
=
'pad'
))
opensipkd/pad/services/cirebon_kab.py
View file @
a67bc01
from
datetime
import
date
from
..models.cirebon_kab
import
Kohir
from
..models.kuningan
import
Payment
from
.
default
import
(
from
.
banjar
import
(
Inquiry
as
BaseInquiry
,
Reversal
as
BaseReversal
,
AvailableInvoice
as
BaseAvailableInvoice
,
...
...
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