Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Taufik Yulianto
/
esipkd
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 4c93baf0
authored
Sep 18, 2020
by
taufikyu
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
update form no_skrd
1 parent
50441a41
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
4 deletions
esipkd/models/isipkd.py
esipkd/reports/skrd.odt
esipkd/views/arinvoice_b.py
esipkd/views/templates/arinvoice/add_b.pt
esipkd/models/isipkd.py
View file @
4c93baf
...
...
@@ -389,6 +389,8 @@ class ARInvoice(CommonModel, Base):
update_date
=
Column
(
DateTime
(
timezone
=
True
))
## Update 29 Agustus 2017 ##
denda_rekening_id
=
Column
(
Integer
,
nullable
=
True
,
default
=
0
)
## 17 Sep 2020
no_skrd
=
Column
(
String
(
128
))
subjekpajaks
=
relationship
(
"SubjekPajak"
,
backref
=
backref
(
'arinvoices'
))
objekpajaks
=
relationship
(
"ObjekPajak"
,
backref
=
backref
(
'arinvoices'
))
...
...
esipkd/reports/skrd.odt
View file @
4c93baf
No preview for this file type
esipkd/views/arinvoice_b.py
View file @
4c93baf
...
...
@@ -211,6 +211,10 @@ class AddSchema(colander.Schema):
missing
=
colander
.
drop
,
oid
=
"jumlah"
)
no_skrd
=
colander
.
SchemaNode
(
colander
.
String
(),
oid
=
"no_skrd"
)
class
EditSchema
(
AddSchema
):
id
=
colander
.
SchemaNode
(
colander
.
Integer
(),
...
...
@@ -808,11 +812,16 @@ def view_pdf(request):
row
=
DBSession
.
query
(
ARInvoice
)
.
filter_by
(
id
=
params
[
'id'
])
.
first
()
item
=
Item
()
item
.
opd
=
row
.
unit_nama
item
.
nama
=
row
.
wp_nama
item
.
alamat
=
(
row
.
wp_alamat_2
and
row
.
wp_alamat_2
!=
'-'
)
and
(
'{} {}'
.
format
(
row
.
wp_alamat_1
,
row
.
wp_alamat_2
))
or
row
.
wp_alamat_1
item
.
wp_nama
=
row
.
wp_nama
item
.
wp_alamat
=
(
row
.
wp_alamat_2
and
row
.
wp_alamat_2
!=
'-'
)
and
(
'{} {}'
.
format
(
row
.
wp_alamat_1
,
row
.
wp_alamat_2
))
or
row
.
wp_alamat_1
item
.
wp_kode
=
row
.
wp_kode
item
.
rek_nama
=
row
.
rek_nama
item
.
tahunskrd
=
row
.
tahun_id
item
.
tahun
=
datetime
.
now
()
.
year
item
.
periode_1
=
row
.
periode_1
item
.
periode_2
=
row
.
periode_2
item
.
kodebayar
=
row
.
kode
item
.
no_skrd
=
row
.
no_skrd
item
.
tahunskrd
=
row
.
tahun_id
item
.
tahun
=
datetime
.
now
()
.
year
item
.
jumlah
=
thousand
(
row
.
jumlah
)
item
.
jatuh_tempo
=
dmy
(
row
.
jatuh_tempo
)
item
.
terbilang
=
terbilang
(
row
.
jumlah
)
...
...
esipkd/views/templates/arinvoice/add_b.pt
View file @
4c93baf
...
...
@@ -125,6 +125,18 @@
${structure:field.serialize()}
</div>
</div>
<!--no_skrd -->
<div
class=
"form-group"
tal:define=
"field form['no_skrd']"
id=
"item-${field.oid}"
>
<label
for=
"${field.oid}"
class=
"control-label col-md-3"
id=
"req-${field.oid}"
>
${field.title}
<span
id=
"error-${field.oid}"
class=
"text text-danger"
tal:condition=
"field.required"
>
&
nbsp*
</span></label>
<div
class=
"col-md-9"
>
${structure:field.serialize()}
<p
id=
"error-${field.oid}"
class=
"help-block"
tal:condition=
"field.error"
tal:repeat=
"error field.error.messages()"
>
${error}
</p>
</div>
</div>
<!--tgl_tetap -->
<div
class=
"form-group"
tal:define=
"field form['tgl_tetap']"
id=
"item-${field.oid}"
>
<label
for=
"${field.oid}"
class=
"control-label col-md-3"
id=
"req-${field.oid}"
>
...
...
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