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
2b5cdaf2
Commit
2b5cdaf2
authored
Jan 10, 2018
by
Prajkta_Patkar
Browse files
changed case of v type
parent
54358bc6
Changes
1
Hide whitespace changes
Inline
Side-by-side
gkcore/views/api_transaction.py
View file @
2b5cdaf2
...
...
@@ -73,25 +73,25 @@ class api_transaction(object):
Generates a new vouchernumber based on vouchertype and max count for that type.
"""
initialType
=
""
if
voucherType
==
"
J
ournal"
:
if
voucherType
==
"
j
ournal"
:
initialType
=
"jr"
if
voucherType
==
"
C
ontra"
:
if
voucherType
==
"
c
ontra"
:
initialType
=
"cr"
if
voucherType
==
"
P
ayment"
:
if
voucherType
==
"
p
ayment"
:
initialType
=
"pt"
if
voucherType
==
"
R
eceipt"
:
if
voucherType
==
"
r
eceipt"
:
initialType
=
"rt"
if
voucherType
==
"
S
ales"
:
if
voucherType
==
"
s
ales"
:
initialType
=
"sl"
if
voucherType
==
"
P
urchase"
:
if
voucherType
==
"
p
urchase"
:
initialType
=
"pu"
if
voucherType
==
"
C
redit Note"
:
if
voucherType
==
"
c
redit Note"
:
initialType
=
"cn"
if
voucherType
==
"
D
ebit Note"
:
if
voucherType
==
"
d
ebit Note"
:
initialType
=
"dn"
if
voucherType
==
"
S
ale Return"
:
if
voucherType
==
"
s
ale Return"
:
initialType
=
"sr"
if
voucherType
==
"
P
urchase Return"
:
if
voucherType
==
"
p
urchase Return"
:
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