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 50441a41
authored
Sep 17, 2020
by
taufikyu
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
revisi alamat
1 parent
309da8a5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
esipkd/tools.py
esipkd/views/arinvoice_b.py
esipkd/tools.py
View file @
50441a4
...
...
@@ -461,7 +461,7 @@ def _DTstrftime(chain):
def
_DTnumberformat
(
chain
):
import
locale
locale
.
setlocale
(
locale
.
LC_ALL
,
'id_ID.utf8'
)
locale
.
setlocale
(
locale
.
LC_ALL
,
get_settings
()[
'localization'
]
)
ret
=
locale
.
format
(
"
%
d"
,
chain
,
grouping
=
True
)
if
ret
:
return
ret
...
...
esipkd/views/arinvoice_b.py
View file @
50441a4
...
...
@@ -809,7 +809,7 @@ def view_pdf(request):
item
=
Item
()
item
.
opd
=
row
.
unit_nama
item
.
nama
=
row
.
wp_nama
item
.
alamat
=
row
.
wp_alamat_2
and
(
'{} {}'
.
format
(
row
.
wp_alamat_1
,
row
.
wp_alamat_2
))
or
row
.
wp_alamat_1
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
.
rek_nama
=
row
.
rek_nama
item
.
tahunskrd
=
row
.
tahun_id
item
.
tahun
=
datetime
.
now
()
.
year
...
...
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