Gl Accounting
This app is responsible for managing simple accounting of `Glascutr Limited`
- Author: glascutr
- Repository: https://github.com/glascutr/gl_accounting
- GitHub stars: 0
- Forks: 0
- License: MIT
- Category: Accounting
- Maintenance: Minimally Maintained
Install Gl Accounting
bench get-app https://github.com/glascutr/gl_accounting
Add the Frappe Gems badge to your README
Maintain Gl Accounting? Paste this into your README:
[](https://frappegems.com/gems/apps/glascutr/gl_accounting)
About Gl Accounting
### GL Accounting
Simple Acounting for money craft.
### Installation
You can install this app using the [bench](https://github.com/frappe/bench) CLI:
```bash
cd $PATH_TO_YOUR_BENCH
bench get-app $URL_OF_THIS_REPO --branch main
bench install-app gl_accounting
```
### Contributing
This app uses `pre-commit` for code formatting and linting. Please [install pre-commit](https://pre-commit.com/#installation) and enable it for this repository:
```bash
cd apps/gl_accounting
pre-commit install
```
Pre-commit is configured to use the following tools for checking and formatting your code:
- ruff
- eslint
- prettier
- pyupgrade
### CI
This app can use GitHub Actions for CI. The following workflows are configured:
- CI: Installs this app and runs unit tests on every push to `develop` branch.
- Linters: Runs [Frappe Semgrep Rules](https://github.com/frappe/semgrep-rules) and [pip-audit](https://pypi.org/project/pip-audit/) on every pull request.
### License
mit
# HTML
```
{% for tr in transactions %}
{% if tr.type == 'Cash Amount'%}
{% elif tr.type == 'Expencess Amount' %}
{% elif tr.type == 'Bank Debit' %}
{% elif tr.type == 'Bank Credit' %}
{% endif %}
{% endfor%}
```
# Context
```
context.transactions = frappe.db.get_all("Transaction", fields="*")
```
# Script
```
function printTable() {
let printContents = document.getElementById("print-area").innerHTML;
let originalContents = document.body.innerHTML;
document.body.innerHTML = printContents;
window.print();
document.body.innerHTML = originalContents;
location.reload();
}
```
# Style
```
@media print {
.no-print {
display: none !important;
}
}
```
# SQL with python script
```
total_cash_amount = frappe.db.sql("""
SELECT SUM(amount)
FROM `tabTransaction`
WHERE type='Cash Amount'
""")[0][0]
print("Total Cash =", total_cash_amount)
#
# -------------------
#
total_cash_amount = frappe.db.sql("""
SELECT SUM(amount)
FROM `tabTransaction`
WHERE type='Cash Amount' or type='Bank Credit'
""")[0][0]
print("Total Cash =", total_cash_amount)
```
transactions = frappe.db.sql("""
SELECT
tr.date,
tr.particulars,
tr.cheque,
tr.voucher_type,
tr.folio_no,
tr.type,
tr.amount,
ah.name1
FROM `tabTransaction` tr
INNER JOIN `tabAccounts Head` ah
ON tr.accounts_head = ah.name
""")
GLASCUTR LIMITED
Regent Red Wood, House 3/A, Unit B4, Road 2, Gulshan-1, Dhaka-1212, Bangladesh
Transaction List
| Date | Particulars | Cheque | Folio | Cash Amount | Expencess Amount | Bank Debit | Bank Credit | Account Head | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {% if tr.date %} {{ tr.date.strftime("%d-%m-%Y") }} {% endif %} |
{% if tr.particulars %} {% for i in range(0, tr.particulars|length,
45) %} {{ tr.particulars[i:i+45] }} {% endfor %} {% endif %} |
{% if tr.cheque %} {{ tr.cheque }} {% endif %} | {% if tr.voucher_type %} {{ tr.voucher_type }} {% endif %} | {% if tr.folio_no %} {{ tr.folio_no }} {% endif %} | {{tr.amount}} | {{tr.amount}} | {{tr.amount}} | {{tr.amount}} | {% if tr.accounts_head %} {{frappe.get_doc("Accounts Head", tr.accounts_head, fields=["name1"]).name1 }} {% endif %} | ||||||||||||
Related Accounting apps for Frappe & ERPNext
- Books — Free Accounting Software
- Lending — Open Source Lending software
- Payments — A payments app for frappe
- Banking — Load your bank transactions into ERPNext and reconcile them with your vouchers.
- Erpnext Quota — App to manage ERPNext Site, User, Company and Space limitations
- Utility Billing — The Utility Billing & Property Management App is a powerful addition to ERPNext, designed to streamline utility billing, property leasing, and tenant management. Ideal for municipal utilities, real estate managers, and property developers.
- Expense Request — ERPNext Expense Requests
- Vendor Payments — A frappe app that has workflows and reports to make payments to vendors by a company and track them