Gitiles
Code Review
Sign In
git.clicks.codes
/
Clicks
/
Forks
/
ERPNext
/
ac816f4fed0a557c821fabb1a0d9e803d7e367ae
/
.
/
erpnext
/
non_profit
/
utils.py
blob: 47ea5f5783275369802fb4520a204286531e36d9 [
file
] [
log
] [
blame
]
import
frappe
def
get_company
():
company
=
frappe
.
defaults
.
get_defaults
().
company
if
company
:
return
company
else
:
company
=
frappe
.
get_list
(
"Company"
,
limit
=
1
)
if
company
:
return
company
[
0
].
name
return
None