fix - pos sharing on agc bug fixed influently

This commit is contained in:
2025-12-22 09:42:22 +03:30
parent 4096dbbd6e
commit 65a826ab7f
8 changed files with 115 additions and 65 deletions

View File

@@ -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,
}