Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Project
/
import-sipkd-eis
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 fac04ebd
authored
Aug 26, 2017
by
aa.gusti
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
sipkd
1 parent
985e4f1c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
import-sipkd.py
import-sipkd.py
View file @
fac04eb
...
@@ -75,6 +75,7 @@ def validate_parent(tabel, departemen_kd, departemen_nm, rekening, tanggal):
...
@@ -75,6 +75,7 @@ def validate_parent(tabel, departemen_kd, departemen_nm, rekening, tanggal):
filter_by
(
tahun
=
str
(
row
.
tahun
),
filter_by
(
tahun
=
str
(
row
.
tahun
),
kode
=
row
.
kode
.
strip
(),
kode
=
row
.
kode
.
strip
(),
departemen_kd
=
departemen_kd
.
strip
(),
departemen_kd
=
departemen_kd
.
strip
(),
tanggal
=
tanggal
)
.
first
()
)
.
first
()
if
not
induk
:
if
not
induk
:
induk
=
tabel
()
induk
=
tabel
()
...
@@ -140,11 +141,11 @@ def import_by(all=False):
...
@@ -140,11 +141,11 @@ def import_by(all=False):
eis
.
jumlah
=
row
.
realisasi
eis
.
jumlah
=
row
.
realisasi
EisDBSession
.
add
(
eis
)
EisDBSession
.
add
(
eis
)
EisDBSession
.
flush
()
EisDBSession
.
flush
()
validate_parent
(
EisByPayment
,
eis
.
departemen_kd
,
eis
.
departemen_nm
,
eis
.
kode
)
validate_parent
(
EisByPayment
,
eis
.
departemen_kd
,
eis
.
departemen_nm
,
eis
.
kode
,
eis
.
tanggal
)
EisDBSession
.
commit
()
EisDBSession
.
commit
()
EisDBSession
.
commit
()
EisDBSession
.
commit
()
#
import_ap(True)
import_ap
(
True
)
import_by
(
True
)
import_by
(
True
)
calculate
(
EisApPayment
,
True
)
calculate
(
EisApPayment
,
True
)
calculate
(
EisByPayment
,
True
)
calculate
(
EisByPayment
,
True
)
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