{
 "actions": [],
 "autoname": "TPCW-.YYYY.-.#####",
 "creation": "2026-04-01 12:00:00.000000",
 "doctype": "DocType",
 "engine": "InnoDB",
 "field_order": [
  "wizard_status_section",
  "wizard_status",
  "column_break_ws1",
  "progress_percent",
  "progress_bar_html",
  "company_section",
  "company",
  "column_break_c1",
  "tax_regime",
  "column_break_c2",
  "fiscal_year",
  "period_section",
  "period_type",
  "column_break_p1",
  "quarter",
  "month",
  "column_break_p2",
  "from_date",
  "to_date",
  "options_section",
  "cost_center",
  "column_break_o1",
  "auto_submit",
  "column_break_o2",
  "enable_period_closing_voucher",
  "closing_account",

  "tab_dashboard",
  "company_info_section",
  "company_voen",
  "company_activity_code",
  "column_break_ci1",
  "company_classification",
  "company_tax_authority",
  "column_break_ci2",
  "is_vat_payer",
  "has_assets",
  "has_land",
  "has_employees",
  "dashboard_financials_section",
  "total_income",
  "column_break_fd1",
  "total_expense",
  "column_break_fd2",
  "net_profit",
  "dashboard_assets_section",
  "total_asset_value",
  "accumulated_depreciation",
  "column_break_ad1",
  "net_book_value",
  "avg_annual_value",
  "benefits_section",
  "benefits_html",
  "detected_benefits",
  "dashboard_totals_section",
  "total_tax_amount",
  "column_break_tt1",
  "total_payroll_taxes",
  "column_break_tt2",
  "grand_total_tax_burden",

  "tab_tax_details",
  "taxes_section",
  "tax_items",
  "entry_preview_section",
  "entry_previews",

  "tab_results",
  "journal_entries_section",
  "journal_entries",
  "payroll_section",
  "payroll_summary",
  "summary_section",
  "summary_html",

  "tab_log",
  "log_section",
  "log_html",
  "log_entries",

  "amended_from"
 ],
 "fields": [
  {
   "fieldname": "wizard_status_section",
   "fieldtype": "Section Break",
   "label": "Status"
  },
  {
   "default": "Draft",
   "fieldname": "wizard_status",
   "fieldtype": "Select",
   "in_list_view": 1,
   "label": "Wizard Status",
   "options": "Draft\nCalculated\nEntries Created\nCompleted\nError\nCancelled",
   "read_only": 1
  },
  {
   "fieldname": "column_break_ws1",
   "fieldtype": "Column Break"
  },
  {
   "default": "0",
   "fieldname": "progress_percent",
   "fieldtype": "Percent",
   "label": "Progress",
   "read_only": 1
  },
  {
   "fieldname": "progress_bar_html",
   "fieldtype": "HTML",
   "label": "Progress Bar"
  },
  {
   "fieldname": "company_section",
   "fieldtype": "Section Break",
   "label": "Company"
  },
  {
   "fieldname": "company",
   "fieldtype": "Link",
   "in_list_view": 1,
   "label": "Company",
   "options": "Company",
   "reqd": 1
  },
  {
   "fieldname": "column_break_c1",
   "fieldtype": "Column Break"
  },
  {
   "fieldname": "tax_regime",
   "fieldtype": "Select",
   "in_list_view": 1,
   "label": "Tax Regime",
   "options": "\nGeneral (VAT + Profit)\nSimplified Tax\nSpecial Regime"
  },
  {
   "fieldname": "column_break_c2",
   "fieldtype": "Column Break"
  },
  {
   "fieldname": "fiscal_year",
   "fieldtype": "Link",
   "label": "Fiscal Year",
   "options": "Fiscal Year",
   "reqd": 1
  },
  {
   "fieldname": "period_section",
   "fieldtype": "Section Break",
   "label": "Period"
  },
  {
   "default": "Quarterly",
   "fieldname": "period_type",
   "fieldtype": "Select",
   "label": "Period Type",
   "options": "Monthly\nQuarterly\nAnnually",
   "reqd": 1
  },
  {
   "fieldname": "column_break_p1",
   "fieldtype": "Column Break"
  },
  {
   "depends_on": "eval:doc.period_type=='Quarterly'",
   "fieldname": "quarter",
   "fieldtype": "Select",
   "label": "Quarter",
   "options": "\nQ1 (Jan-Mar)\nQ2 (Apr-Jun)\nQ3 (Jul-Sep)\nQ4 (Oct-Dec)"
  },
  {
   "depends_on": "eval:doc.period_type=='Monthly'",
   "fieldname": "month",
   "fieldtype": "Select",
   "label": "Month",
   "options": "\nJanuary\nFebruary\nMarch\nApril\nMay\nJune\nJuly\nAugust\nSeptember\nOctober\nNovember\nDecember"
  },
  {
   "fieldname": "column_break_p2",
   "fieldtype": "Column Break"
  },
  {
   "fieldname": "from_date",
   "fieldtype": "Date",
   "label": "From Date",
   "read_only": 1
  },
  {
   "fieldname": "to_date",
   "fieldtype": "Date",
   "label": "To Date",
   "read_only": 1
  },
  {
   "fieldname": "options_section",
   "fieldtype": "Section Break",
   "collapsible": 1,
   "label": "Options"
  },
  {
   "fieldname": "cost_center",
   "fieldtype": "Link",
   "label": "Cost Center",
   "options": "Cost Center"
  },
  {
   "fieldname": "column_break_o1",
   "fieldtype": "Column Break"
  },
  {
   "default": "0",
   "fieldname": "auto_submit",
   "fieldtype": "Check",
   "label": "Auto-submit Journal Entries"
  },
  {
   "fieldname": "column_break_o2",
   "fieldtype": "Column Break"
  },
  {
   "default": "0",
   "fieldname": "enable_period_closing_voucher",
   "fieldtype": "Check",
   "label": "Create Period Closing Voucher"
  },
  {
   "depends_on": "enable_period_closing_voucher",
   "fieldname": "closing_account",
   "fieldtype": "Link",
   "label": "Closing Account",
   "options": "Account"
  },
  {
   "fieldname": "tab_dashboard",
   "fieldtype": "Tab Break",
   "label": "Dashboard"
  },
  {
   "fieldname": "company_info_section",
   "fieldtype": "Section Break",
   "label": "Company Info"
  },
  {
   "fieldname": "company_voen",
   "fieldtype": "Data",
   "label": "VOEN",
   "read_only": 1
  },
  {
   "fieldname": "company_activity_code",
   "fieldtype": "Data",
   "label": "Activity Code (OKVED)",
   "read_only": 1
  },
  {
   "fieldname": "column_break_ci1",
   "fieldtype": "Column Break"
  },
  {
   "fieldname": "company_classification",
   "fieldtype": "Data",
   "label": "Business Classification",
   "read_only": 1
  },
  {
   "fieldname": "company_tax_authority",
   "fieldtype": "Data",
   "label": "Tax Authority",
   "read_only": 1
  },
  {
   "fieldname": "column_break_ci2",
   "fieldtype": "Column Break"
  },
  {
   "default": "0",
   "fieldname": "is_vat_payer",
   "fieldtype": "Check",
   "label": "VAT Payer",
   "read_only": 1
  },
  {
   "default": "0",
   "fieldname": "has_assets",
   "fieldtype": "Check",
   "label": "Has Fixed Assets",
   "read_only": 1
  },
  {
   "default": "0",
   "fieldname": "has_land",
   "fieldtype": "Check",
   "label": "Has Land",
   "read_only": 1
  },
  {
   "default": "0",
   "fieldname": "has_employees",
   "fieldtype": "Check",
   "label": "Has Employees",
   "read_only": 1
  },
  {
   "fieldname": "benefits_section",
   "fieldtype": "Section Break",
   "label": "Detected Tax Benefits & Exemptions"
  },
  {
   "fieldname": "benefits_html",
   "fieldtype": "HTML",
   "label": "Benefits Display"
  },
  {
   "description": "Auto-detected tax benefits. Uncheck 'Apply' to skip.",
   "fieldname": "detected_benefits",
   "fieldtype": "Table",
   "label": "Benefits Data",
   "options": "Tax Closing Benefit",
   "hidden": 1
  },
  {
   "fieldname": "tab_tax_details",
   "fieldtype": "Tab Break",
   "label": "Tax Details"
  },
  {
   "fieldname": "taxes_section",
   "fieldtype": "Section Break",
   "label": "Applicable Taxes"
  },
  {
   "fieldname": "tax_items",
   "fieldtype": "Table",
   "label": "Tax Items",
   "options": "Tax Closing Tax Item"
  },
  {
   "fieldname": "dashboard_financials_section",
   "fieldtype": "Section Break",
   "label": "Financial Data"
  },
  {
   "fieldname": "total_income",
   "fieldtype": "Currency",
   "label": "Total Income",
   "precision": "2",
   "read_only": 1
  },
  {
   "fieldname": "column_break_fd1",
   "fieldtype": "Column Break"
  },
  {
   "fieldname": "total_expense",
   "fieldtype": "Currency",
   "label": "Total Expense",
   "precision": "2",
   "read_only": 1
  },
  {
   "fieldname": "column_break_fd2",
   "fieldtype": "Column Break"
  },
  {
   "fieldname": "net_profit",
   "fieldtype": "Currency",
   "label": "Net Profit / Loss",
   "precision": "2",
   "read_only": 1
  },
  {
   "fieldname": "dashboard_assets_section",
   "fieldtype": "Section Break",
   "collapsible": 1,
   "label": "Asset Data"
  },
  {
   "fieldname": "total_asset_value",
   "fieldtype": "Currency",
   "label": "Total Asset Value (Gross)",
   "precision": "2",
   "read_only": 1
  },
  {
   "fieldname": "accumulated_depreciation",
   "fieldtype": "Currency",
   "label": "Accumulated Depreciation",
   "precision": "2",
   "read_only": 1
  },
  {
   "fieldname": "column_break_ad1",
   "fieldtype": "Column Break"
  },
  {
   "fieldname": "net_book_value",
   "fieldtype": "Currency",
   "label": "Net Book Value",
   "precision": "2",
   "read_only": 1
  },
  {
   "fieldname": "avg_annual_value",
   "fieldtype": "Currency",
   "label": "Avg Annual Value",
   "precision": "2",
   "read_only": 1
  },
  {
   "fieldname": "payroll_section",
   "fieldtype": "Section Break",
   "label": "Payroll Summary (Data Only)"
  },
  {
   "fieldname": "payroll_summary",
   "fieldtype": "Table",
   "label": "Payroll Summary",
   "options": "Tax Closing Payroll Summary",
   "read_only": 1
  },
  {
   "fieldname": "entry_preview_section",
   "fieldtype": "Section Break",
   "label": "Entry Preview"
  },
  {
   "fieldname": "entry_previews",
   "fieldtype": "Table",
   "label": "Entry Previews",
   "options": "Tax Closing Entry Preview",
   "read_only": 1
  },
  {
   "fieldname": "tab_results",
   "fieldtype": "Tab Break",
   "label": "Results"
  },
  {
   "fieldname": "journal_entries_section",
   "fieldtype": "Section Break",
   "label": "Created Journal Entries"
  },
  {
   "fieldname": "journal_entries",
   "fieldtype": "Table",
   "label": "Journal Entries",
   "options": "Tax Closing Journal Entry",
   "read_only": 1
  },
  {
   "fieldname": "tab_log",
   "fieldtype": "Tab Break",
   "label": "Log"
  },
  {
   "fieldname": "log_section",
   "fieldtype": "Section Break",
   "label": "Execution Log"
  },
  {
   "fieldname": "log_html",
   "fieldtype": "HTML",
   "label": "Log Display"
  },
  {
   "fieldname": "log_entries",
   "fieldtype": "Table",
   "label": "Log Entries",
   "options": "Tax Closing Log Entry",
   "read_only": 1
  },
  {
   "fieldname": "summary_section",
   "fieldtype": "Section Break",
   "label": "Summary Report"
  },
  {
   "fieldname": "summary_html",
   "fieldtype": "HTML",
   "label": "Summary Display"
  },
  {
   "fieldname": "dashboard_totals_section",
   "fieldtype": "Section Break",
   "label": "Totals"
  },
  {
   "bold": 1,
   "fieldname": "total_tax_amount",
   "fieldtype": "Currency",
   "label": "Total Tax Amount (Entries Created)",
   "precision": "2",
   "read_only": 1
  },
  {
   "fieldname": "column_break_tt1",
   "fieldtype": "Column Break"
  },
  {
   "bold": 1,
   "fieldname": "total_payroll_taxes",
   "fieldtype": "Currency",
   "label": "Total Payroll Taxes (Data Only)",
   "precision": "2",
   "read_only": 1
  },
  {
   "fieldname": "column_break_tt2",
   "fieldtype": "Column Break"
  },
  {
   "bold": 1,
   "fieldname": "grand_total_tax_burden",
   "fieldtype": "Currency",
   "label": "Grand Total Tax Burden",
   "precision": "2",
   "read_only": 1
  },
  {
   "fieldname": "amended_from",
   "fieldtype": "Link",
   "label": "Amended From",
   "no_copy": 1,
   "options": "Tax Period Closing Wizard",
   "print_hide": 1,
   "read_only": 1,
   "search_index": 1
  }
 ],
 "index_web_pages_for_search": 1,
 "is_submittable": 1,
 "links": [],
 "modified": "2026-04-01 12:00:00.000000",
 "modified_by": "Administrator",
 "module": "Taxes Az",
 "name": "Tax Period Closing Wizard",
 "naming_rule": "Expression",
 "owner": "Administrator",
 "permissions": [
  {
   "cancel": 1,
   "create": 1,
   "delete": 1,
   "email": 1,
   "export": 1,
   "print": 1,
   "read": 1,
   "report": 1,
   "role": "System Manager",
   "share": 1,
   "submit": 1,
   "write": 1
  },
  {
   "cancel": 1,
   "create": 1,
   "delete": 1,
   "email": 1,
   "export": 1,
   "print": 1,
   "read": 1,
   "report": 1,
   "role": "Accounts Manager",
   "share": 1,
   "submit": 1,
   "write": 1
  }
 ],
 "sort_field": "creation",
 "sort_order": "DESC",
 "states": [],
 "track_changes": 1
}
