BdREN Finance
Project description
Setup
you need to add 3 variables in your settings.py file:
# settings.py
BDREN_FINANCE_URL = 'https://finance.bdren.net.bd'
BDREN_FINANCE_AUTH_EMAIL = 'your_username'
BDREN_FINANCE_AUTH_PASSWORD = 'your_password'
Usage
from bdren_finance import get_accounts, create_entry, update_entry
print(get_accounts(query='your_query'))
payload = {
"transNo": "",
"transDate": "2024-01-01",
"entryDate": "2024-01-01",
"generalParticular": "This is general Particular",
"vouchers": [
{
"accountNo": 15600005,
"accountName": "FDR with Jananta Bank -UGC Bhaban Branch",
"drAmount": 100,
"crAmount": 0,
"particular": "Bank will be debited",
"type": "dr"
},
{
"accountNo": 55500700,
"accountName": "Sub-Project Revenue - DUET",
"drAmount": 0,
"crAmount": 100,
"particular": "The university will be credited ",
"type": "cr"
}
]
}
print(create_entry(payload))
trans_no = 'your_trans_no'
print(update_entry(trans_no, payload))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bdren_finance-3.0.0.tar.gz
(2.7 kB
view hashes)