Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gnukhata
gkcore
Commits
6b9460ff
Commit
6b9460ff
authored
Jan 10, 2018
by
Krishnakant Mane
Browse files
Merge branch 'autovchno' into 'devel'
Refinement in the wording of vouchertype See merge request !30
parents
a6bf5a52
6f6adc47
Changes
1
Hide whitespace changes
Inline
Side-by-side
gkcore/views/api_transaction.py
View file @
6b9460ff
...
...
@@ -24,6 +24,7 @@ Contributors:
"Ishan Masdekar " <imasdekar@dff.org.in>
"Navin Karkera" <navin@dff.org.in>
"Vanita Rajpurohit" <vanita.rajpurohit9819@gmail.com>
'Prajkta Patkar' <prajkta@riseup.net>
"""
...
...
@@ -85,13 +86,13 @@ class api_transaction(object):
initialType
=
"sl"
if
voucherType
==
"purchase"
:
initialType
=
"pu"
if
voucherType
==
"credit
N
ote"
:
if
voucherType
==
"credit
n
ote"
:
initialType
=
"cn"
if
voucherType
==
"debit
N
ote"
:
if
voucherType
==
"debit
n
ote"
:
initialType
=
"dn"
if
voucherType
==
"sale
R
eturn"
:
if
voucherType
==
"sale
r
eturn"
:
initialType
=
"sr"
if
voucherType
==
"purchase
R
eturn"
:
if
voucherType
==
"purchase
r
eturn"
:
initialType
=
"pr"
vchCountResult
=
self
.
con
.
execute
(
"select count(vouchercode) as vcount from vouchers where orgcode = %d"
%
(
int
(
orgcode
)))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
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 comment