diff --git a/custom_ui/fixtures/company.json b/custom_ui/fixtures/company.json new file mode 100644 index 0000000..c83880a --- /dev/null +++ b/custom_ui/fixtures/company.json @@ -0,0 +1,530 @@ +[ + { + "abbr": "VS", + "accumulated_depreciation_account": "Accumulated Depreciation - VS", + "allow_account_creation_against_child_company": 0, + "asset_received_but_not_billed": "Asset Received But Not Billed - VS", + "auto_err_frequency": "Daily", + "auto_exchange_rate_revaluation": 0, + "book_advance_payments_in_separate_party_account": 0, + "capital_work_in_progress_account": "CWIP Account - VS", + "chart_of_accounts": "Standard", + "company_description": null, + "company_logo": null, + "company_name": "Veritas Stone", + "cost_center": "Main - VS", + "country": "United States", + "create_chart_of_accounts_based_on": "Standard Template", + "credit_limit": 0.0, + "date_of_commencement": null, + "date_of_establishment": null, + "date_of_incorporation": null, + "default_advance_paid_account": null, + "default_advance_received_account": null, + "default_bank_account": null, + "default_buying_terms": null, + "default_cash_account": "Cash - VS", + "default_currency": "USD", + "default_deferred_expense_account": null, + "default_deferred_revenue_account": null, + "default_discount_account": null, + "default_employee_advance_account": null, + "default_expense_account": "Cost of Goods Sold - VS", + "default_expense_claim_payable_account": "Creditors - VS", + "default_finance_book": null, + "default_holiday_list": null, + "default_in_transit_warehouse": null, + "default_income_account": "Sales - VS", + "default_inventory_account": "Stock In Hand - VS", + "default_letter_head": null, + "default_operating_cost_account": null, + "default_payable_account": "Creditors - VS", + "default_payroll_payable_account": null, + "default_provisional_account": null, + "default_receivable_account": "Debtors - VS", + "default_sales_contact": null, + "default_selling_terms": null, + "default_warehouse_for_sales_return": null, + "depreciation_cost_center": "Main - VS", + "depreciation_expense_account": "Depreciation - VS", + "disposal_account": "Gain/Loss on Asset Disposal - VS", + "docstatus": 0, + "doctype": "Company", + "domain": null, + "email": null, + "enable_perpetual_inventory": 1, + "enable_provisional_accounting_for_non_stock_items": 0, + "exception_budget_approver_role": null, + "exchange_gain_loss_account": "Exchange Gain/Loss - VS", + "existing_company": null, + "expenses_included_in_asset_valuation": "Expenses Included In Asset Valuation - VS", + "expenses_included_in_valuation": "Expenses Included In Valuation - VS", + "fax": null, + "is_group": 0, + "modified": "2026-02-09 00:00:22.001932", + "monthly_sales_target": 0.0, + "name": "Veritas Stone", + "old_parent": "", + "parent_company": null, + "payment_terms": null, + "phone_no": null, + "reconcile_on_advance_payment_date": 0, + "reconciliation_takes_effect_on": "Oldest Of Invoice Or Advance", + "registration_details": null, + "round_off_account": "Round Off - VS", + "round_off_cost_center": "Main - VS", + "round_off_for_opening": null, + "sales_monthly_history": "{}", + "series_for_depreciation_entry": null, + "stock_adjustment_account": "Stock Adjustment - VS", + "stock_received_but_not_billed": "Stock Received But Not Billed - VS", + "submit_err_jv": 0, + "tax_id": null, + "total_monthly_sales": 0.0, + "transactions_annual_history": "{}", + "unrealized_exchange_gain_loss_account": null, + "unrealized_profit_loss_account": null, + "website": null, + "write_off_account": "Write Off - VS" + }, + { + "abbr": "DL", + "accumulated_depreciation_account": "Accumulated Depreciation - DL", + "allow_account_creation_against_child_company": 0, + "asset_received_but_not_billed": "Asset Received But Not Billed - DL", + "auto_err_frequency": "Daily", + "auto_exchange_rate_revaluation": 0, + "book_advance_payments_in_separate_party_account": 0, + "capital_work_in_progress_account": "CWIP Account - DL", + "chart_of_accounts": "Standard", + "company_description": null, + "company_logo": null, + "company_name": "Daniels Landscape Supplies", + "cost_center": "Main - DL", + "country": "United States", + "create_chart_of_accounts_based_on": "Standard Template", + "credit_limit": 0.0, + "date_of_commencement": null, + "date_of_establishment": null, + "date_of_incorporation": null, + "default_advance_paid_account": null, + "default_advance_received_account": null, + "default_bank_account": null, + "default_buying_terms": null, + "default_cash_account": "Cash - DL", + "default_currency": "USD", + "default_deferred_expense_account": null, + "default_deferred_revenue_account": null, + "default_discount_account": null, + "default_employee_advance_account": null, + "default_expense_account": "Cost of Goods Sold - DL", + "default_expense_claim_payable_account": "Creditors - DL", + "default_finance_book": null, + "default_holiday_list": null, + "default_in_transit_warehouse": null, + "default_income_account": "Sales - DL", + "default_inventory_account": "Stock In Hand - DL", + "default_letter_head": null, + "default_operating_cost_account": null, + "default_payable_account": "Creditors - DL", + "default_payroll_payable_account": null, + "default_provisional_account": null, + "default_receivable_account": "Debtors - DL", + "default_sales_contact": null, + "default_selling_terms": null, + "default_warehouse_for_sales_return": null, + "depreciation_cost_center": "Main - DL", + "depreciation_expense_account": "Depreciation - DL", + "disposal_account": "Gain/Loss on Asset Disposal - DL", + "docstatus": 0, + "doctype": "Company", + "domain": null, + "email": null, + "enable_perpetual_inventory": 1, + "enable_provisional_accounting_for_non_stock_items": 0, + "exception_budget_approver_role": null, + "exchange_gain_loss_account": "Exchange Gain/Loss - DL", + "existing_company": null, + "expenses_included_in_asset_valuation": "Expenses Included In Asset Valuation - DL", + "expenses_included_in_valuation": "Expenses Included In Valuation - DL", + "fax": null, + "is_group": 0, + "modified": "2026-02-09 00:00:22.004127", + "monthly_sales_target": 0.0, + "name": "Daniels Landscape Supplies", + "old_parent": "", + "parent_company": null, + "payment_terms": null, + "phone_no": null, + "reconcile_on_advance_payment_date": 0, + "reconciliation_takes_effect_on": "Oldest Of Invoice Or Advance", + "registration_details": null, + "round_off_account": "Round Off - DL", + "round_off_cost_center": "Main - DL", + "round_off_for_opening": null, + "sales_monthly_history": "{}", + "series_for_depreciation_entry": null, + "stock_adjustment_account": "Stock Adjustment - DL", + "stock_received_but_not_billed": "Stock Received But Not Billed - DL", + "submit_err_jv": 0, + "tax_id": null, + "total_monthly_sales": 0.0, + "transactions_annual_history": "{}", + "unrealized_exchange_gain_loss_account": null, + "unrealized_profit_loss_account": null, + "website": null, + "write_off_account": "Write Off - DL" + }, + { + "abbr": "SD", + "accumulated_depreciation_account": "Accumulated Depreciation - SD", + "allow_account_creation_against_child_company": 0, + "asset_received_but_not_billed": "Asset Received But Not Billed - SD", + "auto_err_frequency": "Daily", + "auto_exchange_rate_revaluation": 0, + "book_advance_payments_in_separate_party_account": 0, + "capital_work_in_progress_account": "CWIP Account - SD", + "chart_of_accounts": "Standard", + "company_description": null, + "company_logo": null, + "company_name": "sprinklersnorthwest (Demo)", + "cost_center": "Main - SD", + "country": "United States", + "create_chart_of_accounts_based_on": "Standard Template", + "credit_limit": 0.0, + "date_of_commencement": null, + "date_of_establishment": null, + "date_of_incorporation": null, + "default_advance_paid_account": null, + "default_advance_received_account": null, + "default_bank_account": "Bank Account - SD", + "default_buying_terms": null, + "default_cash_account": "Cash - SD", + "default_currency": "USD", + "default_deferred_expense_account": null, + "default_deferred_revenue_account": null, + "default_discount_account": null, + "default_employee_advance_account": null, + "default_expense_account": "Cost of Goods Sold - SD", + "default_expense_claim_payable_account": "Creditors - SD", + "default_finance_book": null, + "default_holiday_list": null, + "default_in_transit_warehouse": null, + "default_income_account": "Sales - SD", + "default_inventory_account": "Stock In Hand - SD", + "default_letter_head": null, + "default_operating_cost_account": null, + "default_payable_account": "Creditors - SD", + "default_payroll_payable_account": null, + "default_provisional_account": null, + "default_receivable_account": "Debtors - SD", + "default_sales_contact": null, + "default_selling_terms": null, + "default_warehouse_for_sales_return": null, + "depreciation_cost_center": "Main - SD", + "depreciation_expense_account": "Depreciation - SD", + "disposal_account": "Gain/Loss on Asset Disposal - SD", + "docstatus": 0, + "doctype": "Company", + "domain": null, + "email": null, + "enable_perpetual_inventory": 1, + "enable_provisional_accounting_for_non_stock_items": 0, + "exception_budget_approver_role": null, + "exchange_gain_loss_account": "Exchange Gain/Loss - SD", + "existing_company": null, + "expenses_included_in_asset_valuation": "Expenses Included In Asset Valuation - SD", + "expenses_included_in_valuation": "Expenses Included In Valuation - SD", + "fax": null, + "is_group": 0, + "modified": "2026-02-09 00:00:22.005673", + "monthly_sales_target": 0.0, + "name": "sprinklersnorthwest (Demo)", + "old_parent": "", + "parent_company": null, + "payment_terms": null, + "phone_no": null, + "reconcile_on_advance_payment_date": 0, + "reconciliation_takes_effect_on": "Oldest Of Invoice Or Advance", + "registration_details": null, + "round_off_account": "Round Off - SD", + "round_off_cost_center": "Main - SD", + "round_off_for_opening": null, + "sales_monthly_history": "{}", + "series_for_depreciation_entry": null, + "stock_adjustment_account": "Stock Adjustment - SD", + "stock_received_but_not_billed": "Stock Received But Not Billed - SD", + "submit_err_jv": 0, + "tax_id": null, + "total_monthly_sales": 0.0, + "transactions_annual_history": "{}", + "unrealized_exchange_gain_loss_account": null, + "unrealized_profit_loss_account": null, + "website": null, + "write_off_account": "Write Off - SD" + }, + { + "abbr": "NYC", + "accumulated_depreciation_account": "Accumulated Depreciation - NYC", + "allow_account_creation_against_child_company": 0, + "asset_received_but_not_billed": "Asset Received But Not Billed - NYC", + "auto_err_frequency": "Daily", + "auto_exchange_rate_revaluation": 0, + "book_advance_payments_in_separate_party_account": 1, + "capital_work_in_progress_account": "CWIP Account - NYC", + "chart_of_accounts": "Standard", + "company_description": null, + "company_logo": null, + "company_name": "Nuco Yard Care", + "cost_center": "Main - NYC", + "country": "United States", + "create_chart_of_accounts_based_on": "Standard Template", + "credit_limit": 0.0, + "date_of_commencement": null, + "date_of_establishment": null, + "date_of_incorporation": null, + "default_advance_paid_account": null, + "default_advance_received_account": null, + "default_bank_account": null, + "default_buying_terms": null, + "default_cash_account": "Cash - NYC", + "default_currency": "USD", + "default_deferred_expense_account": null, + "default_deferred_revenue_account": null, + "default_discount_account": null, + "default_employee_advance_account": null, + "default_expense_account": "Cost of Goods Sold - NYC", + "default_expense_claim_payable_account": "Creditors - NYC", + "default_finance_book": null, + "default_holiday_list": "Standard Holiday List", + "default_in_transit_warehouse": null, + "default_income_account": "Sales - NYC", + "default_inventory_account": "Stock In Hand - NYC", + "default_letter_head": null, + "default_operating_cost_account": null, + "default_payable_account": "Creditors - NYC", + "default_payroll_payable_account": null, + "default_provisional_account": null, + "default_receivable_account": "Debtors - NYC", + "default_sales_contact": null, + "default_selling_terms": null, + "default_warehouse_for_sales_return": null, + "depreciation_cost_center": "Main - NYC", + "depreciation_expense_account": "Depreciation - NYC", + "disposal_account": "Gain/Loss on Asset Disposal - NYC", + "docstatus": 0, + "doctype": "Company", + "domain": null, + "email": "operations@nucoyardcare.com", + "enable_perpetual_inventory": 1, + "enable_provisional_accounting_for_non_stock_items": 0, + "exception_budget_approver_role": null, + "exchange_gain_loss_account": "Exchange Gain/Loss - NYC", + "existing_company": null, + "expenses_included_in_asset_valuation": "Expenses Included In Asset Valuation - NYC", + "expenses_included_in_valuation": "Expenses Included In Valuation - NYC", + "fax": null, + "is_group": 0, + "modified": "2026-02-09 00:00:22.008571", + "monthly_sales_target": 0.0, + "name": "Nuco Yard Care", + "old_parent": "", + "parent_company": null, + "payment_terms": null, + "phone_no": "208-518-6032", + "reconcile_on_advance_payment_date": 0, + "reconciliation_takes_effect_on": "Oldest Of Invoice Or Advance", + "registration_details": null, + "round_off_account": "Round Off - NYC", + "round_off_cost_center": "Main - NYC", + "round_off_for_opening": null, + "sales_monthly_history": "{}", + "series_for_depreciation_entry": null, + "stock_adjustment_account": "Stock Adjustment - NYC", + "stock_received_but_not_billed": "Stock Received But Not Billed - NYC", + "submit_err_jv": 0, + "tax_id": null, + "total_monthly_sales": 0.0, + "transactions_annual_history": "{}", + "unrealized_exchange_gain_loss_account": null, + "unrealized_profit_loss_account": null, + "website": "www.nucoyardcare.com", + "write_off_account": "Write Off - NYC" + }, + { + "abbr": "LF", + "accumulated_depreciation_account": "Accumulated Depreciation - LF", + "allow_account_creation_against_child_company": 0, + "asset_received_but_not_billed": "Asset Received But Not Billed - LF", + "auto_err_frequency": "Daily", + "auto_exchange_rate_revaluation": 0, + "book_advance_payments_in_separate_party_account": 0, + "capital_work_in_progress_account": "CWIP Account - LF", + "chart_of_accounts": "Standard", + "company_description": null, + "company_logo": null, + "company_name": "Lowe Fencing", + "cost_center": "Main - LF", + "country": "United States", + "create_chart_of_accounts_based_on": "Standard Template", + "credit_limit": 0.0, + "date_of_commencement": null, + "date_of_establishment": null, + "date_of_incorporation": null, + "default_advance_paid_account": null, + "default_advance_received_account": null, + "default_bank_account": null, + "default_buying_terms": null, + "default_cash_account": "Cash - LF", + "default_currency": "USD", + "default_deferred_expense_account": null, + "default_deferred_revenue_account": null, + "default_discount_account": null, + "default_employee_advance_account": null, + "default_expense_account": "Cost of Goods Sold - LF", + "default_expense_claim_payable_account": "Creditors - LF", + "default_finance_book": null, + "default_holiday_list": "Standard Holiday List", + "default_in_transit_warehouse": null, + "default_income_account": "Fencing Sales - LF", + "default_inventory_account": "Stock In Hand - LF", + "default_letter_head": "Lowe Fencing", + "default_operating_cost_account": null, + "default_payable_account": "Creditors - LF", + "default_payroll_payable_account": null, + "default_provisional_account": null, + "default_receivable_account": "Debtors - LF", + "default_sales_contact": null, + "default_selling_terms": null, + "default_warehouse_for_sales_return": null, + "depreciation_cost_center": "Main - LF", + "depreciation_expense_account": "Depreciation - LF", + "disposal_account": "Gain/Loss on Asset Disposal - LF", + "docstatus": 0, + "doctype": "Company", + "domain": null, + "email": "office@lowefencing.com", + "enable_perpetual_inventory": 1, + "enable_provisional_accounting_for_non_stock_items": 0, + "exception_budget_approver_role": null, + "exchange_gain_loss_account": "Exchange Gain/Loss - LF", + "existing_company": null, + "expenses_included_in_asset_valuation": "Expenses Included In Asset Valuation - LF", + "expenses_included_in_valuation": "Expenses Included In Valuation - LF", + "fax": null, + "is_group": 0, + "modified": "2026-02-09 00:00:22.007134", + "monthly_sales_target": 0.0, + "name": "Lowe Fencing", + "old_parent": "", + "parent_company": null, + "payment_terms": null, + "phone_no": "2084848165", + "reconcile_on_advance_payment_date": 0, + "reconciliation_takes_effect_on": "Oldest Of Invoice Or Advance", + "registration_details": null, + "round_off_account": "Round Off - LF", + "round_off_cost_center": "Main - LF", + "round_off_for_opening": null, + "sales_monthly_history": "{}", + "series_for_depreciation_entry": null, + "stock_adjustment_account": "Stock Adjustment - LF", + "stock_received_but_not_billed": "Stock Received But Not Billed - LF", + "submit_err_jv": 0, + "tax_id": "81-1640506", + "total_monthly_sales": 0.0, + "transactions_annual_history": "{}", + "unrealized_exchange_gain_loss_account": null, + "unrealized_profit_loss_account": null, + "website": null, + "write_off_account": "Write Off - LF" + }, + { + "abbr": "S", + "accumulated_depreciation_account": "Accumulated Depreciation - S", + "allow_account_creation_against_child_company": 0, + "asset_received_but_not_billed": "Asset Received But Not Billed - S", + "auto_err_frequency": "Daily", + "auto_exchange_rate_revaluation": 0, + "book_advance_payments_in_separate_party_account": 1, + "capital_work_in_progress_account": "CWIP Account - S", + "chart_of_accounts": "Standard", + "company_description": null, + "company_logo": null, + "company_name": "Sprinklers Northwest", + "cost_center": "Main - S", + "country": "United States", + "create_chart_of_accounts_based_on": "Standard Template", + "credit_limit": 0.0, + "date_of_commencement": null, + "date_of_establishment": null, + "date_of_incorporation": "2009-04-06", + "default_advance_paid_account": null, + "default_advance_received_account": "Customer Deposits - S", + "default_bank_account": "Undeposited Funds - S", + "default_buying_terms": null, + "default_cash_account": "Undeposited Funds - S", + "default_currency": "USD", + "default_deferred_expense_account": null, + "default_deferred_revenue_account": null, + "default_discount_account": null, + "default_employee_advance_account": "Employee Advances - S", + "default_expense_account": "Cost of Goods Sold - S", + "default_expense_claim_payable_account": "Creditors - S", + "default_finance_book": null, + "default_holiday_list": "Standard Holiday List", + "default_in_transit_warehouse": null, + "default_income_account": "Sales - S", + "default_inventory_account": "Stock In Hand - S", + "default_letter_head": "Sprinklers Northwest", + "default_operating_cost_account": null, + "default_payable_account": "Creditors - S", + "default_payroll_payable_account": "Payroll Payable - S", + "default_provisional_account": null, + "default_receivable_account": "Debtors - S", + "default_sales_contact": null, + "default_selling_terms": null, + "default_warehouse_for_sales_return": null, + "depreciation_cost_center": "Main - S", + "depreciation_expense_account": "Depreciation - S", + "disposal_account": "Gain/Loss on Asset Disposal - S", + "docstatus": 0, + "doctype": "Company", + "domain": "", + "email": "info@sprinklersnorthwest.com", + "enable_perpetual_inventory": 1, + "enable_provisional_accounting_for_non_stock_items": 0, + "exception_budget_approver_role": null, + "exchange_gain_loss_account": "Exchange Gain/Loss - S", + "existing_company": null, + "expenses_included_in_asset_valuation": "Expenses Included In Asset Valuation - S", + "expenses_included_in_valuation": "Expenses Included In Valuation - S", + "fax": null, + "is_group": 0, + "modified": "2026-02-09 00:00:22.010580", + "monthly_sales_target": 0.0, + "name": "Sprinklers Northwest", + "old_parent": "", + "parent_company": null, + "payment_terms": null, + "phone_no": "208-818-8838", + "reconcile_on_advance_payment_date": 0, + "reconciliation_takes_effect_on": "Oldest Of Invoice Or Advance", + "registration_details": null, + "round_off_account": "Round Off - S", + "round_off_cost_center": "Main - S", + "round_off_for_opening": null, + "sales_monthly_history": "{\"02-2025\": 0.0, \"05-2025\": 0.0, \"07-2025\": 0.0}", + "series_for_depreciation_entry": null, + "stock_adjustment_account": "Stock Adjustment - S", + "stock_received_but_not_billed": "Stock Received But Not Billed - S", + "submit_err_jv": 0, + "tax_id": "26-4603792", + "total_monthly_sales": 50.0, + "transactions_annual_history": "{\"1739422800.0\": 1, \"1740459600.0\": 1, \"1740546000.0\": 1, \"1741150800.0\": 1, \"1744862400.0\": 1, \"1744948800.0\": 1, \"1745553600.0\": 3, \"1746158400.0\": 1, \"1746590400.0\": 1, \"1746676800.0\": 2, \"1746849600.0\": 1, \"1747281600.0\": 1, \"1748577600.0\": 1, \"1750132800.0\": 2, \"1753329600.0\": 1, \"1755230400.0\": 2, \"1755489600.0\": 1, \"1755748800.0\": 1, \"1756267200.0\": 1, \"1756353600.0\": 1, \"1759982400.0\": 1, \"1762491600.0\": 1, \"1766466000.0\": 1, \"1767848400.0\": 2, \"1767934800.0\": 1, \"1768194000.0\": 1, \"1768798800.0\": 1, \"1768885200.0\": 1}", + "unrealized_exchange_gain_loss_account": null, + "unrealized_profit_loss_account": null, + "website": "www.sprinklersnorthwest.com", + "write_off_account": "Write Off - S" + } +] \ No newline at end of file diff --git a/custom_ui/hooks.py b/custom_ui/hooks.py index 43e6866..40161a5 100644 --- a/custom_ui/hooks.py +++ b/custom_ui/hooks.py @@ -234,6 +234,7 @@ fixtures = [ }, {"dt": "Client Script"}, {"dt": "Server Script"}, + {"dt": "Company"}, ]