Merge pull request #6393 from KanchanChauhan/gl-fix
Against Voucher Type and Against Voucher added to GL
This commit is contained in:
commit
383cb43135
@ -91,6 +91,7 @@ def get_columns(filters):
|
|||||||
_("Voucher Type") + "::120", _("Voucher No") + ":Dynamic Link/"+_("Voucher Type")+":160",
|
_("Voucher Type") + "::120", _("Voucher No") + ":Dynamic Link/"+_("Voucher Type")+":160",
|
||||||
_("Against Account") + "::120", _("Party Type") + "::80", _("Party") + "::150",
|
_("Against Account") + "::120", _("Party Type") + "::80", _("Party") + "::150",
|
||||||
_("Project") + ":Link/Project:100", _("Cost Center") + ":Link/Cost Center:100",
|
_("Project") + ":Link/Project:100", _("Cost Center") + ":Link/Cost Center:100",
|
||||||
|
_("Against Voucher Type") + "::120", _("Against Voucher") + ":Dynamic Link/"+_("Against Voucher Type")+":160",
|
||||||
_("Remarks") + "::400"
|
_("Remarks") + "::400"
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -118,6 +119,7 @@ def get_gl_entries(filters):
|
|||||||
posting_date, account, party_type, party,
|
posting_date, account, party_type, party,
|
||||||
sum(debit) as debit, sum(credit) as credit,
|
sum(debit) as debit, sum(credit) as credit,
|
||||||
voucher_type, voucher_no, cost_center, project,
|
voucher_type, voucher_no, cost_center, project,
|
||||||
|
against_voucher_type, against_voucher,
|
||||||
remarks, against, is_opening {select_fields}
|
remarks, against, is_opening {select_fields}
|
||||||
from `tabGL Entry`
|
from `tabGL Entry`
|
||||||
where company=%(company)s {conditions}
|
where company=%(company)s {conditions}
|
||||||
@ -290,7 +292,7 @@ def get_result_as_list(data, filters):
|
|||||||
row += [d.get("debit_in_account_currency"), d.get("credit_in_account_currency")]
|
row += [d.get("debit_in_account_currency"), d.get("credit_in_account_currency")]
|
||||||
|
|
||||||
row += [d.get("voucher_type"), d.get("voucher_no"), d.get("against"),
|
row += [d.get("voucher_type"), d.get("voucher_no"), d.get("against"),
|
||||||
d.get("party_type"), d.get("party"), d.get("project"), d.get("cost_center"), d.get("remarks")
|
d.get("party_type"), d.get("party"), d.get("project"), d.get("cost_center"), d.get("against_voucher_type"), d.get("against_voucher"), d.get("remarks")
|
||||||
]
|
]
|
||||||
|
|
||||||
result.append(row)
|
result.append(row)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user