fix - pos sharing on agc bug fixed influently
This commit is contained in:
@@ -40,3 +40,14 @@ def get_all_org_type_child(org_type: OrganizationType = None) -> typing.Any:
|
||||
descendants.append(child)
|
||||
descendants.extend(get_all_org_type_child(child))
|
||||
return descendants
|
||||
|
||||
|
||||
def get_bank_info(org):
|
||||
bank = org.bank_information.first()
|
||||
if not bank:
|
||||
return {}
|
||||
return {
|
||||
"credit_card": bank.card,
|
||||
"sheba": f"IR{bank.sheba}",
|
||||
"account": bank.account,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user