add bank acount information to pos entries list sharings part
This commit is contained in:
@@ -11,9 +11,11 @@ def pos_organizations_sharing_information(device: Device) -> typing.Any:
|
||||
|
||||
sharing_information_list = [{
|
||||
"organization_name": item.organization.name,
|
||||
# "credit_card": item.organization.bank_information.first().card if item.organization.bank_information.exists() else "",
|
||||
# "sheba": item.organization.bank_information.first().sheba,
|
||||
# "account": item.organization.bank_information.first().account,
|
||||
"bank_account": {
|
||||
"credit_card": item.organization.bank_information.first().card,
|
||||
"sheba": item.organization.bank_information.first().sheba,
|
||||
"account": item.organization.bank_information.first().account,
|
||||
} if item.organization.bank_information.exists() else {},
|
||||
"broker": item.broker.name if item.broker else None,
|
||||
"amount": item.broker_amount.value if item.broker else None
|
||||
} for item in stake_holders]
|
||||
|
||||
Reference in New Issue
Block a user