From fc0f7d776f83f8bc8b3b194b0362de3e27aa1baa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Rold=C3=A1n?= Date: Mon, 8 Jan 2024 16:17:35 -0300 Subject: [PATCH 1/5] feat: Filter check run settings print format to only show enabled and Payment Entry formats (#186) --- .../doctype/check_run_settings/check_run_settings.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/check_run/check_run/doctype/check_run_settings/check_run_settings.js b/check_run/check_run/doctype/check_run_settings/check_run_settings.js index 792b9c3e..9ba74675 100644 --- a/check_run/check_run/doctype/check_run_settings/check_run_settings.js +++ b/check_run/check_run/doctype/check_run_settings/check_run_settings.js @@ -19,5 +19,13 @@ frappe.ui.form.on('Check Run Settings', { }, } }) + frm.set_query('print_format', () => { + return { + filters: { + disabled: 0, + doc_type: 'Payment Entry', + }, + } + }) }, }) From ecfde58d1cb41747f96e3e6c390b8ca75afdd3f2 Mon Sep 17 00:00:00 2001 From: AgriTheory Date: Mon, 8 Jan 2024 19:18:24 +0000 Subject: [PATCH 2/5] 14.11.0 Automatically generated by python-semantic-release --- CHANGELOG.md | 11 +++++++++++ check_run/__init__.py | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 842ee86b..2a9283ba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,17 @@ +## v14.11.0 (2024-01-08) + +### Feature + +* feat: Filter check run settings print format to only show enabled and Payment Entry formats (#186) ([`fc0f7d7`](https://github.com/agritheory/check_run/commit/fc0f7d776f83f8bc8b3b194b0362de3e27aa1baa)) + +### Unknown + +* patch: update outsanting in old payment schedule entries (#183) ([`a9e3e8b`](https://github.com/agritheory/check_run/commit/a9e3e8b1685cdad2c243e6c383ad0563f31f5c27)) + + ## v14.10.0 (2023-12-14) ### Feature diff --git a/check_run/__init__.py b/check_run/__init__.py index a060e93d..4abcdc81 100644 --- a/check_run/__init__.py +++ b/check_run/__init__.py @@ -1 +1 @@ -__version__ = "14.10.0" +__version__ = "14.11.0" From a84c5667edafa09b876a17f80661f0ced65a796e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Rold=C3=A1n?= Date: Mon, 8 Jan 2024 17:59:50 -0300 Subject: [PATCH 3/5] Add workflow for voided check (#187) * feat: voided check * style: prettify code * fix: rename workflow * chore: remove list JS, use workflow instead * chore: tab spacing --------- Co-authored-by: fproldan Co-authored-by: Tyler Matteson --- check_run/customize.py | 175 ++++++++++++++++++ check_run/hooks.py | 6 +- check_run/overrides/payment_entry.py | 47 +++++ check_run/patches.txt | 3 +- .../patches/patch_voided_check_workflow.py | 6 + 5 files changed, 235 insertions(+), 2 deletions(-) create mode 100644 check_run/patches/patch_voided_check_workflow.py diff --git a/check_run/customize.py b/check_run/customize.py index b91ffe43..c3c55422 100644 --- a/check_run/customize.py +++ b/check_run/customize.py @@ -44,6 +44,179 @@ def load_customizations(): property_setter.insert() +def add_workflow_for_voided_check(): + + workflow_actions = [ + { + "docstatus": 0, + "doctype": "Workflow Action Master", + "name": "Submit", + "workflow_action_name": "Submit", + }, + { + "docstatus": 0, + "doctype": "Workflow Action Master", + "name": "Void", + "workflow_action_name": "Void", + }, + { + "docstatus": 0, + "doctype": "Workflow Action Master", + "name": "Cancel", + "workflow_action_name": "Cancel", + }, + { + "docstatus": 0, + "doctype": "Workflow Action Master", + "name": "Save", + "workflow_action_name": "Save", + }, + ] + + for action in workflow_actions: + if not frappe.db.exists("Workflow Action Master", action["name"]): + act = frappe.new_doc("Workflow Action Master") + act.update(action) + act.insert() + + workflow_states = [ + { + "docstatus": 0, + "icon": "", + "name": "Submitted", + "style": "Primary", + "workflow_state_name": "Submitted", + }, + { + "docstatus": 0, + "icon": "", + "name": "Voided", + "style": "Inverse", + "workflow_state_name": "Voided", + }, + { + "docstatus": 0, + "doctype": "Workflow State", + "icon": "", + "name": "Cancelled", + "style": "Inverse", + "workflow_state_name": "Cancelled", + }, + { + "docstatus": 0, + "doctype": "Workflow State", + "icon": "", + "name": "Draft", + "style": "Warning", + "workflow_state_name": "Draft", + }, + ] + + for state in workflow_states: + if not frappe.db.exists("Workflow State", state["name"]): + ws = frappe.new_doc("Workflow State") + ws.update(state) + ws.insert() + + workflow_data = { + "docstatus": 0, + "doctype": "Workflow", + "document_type": "Payment Entry", + "is_active": 0, + "name": "Void Payment Entry", + "override_status": 0, + "send_email_alert": 0, + "states": [ + { + "allow_edit": "Accounts User", + "doc_status": "0", + "is_optional_state": 0, + "parent": "Payment Entry", + "parentfield": "states", + "parenttype": "Workflow", + "state": "Draft", + }, + { + "allow_edit": "Accounts User", + "doc_status": "1", + "is_optional_state": 0, + "parent": "Payment Entry", + "parentfield": "states", + "parenttype": "Workflow", + "state": "Submitted", + }, + { + "allow_edit": "Accounts User", + "doc_status": "2", + "is_optional_state": 0, + "parent": "Payment Entry", + "parentfield": "states", + "parenttype": "Workflow", + "state": "Cancelled", + }, + { + "allow_edit": "Accounts User", + "doc_status": "2", + "is_optional_state": 0, + "parent": "Payment Entry", + "parentfield": "states", + "parenttype": "Workflow", + "state": "Voided", + "update_field": "status", + "update_value": "Voided", + }, + ], + "transitions": [ + { + "action": "Save", + "allow_self_approval": 1, + "allowed": "Accounts User", + "next_state": "Draft", + "parent": "Payment Entry", + "parentfield": "transitions", + "parenttype": "Workflow", + "state": "Draft", + }, + { + "action": "Submit", + "allow_self_approval": 1, + "allowed": "Accounts User", + "next_state": "Submitted", + "parent": "Payment Entry", + "parentfield": "transitions", + "parenttype": "Workflow", + "state": "Draft", + }, + { + "action": "Cancel", + "allow_self_approval": 1, + "allowed": "Accounts User", + "next_state": "Cancelled", + "parent": "Payment Entry", + "parentfield": "transitions", + "parenttype": "Workflow", + "state": "Submitted", + }, + { + "action": "Void", + "allow_self_approval": 1, + "allowed": "Accounts User", + "next_state": "Voided", + "parent": "Payment Entry", + "parentfield": "transitions", + "parenttype": "Workflow", + "state": "Submitted", + }, + ], + "workflow_name": "Voidable Payment Entry", + "workflow_state_field": "status", + } + if not frappe.db.exists("Workflow", workflow_data["workflow_name"]): + workflow = frappe.new_doc("Workflow") + workflow.update(workflow_data) + workflow.insert() + + def after_install(): if not frappe.db.exists("File", "Home/Check Run"): try: @@ -52,3 +225,5 @@ def after_install(): cr_folder.save() except Exception as e: pass + + add_workflow_for_voided_check() diff --git a/check_run/hooks.py b/check_run/hooks.py index f92a4e3e..98d7858b 100644 --- a/check_run/hooks.py +++ b/check_run/hooks.py @@ -40,6 +40,7 @@ "Payment Entry": "public/js/custom/payment_entry_custom.js", "Supplier": "public/js/custom/supplier_custom.js", } + # doctype_list_js = {"doctype" : "public/js/doctype_list.js"} # doctype_tree_js = {"doctype" : "public/js/doctype_tree.js"} # doctype_calendar_js = {"doctype" : "public/js/doctype_calendar.js"} @@ -95,7 +96,10 @@ # DocType Class # --------------- # Override standard doctype classes -# override_doctype_class = {"Bank": "check_run.overrides.bank.CustomBank"} +override_doctype_class = { + # "Bank": "check_run.overrides.bank.CustomBank", + "Payment Entry": "check_run.overrides.payment_entry.CustomPaymentEntry", +} # Document Events # --------------- diff --git a/check_run/overrides/payment_entry.py b/check_run/overrides/payment_entry.py index 9e8b69b3..67afbdfe 100644 --- a/check_run/overrides/payment_entry.py +++ b/check_run/overrides/payment_entry.py @@ -3,6 +3,53 @@ import frappe from erpnext.accounts.doctype.payment_entry.payment_entry import PaymentEntry +from erpnext.accounts.general_ledger import make_gl_entries, process_gl_map +from frappe.utils.data import getdate + + +class CustomPaymentEntry(PaymentEntry): + def make_gl_entries(self, cancel=0, adv_adj=0): + if self.payment_type in ("Receive", "Pay") and not self.get("party_account_field"): + self.setup_party_account_field() + + if self.status == "Voided": + original_posting_date = self.posting_date + self.voided_date = self.posting_date = getdate() + + gl_entries = [] + self.add_party_gl_entries(gl_entries) + self.add_bank_gl_entries(gl_entries) + self.add_deductions_gl_entries(gl_entries) + self.add_tax_gl_entries(gl_entries) + + gl_entries = process_gl_map(gl_entries) + make_gl_entries(gl_entries, cancel=cancel, adv_adj=adv_adj) + + if self.status == "Voided": + self.posting_date = original_posting_date + + def set_status(self): + if self.status == "Voided": + pass + elif self.docstatus == 2: + self.status = "Cancelled" + elif self.docstatus == 1: + self.status = "Submitted" + else: + self.status = "Draft" + + self.db_set("status", self.status, update_modified=True) + + # Bug Fix + def get_valid_reference_doctypes(self): + if self.party_type == "Customer": + return ("Sales Order", "Sales Invoice", "Journal Entry", "Dunning") + elif self.party_type == "Supplier": + return ("Purchase Order", "Purchase Invoice", "Journal Entry") + elif self.party_type == "Shareholder": + return ("Journal Entry",) + elif self.party_type == "Employee": + return ("Journal Entry", "Expense Claim") # Expense Claim @frappe.whitelist() diff --git a/check_run/patches.txt b/check_run/patches.txt index 4e12e38c..d2e8badd 100644 --- a/check_run/patches.txt +++ b/check_run/patches.txt @@ -1 +1,2 @@ -check_run.patches.patch_payment_schedule # 12/19/23 \ No newline at end of file +check_run.patches.patch_payment_schedule # 12/19/23 +check_run.patches.patch_voided_check_workflow # 01/05/24 \ No newline at end of file diff --git a/check_run/patches/patch_voided_check_workflow.py b/check_run/patches/patch_voided_check_workflow.py new file mode 100644 index 00000000..8872e951 --- /dev/null +++ b/check_run/patches/patch_voided_check_workflow.py @@ -0,0 +1,6 @@ +import frappe +from check_run.customize import add_workflow_for_voided_check + + +def execute(): + add_workflow_for_voided_check() \ No newline at end of file From 6fd59cb5dea2f7b7e84387796c18ebd83ad18442 Mon Sep 17 00:00:00 2001 From: Tyler Matteson Date: Mon, 8 Jan 2024 16:08:53 -0500 Subject: [PATCH 4/5] Validate customizations (#166) * fix: validate customizations * Per supplier invoices per voucher (#165) * feat: allow per-supplier override for number of invoices per voucher * docs: add docs for per supplier invoices per voucher * Quick Check (#172) * feat: quick check poc * fix: add additional filters in check run settings and also in check run quick entry * docs: quick check and payment entry customization docs * fix: validate customizations * chore: prettier --- .github/validate_customizations.py | 166 +++ .pre-commit-config.yaml | 9 + check_run/check_run/custom/bank_account.json | 320 +++--- check_run/check_run/custom/employee.json | 941 +----------------- .../check_run/custom/mode_of_payment.json | 2 +- check_run/check_run/custom/payment_entry.json | 161 ++- check_run/check_run/custom/supplier.json | 424 ++++---- .../check_run_settings.json | 504 +++++----- .../example_voucher/example_voucher.json | 62 +- .../payables_attachments.json | 68 +- check_run/public/css/file_preview.css | 124 +-- check_run/public/js/check_run/CheckRun.vue | 169 ++-- .../js/check_run/ModeOfPaymentSummary.vue | 16 +- check_run/public/js/style.css | 1 - 14 files changed, 1072 insertions(+), 1895 deletions(-) create mode 100644 .github/validate_customizations.py diff --git a/.github/validate_customizations.py b/.github/validate_customizations.py new file mode 100644 index 00000000..ded35449 --- /dev/null +++ b/.github/validate_customizations.py @@ -0,0 +1,166 @@ +import json +import pathlib +import sys + + +def scrub(txt: str) -> str: + """Returns sluggified string. e.g. `Sales Order` becomes `sales_order`.""" + return txt.replace(" ", "_").replace("-", "_").lower() + + +def unscrub(txt: str) -> str: + """Returns titlified string. e.g. `sales_order` becomes `Sales Order`.""" + return txt.replace("_", " ").replace("-", " ").title() + + +def get_customized_doctypes(): + apps_dir = pathlib.Path(__file__).resolve().parent.parent.parent + apps_order = pathlib.Path(__file__).resolve().parent.parent.parent.parent / "sites" / "apps.txt" + apps_order = apps_order.read_text().split("\n") + customized_doctypes = {} + for _app_dir in apps_order: + app_dir = (apps_dir / _app_dir).resolve() + if not app_dir.is_dir(): + continue + modules = (app_dir / _app_dir / "modules.txt").read_text().split("\n") + for module in modules: + if not (app_dir / _app_dir / scrub(module) / "custom").exists(): + continue + for custom_file in list((app_dir / _app_dir / scrub(module) / "custom").glob("**/*.json")): + if custom_file.stem in customized_doctypes: + customized_doctypes[custom_file.stem].append(custom_file.resolve()) + else: + customized_doctypes[custom_file.stem] = [custom_file.resolve()] + + return dict(sorted(customized_doctypes.items())) + + +def validate_module(customized_doctypes, set_module=False): + exceptions = [] + app_dir = pathlib.Path(__file__).resolve().parent.parent + this_app = app_dir.stem + for doctype, customize_files in customized_doctypes.items(): + for customize_file in customize_files: + if not this_app in str(customize_file): + continue + module = customize_file.parent.parent.stem + file_contents = json.loads(customize_file.read_text()) + if file_contents.get("custom_fields"): + for custom_field in file_contents.get("custom_fields"): + if set_module: + custom_field["module"] = unscrub(module) + continue + if not custom_field.get("module"): + exceptions.append( + f"Custom Field for {custom_field.get('dt')} in {this_app} '{custom_field.get('fieldname')}' does not have a module key" + ) + continue + elif custom_field.get("module") != unscrub(module): + exceptions.append( + f"Custom Field for {custom_field.get('dt')} in {this_app} '{custom_field.get('fieldname')}' has module key ({custom_field.get('module')}) associated with another app" + ) + continue + if file_contents.get("property_setters"): + for ps in file_contents.get("property_setters"): + if set_module: + ps["module"] = unscrub(module) + continue + if not ps.get("module"): + exceptions.append( + f"Property Setter for {ps.get('doc_type')} in {this_app} '{ps.get('property')}' on {ps.get('field_name')} does not have a module key" + ) + continue + elif ps.get("module") != unscrub(module): + exceptions.append( + f"Property Setter for {ps.get('doc_type')} in {this_app} '{ps.get('property')}' on {ps.get('field_name')} has module key ({ps.get('module')}) associated with another app" + ) + continue + if set_module: + with customize_file.open("w", encoding="UTF-8") as target: + json.dump(file_contents, target, sort_keys=True, indent=2) + + return exceptions + + +def validate_no_custom_perms(customized_doctypes): + exceptions = [] + this_app = pathlib.Path(__file__).resolve().parent.parent.stem + for doctype, customize_files in customized_doctypes.items(): + for customize_file in customize_files: + if not this_app in str(customize_file): + continue + file_contents = json.loads(customize_file.read_text()) + if file_contents.get("custom_perms"): + exceptions.append(f"Customization for {doctype} in {this_app} contains custom permissions") + return exceptions + + +def validate_duplicate_customizations(customized_doctypes): + exceptions = [] + common_fields = {} + common_property_setters = {} + app_dir = pathlib.Path(__file__).resolve().parent.parent + this_app = app_dir.stem + for doctype, customize_files in customized_doctypes.items(): + if len(customize_files) == 1: + continue + common_fields[doctype] = {} + common_property_setters[doctype] = {} + for customize_file in customize_files: + module = customize_file.parent.parent.stem + app = customize_file.parent.parent.parent.parent.stem + file_contents = json.loads(customize_file.read_text()) + if file_contents.get("custom_fields"): + fields = [cf.get("fieldname") for cf in file_contents.get("custom_fields")] + common_fields[doctype][module] = fields + if file_contents.get("property_setters"): + ps = [ps.get("name") for ps in file_contents.get("property_setters")] + common_property_setters[doctype][module] = ps + + for doctype, module_and_fields in common_fields.items(): + if this_app not in module_and_fields.keys(): + continue + this_modules_fields = module_and_fields.pop(this_app) + for module, fields in module_and_fields.items(): + for field in fields: + if field in this_modules_fields: + exceptions.append( + f"Custom Field for {unscrub(doctype)} in {this_app} '{field}' also appears in customizations for {module}" + ) + + for doctype, module_and_ps in common_property_setters.items(): + if this_app not in module_and_ps.keys(): + continue + this_modules_ps = module_and_ps.pop(this_app) + for module, ps in module_and_ps.items(): + for p in ps: + if p in this_modules_ps: + exceptions.append( + f"Property Setter for {unscrub(doctype)} in {this_app} on '{p}' also appears in customizations for {module}" + ) + + return exceptions + + +def validate_customizations(set_module): + customized_doctypes = get_customized_doctypes() + exceptions = validate_no_custom_perms(customized_doctypes) + exceptions += validate_module(customized_doctypes, set_module) + exceptions += validate_duplicate_customizations(customized_doctypes) + + return exceptions + + +if __name__ == "__main__": + exceptions = [] + set_module = False + for arg in sys.argv: + if arg == "--set-module": + set_module = True + exceptions.append(validate_customizations(set_module)) + + if exceptions: + for exception in exceptions: + [print(e) for e in exception] # TODO: colorize + + sys.exit(1) if all(exceptions) else sys.exit(0) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d7f97931..bcf3bf1d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -59,6 +59,15 @@ repos: exclude: ^tests/ args: [--ignore-missing-imports] + - repo: local + hooks: + - id: validate_customizations + always_run: true + name: .github/validate_customizations.py + entry: python .github/validate_customizations.py + language: system + types: [python] + ci: autoupdate_schedule: weekly skip: [] diff --git a/check_run/check_run/custom/bank_account.json b/check_run/check_run/custom/bank_account.json index 1a3d5cab..26e92fed 100644 --- a/check_run/check_run/custom/bank_account.json +++ b/check_run/check_run/custom/bank_account.json @@ -1,192 +1,130 @@ { - "custom_fields": [ - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2022-06-30 11:20:02.666689", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Bank Account", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "check_number", - "fieldtype": "Data", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 11, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "company", - "is_system_generated": 0, - "is_virtual": 0, - "label": "Last Used Check Number", - "length": 0, - "mandatory_depends_on": null, - "modified": "2022-06-30 11:20:02.666689", - "modified_by": "Administrator", - "module": "Check Run", - "name": "Bank Account-check_number", - "no_copy": 0, - "non_negative": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "sort_options": 0, - "translatable": 1, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2022-08-07 14:55:42.859002", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Bank Account", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "company_ach_id", - "fieldtype": "Data", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 12, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "check_number", - "is_system_generated": 0, - "is_virtual": 0, - "label": "Company ACH ID", - "length": 0, - "mandatory_depends_on": null, - "modified": "2022-08-07 14:55:42.859002", - "modified_by": "Administrator", - "module": null, - "name": "Bank Account-company_ach_id", - "no_copy": 0, - "non_negative": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "sort_options": 0, - "translatable": 1, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2023-10-11 15:03:16.705933", - "default": "1", - "depends_on": null, - "description": "Allow Quick Check Payment Entries to be made against this Bank Account. This fetches the Bank Account into the Payment Entry automatically.", - "docstatus": 0, - "dt": "Bank Account", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "allow_quick_check", - "fieldtype": "Check", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 8, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "is_company_account", - "is_system_generated": 0, - "is_virtual": 0, - "label": "Allow Quick Check", - "length": 0, - "mandatory_depends_on": null, - "modified": "2023-10-11 15:22:30.742925", - "modified_by": "Administrator", - "module": "Check Run", - "name": "Bank Account-allow_quick_check", - "no_copy": 0, - "non_negative": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - } - ], - "custom_perms": [], - "doctype": "Bank Account", - "links": [], - "property_setters": [], - "sync_on_migrate": 1 -} \ No newline at end of file + "custom_fields": [ + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2022-06-30 11:20:02.666689", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Bank Account", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "check_number", + "fieldtype": "Data", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 10, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "company", + "label": "Last Used Check Number", + "length": 0, + "mandatory_depends_on": null, + "modified": "2022-06-30 11:20:02.666689", + "modified_by": "Administrator", + "module": "Check Run", + "name": "Bank Account-check_number", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "parent": null, + "parentfield": null, + "parenttype": null, + "permlevel": 0, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "translatable": 1, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2022-08-07 14:55:42.859002", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Bank Account", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "company_ach_id", + "fieldtype": "Data", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 10, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "check_number", + "label": "Company ACH ID", + "length": 0, + "mandatory_depends_on": null, + "modified": "2022-08-07 14:55:42.859002", + "modified_by": "Administrator", + "module": "Check Run", + "name": "Bank Account-company_ach_id", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "parent": null, + "parentfield": null, + "parenttype": null, + "permlevel": 0, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "translatable": 1, + "unique": 0, + "width": null + } + ], + "custom_perms": [], + "doctype": "Bank Account", + "property_setters": [], + "sync_on_migrate": 1 +} diff --git a/check_run/check_run/custom/employee.json b/check_run/check_run/custom/employee.json index e1045798..ebed6781 100644 --- a/check_run/check_run/custom/employee.json +++ b/check_run/check_run/custom/employee.json @@ -40,7 +40,7 @@ "mandatory_depends_on": null, "modified": "2022-06-30 11:20:02.666689", "modified_by": "Administrator", - "module": null, + "module": "Check Run", "name": "Employee-bank_account", "no_copy": 0, "non_negative": 0, @@ -100,7 +100,7 @@ "mandatory_depends_on": null, "modified": "2022-06-30 11:20:02.666689", "modified_by": "Administrator", - "module": null, + "module": "Check Run", "name": "Employee-mode_of_payment", "no_copy": 0, "non_negative": 0, @@ -160,7 +160,7 @@ "mandatory_depends_on": null, "modified": "2023-02-28 11:18:22.590359", "modified_by": "Administrator", - "module": null, + "module": "Check Run", "name": "Employee-bank", "no_copy": 0, "non_negative": 0, @@ -179,944 +179,11 @@ "translatable": 0, "unique": 0, "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2023-02-28 21:45:35.684089", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Employee", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "employment_type", - "fieldtype": "Link", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 23, - "ignore_user_permissions": 1, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "department", - "is_system_generated": 1, - "is_virtual": 0, - "label": "Employment Type", - "length": 0, - "mandatory_depends_on": null, - "modified": "2023-02-28 21:45:35.684089", - "modified_by": "Administrator", - "module": null, - "name": "Employee-employment_type", - "no_copy": 0, - "non_negative": 0, - "options": "Employment Type", - "owner": "Administrator", - "permlevel": 0, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2023-02-28 21:45:35.777573", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Employee", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "job_applicant", - "fieldtype": "Link", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 31, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "employment_details", - "is_system_generated": 1, - "is_virtual": 0, - "label": "Job Applicant", - "length": 0, - "mandatory_depends_on": null, - "modified": "2023-02-28 21:45:35.777573", - "modified_by": "Administrator", - "module": null, - "name": "Employee-job_applicant", - "no_copy": 0, - "non_negative": 0, - "options": "Job Applicant", - "owner": "Administrator", - "permlevel": 0, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2023-02-28 21:45:35.839569", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Employee", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "grade", - "fieldtype": "Link", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 30, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "branch", - "is_system_generated": 1, - "is_virtual": 0, - "label": "Grade", - "length": 0, - "mandatory_depends_on": null, - "modified": "2023-02-28 21:45:35.839569", - "modified_by": "Administrator", - "module": null, - "name": "Employee-grade", - "no_copy": 0, - "non_negative": 0, - "options": "Employee Grade", - "owner": "Administrator", - "permlevel": 0, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2023-02-28 21:45:35.904295", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Employee", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "default_shift", - "fieldtype": "Link", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 65, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "holiday_list", - "is_system_generated": 1, - "is_virtual": 0, - "label": "Default Shift", - "length": 0, - "mandatory_depends_on": null, - "modified": "2023-02-28 21:45:35.904295", - "modified_by": "Administrator", - "module": null, - "name": "Employee-default_shift", - "no_copy": 0, - "non_negative": 0, - "options": "Shift Type", - "owner": "Administrator", - "permlevel": 0, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 1, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2023-02-28 21:45:35.972111", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Employee", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "health_insurance_section", - "fieldtype": "Section Break", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 79, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "health_details", - "is_system_generated": 1, - "is_virtual": 0, - "label": "Health Insurance", - "length": 0, - "mandatory_depends_on": null, - "modified": "2023-02-28 21:45:35.972111", - "modified_by": "Administrator", - "module": null, - "name": "Employee-health_insurance_section", - "no_copy": 0, - "non_negative": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2023-02-28 21:45:36.038430", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Employee", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "health_insurance_provider", - "fieldtype": "Link", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 80, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "health_insurance_section", - "is_system_generated": 1, - "is_virtual": 0, - "label": "Health Insurance Provider", - "length": 0, - "mandatory_depends_on": null, - "modified": "2023-02-28 21:45:36.038430", - "modified_by": "Administrator", - "module": null, - "name": "Employee-health_insurance_provider", - "no_copy": 0, - "non_negative": 0, - "options": "Employee Health Insurance", - "owner": "Administrator", - "permlevel": 0, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2023-02-28 21:45:36.102749", - "default": null, - "depends_on": "eval:doc.health_insurance_provider", - "description": null, - "docstatus": 0, - "dt": "Employee", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "health_insurance_no", - "fieldtype": "Data", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 81, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "health_insurance_provider", - "is_system_generated": 1, - "is_virtual": 0, - "label": "Health Insurance No", - "length": 0, - "mandatory_depends_on": null, - "modified": "2023-02-28 21:45:36.102749", - "modified_by": "Administrator", - "module": null, - "name": "Employee-health_insurance_no", - "no_copy": 0, - "non_negative": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "translatable": 1, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2023-02-28 21:45:36.166195", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Employee", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "approvers_section", - "fieldtype": "Section Break", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 66, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "default_shift", - "is_system_generated": 1, - "is_virtual": 0, - "label": "Approvers", - "length": 0, - "mandatory_depends_on": null, - "modified": "2023-02-28 21:45:36.166195", - "modified_by": "Administrator", - "module": null, - "name": "Employee-approvers_section", - "no_copy": 0, - "non_negative": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2023-02-28 21:45:36.231145", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Employee", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "expense_approver", - "fieldtype": "Link", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 67, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "approvers_section", - "is_system_generated": 1, - "is_virtual": 0, - "label": "Expense Approver", - "length": 0, - "mandatory_depends_on": null, - "modified": "2023-02-28 21:45:36.231145", - "modified_by": "Administrator", - "module": null, - "name": "Employee-expense_approver", - "no_copy": 0, - "non_negative": 0, - "options": "User", - "owner": "Administrator", - "permlevel": 0, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2023-02-28 21:45:36.298077", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Employee", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "leave_approver", - "fieldtype": "Link", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 68, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "expense_approver", - "is_system_generated": 1, - "is_virtual": 0, - "label": "Leave Approver", - "length": 0, - "mandatory_depends_on": null, - "modified": "2023-02-28 21:45:36.298077", - "modified_by": "Administrator", - "module": null, - "name": "Employee-leave_approver", - "no_copy": 0, - "non_negative": 0, - "options": "User", - "owner": "Administrator", - "permlevel": 0, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2023-02-28 21:45:36.362648", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Employee", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "column_break_45", - "fieldtype": "Column Break", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 69, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "leave_approver", - "is_system_generated": 1, - "is_virtual": 0, - "label": null, - "length": 0, - "mandatory_depends_on": null, - "modified": "2023-02-28 21:45:36.362648", - "modified_by": "Administrator", - "module": null, - "name": "Employee-column_break_45", - "no_copy": 0, - "non_negative": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2023-02-28 21:45:36.425788", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Employee", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "shift_request_approver", - "fieldtype": "Link", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 70, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "column_break_45", - "is_system_generated": 1, - "is_virtual": 0, - "label": "Shift Request Approver", - "length": 0, - "mandatory_depends_on": null, - "modified": "2023-02-28 21:45:36.425788", - "modified_by": "Administrator", - "module": null, - "name": "Employee-shift_request_approver", - "no_copy": 0, - "non_negative": 0, - "options": "User", - "owner": "Administrator", - "permlevel": 0, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2023-02-28 21:45:36.496378", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Employee", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "salary_cb", - "fieldtype": "Column Break", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 75, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "salary_mode", - "is_system_generated": 1, - "is_virtual": 0, - "label": null, - "length": 0, - "mandatory_depends_on": null, - "modified": "2023-02-28 21:45:36.496378", - "modified_by": "Administrator", - "module": null, - "name": "Employee-salary_cb", - "no_copy": 0, - "non_negative": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2023-02-28 21:45:36.561111", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Employee", - "fetch_from": "department.payroll_cost_center", - "fetch_if_empty": 1, - "fieldname": "payroll_cost_center", - "fieldtype": "Link", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 76, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "salary_cb", - "is_system_generated": 1, - "is_virtual": 0, - "label": "Payroll Cost Center", - "length": 0, - "mandatory_depends_on": null, - "modified": "2023-02-28 21:45:36.561111", - "modified_by": "Administrator", - "module": null, - "name": "Employee-payroll_cost_center", - "no_copy": 0, - "non_negative": 0, - "options": "Cost Center", - "owner": "Administrator", - "permlevel": 0, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "translatable": 0, - "unique": 0, - "width": null } ], "custom_perms": [], "doctype": "Employee", "links": [], - "property_setters": [ - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2023-02-28 21:45:42.022353", - "default_value": null, - "doc_type": "Employee", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "employee_number", - "idx": 0, - "is_system_generated": 0, - "modified": "2023-02-28 21:45:42.022353", - "modified_by": "Administrator", - "module": null, - "name": "Employee-employee_number-hidden", - "owner": "Administrator", - "property": "hidden", - "property_type": "Check", - "row_name": null, - "value": "1" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2023-02-28 21:45:42.015967", - "default_value": null, - "doc_type": "Employee", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "employee_number", - "idx": 0, - "is_system_generated": 0, - "modified": "2023-02-28 21:45:42.015967", - "modified_by": "Administrator", - "module": null, - "name": "Employee-employee_number-reqd", - "owner": "Administrator", - "property": "reqd", - "property_type": "Check", - "row_name": null, - "value": "0" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2023-02-28 21:45:41.984311", - "default_value": null, - "doc_type": "Employee", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "naming_series", - "idx": 0, - "is_system_generated": 0, - "modified": "2023-02-28 21:45:41.984311", - "modified_by": "Administrator", - "module": null, - "name": "Employee-naming_series-reqd", - "owner": "Administrator", - "property": "reqd", - "property_type": "Check", - "row_name": null, - "value": "1" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2023-02-28 21:45:41.978272", - "default_value": null, - "doc_type": "Employee", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "naming_series", - "idx": 0, - "is_system_generated": 0, - "modified": "2023-02-28 21:45:41.978272", - "modified_by": "Administrator", - "module": null, - "name": "Employee-naming_series-hidden", - "owner": "Administrator", - "property": "hidden", - "property_type": "Check", - "row_name": null, - "value": "0" - } - ], + "property_setters": [], "sync_on_migrate": 1 } diff --git a/check_run/check_run/custom/mode_of_payment.json b/check_run/check_run/custom/mode_of_payment.json index d99c3786..1be9d68d 100644 --- a/check_run/check_run/custom/mode_of_payment.json +++ b/check_run/check_run/custom/mode_of_payment.json @@ -30,4 +30,4 @@ } ], "sync_on_migrate": 1 -} \ No newline at end of file +} diff --git a/check_run/check_run/custom/payment_entry.json b/check_run/check_run/custom/payment_entry.json index ffdad62a..3df21d4b 100644 --- a/check_run/check_run/custom/payment_entry.json +++ b/check_run/check_run/custom/payment_entry.json @@ -1,94 +1,69 @@ { - "custom_fields": [ - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2022-06-30 15:30:29.886371", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Payment Entry", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "check_run", - "fieldtype": "Data", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 5, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "payment_order_status", - "is_system_generated": 0, - "is_virtual": 0, - "label": "Check Run", - "length": 0, - "mandatory_depends_on": null, - "modified": "2022-06-30 11:20:02.666689", - "modified_by": "Administrator", - "module": "Check Run", - "name": "Payment Entry-check_run", - "no_copy": 0, - "non_negative": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 1, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - } - ], - "custom_perms": [], - "doctype": "Payment Entry", - "links": [], - "property_setters": [ - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2023-10-11 14:35:49.611822", - "default_value": null, - "doc_type": "Payment Entry", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "references", - "idx": 0, - "is_system_generated": 0, - "modified": "2023-10-11 14:35:49.611822", - "modified_by": "Administrator", - "module": "Check Run", - "name": "Payment Entry-references-mandatory_depends_on", - "owner": "Administrator", - "property": "mandatory_depends_on", - "property_type": "Data", - "row_name": null, - "value": "eval: doc.payment_type != 'Internal Transfer'" - } - ], - "sync_on_migrate": 1 -} \ No newline at end of file + "custom_fields": [ + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2022-06-30 15:30:29.886371", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Payment Entry", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "check_run", + "fieldtype": "Data", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 5, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "payment_order_status", + "label": "Check Run", + "length": 0, + "mandatory_depends_on": null, + "modified": "2022-06-30 11:20:02.666689", + "modified_by": "Administrator", + "module": "Check Run", + "name": "Payment Entry-check_run", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "parent": null, + "parentfield": null, + "parenttype": null, + "permlevel": 0, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 1, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "translatable": 0, + "unique": 0, + "width": null + } + ], + "custom_perms": [], + "doctype": "Payment Entry", + "property_setters": [], + "sync_on_migrate": 1 +} diff --git a/check_run/check_run/custom/supplier.json b/check_run/check_run/custom/supplier.json index a9c220d2..a1041229 100644 --- a/check_run/check_run/custom/supplier.json +++ b/check_run/check_run/custom/supplier.json @@ -1,213 +1,213 @@ { - "custom_fields": [ - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2022-06-30 11:20:02.666689", - "default": null, - "depends_on": "", - "description": "Show Bank Account Number", - "docstatus": 0, - "dt": "Supplier", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "bank_account", - "fieldtype": "Password", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 62, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "release_date", - "is_system_generated": 0, - "is_virtual": 0, - "label": "Bank Account", - "length": 0, - "mandatory_depends_on": null, - "modified": "2022-06-30 11:20:02.666689", - "modified_by": "Administrator", - "module": "Check Run", - "name": "Supplier-bank_account", - "no_copy": 0, - "non_negative": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2022-06-30 11:20:02.666689", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Supplier", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "supplier_default_mode_of_payment", - "fieldtype": "Link", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 15, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "payment_terms", - "is_system_generated": 0, - "is_virtual": 0, - "label": "Supplier Default Mode of Payment", - "length": 0, - "mandatory_depends_on": null, - "modified": "2022-06-30 11:20:02.666689", - "modified_by": "Administrator", - "module": "Check Run", - "name": "Supplier-supplier_default_mode_of_payment", - "no_copy": 0, - "non_negative": 0, - "options": "Mode of Payment", - "owner": "Administrator", - "permlevel": 0, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2023-09-27 14:04:57.166489", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Supplier", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "number_of_invoices_per_check_voucher", - "fieldtype": "Int", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 15, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "supplier_default_mode_of_payment", - "is_system_generated": 0, - "is_virtual": 0, - "label": "Number of Invoices Per Check Voucher", - "length": 0, - "mandatory_depends_on": null, - "modified": "2023-09-27 14:05:17.695804", - "modified_by": "Administrator", - "module": "Check Run", - "name": "Supplier-number_of_invoices_per_check_voucher", - "no_copy": 0, - "non_negative": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - } - ], - "custom_perms": [], - "doctype": "Supplier", - "links": [ - { - "creation": "2013-01-10 16:34:11", - "custom": 0, - "docstatus": 0, - "group": "Allowed Items", - "hidden": 0, - "idx": 1, - "is_child_table": 0, - "link_doctype": "Party Specific Item", - "link_fieldname": "party", - "modified": "2023-09-14 19:51:06.084944", - "modified_by": "Administrator", - "name": "22db288d07", - "owner": "Administrator", - "parent": "Supplier", - "parent_doctype": null, - "parentfield": "links", - "parenttype": "DocType", - "table_fieldname": null - } - ], - "property_setters": [], - "sync_on_migrate": 1 -} \ No newline at end of file + "custom_fields": [ + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2022-06-30 11:20:02.666689", + "default": null, + "depends_on": "", + "description": "Show Bank Account Number", + "docstatus": 0, + "dt": "Supplier", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "bank_account", + "fieldtype": "Password", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 62, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "release_date", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Bank Account", + "length": 0, + "mandatory_depends_on": null, + "modified": "2022-06-30 11:20:02.666689", + "modified_by": "Administrator", + "module": "Check Run", + "name": "Supplier-bank_account", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2022-06-30 11:20:02.666689", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Supplier", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "supplier_default_mode_of_payment", + "fieldtype": "Link", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 15, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "payment_terms", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Supplier Default Mode of Payment", + "length": 0, + "mandatory_depends_on": null, + "modified": "2022-06-30 11:20:02.666689", + "modified_by": "Administrator", + "module": "Check Run", + "name": "Supplier-supplier_default_mode_of_payment", + "no_copy": 0, + "non_negative": 0, + "options": "Mode of Payment", + "owner": "Administrator", + "permlevel": 0, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2023-09-27 14:04:57.166489", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Supplier", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "number_of_invoices_per_check_voucher", + "fieldtype": "Int", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 15, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "supplier_default_mode_of_payment", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Number of Invoices Per Check Voucher", + "length": 0, + "mandatory_depends_on": null, + "modified": "2023-09-27 14:05:17.695804", + "modified_by": "Administrator", + "module": "Check Run", + "name": "Supplier-number_of_invoices_per_check_voucher", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + } + ], + "custom_perms": [], + "doctype": "Supplier", + "links": [ + { + "creation": "2013-01-10 16:34:11", + "custom": 0, + "docstatus": 0, + "group": "Allowed Items", + "hidden": 0, + "idx": 1, + "is_child_table": 0, + "link_doctype": "Party Specific Item", + "link_fieldname": "party", + "modified": "2023-09-14 19:51:06.084944", + "modified_by": "Administrator", + "name": "22db288d07", + "owner": "Administrator", + "parent": "Supplier", + "parent_doctype": null, + "parentfield": "links", + "parenttype": "DocType", + "table_fieldname": null + } + ], + "property_setters": [], + "sync_on_migrate": 1 +} diff --git a/check_run/check_run/doctype/check_run_settings/check_run_settings.json b/check_run/check_run/doctype/check_run_settings/check_run_settings.json index c685fd67..29323c05 100644 --- a/check_run/check_run/doctype/check_run_settings/check_run_settings.json +++ b/check_run/check_run/doctype/check_run_settings/check_run_settings.json @@ -1,253 +1,253 @@ { - "actions": [], - "autoname": "format:ACC-CRS-{bank_account}-{pay_to_account}", - "creation": "2022-08-22 14:43:43.533105", - "doctype": "DocType", - "editable_grid": 1, - "engine": "InnoDB", - "field_order": [ - "company", - "bank_account", - "column_break_3", - "pay_to_account", - "print_format", - "section_break_4", - "include_purchase_invoices", - "include_journal_entries", - "include_expense_claims", - "pre_check_overdue_items", - "allow_cancellation", - "cascade_cancellation", - "column_break_9", - "number_of_invoices_per_voucher", - "split_by_address", - "automatically_release_on_hold_invoices", - "default_modes_of_payment_section_section", - "purchase_invoice", - "journal_entry", - "column_break_21", - "expense_claim", - "ach_settings_section", - "ach_file_extension", - "ach_service_class_code", - "ach_standard_class_code", - "ach_description", - "column_break_27", - "immediate_origin", - "company_discretionary_data", - "custom_post_processing_hook" - ], - "fields": [ - { - "fieldname": "company", - "fieldtype": "Link", - "label": "Company", - "options": "Company" - }, - { - "fieldname": "bank_account", - "fieldtype": "Link", - "label": "Bank Account", - "options": "Bank Account" - }, - { - "fieldname": "section_break_4", - "fieldtype": "Section Break" - }, - { - "default": "1", - "fieldname": "include_purchase_invoices", - "fieldtype": "Check", - "label": "Include Purchase Invoices" - }, - { - "default": "1", - "fieldname": "include_journal_entries", - "fieldtype": "Check", - "label": "Include Journal Entries " - }, - { - "default": "1", - "fieldname": "include_expense_claims", - "fieldtype": "Check", - "label": "Include Expense Claims" - }, - { - "default": "0", - "description": "Payment Entries will be unlinked when Check Run is cancelled", - "fieldname": "allow_cancellation", - "fieldtype": "Check", - "label": "Allow Cancellation" - }, - { - "fieldname": "column_break_9", - "fieldtype": "Column Break" - }, - { - "default": "ach", - "description": "Common file extensions are 'ach', 'txt' and 'dat'. Your bank may require one of these.", - "fieldname": "ach_file_extension", - "fieldtype": "Data", - "label": "ACH File Extension" - }, - { - "default": "0", - "description": "Pre-Check all payables that have a due date greater than the Check Run's posting date", - "fieldname": "pre_check_overdue_items", - "fieldtype": "Check", - "label": "Pre-Check Overdue Items" - }, - { - "default": "0", - "description": "When a Check Run is cancelled, all Payment Entries linked to it will also be cancelled. This is not recommended.", - "fieldname": "cascade_cancellation", - "fieldtype": "Check", - "label": "Cascade Cancellation" - }, - { - "description": "Defaults to 5 if no value is provided", - "fieldname": "number_of_invoices_per_voucher", - "fieldtype": "Int", - "label": "Number of Invoices per Voucher", - "non_negative": 1 - }, - { - "fieldname": "column_break_3", - "fieldtype": "Column Break" - }, - { - "fieldname": "pay_to_account", - "fieldtype": "Link", - "label": "Payable Account", - "options": "Account" - }, - { - "fieldname": "ach_service_class_code", - "fieldtype": "Select", - "label": "ACH Service Class Code", - "options": "200\n220\n225" - }, - { - "description": "PPD is only supported Entry format at this time", - "fieldname": "ach_standard_class_code", - "fieldtype": "Select", - "label": "ACH Standard Class Code", - "options": "PPD" - }, - { - "fieldname": "ach_description", - "fieldtype": "Data", - "label": "ACH Description", - "length": 10 - }, - { - "fieldname": "print_format", - "fieldtype": "Link", - "label": "Print Format", - "options": "Print Format" - }, - { - "default": "0", - "fieldname": "split_by_address", - "fieldtype": "Check", - "label": "Split Invoices by Address" - }, - { - "fieldname": "ach_settings_section", - "fieldtype": "Section Break", - "label": "ACH Settings" - }, - { - "fieldname": "column_break_21", - "fieldtype": "Column Break" - }, - { - "default": "0", - "fieldname": "automatically_release_on_hold_invoices", - "fieldtype": "Check", - "label": "Automatically Release On Hold Invoices" - }, - { - "fieldname": "immediate_origin", - "fieldtype": "Data", - "label": "Immediate Origin" - }, - { - "fieldname": "company_discretionary_data", - "fieldtype": "Data", - "label": "Company Discretionary Data", - "length": 20 - }, - { - "fieldname": "custom_post_processing_hook", - "fieldtype": "Data", - "label": "Custom Post Processing Hook", - "read_only": 1 - }, - { - "fieldname": "default_modes_of_payment_section_section", - "fieldtype": "Section Break", - "label": "Default Modes of Payment Section" - }, - { - "fieldname": "purchase_invoice", - "fieldtype": "Link", - "label": "Purchase Invoice", - "options": "Mode of Payment" - }, - { - "fieldname": "journal_entry", - "fieldtype": "Link", - "label": "Journal Entry", - "options": "Mode of Payment" - }, - { - "fieldname": "expense_claim", - "fieldtype": "Link", - "label": "Expense Claim", - "options": "Mode of Payment" - }, - { - "fieldname": "column_break_27", - "fieldtype": "Column Break" - } - ], - "links": [], - "modified": "2023-12-11 16:08:19.536271", - "modified_by": "Administrator", - "module": "Check Run", - "name": "Check Run Settings", - "naming_rule": "Expression", - "owner": "Administrator", - "permissions": [ - { - "create": 1, - "delete": 1, - "email": 1, - "export": 1, - "print": 1, - "read": 1, - "report": 1, - "role": "System Manager", - "share": 1, - "write": 1 - }, - { - "create": 1, - "delete": 1, - "email": 1, - "export": 1, - "print": 1, - "read": 1, - "report": 1, - "role": "Accounts Manager", - "share": 1, - "write": 1 - } - ], - "quick_entry": 1, - "sort_field": "modified", - "sort_order": "DESC", - "states": [], - "track_changes": 1 -} \ No newline at end of file + "actions": [], + "autoname": "format:ACC-CRS-{bank_account}-{pay_to_account}", + "creation": "2022-08-22 14:43:43.533105", + "doctype": "DocType", + "editable_grid": 1, + "engine": "InnoDB", + "field_order": [ + "company", + "bank_account", + "column_break_3", + "pay_to_account", + "print_format", + "section_break_4", + "include_purchase_invoices", + "include_journal_entries", + "include_expense_claims", + "pre_check_overdue_items", + "allow_cancellation", + "cascade_cancellation", + "column_break_9", + "number_of_invoices_per_voucher", + "split_by_address", + "automatically_release_on_hold_invoices", + "default_modes_of_payment_section_section", + "purchase_invoice", + "journal_entry", + "column_break_21", + "expense_claim", + "ach_settings_section", + "ach_file_extension", + "ach_service_class_code", + "ach_standard_class_code", + "ach_description", + "column_break_27", + "immediate_origin", + "company_discretionary_data", + "custom_post_processing_hook" + ], + "fields": [ + { + "fieldname": "company", + "fieldtype": "Link", + "label": "Company", + "options": "Company" + }, + { + "fieldname": "bank_account", + "fieldtype": "Link", + "label": "Bank Account", + "options": "Bank Account" + }, + { + "fieldname": "section_break_4", + "fieldtype": "Section Break" + }, + { + "default": "1", + "fieldname": "include_purchase_invoices", + "fieldtype": "Check", + "label": "Include Purchase Invoices" + }, + { + "default": "1", + "fieldname": "include_journal_entries", + "fieldtype": "Check", + "label": "Include Journal Entries " + }, + { + "default": "1", + "fieldname": "include_expense_claims", + "fieldtype": "Check", + "label": "Include Expense Claims" + }, + { + "default": "0", + "description": "Payment Entries will be unlinked when Check Run is cancelled", + "fieldname": "allow_cancellation", + "fieldtype": "Check", + "label": "Allow Cancellation" + }, + { + "fieldname": "column_break_9", + "fieldtype": "Column Break" + }, + { + "default": "ach", + "description": "Common file extensions are 'ach', 'txt' and 'dat'. Your bank may require one of these.", + "fieldname": "ach_file_extension", + "fieldtype": "Data", + "label": "ACH File Extension" + }, + { + "default": "0", + "description": "Pre-Check all payables that have a due date greater than the Check Run's posting date", + "fieldname": "pre_check_overdue_items", + "fieldtype": "Check", + "label": "Pre-Check Overdue Items" + }, + { + "default": "0", + "description": "When a Check Run is cancelled, all Payment Entries linked to it will also be cancelled. This is not recommended.", + "fieldname": "cascade_cancellation", + "fieldtype": "Check", + "label": "Cascade Cancellation" + }, + { + "description": "Defaults to 5 if no value is provided", + "fieldname": "number_of_invoices_per_voucher", + "fieldtype": "Int", + "label": "Number of Invoices per Voucher", + "non_negative": 1 + }, + { + "fieldname": "column_break_3", + "fieldtype": "Column Break" + }, + { + "fieldname": "pay_to_account", + "fieldtype": "Link", + "label": "Payable Account", + "options": "Account" + }, + { + "fieldname": "ach_service_class_code", + "fieldtype": "Select", + "label": "ACH Service Class Code", + "options": "200\n220\n225" + }, + { + "description": "PPD is only supported Entry format at this time", + "fieldname": "ach_standard_class_code", + "fieldtype": "Select", + "label": "ACH Standard Class Code", + "options": "PPD" + }, + { + "fieldname": "ach_description", + "fieldtype": "Data", + "label": "ACH Description", + "length": 10 + }, + { + "fieldname": "print_format", + "fieldtype": "Link", + "label": "Print Format", + "options": "Print Format" + }, + { + "default": "0", + "fieldname": "split_by_address", + "fieldtype": "Check", + "label": "Split Invoices by Address" + }, + { + "fieldname": "ach_settings_section", + "fieldtype": "Section Break", + "label": "ACH Settings" + }, + { + "fieldname": "column_break_21", + "fieldtype": "Column Break" + }, + { + "default": "0", + "fieldname": "automatically_release_on_hold_invoices", + "fieldtype": "Check", + "label": "Automatically Release On Hold Invoices" + }, + { + "fieldname": "immediate_origin", + "fieldtype": "Data", + "label": "Immediate Origin" + }, + { + "fieldname": "company_discretionary_data", + "fieldtype": "Data", + "label": "Company Discretionary Data", + "length": 20 + }, + { + "fieldname": "custom_post_processing_hook", + "fieldtype": "Data", + "label": "Custom Post Processing Hook", + "read_only": 1 + }, + { + "fieldname": "default_modes_of_payment_section_section", + "fieldtype": "Section Break", + "label": "Default Modes of Payment Section" + }, + { + "fieldname": "purchase_invoice", + "fieldtype": "Link", + "label": "Purchase Invoice", + "options": "Mode of Payment" + }, + { + "fieldname": "journal_entry", + "fieldtype": "Link", + "label": "Journal Entry", + "options": "Mode of Payment" + }, + { + "fieldname": "expense_claim", + "fieldtype": "Link", + "label": "Expense Claim", + "options": "Mode of Payment" + }, + { + "fieldname": "column_break_27", + "fieldtype": "Column Break" + } + ], + "links": [], + "modified": "2023-12-11 16:08:19.536271", + "modified_by": "Administrator", + "module": "Check Run", + "name": "Check Run Settings", + "naming_rule": "Expression", + "owner": "Administrator", + "permissions": [ + { + "create": 1, + "delete": 1, + "email": 1, + "export": 1, + "print": 1, + "read": 1, + "report": 1, + "role": "System Manager", + "share": 1, + "write": 1 + }, + { + "create": 1, + "delete": 1, + "email": 1, + "export": 1, + "print": 1, + "read": 1, + "report": 1, + "role": "Accounts Manager", + "share": 1, + "write": 1 + } + ], + "quick_entry": 1, + "sort_field": "modified", + "sort_order": "DESC", + "states": [], + "track_changes": 1 +} diff --git a/check_run/check_run/print_format/example_voucher/example_voucher.json b/check_run/check_run/print_format/example_voucher/example_voucher.json index dc88b5d9..ee0cb0b4 100644 --- a/check_run/check_run/print_format/example_voucher/example_voucher.json +++ b/check_run/check_run/print_format/example_voucher/example_voucher.json @@ -1,32 +1,32 @@ { - "absolute_value": 0, - "align_labels_right": 0, - "creation": "2022-08-30 12:27:45.736571", - "css": "@font-face {\n font-family: 'EntezareZohoor2';\n src: url('fonts/EntezareZohoor2.eot'), url('fonts/EntezareZohoor2.ttf') format('truetype'), url('fonts/EntezareZohoor2.svg') format('svg');\n font-weight: normal;\n font-style: normal;\n}\n\n.print-format {\n\tpadding: 0px;\n}\n@media screen {\n\t.print-format {\n\t\tpadding: 0in;\n\t}\n}\n#payer_check_window_block {\n top: 0.7cm; \n left: 0.7cm;\n height: 2.2cm;\n width: 8.8cm;\n position: absolute;\n \n}\n\n#payer_name_block{\n top: 0.1cm; \n left: 1cm;\n position: absolute;\n}\n\n#payee_address_window_block {\n top:4.9cm;\n left: 1.9cm;\n position: absolute; \n width: 8.8cm; \n height:2.2cm;\n}\n\n#address_block{\n top: 0.2cm; \n left: 0.2cm;\n position: relative;\n}\n\n\n\n#memo_block {\n top:7.1cm;\n left: 2cm;\n position: absolute; \n width: 6cm;\n}\n\n\n#check_section_1 {\n font-size: 15px;\n width:20.0cm;\n height:8.9cm;\n}\n\n#check_section_2 {\n height:8.9cm;\n}\n\n#check_section_3 {\n height:8.9cm;\n}\n\n\n#payer_name_block {\ntext-align: center; \n\n}\n\n#payer_name_block {\nwidth:4cm;\ntext-align: center; \nposition: absolute;\n}\n\n#bank_info_block {\nfont-size: 10px;\nwidth:2.5cm;\nheight:1.8cm;\ntext-align: center; \nposition: absolute;\n}\n\n\n#payment_in_words_block {\n font-size: 13px;\n}\n\n#memo_block {\nfont-size: 10px;\n}\n\n#signature_block {\ncolor: blue;\nfont-family: cursive;\n\n}\n#payment_amount_block{\n top:3.3cm;\n left: 17.6cm;\n\tposition: absolute; \n\tmin-width: 4cm;\n\n}\n\n.payment_reference_block {\npadding-left:1cm; \npadding-right:1cm; \n}\n\n.payment_name_cell {\ntext-align: right; \n}\n\n#payment_amount_number_block {\n top:3.3cm;\n left: 17.6cm;\n\tposition: absolute; \n\tmin-width: 4cm;\n}\n\n\n.right_stamp {\n top:2.8cm;\n left: 16.6cm;\n width: 3cm;\n\theight: 1.5cm;\n\tfont-size: 40px;\n \tfort-weight: bold;\n position: absolute; \n}\n\n.sig_stamp {\n top:6.3cm;\n left: 13.8cm;\n width: 3cm;\n\theight: 1.5cm;\n\tfont-size: 40px;\n \tfort-weight: bold;\n position: absolute; \n}\n\n.big_stamp {\n top:2.8cm;\n left: 6.1cm;\n width: 7cm;\n\theight: 3cm;\n\tfont-size: 80px;\n \tfort-weight: bold;\n position: absolute; \n}\n\n\n.stamp {\n\tmargin: 0px;\n\toverflow: hidden;\n display: flex;\n justify-content: space-around;\n align-items: center;\n vertical-align: middle;\n text-align: center;\n\n flex-direction: row;\n color: #555;\n\tfont-weight: 700;\n\tborder: 0.25rem solid #555;\n\tdisplay: inline-block;\n\t\n\ttext-transform: uppercase;\n\tborder-radius: 1rem;\n\tfont-family: 'Courier';\n\t-webkit-mask-image: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/8399/grunge.png');\n -webkit-mask-size: 944px 604px;\n mix-blend-mode: multiply;\n}\n\n\n.is-nope {\n color: #ff5858;\n border: 0.5rem double #D23;\n \t-webkit-mask-position: 2rem 3rem;\n \t\n \n}\n\n.is-draft {\n\tcolor: #ff5858;\n\tborder: 1rem double #ff5858;\n font-size: 6rem;\n font-family: \"Open sans\", Helvetica, Arial, sans-serif;\n border-radius: 0;\n padding: 0.5rem;\n} ", - "custom_format": 1, - "default_print_language": "en", - "disabled": 0, - "doc_type": "Payment Entry", - "docstatus": 0, - "doctype": "Print Format", - "font": "Default", - "font_size": 0, - "html": "
\n \n\t
\n\t {% if doc.docstatus == 0 %}\n VOID DRAFT\n VOID DRAFT\n {% elif doc.docstatus == 2 or overwrite_void %}\n VOID\n VOID\n VOID\n {% endif %}\n\t \n\t
\n\t\t\n\t\t\t{{ doc.company }}\n\t\t\n\t\t
\n\t\t\n\t\t {{ doc.get_formatted('posting_date') }} \n\t\t\n\n\t\t\n\t\t\t{{ doc.party_name }}\n\t\t\n\t\t\n\t\t\n\t
\n\t {{ doc.party_name }}
\n\t {% set address = get_default_address(doc.party_type, doc.party) %}\n\t\t\t{% if address %}\n\t\t\t {{ frappe.get_doc('Address', address).get_display() }}\n\t\t\t{% endif %}\n\t\t\t
\n\t\t
\n\t\t\n\t\t\n\t\t\t{% set money_number = doc.get_formatted('paid_amount')[1:].strip() %} \n\t\t\t\n\t\t\t{% if money_number|length < 18 %}\n\t\t\t\t {% set money_number = ( money_number + '***************************')[:18] %}\n\t\t\t{% endif %}\n\t\t\t{{ money_number }}\n\t\t\n\t\t\n\t\t\t\t{% set money_in_words = frappe.utils.money_in_words(doc.paid_amount)[:-5] %}\n\t\t\t\t{% if money_in_words|length < 90 %}\n\t\t\t\t {% set money_in_words = (money_in_words + '************************************************************************')[:100] %}\n\t\t\t\t{% endif %}\n\t\t\t\t{{ money_in_words }}\n\t\t\n\t\t\n\t\t\n\t\t\t{{ doc.check_memo or '' }} {% if test_lines %} MEMO {% endif %}\n\t\t\n\n\t\t\n\t\t SIGNATURE\n\n\t\t\n \n\t\t\tCHECK#\n\t\t\n\t\t\t\t\n\t\t\tACCOUNT NUMBER {{ doc.account_no or '' }}\n\t\t\n\t\t\n\t\t\tROUTING_NUMBER\n\t\t\n\t
\n
\n{% for i in range(0,2) %}\n {% if i == 0 %}\n
\n {% endif %}\n {% if i == 1 %}\n
\n {% endif %}\n
\n\n\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t{% for reference in doc.references %}\n\t\t\t\t\t\t\n\t\t\t\t\t\t {% if reference.reference_doctype == 'Purchase Invoice' %}\n\t\t\t\t\t\t \n\t\t\t\t\t\t \n\t\t\t\t\t\t\t{% elif reference.reference_doctype == 'Sales Invoice' %}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t \n\t\t\t\t\t\t {% elif reference.reference_doctype == 'Expense Claim' %}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t \n\t\t\t\t\t\t {% elif reference.reference_doctype == 'Journal Entry' %}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t \n\t\t\t\t\t\t\t{% endif %}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t{% endfor %}\n\t\t\t\t
{{doc.party_name}} {{ frappe.utils.formatdate(doc.reference_date) or '' }} {{doc.get_formatted(\"base_paid_amount\")}}
Date Reference Amount Payment
{{ frappe.utils.formatdate(frappe.db.get_value(reference.reference_doctype, reference.reference_name, \"bill_date\")) or \"\"}} {{ frappe.db.get_value(reference.reference_doctype, reference.reference_name, \"bill_no\") or \"\" }}{{ frappe.utils.formatdate(frappe.db.get_value(reference.reference_doctype, reference.reference_name, \"po_date\")) or \"\"}} {{ frappe.db.get_value(reference.reference_doctype, reference.reference_name, \"po_no\") or \"\" }}{{ frappe.utils.formatdate(frappe.db.get_value(reference.reference_doctype, reference.reference_name, \"expense_report_date\")) or \" \"}} {{ frappe.db.get_value(reference.reference_doctype, reference.reference_name, \"name\") or \" \" }} {{ frappe.utils.formatdate(frappe.db.get_value(reference.reference_doctype, reference.reference_name, \"posting_date\")) or \" \"}} {{ frappe.db.get_value(reference.reference_doctype, reference.reference_name, \"name\") or \" \" }} {{ frappe.utils.fmt_money(reference.get_formatted('total_amount'), 2, 'USD')}} {{ reference.get_formatted('allocated_amount')}}
\n
\n
\n{% endfor %}", - "idx": 0, - "line_breaks": 0, - "margin_bottom": 0.0, - "margin_left": 0.0, - "margin_right": 0.0, - "margin_top": 0.0, - "modified": "2023-09-21 16:37:48.625671", - "modified_by": "Administrator", - "module": "Check Run", - "name": "Example Voucher", - "owner": "Administrator", - "print_format_builder": 0, - "print_format_builder_beta": 0, - "print_format_type": "Jinja", - "raw_printing": 0, - "show_section_headings": 0, - "standard": "Yes" -} \ No newline at end of file + "absolute_value": 0, + "align_labels_right": 0, + "creation": "2022-08-30 12:27:45.736571", + "css": "@font-face {\n font-family: 'EntezareZohoor2';\n src: url('fonts/EntezareZohoor2.eot'), url('fonts/EntezareZohoor2.ttf') format('truetype'), url('fonts/EntezareZohoor2.svg') format('svg');\n font-weight: normal;\n font-style: normal;\n}\n\n.print-format {\n\tpadding: 0px;\n}\n@media screen {\n\t.print-format {\n\t\tpadding: 0in;\n\t}\n}\n#payer_check_window_block {\n top: 0.7cm; \n left: 0.7cm;\n height: 2.2cm;\n width: 8.8cm;\n position: absolute;\n \n}\n\n#payer_name_block{\n top: 0.1cm; \n left: 1cm;\n position: absolute;\n}\n\n#payee_address_window_block {\n top:4.9cm;\n left: 1.9cm;\n position: absolute; \n width: 8.8cm; \n height:2.2cm;\n}\n\n#address_block{\n top: 0.2cm; \n left: 0.2cm;\n position: relative;\n}\n\n\n\n#memo_block {\n top:7.1cm;\n left: 2cm;\n position: absolute; \n width: 6cm;\n}\n\n\n#check_section_1 {\n font-size: 15px;\n width:20.0cm;\n height:8.9cm;\n}\n\n#check_section_2 {\n height:8.9cm;\n}\n\n#check_section_3 {\n height:8.9cm;\n}\n\n\n#payer_name_block {\ntext-align: center; \n\n}\n\n#payer_name_block {\nwidth:4cm;\ntext-align: center; \nposition: absolute;\n}\n\n#bank_info_block {\nfont-size: 10px;\nwidth:2.5cm;\nheight:1.8cm;\ntext-align: center; \nposition: absolute;\n}\n\n\n#payment_in_words_block {\n font-size: 13px;\n}\n\n#memo_block {\nfont-size: 10px;\n}\n\n#signature_block {\ncolor: blue;\nfont-family: cursive;\n\n}\n#payment_amount_block{\n top:3.3cm;\n left: 17.6cm;\n\tposition: absolute; \n\tmin-width: 4cm;\n\n}\n\n.payment_reference_block {\npadding-left:1cm; \npadding-right:1cm; \n}\n\n.payment_name_cell {\ntext-align: right; \n}\n\n#payment_amount_number_block {\n top:3.3cm;\n left: 17.6cm;\n\tposition: absolute; \n\tmin-width: 4cm;\n}\n\n\n.right_stamp {\n top:2.8cm;\n left: 16.6cm;\n width: 3cm;\n\theight: 1.5cm;\n\tfont-size: 40px;\n \tfort-weight: bold;\n position: absolute; \n}\n\n.sig_stamp {\n top:6.3cm;\n left: 13.8cm;\n width: 3cm;\n\theight: 1.5cm;\n\tfont-size: 40px;\n \tfort-weight: bold;\n position: absolute; \n}\n\n.big_stamp {\n top:2.8cm;\n left: 6.1cm;\n width: 7cm;\n\theight: 3cm;\n\tfont-size: 80px;\n \tfort-weight: bold;\n position: absolute; \n}\n\n\n.stamp {\n\tmargin: 0px;\n\toverflow: hidden;\n display: flex;\n justify-content: space-around;\n align-items: center;\n vertical-align: middle;\n text-align: center;\n\n flex-direction: row;\n color: #555;\n\tfont-weight: 700;\n\tborder: 0.25rem solid #555;\n\tdisplay: inline-block;\n\t\n\ttext-transform: uppercase;\n\tborder-radius: 1rem;\n\tfont-family: 'Courier';\n\t-webkit-mask-image: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/8399/grunge.png');\n -webkit-mask-size: 944px 604px;\n mix-blend-mode: multiply;\n}\n\n\n.is-nope {\n color: #ff5858;\n border: 0.5rem double #D23;\n \t-webkit-mask-position: 2rem 3rem;\n \t\n \n}\n\n.is-draft {\n\tcolor: #ff5858;\n\tborder: 1rem double #ff5858;\n font-size: 6rem;\n font-family: \"Open sans\", Helvetica, Arial, sans-serif;\n border-radius: 0;\n padding: 0.5rem;\n} ", + "custom_format": 1, + "default_print_language": "en", + "disabled": 0, + "doc_type": "Payment Entry", + "docstatus": 0, + "doctype": "Print Format", + "font": "Default", + "font_size": 0, + "html": "
\n \n\t
\n\t {% if doc.docstatus == 0 %}\n VOID DRAFT\n VOID DRAFT\n {% elif doc.docstatus == 2 or overwrite_void %}\n VOID\n VOID\n VOID\n {% endif %}\n\t \n\t
\n\t\t\n\t\t\t{{ doc.company }}\n\t\t\n\t\t
\n\t\t\n\t\t {{ doc.get_formatted('posting_date') }} \n\t\t\n\n\t\t\n\t\t\t{{ doc.party_name }}\n\t\t\n\t\t\n\t\t\n\t
\n\t {{ doc.party_name }}
\n\t {% set address = get_default_address(doc.party_type, doc.party) %}\n\t\t\t{% if address %}\n\t\t\t {{ frappe.get_doc('Address', address).get_display() }}\n\t\t\t{% endif %}\n\t\t\t
\n\t\t
\n\t\t\n\t\t\n\t\t\t{% set money_number = doc.get_formatted('paid_amount')[1:].strip() %} \n\t\t\t\n\t\t\t{% if money_number|length < 18 %}\n\t\t\t\t {% set money_number = ( money_number + '***************************')[:18] %}\n\t\t\t{% endif %}\n\t\t\t{{ money_number }}\n\t\t\n\t\t\n\t\t\t\t{% set money_in_words = frappe.utils.money_in_words(doc.paid_amount)[:-5] %}\n\t\t\t\t{% if money_in_words|length < 90 %}\n\t\t\t\t {% set money_in_words = (money_in_words + '************************************************************************')[:100] %}\n\t\t\t\t{% endif %}\n\t\t\t\t{{ money_in_words }}\n\t\t\n\t\t\n\t\t\n\t\t\t{{ doc.check_memo or '' }} {% if test_lines %} MEMO {% endif %}\n\t\t\n\n\t\t\n\t\t SIGNATURE\n\n\t\t\n \n\t\t\tCHECK#\n\t\t\n\t\t\t\t\n\t\t\tACCOUNT NUMBER {{ doc.account_no or '' }}\n\t\t\n\t\t\n\t\t\tROUTING_NUMBER\n\t\t\n\t
\n
\n{% for i in range(0,2) %}\n {% if i == 0 %}\n
\n {% endif %}\n {% if i == 1 %}\n
\n {% endif %}\n
\n\n\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t{% for reference in doc.references %}\n\t\t\t\t\t\t\n\t\t\t\t\t\t {% if reference.reference_doctype == 'Purchase Invoice' %}\n\t\t\t\t\t\t \n\t\t\t\t\t\t \n\t\t\t\t\t\t\t{% elif reference.reference_doctype == 'Sales Invoice' %}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t \n\t\t\t\t\t\t {% elif reference.reference_doctype == 'Expense Claim' %}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t \n\t\t\t\t\t\t {% elif reference.reference_doctype == 'Journal Entry' %}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t \n\t\t\t\t\t\t\t{% endif %}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t{% endfor %}\n\t\t\t\t
{{doc.party_name}} {{ frappe.utils.formatdate(doc.reference_date) or '' }} {{doc.get_formatted(\"base_paid_amount\")}}
Date Reference Amount Payment
{{ frappe.utils.formatdate(frappe.db.get_value(reference.reference_doctype, reference.reference_name, \"bill_date\")) or \"\"}} {{ frappe.db.get_value(reference.reference_doctype, reference.reference_name, \"bill_no\") or \"\" }}{{ frappe.utils.formatdate(frappe.db.get_value(reference.reference_doctype, reference.reference_name, \"po_date\")) or \"\"}} {{ frappe.db.get_value(reference.reference_doctype, reference.reference_name, \"po_no\") or \"\" }}{{ frappe.utils.formatdate(frappe.db.get_value(reference.reference_doctype, reference.reference_name, \"expense_report_date\")) or \" \"}} {{ frappe.db.get_value(reference.reference_doctype, reference.reference_name, \"name\") or \" \" }} {{ frappe.utils.formatdate(frappe.db.get_value(reference.reference_doctype, reference.reference_name, \"posting_date\")) or \" \"}} {{ frappe.db.get_value(reference.reference_doctype, reference.reference_name, \"name\") or \" \" }} {{ frappe.utils.fmt_money(reference.get_formatted('total_amount'), 2, 'USD')}} {{ reference.get_formatted('allocated_amount')}}
\n
\n
\n{% endfor %}", + "idx": 0, + "line_breaks": 0, + "margin_bottom": 0.0, + "margin_left": 0.0, + "margin_right": 0.0, + "margin_top": 0.0, + "modified": "2023-09-21 16:37:48.625671", + "modified_by": "Administrator", + "module": "Check Run", + "name": "Example Voucher", + "owner": "Administrator", + "print_format_builder": 0, + "print_format_builder_beta": 0, + "print_format_type": "Jinja", + "raw_printing": 0, + "show_section_headings": 0, + "standard": "Yes" +} diff --git a/check_run/check_run/report/payables_attachments/payables_attachments.json b/check_run/check_run/report/payables_attachments/payables_attachments.json index 96f252df..89bd6c69 100644 --- a/check_run/check_run/report/payables_attachments/payables_attachments.json +++ b/check_run/check_run/report/payables_attachments/payables_attachments.json @@ -1,35 +1,35 @@ { - "add_total_row": 0, - "columns": [], - "creation": "2023-08-11 10:09:28.938669", - "disable_prepared_report": 0, - "disabled": 0, - "docstatus": 0, - "doctype": "Report", - "filters": [], - "idx": 0, - "is_standard": "Yes", - "modified": "2023-08-11 10:09:28.938669", - "modified_by": "Administrator", - "module": "Check Run", - "name": "Payables Attachments", - "owner": "Administrator", - "prepared_report": 0, - "ref_doctype": "Purchase Invoice", - "report_name": "Payables Attachments", - "report_type": "Script Report", - "roles": [ - { - "role": "Accounts User" - }, - { - "role": "Purchase User" - }, - { - "role": "Accounts Manager" - }, - { - "role": "Auditor" - } - ] -} \ No newline at end of file + "add_total_row": 0, + "columns": [], + "creation": "2023-08-11 10:09:28.938669", + "disable_prepared_report": 0, + "disabled": 0, + "docstatus": 0, + "doctype": "Report", + "filters": [], + "idx": 0, + "is_standard": "Yes", + "modified": "2023-08-11 10:09:28.938669", + "modified_by": "Administrator", + "module": "Check Run", + "name": "Payables Attachments", + "owner": "Administrator", + "prepared_report": 0, + "ref_doctype": "Purchase Invoice", + "report_name": "Payables Attachments", + "report_type": "Script Report", + "roles": [ + { + "role": "Accounts User" + }, + { + "role": "Purchase User" + }, + { + "role": "Accounts Manager" + }, + { + "role": "Auditor" + } + ] +} diff --git a/check_run/public/css/file_preview.css b/check_run/public/css/file_preview.css index 5d577a8d..3ce6ec0c 100644 --- a/check_run/public/css/file_preview.css +++ b/check_run/public/css/file_preview.css @@ -1,61 +1,63 @@ -.fa-file-pdf-o { - font-size: 120%; - padding-left: 0.5ch; - color: var(--brand-secondary); -} -#close-pdf-button { - position: absolute; - top: 10px; - right: 10px; -} -#pdf-preview-wrapper { - position: fixed; - width: calc(1290px / 2); - height: calc(100vh - 135px); - top: 135px; - right: calc((100vw - 1290px) / 2); - display: none; -} -#pdf-preview-wrapper.pdf-preview-wrapper-fw { - width: calc(90vw / 2); - height: calc(100vh - 135px); - right: calc(10vw / 2); -} -#pdf-preview-wrapper.pdf-preview-wrapper-fw #pdf-preview { - width: calc(90vw / 2); -} -.page-body.show-pdf-preview #pdf-preview-wrapper { - display: block; -} -#pdf-preview { - position: absolute; - top: 50px; - left: 0; - right: 0; - bottom: 0; - width: calc(1290px / 2); - height: calc(100vh - 135px - 20px); -} -.page-body.show-pdf-preview .page-wrapper .page-content { - width: calc(50% - 10px); -} - -.portal-widget { - position: absolute; - top: 5px; - right:5px; - bottom:5px; - left:5px; - border-radius: 5px; - box-shadow: 0px 1px 2px rgba(25, 39, 52, 0.05), 0px 0px 4px rgba(25, 39, 52, 0.1); -} -a.portal-widget-col { - position: relative; - padding: 20px; - text-decoration: none; -} - -.widget-row { - margin-top: 10px; - margin-bottom: 20px; -} \ No newline at end of file +.fa-file-pdf-o { + font-size: 120%; + padding-left: 0.5ch; + color: var(--brand-secondary); +} +#close-pdf-button { + position: absolute; + top: 10px; + right: 10px; +} +#pdf-preview-wrapper { + position: fixed; + width: calc(1290px / 2); + height: calc(100vh - 135px); + top: 135px; + right: calc((100vw - 1290px) / 2); + display: none; +} +#pdf-preview-wrapper.pdf-preview-wrapper-fw { + width: calc(90vw / 2); + height: calc(100vh - 135px); + right: calc(10vw / 2); +} +#pdf-preview-wrapper.pdf-preview-wrapper-fw #pdf-preview { + width: calc(90vw / 2); +} +.page-body.show-pdf-preview #pdf-preview-wrapper { + display: block; +} +#pdf-preview { + position: absolute; + top: 50px; + left: 0; + right: 0; + bottom: 0; + width: calc(1290px / 2); + height: calc(100vh - 135px - 20px); +} +.page-body.show-pdf-preview .page-wrapper .page-content { + width: calc(50% - 10px); +} + +.portal-widget { + position: absolute; + top: 5px; + right: 5px; + bottom: 5px; + left: 5px; + border-radius: 5px; + box-shadow: + 0px 1px 2px rgba(25, 39, 52, 0.05), + 0px 0px 4px rgba(25, 39, 52, 0.1); +} +a.portal-widget-col { + position: relative; + padding: 20px; + text-decoration: none; +} + +.widget-row { + margin-top: 10px; + margin-bottom: 20px; +} diff --git a/check_run/public/js/check_run/CheckRun.vue b/check_run/public/js/check_run/CheckRun.vue index 8be0c2dc..076d5ef1 100644 --- a/check_run/public/js/check_run/CheckRun.vue +++ b/check_run/public/js/check_run/CheckRun.vue @@ -1,15 +1,15 @@