Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Owo Sugiana
/
sismiop-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 c1022ad6
authored
Mar 25, 2024
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Tangsel tambah tabel tanpa discount pokok
1 parent
547325e0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
2 deletions
CHANGES.txt
sismiop/models/tangsel.py
sismiop/services/tangsel.py
CHANGES.txt
View file @
c1022ad
0.3.8 2024-03-25
----------------
- Discount Kabupaten Subang
- Kota Tangerang Selatan tambah tabel untuk yang tidak dapat discount pokok
0.3.7 2024-02-28
----------------
...
...
sismiop/models/tangsel.py
View file @
c1022ad
from
sqlalchemy
import
(
Column
,
Float
,
String
,
)
from
.default
import
(
Base
,
PembayaranSppt
as
BasePembayaranSppt
,
)
from
.default
import
PembayaranSppt
as
BasePembayaranSppt
class
PembayaranSppt
(
BasePembayaranSppt
):
__table_args__
=
dict
(
extend_existing
=
True
)
discount_pokok
=
Column
(
Float
)
discount_denda
=
Column
(
Float
)
class
TanpaDiscPokok
(
Base
):
__tablename__
=
'tanpa_disc_pokok'
nop
=
Column
(
String
(
18
),
nullable
=
False
,
primary_key
=
True
)
tahun
=
Column
(
String
(
4
),
nullable
=
False
,
primary_key
=
True
)
sismiop/services/tangsel.py
View file @
c1022ad
...
...
@@ -17,7 +17,10 @@ from .default import (
Reversal
as
BaseReversal
,
AvailableInvoice
as
BaseAvailableInvoice
,
)
from
..models.tangsel
import
PembayaranSppt
from
..models.tangsel
import
(
PembayaranSppt
,
TanpaDiscPokok
,
)
AWAL_DISC_1
=
date
(
2024
,
1
,
3
)
...
...
@@ -62,6 +65,13 @@ class Inquiry(BaseInquiry):
# faktor_pengurang = self.invoice.faktor_pengurang_sppt or 0
# if faktor_pengurang > 0:
# return 0
DBSession
=
get_db_session
()
nop
=
self
.
invoice_id_raw
[:
18
]
tahun
=
self
.
invoice
.
thn_pajak_sppt
q
=
DBSession
.
query
(
TanpaDiscPokok
)
.
filter_by
(
nop
=
nop
,
tahun
=
tahun
)
if
q
.
first
():
print
(
'Tanpa Discount Pokok'
)
return
0
disc
=
0
if
self
.
invoice
.
thn_pajak_sppt
==
'2024'
:
if
AWAL_DISC_1
<=
self
.
tgl_bayar
<=
AKHIR_DISC_1
:
...
...
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