import - BankAccountDeviceLink for set device to a bank_account/changes in stakeholders & pos
This commit is contained in:
@@ -59,7 +59,7 @@ def pos_organizations_sharing_information(
|
||||
|
||||
sharing_information_list.append({
|
||||
"organization_name": item.organization.name,
|
||||
"bank_account": get_bank_info(item.organization),
|
||||
"bank_account": get_bank_info(item.organization, device=device),
|
||||
"broker": item.broker.name,
|
||||
"amount": broker_value_map.get(item.broker_id),
|
||||
"agency": False,
|
||||
@@ -115,11 +115,7 @@ def agency_organization_pos_info(
|
||||
|
||||
pos_sharing_list.append({
|
||||
"organization_name": agency.name,
|
||||
"bank_account": {
|
||||
"credit_card": agency.bank_information.first().card,
|
||||
"sheba": "IR" + agency.bank_information.first().sheba,
|
||||
"account": agency.bank_information.first().account,
|
||||
} if agency.bank_information.exists() else {},
|
||||
"bank_account": get_bank_info(org=agency, device=device),
|
||||
"amount": agc_share_amount,
|
||||
"agency": True,
|
||||
"default_account": True
|
||||
|
||||
Reference in New Issue
Block a user