diff --git a/erpnext/accounts/doctype/account/test_records.json b/erpnext/accounts/doctype/account/test_records.json deleted file mode 100644 index d15f7ad4c0a..00000000000 --- a/erpnext/accounts/doctype/account/test_records.json +++ /dev/null @@ -1,6 +0,0 @@ -[ - { - "doctype": "Account", - "name": "_Test Account 1" - } -] diff --git a/erpnext/accounts/doctype/account/test_records.toml b/erpnext/accounts/doctype/account/test_records.toml new file mode 100644 index 00000000000..d3263499449 --- /dev/null +++ b/erpnext/accounts/doctype/account/test_records.toml @@ -0,0 +1,3 @@ +[[Account]] +name = "_Test Account 1" + diff --git a/erpnext/accounts/doctype/cost_center/test_records.json b/erpnext/accounts/doctype/cost_center/test_records.json deleted file mode 100644 index 941a85b382d..00000000000 --- a/erpnext/accounts/doctype/cost_center/test_records.json +++ /dev/null @@ -1,23 +0,0 @@ -[ - { - "company": "_Test Company", - "cost_center_name": "_Test Cost Center", - "doctype": "Cost Center", - "is_group": 0, - "parent_cost_center": "_Test Company - _TC" - }, - { - "company": "_Test Company", - "cost_center_name": "_Test Cost Center 2", - "doctype": "Cost Center", - "is_group": 0, - "parent_cost_center": "_Test Company - _TC" - }, - { - "company": "_Test Company", - "cost_center_name": "_Test Write Off Cost Center", - "doctype": "Cost Center", - "is_group": 0, - "parent_cost_center": "_Test Company - _TC" - } -] diff --git a/erpnext/accounts/doctype/cost_center/test_records.toml b/erpnext/accounts/doctype/cost_center/test_records.toml new file mode 100644 index 00000000000..44eb5e762f7 --- /dev/null +++ b/erpnext/accounts/doctype/cost_center/test_records.toml @@ -0,0 +1,18 @@ +[["Cost Center"]] +company = "_Test Company" +cost_center_name = "_Test Cost Center" +is_group = 0 +parent_cost_center = "_Test Company - _TC" + +[["Cost Center"]] +company = "_Test Company" +cost_center_name = "_Test Cost Center 2" +is_group = 0 +parent_cost_center = "_Test Company - _TC" + +[["Cost Center"]] +company = "_Test Company" +cost_center_name = "_Test Write Off Cost Center" +is_group = 0 +parent_cost_center = "_Test Company - _TC" + diff --git a/erpnext/accounts/doctype/dunning_type/test_records.json b/erpnext/accounts/doctype/dunning_type/test_records.json deleted file mode 100644 index 7f28aab873c..00000000000 --- a/erpnext/accounts/doctype/dunning_type/test_records.json +++ /dev/null @@ -1,36 +0,0 @@ -[ - { - "doctype": "Dunning Type", - "dunning_type": "_Test First Notice", - "company": "_Test Company", - "is_default": 1, - "dunning_fee": 0.0, - "rate_of_interest": 0.0, - "dunning_letter_text": [ - { - "language": "en", - "body_text": "We have still not received payment for our invoice", - "closing_text": "We kindly request that you pay the outstanding amount immediately, including interest and late fees." - } - ], - "income_account": "Sales - _TC", - "cost_center": "_Test Cost Center - _TC" - }, - { - "doctype": "Dunning Type", - "dunning_type": "_Test Second Notice", - "company": "_Test Company", - "is_default": 0, - "dunning_fee": 10.0, - "rate_of_interest": 10.0, - "dunning_letter_text": [ - { - "language": "en", - "body_text": "We have still not received payment for our invoice", - "closing_text": "We kindly request that you pay the outstanding amount immediately, including interest and late fees." - } - ], - "income_account": "Sales - _TC", - "cost_center": "_Test Cost Center - _TC" - } -] diff --git a/erpnext/accounts/doctype/dunning_type/test_records.toml b/erpnext/accounts/doctype/dunning_type/test_records.toml new file mode 100644 index 00000000000..5e2ec57c5e5 --- /dev/null +++ b/erpnext/accounts/doctype/dunning_type/test_records.toml @@ -0,0 +1,28 @@ +[["Dunning Type"]] +dunning_type = "_Test First Notice" +company = "_Test Company" +is_default = 1 +dunning_fee = 0.0 +rate_of_interest = 0.0 +income_account = "Sales - _TC" +cost_center = "_Test Cost Center - _TC" +[["Dunning Type".dunning_letter_text]] +language = "en" +body_text = "We have still not received payment for our invoice" +closing_text = "We kindly request that you pay the outstanding amount immediately, including interest and late fees." + + +[["Dunning Type"]] +dunning_type = "_Test Second Notice" +company = "_Test Company" +is_default = 0 +dunning_fee = 10.0 +rate_of_interest = 10.0 +income_account = "Sales - _TC" +cost_center = "_Test Cost Center - _TC" +[["Dunning Type".dunning_letter_text]] +language = "en" +body_text = "We have still not received payment for our invoice" +closing_text = "We kindly request that you pay the outstanding amount immediately, including interest and late fees." + + diff --git a/erpnext/accounts/doctype/item_tax_template/test_records.json b/erpnext/accounts/doctype/item_tax_template/test_records.json deleted file mode 100644 index 4d9537d4b89..00000000000 --- a/erpnext/accounts/doctype/item_tax_template/test_records.json +++ /dev/null @@ -1,79 +0,0 @@ -[ - { - "doctype": "Item Tax Template", - "title": "_Test Account Excise Duty @ 10", - "company": "_Test Company", - "taxes": [ - { - "doctype": "Item Tax Template Detail", - "parentfield": "taxes", - "tax_rate": 10, - "tax_type": "_Test Account Excise Duty - _TC" - } - ] - }, - { - "doctype": "Item Tax Template", - "title": "_Test Account Excise Duty @ 12", - "company": "_Test Company", - "taxes": [ - { - "doctype": "Item Tax Template Detail", - "parentfield": "taxes", - "tax_rate": 12, - "tax_type": "_Test Account Excise Duty - _TC" - } - ] - }, - { - "doctype": "Item Tax Template", - "title": "_Test Account Excise Duty @ 15", - "company": "_Test Company", - "taxes": [ - { - "doctype": "Item Tax Template Detail", - "parentfield": "taxes", - "tax_rate": 15, - "tax_type": "_Test Account Excise Duty - _TC" - } - ] - }, - { - "doctype": "Item Tax Template", - "title": "_Test Account Excise Duty @ 20", - "company": "_Test Company", - "taxes": [ - { - "doctype": "Item Tax Template Detail", - "parentfield": "taxes", - "tax_rate": 20, - "tax_type": "_Test Account Excise Duty - _TC" - } - ] - }, - { - "doctype": "Item Tax Template", - "title": "_Test Item Tax Template 1", - "company": "_Test Company", - "taxes": [ - { - "doctype": "Item Tax Template Detail", - "parentfield": "taxes", - "tax_rate": 5, - "tax_type": "_Test Account Excise Duty - _TC" - }, - { - "doctype": "Item Tax Template Detail", - "parentfield": "taxes", - "tax_rate": 10, - "tax_type": "_Test Account Education Cess - _TC" - }, - { - "doctype": "Item Tax Template Detail", - "parentfield": "taxes", - "tax_rate": 15, - "tax_type": "_Test Account S&H Education Cess - _TC" - } - ] - } -] diff --git a/erpnext/accounts/doctype/item_tax_template/test_records.toml b/erpnext/accounts/doctype/item_tax_template/test_records.toml new file mode 100644 index 00000000000..63f6b2539b3 --- /dev/null +++ b/erpnext/accounts/doctype/item_tax_template/test_records.toml @@ -0,0 +1,62 @@ +[["Item Tax Template"]] +title = "_Test Account Excise Duty @ 10" +company = "_Test Company" +[["Item Tax Template".taxes]] +doctype = "Item Tax Template Detail" +parentfield = "taxes" +tax_rate = 10 +tax_type = "_Test Account Excise Duty - _TC" + + +[["Item Tax Template"]] +title = "_Test Account Excise Duty @ 12" +company = "_Test Company" +[["Item Tax Template".taxes]] +doctype = "Item Tax Template Detail" +parentfield = "taxes" +tax_rate = 12 +tax_type = "_Test Account Excise Duty - _TC" + + +[["Item Tax Template"]] +title = "_Test Account Excise Duty @ 15" +company = "_Test Company" +[["Item Tax Template".taxes]] +doctype = "Item Tax Template Detail" +parentfield = "taxes" +tax_rate = 15 +tax_type = "_Test Account Excise Duty - _TC" + + +[["Item Tax Template"]] +title = "_Test Account Excise Duty @ 20" +company = "_Test Company" +[["Item Tax Template".taxes]] +doctype = "Item Tax Template Detail" +parentfield = "taxes" +tax_rate = 20 +tax_type = "_Test Account Excise Duty - _TC" + + +[["Item Tax Template"]] +title = "_Test Item Tax Template 1" +company = "_Test Company" +[["Item Tax Template".taxes]] +doctype = "Item Tax Template Detail" +parentfield = "taxes" +tax_rate = 5 +tax_type = "_Test Account Excise Duty - _TC" + +[["Item Tax Template".taxes]] +doctype = "Item Tax Template Detail" +parentfield = "taxes" +tax_rate = 10 +tax_type = "_Test Account Education Cess - _TC" + +[["Item Tax Template".taxes]] +doctype = "Item Tax Template Detail" +parentfield = "taxes" +tax_rate = 15 +tax_type = "_Test Account S&H Education Cess - _TC" + + diff --git a/erpnext/accounts/doctype/journal_entry/test_records.json b/erpnext/accounts/doctype/journal_entry/test_records.json deleted file mode 100644 index 717c579c7a3..00000000000 --- a/erpnext/accounts/doctype/journal_entry/test_records.json +++ /dev/null @@ -1,94 +0,0 @@ -[ - { - "cheque_date": "2013-03-14", - "cheque_no": "33", - "company": "_Test Company", - "doctype": "Journal Entry", - "accounts": [ - { - "account": "Debtors - _TC", - "party_type": "Customer", - "party": "_Test Customer", - "credit_in_account_currency": 400.0, - "debit_in_account_currency": 0.0, - "doctype": "Journal Entry Account", - "parentfield": "accounts", - "cost_center": "_Test Cost Center - _TC" - }, - { - "account": "_Test Bank - _TC", - "credit_in_account_currency": 0.0, - "debit_in_account_currency": 400.0, - "doctype": "Journal Entry Account", - "parentfield": "accounts", - "cost_center": "_Test Cost Center - _TC" - } - ], - "naming_series": "_T-Journal Entry-", - "posting_date": "2013-02-14", - "user_remark": "test", - "voucher_type": "Bank Entry" - }, - - { - "cheque_date": "2013-02-14", - "cheque_no": "33", - "company": "_Test Company", - "doctype": "Journal Entry", - "accounts": [ - { - "account": "_Test Payable - _TC", - "party_type": "Supplier", - "party": "_Test Supplier", - "credit_in_account_currency": 0.0, - "debit_in_account_currency": 400.0, - "doctype": "Journal Entry Account", - "parentfield": "accounts", - "cost_center": "_Test Cost Center - _TC" - }, - { - "account": "_Test Bank - _TC", - "credit_in_account_currency": 400.0, - "debit_in_account_currency": 0.0, - "doctype": "Journal Entry Account", - "parentfield": "accounts", - "cost_center": "_Test Cost Center - _TC" - } - ], - "naming_series": "_T-Journal Entry-", - "posting_date": "2013-02-14", - "user_remark": "test", - "voucher_type": "Bank Entry" - }, - - { - "cheque_date": "2013-02-14", - "cheque_no": "33", - "company": "_Test Company", - "doctype": "Journal Entry", - "accounts": [ - { - "account": "Debtors - _TC", - "party_type": "Customer", - "party": "_Test Customer", - "credit_in_account_currency": 0.0, - "debit_in_account_currency": 400.0, - "doctype": "Journal Entry Account", - "parentfield": "accounts", - "cost_center": "_Test Cost Center - _TC" - }, - { - "account": "Sales - _TC", - "credit_in_account_currency": 400.0, - "debit_in_account_currency": 0.0, - "doctype": "Journal Entry Account", - "parentfield": "accounts", - "cost_center": "_Test Cost Center - _TC" - } - ], - "naming_series": "_T-Journal Entry-", - "posting_date": "2013-02-14", - "user_remark": "test", - "voucher_type": "Bank Entry" - } -] diff --git a/erpnext/accounts/doctype/journal_entry/test_records.toml b/erpnext/accounts/doctype/journal_entry/test_records.toml new file mode 100644 index 00000000000..6b8dbd69bc8 --- /dev/null +++ b/erpnext/accounts/doctype/journal_entry/test_records.toml @@ -0,0 +1,81 @@ +[["Journal Entry"]] +cheque_date = "2013-03-14" +cheque_no = "33" +company = "_Test Company" +naming_series = "_T-Journal Entry-" +posting_date = "2013-02-14" +user_remark = "test" +voucher_type = "Bank Entry" +[["Journal Entry".accounts]] +account = "Debtors - _TC" +party_type = "Customer" +party = "_Test Customer" +credit_in_account_currency = 400.0 +debit_in_account_currency = 0.0 +doctype = "Journal Entry Account" +parentfield = "accounts" +cost_center = "_Test Cost Center - _TC" + +[["Journal Entry".accounts]] +account = "_Test Bank - _TC" +credit_in_account_currency = 0.0 +debit_in_account_currency = 400.0 +doctype = "Journal Entry Account" +parentfield = "accounts" +cost_center = "_Test Cost Center - _TC" + + +[["Journal Entry"]] +cheque_date = "2013-02-14" +cheque_no = "33" +company = "_Test Company" +naming_series = "_T-Journal Entry-" +posting_date = "2013-02-14" +user_remark = "test" +voucher_type = "Bank Entry" +[["Journal Entry".accounts]] +account = "_Test Payable - _TC" +party_type = "Supplier" +party = "_Test Supplier" +credit_in_account_currency = 0.0 +debit_in_account_currency = 400.0 +doctype = "Journal Entry Account" +parentfield = "accounts" +cost_center = "_Test Cost Center - _TC" + +[["Journal Entry".accounts]] +account = "_Test Bank - _TC" +credit_in_account_currency = 400.0 +debit_in_account_currency = 0.0 +doctype = "Journal Entry Account" +parentfield = "accounts" +cost_center = "_Test Cost Center - _TC" + + +[["Journal Entry"]] +cheque_date = "2013-02-14" +cheque_no = "33" +company = "_Test Company" +naming_series = "_T-Journal Entry-" +posting_date = "2013-02-14" +user_remark = "test" +voucher_type = "Bank Entry" +[["Journal Entry".accounts]] +account = "Debtors - _TC" +party_type = "Customer" +party = "_Test Customer" +credit_in_account_currency = 0.0 +debit_in_account_currency = 400.0 +doctype = "Journal Entry Account" +parentfield = "accounts" +cost_center = "_Test Cost Center - _TC" + +[["Journal Entry".accounts]] +account = "Sales - _TC" +credit_in_account_currency = 400.0 +debit_in_account_currency = 0.0 +doctype = "Journal Entry Account" +parentfield = "accounts" +cost_center = "_Test Cost Center - _TC" + + diff --git a/erpnext/accounts/doctype/monthly_distribution/test_records.json b/erpnext/accounts/doctype/monthly_distribution/test_records.json deleted file mode 100644 index 8dbf210ce65..00000000000 --- a/erpnext/accounts/doctype/monthly_distribution/test_records.json +++ /dev/null @@ -1,44 +0,0 @@ -[{ - "doctype": "Monthly Distribution", - "distribution_id": "_Test Distribution", - "fiscal_year": "_Test Fiscal Year 2013", - "percentages": [ - { - "month": "January", - "percentage_allocation": "8" - }, { - "month": "February", - "percentage_allocation": "8" - }, { - "month": "March", - "percentage_allocation": "8" - }, { - "month": "April", - "percentage_allocation": "8" - }, { - "month": "May", - "percentage_allocation": "8" - }, { - "month": "June", - "percentage_allocation": "8" - }, { - "month": "July", - "percentage_allocation": "8" - }, { - "month": "August", - "percentage_allocation": "8" - }, { - "month": "September", - "percentage_allocation": "8" - }, { - "month": "October", - "percentage_allocation": "8" - }, { - "month": "November", - "percentage_allocation": "10" - }, { - "month": "December", - "percentage_allocation": "10" - } - ] -}] diff --git a/erpnext/accounts/doctype/monthly_distribution/test_records.toml b/erpnext/accounts/doctype/monthly_distribution/test_records.toml new file mode 100644 index 00000000000..1aa584ba594 --- /dev/null +++ b/erpnext/accounts/doctype/monthly_distribution/test_records.toml @@ -0,0 +1,52 @@ +[["Monthly Distribution"]] +distribution_id = "_Test Distribution" +fiscal_year = "_Test Fiscal Year 2013" +[["Monthly Distribution".percentages]] +month = "January" +percentage_allocation = "8" + +[["Monthly Distribution".percentages]] +month = "February" +percentage_allocation = "8" + +[["Monthly Distribution".percentages]] +month = "March" +percentage_allocation = "8" + +[["Monthly Distribution".percentages]] +month = "April" +percentage_allocation = "8" + +[["Monthly Distribution".percentages]] +month = "May" +percentage_allocation = "8" + +[["Monthly Distribution".percentages]] +month = "June" +percentage_allocation = "8" + +[["Monthly Distribution".percentages]] +month = "July" +percentage_allocation = "8" + +[["Monthly Distribution".percentages]] +month = "August" +percentage_allocation = "8" + +[["Monthly Distribution".percentages]] +month = "September" +percentage_allocation = "8" + +[["Monthly Distribution".percentages]] +month = "October" +percentage_allocation = "8" + +[["Monthly Distribution".percentages]] +month = "November" +percentage_allocation = "10" + +[["Monthly Distribution".percentages]] +month = "December" +percentage_allocation = "10" + + diff --git a/erpnext/accounts/doctype/payment_term/test_records.json b/erpnext/accounts/doctype/payment_term/test_records.json deleted file mode 100644 index ef6e0693b3c..00000000000 --- a/erpnext/accounts/doctype/payment_term/test_records.json +++ /dev/null @@ -1,34 +0,0 @@ -[ - { - "doctype":"Payment Term", - "due_date_based_on":"Day(s) after invoice date", - "payment_term_name":"_Test N30", - "description":"_Test Net 30 Days", - "invoice_portion":50, - "credit_days":30 - }, - { - "doctype":"Payment Term", - "due_date_based_on":"Day(s) after invoice date", - "payment_term_name":"_Test COD", - "description":"_Test Cash on Delivery", - "invoice_portion":50, - "credit_days":0 - }, - { - "doctype":"Payment Term", - "due_date_based_on":"Month(s) after the end of the invoice month", - "payment_term_name":"_Test EONM", - "description":"_Test End of Next Month", - "invoice_portion":100, - "credit_months":1 - }, - { - "doctype":"Payment Term", - "due_date_based_on":"Day(s) after invoice date", - "payment_term_name":"_Test N30 1", - "description":"_Test Net 30 Days", - "invoice_portion":100, - "credit_days":30 - } -] \ No newline at end of file diff --git a/erpnext/accounts/doctype/payment_term/test_records.toml b/erpnext/accounts/doctype/payment_term/test_records.toml new file mode 100644 index 00000000000..a0cb5d59028 --- /dev/null +++ b/erpnext/accounts/doctype/payment_term/test_records.toml @@ -0,0 +1,28 @@ +[["Payment Term"]] +due_date_based_on = "Day(s) after invoice date" +payment_term_name = "_Test N30" +description = "_Test Net 30 Days" +invoice_portion = 50 +credit_days = 30 + +[["Payment Term"]] +due_date_based_on = "Day(s) after invoice date" +payment_term_name = "_Test COD" +description = "_Test Cash on Delivery" +invoice_portion = 50 +credit_days = 0 + +[["Payment Term"]] +due_date_based_on = "Month(s) after the end of the invoice month" +payment_term_name = "_Test EONM" +description = "_Test End of Next Month" +invoice_portion = 100 +credit_months = 1 + +[["Payment Term"]] +due_date_based_on = "Day(s) after invoice date" +payment_term_name = "_Test N30 1" +description = "_Test Net 30 Days" +invoice_portion = 100 +credit_days = 30 + diff --git a/erpnext/accounts/doctype/payment_terms_template/test_records.json b/erpnext/accounts/doctype/payment_terms_template/test_records.json deleted file mode 100644 index fea0b35c112..00000000000 --- a/erpnext/accounts/doctype/payment_terms_template/test_records.json +++ /dev/null @@ -1,60 +0,0 @@ -[ - { - "doctype":"Payment Terms Template", - "terms":[ - { - "doctype":"Payment Terms Template Detail", - "due_date_based_on":"Day(s) after invoice date", - "idx":1, - "description":"Cash on Delivery", - "invoice_portion":50, - "credit_days":0, - "credit_months":0, - "payment_term":"_Test COD" - }, - { - "doctype":"Payment Terms Template Detail", - "due_date_based_on":"Day(s) after invoice date", - "idx":2, - "description":"Net 30 Days ", - "invoice_portion":50, - "credit_days":30, - "credit_months":0, - "payment_term":"_Test N30" - } - ], - "template_name":"_Test Payment Term Template" - }, - { - "doctype":"Payment Terms Template", - "terms":[ - { - "doctype":"Payment Terms Template Detail", - "due_date_based_on":"Month(s) after the end of the invoice month", - "idx":1, - "description":"_Test End of Next Months", - "invoice_portion":100, - "credit_days":0, - "credit_months":1, - "payment_term":"_Test EONM" - } - ], - "template_name":"_Test Payment Term Template 1" - }, - { - "doctype":"Payment Terms Template", - "terms":[ - { - "doctype":"Payment Terms Template Detail", - "due_date_based_on":"Day(s) after invoice date", - "idx":1, - "description":"_Test Net Within 30 days", - "invoice_portion":100, - "credit_days":30, - "credit_months":0, - "payment_term":"_Test N30 1" - } - ], - "template_name":"_Test Payment Term Template 3" - } -] \ No newline at end of file diff --git a/erpnext/accounts/doctype/payment_terms_template/test_records.toml b/erpnext/accounts/doctype/payment_terms_template/test_records.toml new file mode 100644 index 00000000000..ff7ae75cf14 --- /dev/null +++ b/erpnext/accounts/doctype/payment_terms_template/test_records.toml @@ -0,0 +1,49 @@ +[["Payment Terms Template"]] +template_name = "_Test Payment Term Template" +[["Payment Terms Template".terms]] +doctype = "Payment Terms Template Detail" +due_date_based_on = "Day(s) after invoice date" +idx = 1 +description = "Cash on Delivery" +invoice_portion = 50 +credit_days = 0 +credit_months = 0 +payment_term = "_Test COD" + +[["Payment Terms Template".terms]] +doctype = "Payment Terms Template Detail" +due_date_based_on = "Day(s) after invoice date" +idx = 2 +description = "Net 30 Days " +invoice_portion = 50 +credit_days = 30 +credit_months = 0 +payment_term = "_Test N30" + + +[["Payment Terms Template"]] +template_name = "_Test Payment Term Template 1" +[["Payment Terms Template".terms]] +doctype = "Payment Terms Template Detail" +due_date_based_on = "Month(s) after the end of the invoice month" +idx = 1 +description = "_Test End of Next Months" +invoice_portion = 100 +credit_days = 0 +credit_months = 1 +payment_term = "_Test EONM" + + +[["Payment Terms Template"]] +template_name = "_Test Payment Term Template 3" +[["Payment Terms Template".terms]] +doctype = "Payment Terms Template Detail" +due_date_based_on = "Day(s) after invoice date" +idx = 1 +description = "_Test Net Within 30 days" +invoice_portion = 100 +credit_days = 30 +credit_months = 0 +payment_term = "_Test N30 1" + + diff --git a/erpnext/accounts/doctype/purchase_invoice/test_records.json b/erpnext/accounts/doctype/purchase_invoice/test_records.json deleted file mode 100644 index 9f9e90d8a75..00000000000 --- a/erpnext/accounts/doctype/purchase_invoice/test_records.json +++ /dev/null @@ -1,209 +0,0 @@ -[ - { - "bill_no": "NA", - "buying_price_list": "_Test Price List", - "company": "_Test Company", - "conversion_rate": 1, - "credit_to": "_Test Payable - _TC", - "currency": "INR", - "doctype": "Purchase Invoice", - "items": [ - { - "amount": 500, - "base_amount": 500, - "base_rate": 50, - "conversion_factor": 1.0, - "cost_center": "_Test Cost Center - _TC", - "doctype": "Purchase Invoice Item", - "expense_account": "_Test Account Cost for Goods Sold - _TC", - "item_code": "_Test Item Home Desktop 100", - "item_name": "_Test Item Home Desktop 100", - "item_tax_template": "_Test Account Excise Duty @ 10 - _TC", - "parentfield": "items", - "qty": 10, - "rate": 50, - "uom": "_Test UOM", - "warehouse": "_Test Warehouse - _TC" - }, - { - "amount": 750, - "base_amount": 750, - "base_rate": 150, - "conversion_factor": 1.0, - "cost_center": "_Test Cost Center - _TC", - "doctype": "Purchase Invoice Item", - "expense_account": "_Test Account Cost for Goods Sold - _TC", - "item_code": "_Test Item Home Desktop 200", - "item_name": "_Test Item Home Desktop 200", - "parentfield": "items", - "qty": 5, - "rate": 150, - "uom": "_Test UOM", - "warehouse": "_Test Warehouse - _TC" - } - ], - "grand_total": 0, - "naming_series": "T-PINV-", - "taxes": [ - { - "account_head": "_Test Account Shipping Charges - _TC", - "add_deduct_tax": "Add", - "category": "Valuation and Total", - "charge_type": "Actual", - "cost_center": "_Test Cost Center - _TC", - "description": "Shipping Charges", - "doctype": "Purchase Taxes and Charges", - "parentfield": "taxes", - "tax_amount": 100 - }, - { - "account_head": "_Test Account Customs Duty - _TC", - "add_deduct_tax": "Add", - "category": "Valuation", - "charge_type": "On Net Total", - "cost_center": "_Test Cost Center - _TC", - "description": "Customs Duty", - "doctype": "Purchase Taxes and Charges", - "parentfield": "taxes", - "rate": 10 - }, - { - "account_head": "_Test Account Excise Duty - _TC", - "add_deduct_tax": "Add", - "category": "Total", - "charge_type": "On Net Total", - "cost_center": "_Test Cost Center - _TC", - "description": "Excise Duty", - "doctype": "Purchase Taxes and Charges", - "parentfield": "taxes", - "rate": 12 - }, - { - "account_head": "_Test Account Education Cess - _TC", - "add_deduct_tax": "Add", - "category": "Total", - "charge_type": "On Previous Row Amount", - "cost_center": "_Test Cost Center - _TC", - "description": "Education Cess", - "doctype": "Purchase Taxes and Charges", - "parentfield": "taxes", - "rate": 2, - "row_id": 3 - }, - { - "account_head": "_Test Account S&H Education Cess - _TC", - "add_deduct_tax": "Add", - "category": "Total", - "charge_type": "On Previous Row Amount", - "cost_center": "_Test Cost Center - _TC", - "description": "S&H Education Cess", - "doctype": "Purchase Taxes and Charges", - "parentfield": "taxes", - "rate": 1, - "row_id": 3 - }, - { - "account_head": "_Test Account CST - _TC", - "add_deduct_tax": "Add", - "category": "Total", - "charge_type": "On Previous Row Total", - "cost_center": "_Test Cost Center - _TC", - "description": "CST", - "doctype": "Purchase Taxes and Charges", - "parentfield": "taxes", - "rate": 2, - "row_id": 5 - }, - { - "account_head": "_Test Account VAT - _TC", - "add_deduct_tax": "Add", - "category": "Total", - "charge_type": "On Net Total", - "cost_center": "_Test Cost Center - _TC", - "description": "VAT", - "doctype": "Purchase Taxes and Charges", - "parentfield": "taxes", - "rate": 12.5 - }, - { - "account_head": "_Test Account Discount - _TC", - "add_deduct_tax": "Deduct", - "category": "Total", - "charge_type": "On Previous Row Total", - "cost_center": "_Test Cost Center - _TC", - "description": "Discount", - "doctype": "Purchase Taxes and Charges", - "parentfield": "taxes", - "rate": 10, - "row_id": 7 - } - ], - "supplier": "_Test Supplier", - "supplier_name": "_Test Supplier" - }, - - - - { - "bill_no": "NA", - "buying_price_list": "_Test Price List", - "company": "_Test Company", - "conversion_rate": 1.0, - "credit_to": "_Test Payable - _TC", - "currency": "INR", - "doctype": "Purchase Invoice", - "items": [ - { - "conversion_factor": 1.0, - "cost_center": "_Test Cost Center - _TC", - "doctype": "Purchase Invoice Item", - "expense_account": "_Test Account Cost for Goods Sold - _TC", - "item_code": "_Test Item", - "item_name": "_Test Item", - "parentfield": "items", - "qty": 10.0, - "rate": 50.0, - "uom": "_Test UOM" - } - ], - "grand_total": 0, - "naming_series": "T-PINV-", - "taxes": [ - { - "account_head": "_Test Account Shipping Charges - _TC", - "add_deduct_tax": "Add", - "category": "Valuation and Total", - "charge_type": "Actual", - "cost_center": "_Test Cost Center - _TC", - "description": "Shipping Charges", - "doctype": "Purchase Taxes and Charges", - "parentfield": "taxes", - "tax_amount": 100.0 - }, - { - "account_head": "_Test Account VAT - _TC", - "add_deduct_tax": "Add", - "category": "Total", - "charge_type": "Actual", - "cost_center": "_Test Cost Center - _TC", - "description": "VAT", - "doctype": "Purchase Taxes and Charges", - "parentfield": "taxes", - "tax_amount": 120.0 - }, - { - "account_head": "_Test Account Customs Duty - _TC", - "add_deduct_tax": "Add", - "category": "Valuation", - "charge_type": "Actual", - "cost_center": "_Test Cost Center - _TC", - "description": "Customs Duty", - "doctype": "Purchase Taxes and Charges", - "parentfield": "taxes", - "tax_amount": 150.0 - } - ], - "supplier": "_Test Supplier", - "supplier_name": "_Test Supplier" - } -] diff --git a/erpnext/accounts/doctype/purchase_invoice/test_records.toml b/erpnext/accounts/doctype/purchase_invoice/test_records.toml new file mode 100644 index 00000000000..e3d5f904f8f --- /dev/null +++ b/erpnext/accounts/doctype/purchase_invoice/test_records.toml @@ -0,0 +1,194 @@ +[["Purchase Invoice"]] +bill_no = "NA" +buying_price_list = "_Test Price List" +company = "_Test Company" +conversion_rate = 1 +credit_to = "_Test Payable - _TC" +currency = "INR" +grand_total = 0 +naming_series = "T-PINV-" +supplier = "_Test Supplier" +supplier_name = "_Test Supplier" +[["Purchase Invoice".items]] +amount = 500 +base_amount = 500 +base_rate = 50 +conversion_factor = 1.0 +cost_center = "_Test Cost Center - _TC" +doctype = "Purchase Invoice Item" +expense_account = "_Test Account Cost for Goods Sold - _TC" +item_code = "_Test Item Home Desktop 100" +item_name = "_Test Item Home Desktop 100" +item_tax_template = "_Test Account Excise Duty @ 10 - _TC" +parentfield = "items" +qty = 10 +rate = 50 +uom = "_Test UOM" +warehouse = "_Test Warehouse - _TC" + +[["Purchase Invoice".items]] +amount = 750 +base_amount = 750 +base_rate = 150 +conversion_factor = 1.0 +cost_center = "_Test Cost Center - _TC" +doctype = "Purchase Invoice Item" +expense_account = "_Test Account Cost for Goods Sold - _TC" +item_code = "_Test Item Home Desktop 200" +item_name = "_Test Item Home Desktop 200" +parentfield = "items" +qty = 5 +rate = 150 +uom = "_Test UOM" +warehouse = "_Test Warehouse - _TC" + +[["Purchase Invoice".taxes]] +account_head = "_Test Account Shipping Charges - _TC" +add_deduct_tax = "Add" +category = "Valuation and Total" +charge_type = "Actual" +cost_center = "_Test Cost Center - _TC" +description = "Shipping Charges" +doctype = "Purchase Taxes and Charges" +parentfield = "taxes" +tax_amount = 100 + +[["Purchase Invoice".taxes]] +account_head = "_Test Account Customs Duty - _TC" +add_deduct_tax = "Add" +category = "Valuation" +charge_type = "On Net Total" +cost_center = "_Test Cost Center - _TC" +description = "Customs Duty" +doctype = "Purchase Taxes and Charges" +parentfield = "taxes" +rate = 10 + +[["Purchase Invoice".taxes]] +account_head = "_Test Account Excise Duty - _TC" +add_deduct_tax = "Add" +category = "Total" +charge_type = "On Net Total" +cost_center = "_Test Cost Center - _TC" +description = "Excise Duty" +doctype = "Purchase Taxes and Charges" +parentfield = "taxes" +rate = 12 + +[["Purchase Invoice".taxes]] +account_head = "_Test Account Education Cess - _TC" +add_deduct_tax = "Add" +category = "Total" +charge_type = "On Previous Row Amount" +cost_center = "_Test Cost Center - _TC" +description = "Education Cess" +doctype = "Purchase Taxes and Charges" +parentfield = "taxes" +rate = 2 +row_id = 3 + +[["Purchase Invoice".taxes]] +account_head = "_Test Account S&H Education Cess - _TC" +add_deduct_tax = "Add" +category = "Total" +charge_type = "On Previous Row Amount" +cost_center = "_Test Cost Center - _TC" +description = "S&H Education Cess" +doctype = "Purchase Taxes and Charges" +parentfield = "taxes" +rate = 1 +row_id = 3 + +[["Purchase Invoice".taxes]] +account_head = "_Test Account CST - _TC" +add_deduct_tax = "Add" +category = "Total" +charge_type = "On Previous Row Total" +cost_center = "_Test Cost Center - _TC" +description = "CST" +doctype = "Purchase Taxes and Charges" +parentfield = "taxes" +rate = 2 +row_id = 5 + +[["Purchase Invoice".taxes]] +account_head = "_Test Account VAT - _TC" +add_deduct_tax = "Add" +category = "Total" +charge_type = "On Net Total" +cost_center = "_Test Cost Center - _TC" +description = "VAT" +doctype = "Purchase Taxes and Charges" +parentfield = "taxes" +rate = 12.5 + +[["Purchase Invoice".taxes]] +account_head = "_Test Account Discount - _TC" +add_deduct_tax = "Deduct" +category = "Total" +charge_type = "On Previous Row Total" +cost_center = "_Test Cost Center - _TC" +description = "Discount" +doctype = "Purchase Taxes and Charges" +parentfield = "taxes" +rate = 10 +row_id = 7 + + +[["Purchase Invoice"]] +bill_no = "NA" +buying_price_list = "_Test Price List" +company = "_Test Company" +conversion_rate = 1.0 +credit_to = "_Test Payable - _TC" +currency = "INR" +grand_total = 0 +naming_series = "T-PINV-" +supplier = "_Test Supplier" +supplier_name = "_Test Supplier" +[["Purchase Invoice".items]] +conversion_factor = 1.0 +cost_center = "_Test Cost Center - _TC" +doctype = "Purchase Invoice Item" +expense_account = "_Test Account Cost for Goods Sold - _TC" +item_code = "_Test Item" +item_name = "_Test Item" +parentfield = "items" +qty = 10.0 +rate = 50.0 +uom = "_Test UOM" + +[["Purchase Invoice".taxes]] +account_head = "_Test Account Shipping Charges - _TC" +add_deduct_tax = "Add" +category = "Valuation and Total" +charge_type = "Actual" +cost_center = "_Test Cost Center - _TC" +description = "Shipping Charges" +doctype = "Purchase Taxes and Charges" +parentfield = "taxes" +tax_amount = 100.0 + +[["Purchase Invoice".taxes]] +account_head = "_Test Account VAT - _TC" +add_deduct_tax = "Add" +category = "Total" +charge_type = "Actual" +cost_center = "_Test Cost Center - _TC" +description = "VAT" +doctype = "Purchase Taxes and Charges" +parentfield = "taxes" +tax_amount = 120.0 + +[["Purchase Invoice".taxes]] +account_head = "_Test Account Customs Duty - _TC" +add_deduct_tax = "Add" +category = "Valuation" +charge_type = "Actual" +cost_center = "_Test Cost Center - _TC" +description = "Customs Duty" +doctype = "Purchase Taxes and Charges" +parentfield = "taxes" +tax_amount = 150.0 + + diff --git a/erpnext/accounts/doctype/sales_invoice/test_records.json b/erpnext/accounts/doctype/sales_invoice/test_records.json deleted file mode 100644 index 61e5219c80c..00000000000 --- a/erpnext/accounts/doctype/sales_invoice/test_records.json +++ /dev/null @@ -1,401 +0,0 @@ -[ - { - "company": "_Test Company", - "conversion_rate": 1.0, - "currency": "INR", - "cost_center": "_Test Cost Center - _TC", - "customer": "_Test Customer", - "customer_name": "_Test Customer", - "debit_to": "Debtors - _TC", - "doctype": "Sales Invoice", - "items": [ - { - "amount": 500.0, - "base_amount": 500.0, - "base_rate": 500.0, - "cost_center": "_Test Cost Center - _TC", - "description": "138-CMS Shoe", - "doctype": "Sales Invoice Item", - "income_account": "Sales - _TC", - "expense_account": "_Test Account Cost for Goods Sold - _TC", - "item_code": "138-CMS Shoe", - "item_name": "138-CMS Shoe", - "parentfield": "items", - "qty": 1.0, - "rate": 500.0, - "uom": "_Test UOM", - "conversion_factor": 1, - "stock_uom": "_Test UOM" - } - ], - "base_grand_total": 561.8, - "grand_total": 561.8, - "is_pos": 0, - "naming_series": "T-SINV-", - "base_net_total": 500.0, - "taxes": [ - { - "account_head": "_Test Account VAT - _TC", - "charge_type": "On Net Total", - "description": "VAT", - "doctype": "Sales Taxes and Charges", - "parentfield": "taxes", - "cost_center": "_Test Cost Center - _TC", - "rate": 6 - }, - { - "account_head": "_Test Account Service Tax - _TC", - "charge_type": "On Net Total", - "description": "Service Tax", - "doctype": "Sales Taxes and Charges", - "parentfield": "taxes", - "cost_center": "_Test Cost Center - _TC", - "rate": 6.36 - } - ], - "plc_conversion_rate": 1.0, - "price_list_currency": "INR", - "sales_team": [ - { - "allocated_percentage": 65.5, - "doctype": "Sales Team", - "parentfield": "sales_team", - "sales_person": "_Test Sales Person 1" - }, - { - "allocated_percentage": 34.5, - "doctype": "Sales Team", - "parentfield": "sales_team", - "sales_person": "_Test Sales Person 2" - } - ], - "selling_price_list": "_Test Price List", - "territory": "_Test Territory" - }, - { - "company": "_Test Company", - "conversion_rate": 1.0, - "currency": "INR", - "customer": "_Test Customer", - "customer_name": "_Test Customer", - "debit_to": "Debtors - _TC", - "doctype": "Sales Invoice", - "cost_center": "_Test Cost Center - _TC", - "items": [ - { - "amount": 500.0, - "base_amount": 500.0, - "base_rate": 500.0, - "cost_center": "_Test Cost Center - _TC", - "description": "_Test Item", - "doctype": "Sales Invoice Item", - "expense_account": "_Test Account Cost for Goods Sold - _TC", - "income_account": "Sales - _TC", - "item_code": "_Test Item", - "item_name": "_Test Item", - "parentfield": "items", - "price_list_rate": 500.0, - "qty": 1.0, - "uom": "_Test UOM", - "conversion_factor": 1, - "stock_uom": "_Test UOM" - } - ], - "base_grand_total": 630.0, - "grand_total": 630.0, - "is_pos": 0, - "naming_series": "T-SINV-", - "base_net_total": 500.0, - "taxes": [ - { - "account_head": "_Test Account VAT - _TC", - "charge_type": "On Net Total", - "description": "VAT", - "doctype": "Sales Taxes and Charges", - "parentfield": "taxes", - "cost_center": "_Test Cost Center - _TC", - "rate": 16 - }, - { - "account_head": "_Test Account Service Tax - _TC", - "charge_type": "On Net Total", - "description": "Service Tax", - "doctype": "Sales Taxes and Charges", - "parentfield": "taxes", - "cost_center": "_Test Cost Center - _TC", - "rate": 10 - } - ], - "plc_conversion_rate": 1.0, - "price_list_currency": "INR", - "selling_price_list": "_Test Price List", - "territory": "_Test Territory" - }, - { - "company": "_Test Company", - "conversion_rate": 1.0, - "currency": "INR", - "customer": "_Test Customer", - "customer_name": "_Test Customer", - "debit_to": "Debtors - _TC", - "doctype": "Sales Invoice", - "cost_center": "_Test Cost Center - _TC", - "items": [ - { - "cost_center": "_Test Cost Center - _TC", - "doctype": "Sales Invoice Item", - "income_account": "Sales - _TC", - "expense_account": "_Test Account Cost for Goods Sold - _TC", - "item_code": "_Test Item Home Desktop 100", - "item_name": "_Test Item Home Desktop 100", - "item_tax_template": "_Test Account Excise Duty @ 10 - _TC", - "parentfield": "items", - "price_list_rate": 50, - "qty": 10, - "rate": 50, - "uom": "_Test UOM 1", - "conversion_factor": 1, - "stock_uom": "_Test UOM 1" - }, - { - "cost_center": "_Test Cost Center - _TC", - "doctype": "Sales Invoice Item", - "income_account": "Sales - _TC", - "expense_account": "_Test Account Cost for Goods Sold - _TC", - "item_code": "_Test Item Home Desktop 200", - "item_name": "_Test Item Home Desktop 200", - "parentfield": "items", - "price_list_rate": 150, - "qty": 5, - "uom": "_Test UOM", - "conversion_factor": 1, - "rate": 150, - "stock_uom": "_Test UOM" - } - ], - "grand_total": 0, - "is_pos": 0, - "naming_series": "T-SINV-", - "taxes": [ - { - "account_head": "_Test Account Shipping Charges - _TC", - "charge_type": "Actual", - "cost_center": "_Test Cost Center - _TC", - "description": "Shipping Charges", - "doctype": "Sales Taxes and Charges", - "parentfield": "taxes", - "tax_amount": 100 - }, - { - "account_head": "_Test Account Customs Duty - _TC", - "charge_type": "On Net Total", - "cost_center": "_Test Cost Center - _TC", - "description": "Customs Duty", - "doctype": "Sales Taxes and Charges", - "parentfield": "taxes", - "rate": 10 - }, - { - "account_head": "_Test Account Excise Duty - _TC", - "charge_type": "On Net Total", - "cost_center": "_Test Cost Center - _TC", - "description": "Excise Duty", - "doctype": "Sales Taxes and Charges", - "parentfield": "taxes", - "rate": 12 - }, - { - "account_head": "_Test Account Education Cess - _TC", - "charge_type": "On Previous Row Amount", - "cost_center": "_Test Cost Center - _TC", - "description": "Education Cess", - "doctype": "Sales Taxes and Charges", - "parentfield": "taxes", - "rate": 2, - "row_id": 3 - }, - { - "account_head": "_Test Account S&H Education Cess - _TC", - "charge_type": "On Previous Row Amount", - "cost_center": "_Test Cost Center - _TC", - "description": "S&H Education Cess", - "doctype": "Sales Taxes and Charges", - "parentfield": "taxes", - "rate": 1, - "row_id": 3 - }, - { - "account_head": "_Test Account CST - _TC", - "charge_type": "On Previous Row Total", - "cost_center": "_Test Cost Center - _TC", - "description": "CST", - "doctype": "Sales Taxes and Charges", - "parentfield": "taxes", - "rate": 2, - "row_id": 5 - }, - { - "account_head": "_Test Account VAT - _TC", - "charge_type": "On Net Total", - "cost_center": "_Test Cost Center - _TC", - "description": "VAT", - "doctype": "Sales Taxes and Charges", - "parentfield": "taxes", - "rate": 12.5 - }, - { - "account_head": "_Test Account Discount - _TC", - "charge_type": "On Previous Row Total", - "cost_center": "_Test Cost Center - _TC", - "description": "Discount", - "doctype": "Sales Taxes and Charges", - "parentfield": "taxes", - "rate": -10, - "row_id": 7 - } - ], - "plc_conversion_rate": 1.0, - "price_list_currency": "INR", - "selling_price_list": "_Test Price List", - "territory": "_Test Territory" - }, - { - "company": "_Test Company", - "conversion_rate": 1.0, - "currency": "INR", - "customer": "_Test Customer", - "customer_name": "_Test Customer", - "debit_to": "Debtors - _TC", - "doctype": "Sales Invoice", - "cost_center": "_Test Cost Center - _TC", - "items": [ - { - "cost_center": "_Test Cost Center - _TC", - "doctype": "Sales Invoice Item", - "income_account": "Sales - _TC", - "expense_account": "_Test Account Cost for Goods Sold - _TC", - "item_code": "_Test Item Home Desktop 100", - "item_name": "_Test Item Home Desktop 100", - "item_tax_template": "_Test Account Excise Duty @ 10 - _TC", - "parentfield": "items", - "price_list_rate": 62.5, - "qty": 10, - "uom": "_Test UOM 1", - "conversion_factor": 1, - "stock_uom": "_Test UOM 1" - }, - { - "cost_center": "_Test Cost Center - _TC", - "doctype": "Sales Invoice Item", - "income_account": "Sales - _TC", - "expense_account": "_Test Account Cost for Goods Sold - _TC", - "item_code": "_Test Item Home Desktop 200", - "item_name": "_Test Item Home Desktop 200", - "parentfield": "items", - "price_list_rate": 190.66, - "qty": 5, - "uom": "_Test UOM", - "conversion_factor": 1, - "stock_uom": "_Test UOM" - } - ], - "grand_total": 0, - "is_pos": 0, - "naming_series": "T-SINV-", - "taxes": [ - { - "account_head": "_Test Account Excise Duty - _TC", - "charge_type": "On Net Total", - "cost_center": "_Test Cost Center - _TC", - "description": "Excise Duty", - "doctype": "Sales Taxes and Charges", - "idx": 1, - "included_in_print_rate": 1, - "parentfield": "taxes", - "rate": 12 - }, - { - "account_head": "_Test Account Education Cess - _TC", - "charge_type": "On Previous Row Amount", - "cost_center": "_Test Cost Center - _TC", - "description": "Education Cess", - "doctype": "Sales Taxes and Charges", - "idx": 2, - "included_in_print_rate": 1, - "parentfield": "taxes", - "rate": 2, - "row_id": 1 - }, - { - "account_head": "_Test Account S&H Education Cess - _TC", - "charge_type": "On Previous Row Amount", - "cost_center": "_Test Cost Center - _TC", - "description": "S&H Education Cess", - "doctype": "Sales Taxes and Charges", - "idx": 3, - "included_in_print_rate": 1, - "parentfield": "taxes", - "rate": 1, - "row_id": 1 - }, - { - "account_head": "_Test Account CST - _TC", - "charge_type": "On Previous Row Total", - "cost_center": "_Test Cost Center - _TC", - "description": "CST", - "doctype": "Sales Taxes and Charges", - "idx": 4, - "included_in_print_rate": 1, - "parentfield": "taxes", - "rate": 2, - "row_id": 3 - }, - { - "account_head": "_Test Account VAT - _TC", - "charge_type": "On Net Total", - "cost_center": "_Test Cost Center - _TC", - "description": "VAT", - "doctype": "Sales Taxes and Charges", - "idx": 5, - "included_in_print_rate": 1, - "parentfield": "taxes", - "rate": 12.5 - }, - { - "account_head": "_Test Account Customs Duty - _TC", - "charge_type": "On Net Total", - "cost_center": "_Test Cost Center - _TC", - "description": "Customs Duty", - "doctype": "Sales Taxes and Charges", - "idx": 6, - "parentfield": "taxes", - "rate": 10 - }, - { - "account_head": "_Test Account Shipping Charges - _TC", - "charge_type": "Actual", - "cost_center": "_Test Cost Center - _TC", - "description": "Shipping Charges", - "doctype": "Sales Taxes and Charges", - "idx": 7, - "parentfield": "taxes", - "tax_amount": 100 - }, - { - "account_head": "_Test Account Discount - _TC", - "charge_type": "On Previous Row Total", - "cost_center": "_Test Cost Center - _TC", - "description": "Discount", - "doctype": "Sales Taxes and Charges", - "idx": 8, - "parentfield": "taxes", - "rate": -10, - "row_id": 7 - } - ], - "plc_conversion_rate": 1.0, - "price_list_currency": "INR", - "selling_price_list": "_Test Price List", - "territory": "_Test Territory" - } -] diff --git a/erpnext/accounts/doctype/sales_invoice/test_records.toml b/erpnext/accounts/doctype/sales_invoice/test_records.toml new file mode 100644 index 00000000000..3149cb16974 --- /dev/null +++ b/erpnext/accounts/doctype/sales_invoice/test_records.toml @@ -0,0 +1,377 @@ +[["Sales Invoice"]] +company = "_Test Company" +conversion_rate = 1.0 +currency = "INR" +cost_center = "_Test Cost Center - _TC" +customer = "_Test Customer" +customer_name = "_Test Customer" +debit_to = "Debtors - _TC" +base_grand_total = 561.8 +grand_total = 561.8 +is_pos = 0 +naming_series = "T-SINV-" +base_net_total = 500.0 +plc_conversion_rate = 1.0 +price_list_currency = "INR" +selling_price_list = "_Test Price List" +territory = "_Test Territory" +[["Sales Invoice".items]] +amount = 500.0 +base_amount = 500.0 +base_rate = 500.0 +cost_center = "_Test Cost Center - _TC" +description = "138-CMS Shoe" +doctype = "Sales Invoice Item" +income_account = "Sales - _TC" +expense_account = "_Test Account Cost for Goods Sold - _TC" +item_code = "138-CMS Shoe" +item_name = "138-CMS Shoe" +parentfield = "items" +qty = 1.0 +rate = 500.0 +uom = "_Test UOM" +conversion_factor = 1 +stock_uom = "_Test UOM" + +[["Sales Invoice".taxes]] +account_head = "_Test Account VAT - _TC" +charge_type = "On Net Total" +description = "VAT" +doctype = "Sales Taxes and Charges" +parentfield = "taxes" +cost_center = "_Test Cost Center - _TC" +rate = 6 + +[["Sales Invoice".taxes]] +account_head = "_Test Account Service Tax - _TC" +charge_type = "On Net Total" +description = "Service Tax" +doctype = "Sales Taxes and Charges" +parentfield = "taxes" +cost_center = "_Test Cost Center - _TC" +rate = 6.36 + +[["Sales Invoice".sales_team]] +allocated_percentage = 65.5 +doctype = "Sales Team" +parentfield = "sales_team" +sales_person = "_Test Sales Person 1" + +[["Sales Invoice".sales_team]] +allocated_percentage = 34.5 +doctype = "Sales Team" +parentfield = "sales_team" +sales_person = "_Test Sales Person 2" + + +[["Sales Invoice"]] +company = "_Test Company" +conversion_rate = 1.0 +currency = "INR" +customer = "_Test Customer" +customer_name = "_Test Customer" +debit_to = "Debtors - _TC" +cost_center = "_Test Cost Center - _TC" +base_grand_total = 630.0 +grand_total = 630.0 +is_pos = 0 +naming_series = "T-SINV-" +base_net_total = 500.0 +plc_conversion_rate = 1.0 +price_list_currency = "INR" +selling_price_list = "_Test Price List" +territory = "_Test Territory" +[["Sales Invoice".items]] +amount = 500.0 +base_amount = 500.0 +base_rate = 500.0 +cost_center = "_Test Cost Center - _TC" +description = "_Test Item" +doctype = "Sales Invoice Item" +expense_account = "_Test Account Cost for Goods Sold - _TC" +income_account = "Sales - _TC" +item_code = "_Test Item" +item_name = "_Test Item" +parentfield = "items" +price_list_rate = 500.0 +qty = 1.0 +uom = "_Test UOM" +conversion_factor = 1 +stock_uom = "_Test UOM" + +[["Sales Invoice".taxes]] +account_head = "_Test Account VAT - _TC" +charge_type = "On Net Total" +description = "VAT" +doctype = "Sales Taxes and Charges" +parentfield = "taxes" +cost_center = "_Test Cost Center - _TC" +rate = 16 + +[["Sales Invoice".taxes]] +account_head = "_Test Account Service Tax - _TC" +charge_type = "On Net Total" +description = "Service Tax" +doctype = "Sales Taxes and Charges" +parentfield = "taxes" +cost_center = "_Test Cost Center - _TC" +rate = 10 + + +[["Sales Invoice"]] +company = "_Test Company" +conversion_rate = 1.0 +currency = "INR" +customer = "_Test Customer" +customer_name = "_Test Customer" +debit_to = "Debtors - _TC" +cost_center = "_Test Cost Center - _TC" +grand_total = 0 +is_pos = 0 +naming_series = "T-SINV-" +plc_conversion_rate = 1.0 +price_list_currency = "INR" +selling_price_list = "_Test Price List" +territory = "_Test Territory" +[["Sales Invoice".items]] +cost_center = "_Test Cost Center - _TC" +doctype = "Sales Invoice Item" +income_account = "Sales - _TC" +expense_account = "_Test Account Cost for Goods Sold - _TC" +item_code = "_Test Item Home Desktop 100" +item_name = "_Test Item Home Desktop 100" +item_tax_template = "_Test Account Excise Duty @ 10 - _TC" +parentfield = "items" +price_list_rate = 50 +qty = 10 +rate = 50 +uom = "_Test UOM 1" +conversion_factor = 1 +stock_uom = "_Test UOM 1" + +[["Sales Invoice".items]] +cost_center = "_Test Cost Center - _TC" +doctype = "Sales Invoice Item" +income_account = "Sales - _TC" +expense_account = "_Test Account Cost for Goods Sold - _TC" +item_code = "_Test Item Home Desktop 200" +item_name = "_Test Item Home Desktop 200" +parentfield = "items" +price_list_rate = 150 +qty = 5 +uom = "_Test UOM" +conversion_factor = 1 +rate = 150 +stock_uom = "_Test UOM" + +[["Sales Invoice".taxes]] +account_head = "_Test Account Shipping Charges - _TC" +charge_type = "Actual" +cost_center = "_Test Cost Center - _TC" +description = "Shipping Charges" +doctype = "Sales Taxes and Charges" +parentfield = "taxes" +tax_amount = 100 + +[["Sales Invoice".taxes]] +account_head = "_Test Account Customs Duty - _TC" +charge_type = "On Net Total" +cost_center = "_Test Cost Center - _TC" +description = "Customs Duty" +doctype = "Sales Taxes and Charges" +parentfield = "taxes" +rate = 10 + +[["Sales Invoice".taxes]] +account_head = "_Test Account Excise Duty - _TC" +charge_type = "On Net Total" +cost_center = "_Test Cost Center - _TC" +description = "Excise Duty" +doctype = "Sales Taxes and Charges" +parentfield = "taxes" +rate = 12 + +[["Sales Invoice".taxes]] +account_head = "_Test Account Education Cess - _TC" +charge_type = "On Previous Row Amount" +cost_center = "_Test Cost Center - _TC" +description = "Education Cess" +doctype = "Sales Taxes and Charges" +parentfield = "taxes" +rate = 2 +row_id = 3 + +[["Sales Invoice".taxes]] +account_head = "_Test Account S&H Education Cess - _TC" +charge_type = "On Previous Row Amount" +cost_center = "_Test Cost Center - _TC" +description = "S&H Education Cess" +doctype = "Sales Taxes and Charges" +parentfield = "taxes" +rate = 1 +row_id = 3 + +[["Sales Invoice".taxes]] +account_head = "_Test Account CST - _TC" +charge_type = "On Previous Row Total" +cost_center = "_Test Cost Center - _TC" +description = "CST" +doctype = "Sales Taxes and Charges" +parentfield = "taxes" +rate = 2 +row_id = 5 + +[["Sales Invoice".taxes]] +account_head = "_Test Account VAT - _TC" +charge_type = "On Net Total" +cost_center = "_Test Cost Center - _TC" +description = "VAT" +doctype = "Sales Taxes and Charges" +parentfield = "taxes" +rate = 12.5 + +[["Sales Invoice".taxes]] +account_head = "_Test Account Discount - _TC" +charge_type = "On Previous Row Total" +cost_center = "_Test Cost Center - _TC" +description = "Discount" +doctype = "Sales Taxes and Charges" +parentfield = "taxes" +rate = -10 +row_id = 7 + + +[["Sales Invoice"]] +company = "_Test Company" +conversion_rate = 1.0 +currency = "INR" +customer = "_Test Customer" +customer_name = "_Test Customer" +debit_to = "Debtors - _TC" +cost_center = "_Test Cost Center - _TC" +grand_total = 0 +is_pos = 0 +naming_series = "T-SINV-" +plc_conversion_rate = 1.0 +price_list_currency = "INR" +selling_price_list = "_Test Price List" +territory = "_Test Territory" +[["Sales Invoice".items]] +cost_center = "_Test Cost Center - _TC" +doctype = "Sales Invoice Item" +income_account = "Sales - _TC" +expense_account = "_Test Account Cost for Goods Sold - _TC" +item_code = "_Test Item Home Desktop 100" +item_name = "_Test Item Home Desktop 100" +item_tax_template = "_Test Account Excise Duty @ 10 - _TC" +parentfield = "items" +price_list_rate = 62.5 +qty = 10 +uom = "_Test UOM 1" +conversion_factor = 1 +stock_uom = "_Test UOM 1" + +[["Sales Invoice".items]] +cost_center = "_Test Cost Center - _TC" +doctype = "Sales Invoice Item" +income_account = "Sales - _TC" +expense_account = "_Test Account Cost for Goods Sold - _TC" +item_code = "_Test Item Home Desktop 200" +item_name = "_Test Item Home Desktop 200" +parentfield = "items" +price_list_rate = 190.66 +qty = 5 +uom = "_Test UOM" +conversion_factor = 1 +stock_uom = "_Test UOM" + +[["Sales Invoice".taxes]] +account_head = "_Test Account Excise Duty - _TC" +charge_type = "On Net Total" +cost_center = "_Test Cost Center - _TC" +description = "Excise Duty" +doctype = "Sales Taxes and Charges" +idx = 1 +included_in_print_rate = 1 +parentfield = "taxes" +rate = 12 + +[["Sales Invoice".taxes]] +account_head = "_Test Account Education Cess - _TC" +charge_type = "On Previous Row Amount" +cost_center = "_Test Cost Center - _TC" +description = "Education Cess" +doctype = "Sales Taxes and Charges" +idx = 2 +included_in_print_rate = 1 +parentfield = "taxes" +rate = 2 +row_id = 1 + +[["Sales Invoice".taxes]] +account_head = "_Test Account S&H Education Cess - _TC" +charge_type = "On Previous Row Amount" +cost_center = "_Test Cost Center - _TC" +description = "S&H Education Cess" +doctype = "Sales Taxes and Charges" +idx = 3 +included_in_print_rate = 1 +parentfield = "taxes" +rate = 1 +row_id = 1 + +[["Sales Invoice".taxes]] +account_head = "_Test Account CST - _TC" +charge_type = "On Previous Row Total" +cost_center = "_Test Cost Center - _TC" +description = "CST" +doctype = "Sales Taxes and Charges" +idx = 4 +included_in_print_rate = 1 +parentfield = "taxes" +rate = 2 +row_id = 3 + +[["Sales Invoice".taxes]] +account_head = "_Test Account VAT - _TC" +charge_type = "On Net Total" +cost_center = "_Test Cost Center - _TC" +description = "VAT" +doctype = "Sales Taxes and Charges" +idx = 5 +included_in_print_rate = 1 +parentfield = "taxes" +rate = 12.5 + +[["Sales Invoice".taxes]] +account_head = "_Test Account Customs Duty - _TC" +charge_type = "On Net Total" +cost_center = "_Test Cost Center - _TC" +description = "Customs Duty" +doctype = "Sales Taxes and Charges" +idx = 6 +parentfield = "taxes" +rate = 10 + +[["Sales Invoice".taxes]] +account_head = "_Test Account Shipping Charges - _TC" +charge_type = "Actual" +cost_center = "_Test Cost Center - _TC" +description = "Shipping Charges" +doctype = "Sales Taxes and Charges" +idx = 7 +parentfield = "taxes" +tax_amount = 100 + +[["Sales Invoice".taxes]] +account_head = "_Test Account Discount - _TC" +charge_type = "On Previous Row Total" +cost_center = "_Test Cost Center - _TC" +description = "Discount" +doctype = "Sales Taxes and Charges" +idx = 8 +parentfield = "taxes" +rate = -10 +row_id = 7 + + diff --git a/erpnext/accounts/doctype/sales_taxes_and_charges_template/test_records.json b/erpnext/accounts/doctype/sales_taxes_and_charges_template/test_records.json deleted file mode 100644 index 74db08d5b86..00000000000 --- a/erpnext/accounts/doctype/sales_taxes_and_charges_template/test_records.json +++ /dev/null @@ -1,209 +0,0 @@ -[ - { - "company": "_Test Company", - "doctype": "Sales Taxes and Charges Template", - "taxes": [ - { - "account_head": "_Test Account VAT - _TC", - "charge_type": "On Net Total", - "description": "VAT", - "doctype": "Sales Taxes and Charges", - "cost_center": "Main - _TC", - "parentfield": "taxes", - "rate": 6 - }, - { - "account_head": "_Test Account Service Tax - _TC", - "charge_type": "On Net Total", - "description": "Service Tax", - "doctype": "Sales Taxes and Charges", - "cost_center": "Main - _TC", - "parentfield": "taxes", - "rate": 6.36 - } - ], - "title": "_Test Sales Taxes and Charges Template" - }, - { - "company": "_Test Company", - "doctype": "Sales Taxes and Charges Template", - "taxes": [ - { - "account_head": "_Test Account Shipping Charges - _TC", - "charge_type": "Actual", - "cost_center": "_Test Cost Center - _TC", - "description": "Shipping Charges", - "doctype": "Sales Taxes and Charges", - "parentfield": "taxes", - "tax_amount": 100 - }, - { - "account_head": "_Test Account Customs Duty - _TC", - "charge_type": "On Net Total", - "cost_center": "_Test Cost Center - _TC", - "description": "Customs Duty", - "doctype": "Sales Taxes and Charges", - "parentfield": "taxes", - "rate": 10 - }, - { - "account_head": "_Test Account Excise Duty - _TC", - "charge_type": "On Net Total", - "cost_center": "_Test Cost Center - _TC", - "description": "Excise Duty", - "doctype": "Sales Taxes and Charges", - "parentfield": "taxes", - "rate": 12 - }, - { - "account_head": "_Test Account Education Cess - _TC", - "charge_type": "On Previous Row Amount", - "cost_center": "_Test Cost Center - _TC", - "description": "Education Cess", - "doctype": "Sales Taxes and Charges", - "parentfield": "taxes", - "rate": 2, - "row_id": 3 - }, - { - "account_head": "_Test Account S&H Education Cess - _TC", - "charge_type": "On Previous Row Amount", - "cost_center": "_Test Cost Center - _TC", - "description": "S&H Education Cess", - "doctype": "Sales Taxes and Charges", - "parentfield": "taxes", - "rate": 1, - "row_id": 3 - }, - { - "account_head": "_Test Account CST - _TC", - "charge_type": "On Previous Row Total", - "cost_center": "_Test Cost Center - _TC", - "description": "CST", - "doctype": "Sales Taxes and Charges", - "parentfield": "taxes", - "rate": 2, - "row_id": 5 - }, - { - "account_head": "_Test Account VAT - _TC", - "charge_type": "On Net Total", - "cost_center": "_Test Cost Center - _TC", - "description": "VAT", - "doctype": "Sales Taxes and Charges", - "parentfield": "taxes", - "rate": 12.5 - }, - { - "account_head": "_Test Account Discount - _TC", - "charge_type": "On Previous Row Total", - "cost_center": "_Test Cost Center - _TC", - "description": "Discount", - "doctype": "Sales Taxes and Charges", - "parentfield": "taxes", - "rate": -10, - "row_id": 7 - } - ], - "title": "_Test India Tax Master" - }, - { - "company": "_Test Company", - "doctype": "Sales Taxes and Charges Template", - "taxes": [ - { - "account_head": "_Test Account VAT - _TC", - "charge_type": "On Net Total", - "description": "VAT", - "doctype": "Sales Taxes and Charges", - "cost_center": "Main - _TC", - "parentfield": "taxes", - "rate": 12 - }, - { - "account_head": "_Test Account Service Tax - _TC", - "charge_type": "On Net Total", - "description": "Service Tax", - "doctype": "Sales Taxes and Charges", - "cost_center": "Main - _TC", - "parentfield": "taxes", - "rate": 4 - } - ], - "title": "_Test Sales Taxes and Charges Template - Rest of the World" - }, - { - "company": "_Test Company", - "doctype": "Sales Taxes and Charges Template", - "taxes": [ - { - "account_head": "_Test Account VAT - _TC", - "charge_type": "On Net Total", - "description": "VAT", - "doctype": "Sales Taxes and Charges", - "cost_center": "Main - _TC", - "parentfield": "taxes", - "rate": 12 - }, - { - "account_head": "_Test Account Service Tax - _TC", - "charge_type": "On Net Total", - "description": "Service Tax", - "doctype": "Sales Taxes and Charges", - "cost_center": "Main - _TC", - "parentfield": "taxes", - "rate": 4 - } - ], - "title": "_Test Sales Taxes and Charges Template 1" - }, - { - "company": "_Test Company", - "doctype": "Sales Taxes and Charges Template", - "taxes": [ - { - "account_head": "_Test Account VAT - _TC", - "charge_type": "On Net Total", - "description": "VAT", - "doctype": "Sales Taxes and Charges", - "cost_center": "Main - _TC", - "parentfield": "taxes", - "rate": 12 - }, - { - "account_head": "_Test Account Service Tax - _TC", - "charge_type": "On Net Total", - "description": "Service Tax", - "doctype": "Sales Taxes and Charges", - "cost_center": "Main - _TC", - "parentfield": "taxes", - "rate": 4 - } - ], - "title": "_Test Sales Taxes and Charges Template 2" - }, - { - "doctype" : "Sales Taxes and Charges Template", - "title": "_Test Tax 1", - "company": "_Test Company", - "taxes":[{ - "charge_type": "Actual", - "account_head": "Sales Expenses - _TC", - "cost_center": "Main - _TC", - "description": "Test Shopping cart taxes with Tax Rule", - "tax_amount": 1000 - }] - }, - { - "doctype" : "Sales Taxes and Charges Template", - "title": "_Test Tax 2", - "company": "_Test Company", - "taxes":[{ - "charge_type": "Actual", - "account_head": "Sales Expenses - _TC", - "cost_center": "Main - _TC", - "description": "Test Shopping cart taxes with Tax Rule", - "tax_amount": 200 - }] - } -] diff --git a/erpnext/accounts/doctype/sales_taxes_and_charges_template/test_records.toml b/erpnext/accounts/doctype/sales_taxes_and_charges_template/test_records.toml new file mode 100644 index 00000000000..ee501580e54 --- /dev/null +++ b/erpnext/accounts/doctype/sales_taxes_and_charges_template/test_records.toml @@ -0,0 +1,190 @@ +[["Sales Taxes and Charges Template"]] +company = "_Test Company" +title = "_Test Sales Taxes and Charges Template" +[["Sales Taxes and Charges Template".taxes]] +account_head = "_Test Account VAT - _TC" +charge_type = "On Net Total" +description = "VAT" +doctype = "Sales Taxes and Charges" +cost_center = "Main - _TC" +parentfield = "taxes" +rate = 6 + +[["Sales Taxes and Charges Template".taxes]] +account_head = "_Test Account Service Tax - _TC" +charge_type = "On Net Total" +description = "Service Tax" +doctype = "Sales Taxes and Charges" +cost_center = "Main - _TC" +parentfield = "taxes" +rate = 6.36 + + +[["Sales Taxes and Charges Template"]] +company = "_Test Company" +title = "_Test India Tax Master" +[["Sales Taxes and Charges Template".taxes]] +account_head = "_Test Account Shipping Charges - _TC" +charge_type = "Actual" +cost_center = "_Test Cost Center - _TC" +description = "Shipping Charges" +doctype = "Sales Taxes and Charges" +parentfield = "taxes" +tax_amount = 100 + +[["Sales Taxes and Charges Template".taxes]] +account_head = "_Test Account Customs Duty - _TC" +charge_type = "On Net Total" +cost_center = "_Test Cost Center - _TC" +description = "Customs Duty" +doctype = "Sales Taxes and Charges" +parentfield = "taxes" +rate = 10 + +[["Sales Taxes and Charges Template".taxes]] +account_head = "_Test Account Excise Duty - _TC" +charge_type = "On Net Total" +cost_center = "_Test Cost Center - _TC" +description = "Excise Duty" +doctype = "Sales Taxes and Charges" +parentfield = "taxes" +rate = 12 + +[["Sales Taxes and Charges Template".taxes]] +account_head = "_Test Account Education Cess - _TC" +charge_type = "On Previous Row Amount" +cost_center = "_Test Cost Center - _TC" +description = "Education Cess" +doctype = "Sales Taxes and Charges" +parentfield = "taxes" +rate = 2 +row_id = 3 + +[["Sales Taxes and Charges Template".taxes]] +account_head = "_Test Account S&H Education Cess - _TC" +charge_type = "On Previous Row Amount" +cost_center = "_Test Cost Center - _TC" +description = "S&H Education Cess" +doctype = "Sales Taxes and Charges" +parentfield = "taxes" +rate = 1 +row_id = 3 + +[["Sales Taxes and Charges Template".taxes]] +account_head = "_Test Account CST - _TC" +charge_type = "On Previous Row Total" +cost_center = "_Test Cost Center - _TC" +description = "CST" +doctype = "Sales Taxes and Charges" +parentfield = "taxes" +rate = 2 +row_id = 5 + +[["Sales Taxes and Charges Template".taxes]] +account_head = "_Test Account VAT - _TC" +charge_type = "On Net Total" +cost_center = "_Test Cost Center - _TC" +description = "VAT" +doctype = "Sales Taxes and Charges" +parentfield = "taxes" +rate = 12.5 + +[["Sales Taxes and Charges Template".taxes]] +account_head = "_Test Account Discount - _TC" +charge_type = "On Previous Row Total" +cost_center = "_Test Cost Center - _TC" +description = "Discount" +doctype = "Sales Taxes and Charges" +parentfield = "taxes" +rate = -10 +row_id = 7 + + +[["Sales Taxes and Charges Template"]] +company = "_Test Company" +title = "_Test Sales Taxes and Charges Template - Rest of the World" +[["Sales Taxes and Charges Template".taxes]] +account_head = "_Test Account VAT - _TC" +charge_type = "On Net Total" +description = "VAT" +doctype = "Sales Taxes and Charges" +cost_center = "Main - _TC" +parentfield = "taxes" +rate = 12 + +[["Sales Taxes and Charges Template".taxes]] +account_head = "_Test Account Service Tax - _TC" +charge_type = "On Net Total" +description = "Service Tax" +doctype = "Sales Taxes and Charges" +cost_center = "Main - _TC" +parentfield = "taxes" +rate = 4 + + +[["Sales Taxes and Charges Template"]] +company = "_Test Company" +title = "_Test Sales Taxes and Charges Template 1" +[["Sales Taxes and Charges Template".taxes]] +account_head = "_Test Account VAT - _TC" +charge_type = "On Net Total" +description = "VAT" +doctype = "Sales Taxes and Charges" +cost_center = "Main - _TC" +parentfield = "taxes" +rate = 12 + +[["Sales Taxes and Charges Template".taxes]] +account_head = "_Test Account Service Tax - _TC" +charge_type = "On Net Total" +description = "Service Tax" +doctype = "Sales Taxes and Charges" +cost_center = "Main - _TC" +parentfield = "taxes" +rate = 4 + + +[["Sales Taxes and Charges Template"]] +company = "_Test Company" +title = "_Test Sales Taxes and Charges Template 2" +[["Sales Taxes and Charges Template".taxes]] +account_head = "_Test Account VAT - _TC" +charge_type = "On Net Total" +description = "VAT" +doctype = "Sales Taxes and Charges" +cost_center = "Main - _TC" +parentfield = "taxes" +rate = 12 + +[["Sales Taxes and Charges Template".taxes]] +account_head = "_Test Account Service Tax - _TC" +charge_type = "On Net Total" +description = "Service Tax" +doctype = "Sales Taxes and Charges" +cost_center = "Main - _TC" +parentfield = "taxes" +rate = 4 + + +[["Sales Taxes and Charges Template"]] +title = "_Test Tax 1" +company = "_Test Company" +[["Sales Taxes and Charges Template".taxes]] +charge_type = "Actual" +account_head = "Sales Expenses - _TC" +cost_center = "Main - _TC" +description = "Test Shopping cart taxes with Tax Rule" +tax_amount = 1000 + + +[["Sales Taxes and Charges Template"]] +title = "_Test Tax 2" +company = "_Test Company" +[["Sales Taxes and Charges Template".taxes]] +charge_type = "Actual" +account_head = "Sales Expenses - _TC" +cost_center = "Main - _TC" +description = "Test Shopping cart taxes with Tax Rule" +tax_amount = 200 + + diff --git a/erpnext/accounts/doctype/share_type/test_records.json b/erpnext/accounts/doctype/share_type/test_records.json deleted file mode 100644 index 88cb8c056fe..00000000000 --- a/erpnext/accounts/doctype/share_type/test_records.json +++ /dev/null @@ -1,10 +0,0 @@ -[ - { - "doctype": "Share Type", - "title": "Class A" - }, - { - "doctype": "Share Type", - "title": "Class B" - } -] \ No newline at end of file diff --git a/erpnext/accounts/doctype/share_type/test_records.toml b/erpnext/accounts/doctype/share_type/test_records.toml new file mode 100644 index 00000000000..b5591875b0e --- /dev/null +++ b/erpnext/accounts/doctype/share_type/test_records.toml @@ -0,0 +1,6 @@ +[["Share Type"]] +title = "Class A" + +[["Share Type"]] +title = "Class B" + diff --git a/erpnext/accounts/doctype/shareholder/test_records.json b/erpnext/accounts/doctype/shareholder/test_records.json deleted file mode 100644 index 39b72d47770..00000000000 --- a/erpnext/accounts/doctype/shareholder/test_records.json +++ /dev/null @@ -1,20 +0,0 @@ -[ - { - "doctype": "Shareholder", - "naming_series": "SH-", - "title": "Iron Man", - "company": "_Test Company" - }, - { - "doctype": "Shareholder", - "naming_series": "SH-", - "title": "Thor", - "company": "_Test Company" - }, - { - "doctype": "Shareholder", - "naming_series": "SH-", - "title": "Hulk", - "company": "_Test Company" - } -] \ No newline at end of file diff --git a/erpnext/accounts/doctype/shareholder/test_records.toml b/erpnext/accounts/doctype/shareholder/test_records.toml new file mode 100644 index 00000000000..52f80345d4b --- /dev/null +++ b/erpnext/accounts/doctype/shareholder/test_records.toml @@ -0,0 +1,15 @@ +[[Shareholder]] +naming_series = "SH-" +title = "Iron Man" +company = "_Test Company" + +[[Shareholder]] +naming_series = "SH-" +title = "Thor" +company = "_Test Company" + +[[Shareholder]] +naming_series = "SH-" +title = "Hulk" +company = "_Test Company" + diff --git a/erpnext/accounts/doctype/shipping_rule/test_records.json b/erpnext/accounts/doctype/shipping_rule/test_records.json deleted file mode 100644 index 26b37374433..00000000000 --- a/erpnext/accounts/doctype/shipping_rule/test_records.json +++ /dev/null @@ -1,108 +0,0 @@ -[ - { - "account": "_Test Account Shipping Charges - _TC", - "calculate_based_on": "Net Total", - "company": "_Test Company", - "cost_center": "_Test Cost Center - _TC", - "doctype": "Shipping Rule", - "label": "_Test Shipping Rule", - "name": "_Test Shipping Rule", - "shipping_rule_type": "Selling", - "conditions": [ - { - "doctype": "Shipping Rule Condition", - "from_value": 0, - "parentfield": "conditions", - "shipping_amount": 50.0, - "to_value": 100 - }, - { - "doctype": "Shipping Rule Condition", - "from_value": 101, - "parentfield": "conditions", - "shipping_amount": 100.0, - "to_value": 200 - }, - { - "doctype": "Shipping Rule Condition", - "from_value": 201, - "parentfield": "conditions", - "shipping_amount": 200.0 - } - ], - "countries": [ - {"country": "India"} - ], - "worldwide_shipping": 1 - }, - { - "account": "_Test Account Shipping Charges - _TC", - "calculate_based_on": "Net Total", - "company": "_Test Company", - "cost_center": "_Test Cost Center - _TC", - "doctype": "Shipping Rule", - "label": "_Test Shipping Rule - India", - "name": "_Test Shipping Rule - India", - "conditions": [ - { - "doctype": "Shipping Rule Condition", - "from_value": 0, - "parentfield": "conditions", - "shipping_amount": 50.0, - "to_value": 100 - }, - { - "doctype": "Shipping Rule Condition", - "from_value": 101, - "parentfield": "conditions", - "shipping_amount": 100.0, - "to_value": 200 - }, - { - "doctype": "Shipping Rule Condition", - "from_value": 201, - "parentfield": "conditions", - "shipping_amount": 0.0 - } - ], - "countries": [ - {"country": "India"} - ] - }, - { - "account": "_Test Account Shipping Charges - _TC", - "calculate_based_on": "Net Total", - "company": "_Test Company", - "cost_center": "_Test Cost Center - _TC", - "doctype": "Shipping Rule", - "label": "_Test Shipping Rule - Rest of the World", - "name": "_Test Shipping Rule - Rest of the World", - "shipping_rule_type": "Buying", - "conditions": [ - { - "doctype": "Shipping Rule Condition", - "from_value": 0, - "parentfield": "conditions", - "shipping_amount": 500.0, - "to_value": 1000 - }, - { - "doctype": "Shipping Rule Condition", - "from_value": 1001, - "parentfield": "conditions", - "shipping_amount": 1000.0, - "to_value": 2000 - }, - { - "doctype": "Shipping Rule Condition", - "from_value": 2001, - "parentfield": "conditions", - "shipping_amount": 1500.0 - } - ], - "worldwide_shipping": 1, - "countries": [ - {"country": "Germany"} - ] - } -] diff --git a/erpnext/accounts/doctype/shipping_rule/test_records.toml b/erpnext/accounts/doctype/shipping_rule/test_records.toml new file mode 100644 index 00000000000..b4e3d5306ff --- /dev/null +++ b/erpnext/accounts/doctype/shipping_rule/test_records.toml @@ -0,0 +1,97 @@ +[["Shipping Rule"]] +account = "_Test Account Shipping Charges - _TC" +calculate_based_on = "Net Total" +company = "_Test Company" +cost_center = "_Test Cost Center - _TC" +label = "_Test Shipping Rule" +name = "_Test Shipping Rule" +shipping_rule_type = "Selling" +worldwide_shipping = 1 +[["Shipping Rule".conditions]] +doctype = "Shipping Rule Condition" +from_value = 0 +parentfield = "conditions" +shipping_amount = 50.0 +to_value = 100 + +[["Shipping Rule".conditions]] +doctype = "Shipping Rule Condition" +from_value = 101 +parentfield = "conditions" +shipping_amount = 100.0 +to_value = 200 + +[["Shipping Rule".conditions]] +doctype = "Shipping Rule Condition" +from_value = 201 +parentfield = "conditions" +shipping_amount = 200.0 + +[["Shipping Rule".countries]] +country = "India" + + +[["Shipping Rule"]] +account = "_Test Account Shipping Charges - _TC" +calculate_based_on = "Net Total" +company = "_Test Company" +cost_center = "_Test Cost Center - _TC" +label = "_Test Shipping Rule - India" +name = "_Test Shipping Rule - India" +[["Shipping Rule".conditions]] +doctype = "Shipping Rule Condition" +from_value = 0 +parentfield = "conditions" +shipping_amount = 50.0 +to_value = 100 + +[["Shipping Rule".conditions]] +doctype = "Shipping Rule Condition" +from_value = 101 +parentfield = "conditions" +shipping_amount = 100.0 +to_value = 200 + +[["Shipping Rule".conditions]] +doctype = "Shipping Rule Condition" +from_value = 201 +parentfield = "conditions" +shipping_amount = 0.0 + +[["Shipping Rule".countries]] +country = "India" + + +[["Shipping Rule"]] +account = "_Test Account Shipping Charges - _TC" +calculate_based_on = "Net Total" +company = "_Test Company" +cost_center = "_Test Cost Center - _TC" +label = "_Test Shipping Rule - Rest of the World" +name = "_Test Shipping Rule - Rest of the World" +shipping_rule_type = "Buying" +worldwide_shipping = 1 +[["Shipping Rule".conditions]] +doctype = "Shipping Rule Condition" +from_value = 0 +parentfield = "conditions" +shipping_amount = 500.0 +to_value = 1000 + +[["Shipping Rule".conditions]] +doctype = "Shipping Rule Condition" +from_value = 1001 +parentfield = "conditions" +shipping_amount = 1000.0 +to_value = 2000 + +[["Shipping Rule".conditions]] +doctype = "Shipping Rule Condition" +from_value = 2001 +parentfield = "conditions" +shipping_amount = 1500.0 + +[["Shipping Rule".countries]] +country = "Germany" + + diff --git a/erpnext/accounts/doctype/tax_category/test_records.json b/erpnext/accounts/doctype/tax_category/test_records.json deleted file mode 100644 index 1bb7f5ed876..00000000000 --- a/erpnext/accounts/doctype/tax_category/test_records.json +++ /dev/null @@ -1,14 +0,0 @@ -[ - { - "doctype": "Tax Category", - "title": "_Test Tax Category 1" - }, - { - "doctype": "Tax Category", - "title": "_Test Tax Category 2" - }, - { - "doctype": "Tax Category", - "title": "_Test Tax Category 3" - } -] diff --git a/erpnext/accounts/doctype/tax_category/test_records.toml b/erpnext/accounts/doctype/tax_category/test_records.toml new file mode 100644 index 00000000000..0dcd23dc574 --- /dev/null +++ b/erpnext/accounts/doctype/tax_category/test_records.toml @@ -0,0 +1,9 @@ +[["Tax Category"]] +title = "_Test Tax Category 1" + +[["Tax Category"]] +title = "_Test Tax Category 2" + +[["Tax Category"]] +title = "_Test Tax Category 3" + diff --git a/erpnext/accounts/doctype/tax_rule/test_records.json b/erpnext/accounts/doctype/tax_rule/test_records.json deleted file mode 100644 index e80b12f73ea..00000000000 --- a/erpnext/accounts/doctype/tax_rule/test_records.json +++ /dev/null @@ -1,28 +0,0 @@ -[ - { - "doctype": "Tax Rule", - "tax_type" : "Sales", - "sales_tax_template": "_Test Tax 1 - _TC", - "use_for_shopping_cart": 1, - "billing_city": "_Test City", - "billing_state": "Test State", - "billing_country": "India", - "shipping_city": "_Test City", - "shipping_country": "India", - "priority": 1, - "company": "_Test Company" - }, - { - "doctype": "Tax Rule", - "tax_type" : "Sales", - "sales_tax_template": "_Test Tax 2 - _TC", - "use_for_shopping_cart": 0, - "billing_city": "_Test City", - "billing_country": "India", - "shipping_city": "_Test City", - "shipping_state": "Test State", - "shipping_country": "India", - "priority": 2, - "company": "_Test Company" - } -] \ No newline at end of file diff --git a/erpnext/accounts/doctype/tax_rule/test_records.toml b/erpnext/accounts/doctype/tax_rule/test_records.toml new file mode 100644 index 00000000000..bd29dde598c --- /dev/null +++ b/erpnext/accounts/doctype/tax_rule/test_records.toml @@ -0,0 +1,24 @@ +[["Tax Rule"]] +tax_type = "Sales" +sales_tax_template = "_Test Tax 1 - _TC" +use_for_shopping_cart = 1 +billing_city = "_Test City" +billing_state = "Test State" +billing_country = "India" +shipping_city = "_Test City" +shipping_country = "India" +priority = 1 +company = "_Test Company" + +[["Tax Rule"]] +tax_type = "Sales" +sales_tax_template = "_Test Tax 2 - _TC" +use_for_shopping_cart = 0 +billing_city = "_Test City" +billing_country = "India" +shipping_city = "_Test City" +shipping_state = "Test State" +shipping_country = "India" +priority = 2 +company = "_Test Company" + diff --git a/erpnext/assets/doctype/asset_maintenance/test_records.json b/erpnext/assets/doctype/asset_maintenance/test_records.json deleted file mode 100644 index 8306fad6cba..00000000000 --- a/erpnext/assets/doctype/asset_maintenance/test_records.json +++ /dev/null @@ -1,68 +0,0 @@ -[ - { - "doctype": "Asset Category", - "asset_category_name": "Equipment", - "total_number_of_depreciations": 3, - "frequency_of_depreciation": 3, - "accounts": [ - { - "company_name": "_Test Company", - "fixed_asset_account": "_Test Fixed Asset - _TC", - "accumulated_depreciation_account": "_Test Accumulated Depreciations - _TC", - "depreciation_expense_account": "_Test Depreciations - _TC" - } - ] - }, - { - "doctype": "Location", - "location_name": "Test Location" - }, - { - "doctype": "Role", - "role_name": "Technician" - }, - { - "doctype": "User", - "email": "marcus@abc.com", - "first_name": "marcus@abc.com", - "new_password": "password", - "roles": [{"doctype": "Has Role", "role": "Technician"}] - }, - { - "doctype": "User", - "email": "thalia@abc.com", - "first_name": "thalia@abc.com", - "new_password": "password", - "roles": [{"doctype": "Has Role", "role": "Technician"}] - }, - { - "doctype": "User", - "email": "mathias@abc.com", - "first_name": "mathias@abc.com", - "new_password": "password", - "roles": [{"doctype": "Has Role", "role": "Technician"}] - }, - { - "doctype": "Asset Maintenance Team", - "maintenance_manager": "marcus@abc.com", - "maintenance_team_name": "Team Awesome", - "company": "_Test Company", - "maintenance_team_members": [ - {"team_member": "marcus@abc.com", "full_name": "marcus@abc.com", "maintenance_role": "Technician"}, - {"team_member": "thalia@abc.com", "full_name": "thalia@abc.com", "maintenance_role": "Technician"}, - {"team_member": "mathias@abc.com", "full_name": "mathias@abc.com", "maintenance_role": "Technician"} - ] - }, - { - "doctype": "Item", - "item_code": "Photocopier", - "item_name": "Photocopier", - "item_group": "All Item Groups", - "company": "_Test Company", - "is_fixed_asset": 1, - "is_stock_item": 0, - "asset_category": "Equipment", - "auto_create_assets": 1, - "asset_naming_series": "ABC.###" - } -] diff --git a/erpnext/assets/doctype/asset_maintenance/test_records.toml b/erpnext/assets/doctype/asset_maintenance/test_records.toml new file mode 100644 index 00000000000..4146f1f03cd --- /dev/null +++ b/erpnext/assets/doctype/asset_maintenance/test_records.toml @@ -0,0 +1,75 @@ +[["Asset Category"]] +asset_category_name = "Equipment" +total_number_of_depreciations = 3 +frequency_of_depreciation = 3 +[["Asset Category".accounts]] +company_name = "_Test Company" +fixed_asset_account = "_Test Fixed Asset - _TC" +accumulated_depreciation_account = "_Test Accumulated Depreciations - _TC" +depreciation_expense_account = "_Test Depreciations - _TC" + + +[[Location]] +location_name = "Test Location" + +[[Role]] +role_name = "Technician" + +[[User]] +email = "marcus@abc.com" +first_name = "marcus@abc.com" +new_password = "password" +[[User.roles]] +doctype = "Has Role" +role = "Technician" + + +[[User]] +email = "thalia@abc.com" +first_name = "thalia@abc.com" +new_password = "password" +[[User.roles]] +doctype = "Has Role" +role = "Technician" + + +[[User]] +email = "mathias@abc.com" +first_name = "mathias@abc.com" +new_password = "password" +[[User.roles]] +doctype = "Has Role" +role = "Technician" + + +[["Asset Maintenance Team"]] +maintenance_manager = "marcus@abc.com" +maintenance_team_name = "Team Awesome" +company = "_Test Company" +[["Asset Maintenance Team".maintenance_team_members]] +team_member = "marcus@abc.com" +full_name = "marcus@abc.com" +maintenance_role = "Technician" + +[["Asset Maintenance Team".maintenance_team_members]] +team_member = "thalia@abc.com" +full_name = "thalia@abc.com" +maintenance_role = "Technician" + +[["Asset Maintenance Team".maintenance_team_members]] +team_member = "mathias@abc.com" +full_name = "mathias@abc.com" +maintenance_role = "Technician" + + +[[Item]] +item_code = "Photocopier" +item_name = "Photocopier" +item_group = "All Item Groups" +company = "_Test Company" +is_fixed_asset = 1 +is_stock_item = 0 +asset_category = "Equipment" +auto_create_assets = 1 +asset_naming_series = "ABC.###" + diff --git a/erpnext/assets/doctype/location/test_records.json b/erpnext/assets/doctype/location/test_records.json deleted file mode 100644 index 8a89cf8bdd3..00000000000 --- a/erpnext/assets/doctype/location/test_records.json +++ /dev/null @@ -1,44 +0,0 @@ -[ - { - "doctype": "Location", - "location_name": "Test Location Area", - "is_group": 1, - "is_container": 1 - }, - { - "doctype": "Location", - "location_name": "Basil Farm", - "location": "{\"type\":\"FeatureCollection\",\"features\":[{\"type\":\"Feature\",\"properties\":{\"point_type\":\"circle\",\"radius\":884.5625420736483},\"geometry\":{\"type\":\"Point\",\"coordinates\":[72.875834,19.100566]}}]}", - "parent_location": "Test Location Area", - "parent": "Test Location Area", - "is_group": 1, - "is_container": 1 - }, - { - "doctype": "Location", - "location_name": "Division 1", - "location": "{\"type\":\"FeatureCollection\",\"features\":[{\"type\":\"Feature\",\"properties\":{\"point_type\":\"circle\",\"radius\":542.3424997060739},\"geometry\":{\"type\":\"Point\",\"coordinates\":[72.852359,19.11557]}}]}", - "parent_location": "Basil Farm", - "parent": "Basil Farm", - "is_group": 1, - "is_container": 1 - }, - { - "doctype": "Location", - "location_name": "Field 1", - "location": "{\"type\":\"FeatureCollection\",\"features\":[{\"type\":\"Feature\",\"properties\":{},\"geometry\":{\"type\":\"Polygon\",\"coordinates\":[[[72.846758,19.118287],[72.846758,19.121206],[72.850535,19.121206],[72.850535,19.118287],[72.846758,19.118287]]]}}]}", - "parent_location": "Division 1", - "parent": "Division 1", - "is_group": 1, - "is_container": 1 - }, - { - "doctype": "Location", - "location_name": "Block 1", - "location": "{\"type\":\"FeatureCollection\",\"features\":[{\"type\":\"Feature\",\"properties\":{},\"geometry\":{\"type\":\"Polygon\",\"coordinates\":[[[72.921495,19.073313],[72.924929,19.068121],[72.934713,19.06585],[72.929392,19.05579],[72.94158,19.056926],[72.951365,19.095213],[72.921495,19.073313]]]}}]}", - "parent_location": "Field 1", - "parent": "Field 1", - "is_group": 0, - "is_container": 1 - } -] \ No newline at end of file diff --git a/erpnext/assets/doctype/location/test_records.toml b/erpnext/assets/doctype/location/test_records.toml new file mode 100644 index 00000000000..12dd9bacfe4 --- /dev/null +++ b/erpnext/assets/doctype/location/test_records.toml @@ -0,0 +1,37 @@ +[[Location]] +location_name = "Test Location Area" +is_group = 1 +is_container = 1 + +[[Location]] +location_name = "Basil Farm" +location = "{\"type\":\"FeatureCollection\",\"features\":[{\"type\":\"Feature\",\"properties\":{\"point_type\":\"circle\",\"radius\":884.5625420736483},\"geometry\":{\"type\":\"Point\",\"coordinates\":[72.875834,19.100566]}}]}" +parent_location = "Test Location Area" +parent = "Test Location Area" +is_group = 1 +is_container = 1 + +[[Location]] +location_name = "Division 1" +location = "{\"type\":\"FeatureCollection\",\"features\":[{\"type\":\"Feature\",\"properties\":{\"point_type\":\"circle\",\"radius\":542.3424997060739},\"geometry\":{\"type\":\"Point\",\"coordinates\":[72.852359,19.11557]}}]}" +parent_location = "Basil Farm" +parent = "Basil Farm" +is_group = 1 +is_container = 1 + +[[Location]] +location_name = "Field 1" +location = "{\"type\":\"FeatureCollection\",\"features\":[{\"type\":\"Feature\",\"properties\":{},\"geometry\":{\"type\":\"Polygon\",\"coordinates\":[[[72.846758,19.118287],[72.846758,19.121206],[72.850535,19.121206],[72.850535,19.118287],[72.846758,19.118287]]]}}]}" +parent_location = "Division 1" +parent = "Division 1" +is_group = 1 +is_container = 1 + +[[Location]] +location_name = "Block 1" +location = "{\"type\":\"FeatureCollection\",\"features\":[{\"type\":\"Feature\",\"properties\":{},\"geometry\":{\"type\":\"Polygon\",\"coordinates\":[[[72.921495,19.073313],[72.924929,19.068121],[72.934713,19.06585],[72.929392,19.05579],[72.94158,19.056926],[72.951365,19.095213],[72.921495,19.073313]]]}}]}" +parent_location = "Field 1" +parent = "Field 1" +is_group = 0 +is_container = 1 + diff --git a/erpnext/buying/doctype/purchase_order/test_records.json b/erpnext/buying/doctype/purchase_order/test_records.json deleted file mode 100644 index 4df994a68c6..00000000000 --- a/erpnext/buying/doctype/purchase_order/test_records.json +++ /dev/null @@ -1,36 +0,0 @@ -[ - { - "advance_paid": 0.0, - "buying_price_list": "_Test Price List", - "company": "_Test Company", - "conversion_rate": 1.0, - "currency": "INR", - "doctype": "Purchase Order", - "base_grand_total": 5000.0, - "grand_total": 5000.0, - "is_subcontracted": 0, - "naming_series": "_T-Purchase Order-", - "base_net_total": 5000.0, - "items": [ - { - "base_amount": 5000.0, - "conversion_factor": 1.0, - "description": "_Test Item", - "doctype": "Purchase Order Item", - "item_code": "_Test Item", - "item_name": "_Test Item", - "parentfield": "items", - "qty": 10.0, - "rate": 500.0, - "schedule_date": "2013-03-01", - "stock_uom": "_Test UOM", - "uom": "_Test UOM", - "warehouse": "_Test Warehouse - _TC" - } - ], - "supplier": "_Test Supplier", - "supplier_name": "_Test Supplier", - "transaction_date": "2013-02-12", - "schedule_date": "2013-02-13" - } -] diff --git a/erpnext/buying/doctype/purchase_order/test_records.toml b/erpnext/buying/doctype/purchase_order/test_records.toml new file mode 100644 index 00000000000..04b639a1e85 --- /dev/null +++ b/erpnext/buying/doctype/purchase_order/test_records.toml @@ -0,0 +1,31 @@ +[["Purchase Order"]] +advance_paid = 0.0 +buying_price_list = "_Test Price List" +company = "_Test Company" +conversion_rate = 1.0 +currency = "INR" +base_grand_total = 5000.0 +grand_total = 5000.0 +is_subcontracted = 0 +naming_series = "_T-Purchase Order-" +base_net_total = 5000.0 +supplier = "_Test Supplier" +supplier_name = "_Test Supplier" +transaction_date = "2013-02-12" +schedule_date = "2013-02-13" +[["Purchase Order".items]] +base_amount = 5000.0 +conversion_factor = 1.0 +description = "_Test Item" +doctype = "Purchase Order Item" +item_code = "_Test Item" +item_name = "_Test Item" +parentfield = "items" +qty = 10.0 +rate = 500.0 +schedule_date = "2013-03-01" +stock_uom = "_Test UOM" +uom = "_Test UOM" +warehouse = "_Test Warehouse - _TC" + + diff --git a/erpnext/buying/doctype/supplier/test_records.json b/erpnext/buying/doctype/supplier/test_records.json deleted file mode 100644 index 1bb9899cc85..00000000000 --- a/erpnext/buying/doctype/supplier/test_records.json +++ /dev/null @@ -1,50 +0,0 @@ -[ - { - "doctype": "Supplier", - "supplier_name": "_Test Supplier With Template 1", - "supplier_group": "_Test Supplier Group", - "payment_terms": "_Test Payment Term Template 3" - }, - { - "doctype": "Supplier", - "supplier_name": "_Test Supplier P", - "supplier_group": "_Test Supplier Group" - }, - { - "doctype": "Supplier", - "supplier_name": "_Test Supplier with Country", - "supplier_group": "_Test Supplier Group", - "country": "Greece" - }, - { - "doctype": "Supplier", - "supplier_name": "_Test Supplier", - "supplier_group": "_Test Supplier Group" - }, - { - "doctype": "Supplier", - "supplier_name": "_Test Supplier 1", - "supplier_group": "_Test Supplier Group" - }, - { - "doctype": "Supplier", - "supplier_name": "_Test Supplier 2", - "supplier_group": "_Test Supplier Group" - }, - { - "doctype": "Supplier", - "supplier_name": "_Test Supplier USD", - "supplier_group": "_Test Supplier Group", - "default_currency": "USD", - "accounts": [{ - "company": "_Test Company", - "account": "_Test Payable USD - _TC" - }] - }, - { - "doctype": "Supplier", - "supplier_name": "_Test Supplier With Tax Category", - "supplier_group": "_Test Supplier Group", - "tax_category": "_Test Tax Category 1" - } -] diff --git a/erpnext/buying/doctype/supplier/test_records.toml b/erpnext/buying/doctype/supplier/test_records.toml new file mode 100644 index 00000000000..4873efebfc2 --- /dev/null +++ b/erpnext/buying/doctype/supplier/test_records.toml @@ -0,0 +1,40 @@ +[[Supplier]] +supplier_name = "_Test Supplier With Template 1" +supplier_group = "_Test Supplier Group" +payment_terms = "_Test Payment Term Template 3" + +[[Supplier]] +supplier_name = "_Test Supplier P" +supplier_group = "_Test Supplier Group" + +[[Supplier]] +supplier_name = "_Test Supplier with Country" +supplier_group = "_Test Supplier Group" +country = "Greece" + +[[Supplier]] +supplier_name = "_Test Supplier" +supplier_group = "_Test Supplier Group" + +[[Supplier]] +supplier_name = "_Test Supplier 1" +supplier_group = "_Test Supplier Group" + +[[Supplier]] +supplier_name = "_Test Supplier 2" +supplier_group = "_Test Supplier Group" + +[[Supplier]] +supplier_name = "_Test Supplier USD" +supplier_group = "_Test Supplier Group" +default_currency = "USD" +[[Supplier.accounts]] +company = "_Test Company" +account = "_Test Payable USD - _TC" + + +[[Supplier]] +supplier_name = "_Test Supplier With Tax Category" +supplier_group = "_Test Supplier Group" +tax_category = "_Test Tax Category 1" + diff --git a/erpnext/buying/doctype/supplier_quotation/test_records.json b/erpnext/buying/doctype/supplier_quotation/test_records.json deleted file mode 100644 index 8acac3210d5..00000000000 --- a/erpnext/buying/doctype/supplier_quotation/test_records.json +++ /dev/null @@ -1,31 +0,0 @@ -[ - { - "buying_price_list": "_Test Price List", - "company": "_Test Company", - "conversion_rate": 1.0, - "currency": "INR", - "doctype": "Supplier Quotation", - "base_grand_total": 5000.0, - "grand_total": 5000.0, - "is_subcontracted": 0, - "naming_series": "_T-Supplier Quotation-", - "base_net_total": 5000.0, - "items": [ - { - "base_amount": 5000.0, - "description": "_Test FG Item", - "doctype": "Supplier Quotation Item", - "item_code": "_Test FG Item", - "item_name": "_Test FG Item", - "parentfield": "items", - "qty": 10.0, - "rate": 500.0, - "uom": "_Test UOM", - "warehouse": "_Test Warehouse - _TC" - } - ], - "supplier": "_Test Supplier", - "supplier_name": "_Test Supplier", - "transaction_date": "2013-02-12" - } -] \ No newline at end of file diff --git a/erpnext/buying/doctype/supplier_quotation/test_records.toml b/erpnext/buying/doctype/supplier_quotation/test_records.toml new file mode 100644 index 00000000000..8732b5342ec --- /dev/null +++ b/erpnext/buying/doctype/supplier_quotation/test_records.toml @@ -0,0 +1,26 @@ +[["Supplier Quotation"]] +buying_price_list = "_Test Price List" +company = "_Test Company" +conversion_rate = 1.0 +currency = "INR" +base_grand_total = 5000.0 +grand_total = 5000.0 +is_subcontracted = 0 +naming_series = "_T-Supplier Quotation-" +base_net_total = 5000.0 +supplier = "_Test Supplier" +supplier_name = "_Test Supplier" +transaction_date = "2013-02-12" +[["Supplier Quotation".items]] +base_amount = 5000.0 +description = "_Test FG Item" +doctype = "Supplier Quotation Item" +item_code = "_Test FG Item" +item_name = "_Test FG Item" +parentfield = "items" +qty = 10.0 +rate = 500.0 +uom = "_Test UOM" +warehouse = "_Test Warehouse - _TC" + + diff --git a/erpnext/crm/doctype/lead/test_records.json b/erpnext/crm/doctype/lead/test_records.json deleted file mode 100644 index 3158add0f23..00000000000 --- a/erpnext/crm/doctype/lead/test_records.json +++ /dev/null @@ -1,34 +0,0 @@ -[ - { - "doctype": "Lead", - "email_id": "test_lead@example.com", - "lead_name": "_Test Lead", - "status": "Open", - "territory": "_Test Territory" - }, - { - "doctype": "Lead", - "email_id": "test_lead1@example.com", - "lead_name": "_Test Lead 1", - "status": "Open" - }, - { - "doctype": "Lead", - "email_id": "test_lead2@example.com", - "lead_name": "_Test Lead 2", - "status": "Lead" - }, - { - "doctype": "Lead", - "email_id": "test_lead3@example.com", - "lead_name": "_Test Lead 3", - "status": "Converted" -}, -{ - "doctype": "Lead", - "email_id": "test_lead4@example.com", - "lead_name": "_Test Lead 4", - "company_name": "_Test Lead 4", - "status": "Open" -} -] diff --git a/erpnext/crm/doctype/lead/test_records.toml b/erpnext/crm/doctype/lead/test_records.toml new file mode 100644 index 00000000000..472e309fd75 --- /dev/null +++ b/erpnext/crm/doctype/lead/test_records.toml @@ -0,0 +1,27 @@ +[[Lead]] +email_id = "test_lead@example.com" +lead_name = "_Test Lead" +status = "Open" +territory = "_Test Territory" + +[[Lead]] +email_id = "test_lead1@example.com" +lead_name = "_Test Lead 1" +status = "Open" + +[[Lead]] +email_id = "test_lead2@example.com" +lead_name = "_Test Lead 2" +status = "Lead" + +[[Lead]] +email_id = "test_lead3@example.com" +lead_name = "_Test Lead 3" +status = "Converted" + +[[Lead]] +email_id = "test_lead4@example.com" +lead_name = "_Test Lead 4" +company_name = "_Test Lead 4" +status = "Open" + diff --git a/erpnext/crm/doctype/opportunity/test_records.json b/erpnext/crm/doctype/opportunity/test_records.json deleted file mode 100644 index f7e8350f308..00000000000 --- a/erpnext/crm/doctype/opportunity/test_records.json +++ /dev/null @@ -1,16 +0,0 @@ -[ - { - "doctype": "Opportunity", - "name": "_Test Opportunity 1", - "opportunity_from": "Lead", - "enquiry_type": "Sales", - "party_name": "_T-Lead-00001", - "transaction_date": "2013-12-12", - "items": [{ - "item_name": "Test Item", - "description": "Some description", - "qty": 5, - "rate": 100 - }] - } -] diff --git a/erpnext/crm/doctype/opportunity/test_records.toml b/erpnext/crm/doctype/opportunity/test_records.toml new file mode 100644 index 00000000000..9f893d75f18 --- /dev/null +++ b/erpnext/crm/doctype/opportunity/test_records.toml @@ -0,0 +1,13 @@ +[[Opportunity]] +name = "_Test Opportunity 1" +opportunity_from = "Lead" +enquiry_type = "Sales" +party_name = "_T-Lead-00001" +transaction_date = "2013-12-12" +[[Opportunity.items]] +item_name = "Test Item" +description = "Some description" +qty = 5 +rate = 100 + + diff --git a/erpnext/maintenance/doctype/maintenance_visit/test_records.json b/erpnext/maintenance/doctype/maintenance_visit/test_records.json deleted file mode 100644 index 0d4f101c7a3..00000000000 --- a/erpnext/maintenance/doctype/maintenance_visit/test_records.json +++ /dev/null @@ -1,2 +0,0 @@ -[ -] diff --git a/erpnext/manufacturing/doctype/bom/test_records.json b/erpnext/manufacturing/doctype/bom/test_records.json deleted file mode 100644 index e9cbdfe638a..00000000000 --- a/erpnext/manufacturing/doctype/bom/test_records.json +++ /dev/null @@ -1,192 +0,0 @@ -[ - { - "items": [ - { - "amount": 5000.0, - "doctype": "BOM Item", - "item_code": "_Test Serialized Item With Series", - "parentfield": "items", - "qty": 1.0, - "rate": 5000.0, - "uom": "_Test UOM", - "stock_uom": "_Test UOM", - "source_warehouse": "_Test Warehouse - _TC", - "include_item_in_manufacturing": 1 - }, - { - "amount": 2000.0, - "doctype": "BOM Item", - "item_code": "_Test Item 2", - "parentfield": "items", - "qty": 2.0, - "rate": 1000.0, - "uom": "_Test UOM", - "stock_uom": "_Test UOM", - "source_warehouse": "_Test Warehouse - _TC", - "include_item_in_manufacturing": 1 - } - ], - "docstatus": 1, - "doctype": "BOM", - "currency": "USD", - "is_active": 1, - "is_default": 1, - "item": "_Test Item Home Desktop Manufactured", - "company": "_Test Company", - "quantity": 1.0 - }, - { - "scrap_items":[ - { - "amount": 2000.0, - "doctype": "BOM Scrap Item", - "item_code": "_Test Item Home Desktop 100", - "parentfield": "scrap_items", - "stock_qty": 1.0, - "rate": 2000.0, - "stock_uom": "_Test UOM" - } - ], - "items": [ - { - "amount": 10000.0, - "doctype": "BOM Item", - "item_code": "_Test Item", - "parentfield": "items", - "qty": 1.0, - "rate": 5000.0, - "uom": "_Test UOM", - "stock_uom": "_Test UOM", - "source_warehouse": "_Test Warehouse - _TC", - "include_item_in_manufacturing": 1 - }, - { - "amount": 2000.0, - "doctype": "BOM Item", - "item_code": "_Test Item Home Desktop 100", - "parentfield": "items", - "qty": 2.0, - "rate": 1000.0, - "uom": "_Test UOM", - "stock_uom": "_Test UOM", - "source_warehouse": "_Test Warehouse - _TC", - "include_item_in_manufacturing": 1 - } - ], - "docstatus": 1, - "doctype": "BOM", - "is_active": 1, - "is_default": 1, - "currency": "USD", - "item": "_Test FG Item", - "quantity": 1.0 - }, - { - "operations": [ - { - "operation": "_Test Operation 1", - "description": "_Test", - "workstation": "_Test Workstation 1", - "hour_rate": 100, - "time_in_mins": 60, - "operating_cost": 100 - } - ], - "items": [ - { - "amount": 5000.0, - "doctype": "BOM Item", - "item_code": "_Test Item", - "parentfield": "items", - "qty": 1.0, - "rate": 5000.0, - "uom": "_Test UOM", - "stock_uom": "_Test UOM", - "source_warehouse": "_Test Warehouse - _TC", - "include_item_in_manufacturing": 1 - }, - { - "amount": 3000.0, - "bom_no": "BOM-_Test Item Home Desktop Manufactured-001", - "doctype": "BOM Item", - "item_code": "_Test Item Home Desktop Manufactured", - "parentfield": "items", - "qty": 3.0, - "rate": 1000.0, - "uom": "_Test UOM", - "stock_uom": "_Test UOM", - "source_warehouse": "_Test Warehouse - _TC", - "include_item_in_manufacturing": 1 - } - ], - "docstatus": 1, - "doctype": "BOM", - "is_active": 1, - "is_default": 1, - "currency": "USD", - "conversion_rate": 60, - "company": "_Test Company", - "item": "_Test FG Item 2", - "quantity": 1.0, - "with_operations": 1 - }, - { - "operations": [ - { - "operation": "_Test Operation 1", - "description": "_Test", - "workstation": "_Test Workstation 1", - "time_in_mins": 60, - "operating_cost": 140 - } - ], - "items": [ - { - "amount": 5000.0, - "doctype": "BOM Item", - "item_code": "_Test Item", - "parentfield": "items", - "qty": 2.0, - "rate": 3000.0, - "uom": "_Test UOM", - "stock_uom": "_Test UOM", - "source_warehouse": "_Test Warehouse - _TC", - "include_item_in_manufacturing": 1 - } - ], - "docstatus": 1, - "doctype": "BOM", - "is_active": 1, - "is_default": 1, - "currency": "USD", - "item": "_Test Variant Item", - "quantity": 1.0, - "with_operations": 1 - }, - { - "items": [ - { - "amount": 5000.0, - "doctype": "BOM Item", - "item_code": "_Test Item", - "parentfield": "items", - "qty": 2.0, - "rate": 3000.0, - "uom": "_Test UOM", - "stock_uom": "_Test UOM", - "source_warehouse": "_Test Warehouse - _TC", - "include_item_in_manufacturing": 1 - } - ], - "docstatus": 1, - "doctype": "BOM", - "is_active": 1, - "is_default": 1, - "currency": "USD", - "item": "_Test Variant Item", - "quantity": 1.0, - "with_operations": 0, - "fg_based_operating_cost": 1, - "operating_cost_per_bom_quantity": 140 - } -] diff --git a/erpnext/manufacturing/doctype/bom/test_records.toml b/erpnext/manufacturing/doctype/bom/test_records.toml new file mode 100644 index 00000000000..c74395d231b --- /dev/null +++ b/erpnext/manufacturing/doctype/bom/test_records.toml @@ -0,0 +1,169 @@ +[[BOM]] +docstatus = 1 +currency = "USD" +is_active = 1 +is_default = 1 +item = "_Test Item Home Desktop Manufactured" +company = "_Test Company" +quantity = 1.0 +[[BOM.items]] +amount = 5000.0 +doctype = "BOM Item" +item_code = "_Test Serialized Item With Series" +parentfield = "items" +qty = 1.0 +rate = 5000.0 +uom = "_Test UOM" +stock_uom = "_Test UOM" +source_warehouse = "_Test Warehouse - _TC" +include_item_in_manufacturing = 1 + +[[BOM.items]] +amount = 2000.0 +doctype = "BOM Item" +item_code = "_Test Item 2" +parentfield = "items" +qty = 2.0 +rate = 1000.0 +uom = "_Test UOM" +stock_uom = "_Test UOM" +source_warehouse = "_Test Warehouse - _TC" +include_item_in_manufacturing = 1 + + +[[BOM]] +docstatus = 1 +is_active = 1 +is_default = 1 +currency = "USD" +item = "_Test FG Item" +quantity = 1.0 +[[BOM.scrap_items]] +amount = 2000.0 +doctype = "BOM Scrap Item" +item_code = "_Test Item Home Desktop 100" +parentfield = "scrap_items" +stock_qty = 1.0 +rate = 2000.0 +stock_uom = "_Test UOM" + +[[BOM.items]] +amount = 10000.0 +doctype = "BOM Item" +item_code = "_Test Item" +parentfield = "items" +qty = 1.0 +rate = 5000.0 +uom = "_Test UOM" +stock_uom = "_Test UOM" +source_warehouse = "_Test Warehouse - _TC" +include_item_in_manufacturing = 1 + +[[BOM.items]] +amount = 2000.0 +doctype = "BOM Item" +item_code = "_Test Item Home Desktop 100" +parentfield = "items" +qty = 2.0 +rate = 1000.0 +uom = "_Test UOM" +stock_uom = "_Test UOM" +source_warehouse = "_Test Warehouse - _TC" +include_item_in_manufacturing = 1 + + +[[BOM]] +docstatus = 1 +is_active = 1 +is_default = 1 +currency = "USD" +conversion_rate = 60 +company = "_Test Company" +item = "_Test FG Item 2" +quantity = 1.0 +with_operations = 1 +[[BOM.operations]] +operation = "_Test Operation 1" +description = "_Test" +workstation = "_Test Workstation 1" +hour_rate = 100 +time_in_mins = 60 +operating_cost = 100 + +[[BOM.items]] +amount = 5000.0 +doctype = "BOM Item" +item_code = "_Test Item" +parentfield = "items" +qty = 1.0 +rate = 5000.0 +uom = "_Test UOM" +stock_uom = "_Test UOM" +source_warehouse = "_Test Warehouse - _TC" +include_item_in_manufacturing = 1 + +[[BOM.items]] +amount = 3000.0 +bom_no = "BOM-_Test Item Home Desktop Manufactured-001" +doctype = "BOM Item" +item_code = "_Test Item Home Desktop Manufactured" +parentfield = "items" +qty = 3.0 +rate = 1000.0 +uom = "_Test UOM" +stock_uom = "_Test UOM" +source_warehouse = "_Test Warehouse - _TC" +include_item_in_manufacturing = 1 + + +[[BOM]] +docstatus = 1 +is_active = 1 +is_default = 1 +currency = "USD" +item = "_Test Variant Item" +quantity = 1.0 +with_operations = 1 +[[BOM.operations]] +operation = "_Test Operation 1" +description = "_Test" +workstation = "_Test Workstation 1" +time_in_mins = 60 +operating_cost = 140 + +[[BOM.items]] +amount = 5000.0 +doctype = "BOM Item" +item_code = "_Test Item" +parentfield = "items" +qty = 2.0 +rate = 3000.0 +uom = "_Test UOM" +stock_uom = "_Test UOM" +source_warehouse = "_Test Warehouse - _TC" +include_item_in_manufacturing = 1 + + +[[BOM]] +docstatus = 1 +is_active = 1 +is_default = 1 +currency = "USD" +item = "_Test Variant Item" +quantity = 1.0 +with_operations = 0 +fg_based_operating_cost = 1 +operating_cost_per_bom_quantity = 140 +[[BOM.items]] +amount = 5000.0 +doctype = "BOM Item" +item_code = "_Test Item" +parentfield = "items" +qty = 2.0 +rate = 3000.0 +uom = "_Test UOM" +stock_uom = "_Test UOM" +source_warehouse = "_Test Warehouse - _TC" +include_item_in_manufacturing = 1 + + diff --git a/erpnext/manufacturing/doctype/operation/test_records.json b/erpnext/manufacturing/doctype/operation/test_records.json deleted file mode 100644 index 5a24d440653..00000000000 --- a/erpnext/manufacturing/doctype/operation/test_records.json +++ /dev/null @@ -1,7 +0,0 @@ -[ - { - "doctype": "Operation", - "name": "_Test Operation 1", - "workstation": "_Test Workstation 1" - } -] diff --git a/erpnext/manufacturing/doctype/operation/test_records.toml b/erpnext/manufacturing/doctype/operation/test_records.toml new file mode 100644 index 00000000000..0d6defb2129 --- /dev/null +++ b/erpnext/manufacturing/doctype/operation/test_records.toml @@ -0,0 +1,4 @@ +[[Operation]] +name = "_Test Operation 1" +workstation = "_Test Workstation 1" + diff --git a/erpnext/manufacturing/doctype/work_order/test_records.json b/erpnext/manufacturing/doctype/work_order/test_records.json deleted file mode 100644 index e7c7039ed43..00000000000 --- a/erpnext/manufacturing/doctype/work_order/test_records.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "bom_no": "BOM-_Test FG Item-001", - "company": "_Test Company", - "doctype": "Work Order", - "fg_warehouse": "_Test Warehouse 1 - _TC", - "production_item": "_Test FG Item", - "qty": 10.0, - "stock_uom": "_Test UOM", - "wip_warehouse": "_Test Warehouse - _TC" - } -] \ No newline at end of file diff --git a/erpnext/manufacturing/doctype/work_order/test_records.toml b/erpnext/manufacturing/doctype/work_order/test_records.toml new file mode 100644 index 00000000000..d6fc30986fd --- /dev/null +++ b/erpnext/manufacturing/doctype/work_order/test_records.toml @@ -0,0 +1,9 @@ +[["Work Order"]] +bom_no = "BOM-_Test FG Item-001" +company = "_Test Company" +fg_warehouse = "_Test Warehouse 1 - _TC" +production_item = "_Test FG Item" +qty = 10.0 +stock_uom = "_Test UOM" +wip_warehouse = "_Test Warehouse - _TC" + diff --git a/erpnext/manufacturing/doctype/workstation/test_records.json b/erpnext/manufacturing/doctype/workstation/test_records.json deleted file mode 100644 index 6d54cb29127..00000000000 --- a/erpnext/manufacturing/doctype/workstation/test_records.json +++ /dev/null @@ -1,19 +0,0 @@ -[ - { - "doctype": "Workstation", - "name": "_Test Workstation 1", - "workstation_name": "_Test Workstation 1", - "warehouse": "_Test warehouse - _TC", - "hour_rate_labour": 25, - "hour_rate_electricity": 25, - "hour_rate_consumable": 25, - "hour_rate_rent": 25, - "holiday_list": "_Test Holiday List", - "working_hours": [ - { - "start_time": "10:00:00", - "end_time": "20:00:00" - } - ] - } -] diff --git a/erpnext/manufacturing/doctype/workstation/test_records.toml b/erpnext/manufacturing/doctype/workstation/test_records.toml new file mode 100644 index 00000000000..b79a66a48e2 --- /dev/null +++ b/erpnext/manufacturing/doctype/workstation/test_records.toml @@ -0,0 +1,14 @@ +[[Workstation]] +name = "_Test Workstation 1" +workstation_name = "_Test Workstation 1" +warehouse = "_Test warehouse - _TC" +hour_rate_labour = 25 +hour_rate_electricity = 25 +hour_rate_consumable = 25 +hour_rate_rent = 25 +holiday_list = "_Test Holiday List" +[[Workstation.working_hours]] +start_time = "10:00:00" +end_time = "20:00:00" + + diff --git a/erpnext/projects/doctype/activity_cost/test_records.json b/erpnext/projects/doctype/activity_cost/test_records.json deleted file mode 100644 index 0637a088a01..00000000000 --- a/erpnext/projects/doctype/activity_cost/test_records.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/erpnext/projects/doctype/activity_type/test_records.json b/erpnext/projects/doctype/activity_type/test_records.json deleted file mode 100644 index 45fc1496fbe..00000000000 --- a/erpnext/projects/doctype/activity_type/test_records.json +++ /dev/null @@ -1,11 +0,0 @@ -[ - { - "activity_type": "_Test Activity Type" - }, - { - "activity_type": "_Test Activity Type 1" - }, - { - "activity_type": "_Test Activity Type 2" - } -] \ No newline at end of file diff --git a/erpnext/projects/doctype/activity_type/test_records.toml b/erpnext/projects/doctype/activity_type/test_records.toml new file mode 100644 index 00000000000..556709a278f --- /dev/null +++ b/erpnext/projects/doctype/activity_type/test_records.toml @@ -0,0 +1,9 @@ +[["Activity Type"]] +activity_type = "_Test Activity Type" + +[["Activity Type"]] +activity_type = "_Test Activity Type 1" + +[["Activity Type"]] +activity_type = "_Test Activity Type 2" + diff --git a/erpnext/projects/doctype/project/test_records.json b/erpnext/projects/doctype/project/test_records.json deleted file mode 100644 index 567f359b50d..00000000000 --- a/erpnext/projects/doctype/project/test_records.json +++ /dev/null @@ -1,6 +0,0 @@ -[ - { - "project_name": "_Test Project", - "status": "Open" - } -] \ No newline at end of file diff --git a/erpnext/projects/doctype/project/test_records.toml b/erpnext/projects/doctype/project/test_records.toml new file mode 100644 index 00000000000..f59441bfc06 --- /dev/null +++ b/erpnext/projects/doctype/project/test_records.toml @@ -0,0 +1,4 @@ +[[Project]] +project_name = "_Test Project" +status = "Open" + diff --git a/erpnext/selling/doctype/customer/test_records.json b/erpnext/selling/doctype/customer/test_records.json deleted file mode 100644 index 6040f4dd75b..00000000000 --- a/erpnext/selling/doctype/customer/test_records.json +++ /dev/null @@ -1,64 +0,0 @@ -[ - { - "customer_group": "_Test Customer Group", - "customer_name": "_Test Customer With Template", - "customer_type": "Individual", - "doctype": "Customer", - "territory": "_Test Territory" - }, - { - "customer_group": "_Test Customer Group", - "customer_name": "_Test Customer P", - "customer_type": "Individual", - "doctype": "Customer", - "territory": "_Test Territory" - }, - { - "customer_group": "_Test Customer Group", - "customer_name": "_Test Customer", - "customer_type": "Individual", - "doctype": "Customer", - "territory": "_Test Territory" - }, - { - "customer_group": "_Test Customer Group", - "customer_name": "_Test Customer 1", - "customer_type": "Individual", - "doctype": "Customer", - "territory": "_Test Territory" - }, - { - "customer_group": "_Test Customer Group", - "customer_name": "_Test Customer 2", - "customer_type": "Individual", - "doctype": "Customer", - "territory": "_Test Territory" - }, - { - "customer_group": "_Test Customer Group", - "customer_name": "_Test Customer 3", - "customer_type": "Individual", - "doctype": "Customer", - "territory": "_Test Territory" - }, - { - "customer_group": "_Test Customer Group", - "customer_name": "_Test Customer USD", - "customer_type": "Individual", - "doctype": "Customer", - "territory": "_Test Territory", - "default_currency": "USD", - "accounts": [{ - "company": "_Test Company", - "account": "_Test Receivable USD - _TC" - }] - }, - { - "customer_group": "_Test Customer Group", - "customer_name": "_Test Customer With Tax Category", - "customer_type": "Individual", - "doctype": "Customer", - "territory": "_Test Territory", - "tax_category": "_Test Tax Category 1" - } -] diff --git a/erpnext/selling/doctype/customer/test_records.toml b/erpnext/selling/doctype/customer/test_records.toml new file mode 100644 index 00000000000..ce8223c77b6 --- /dev/null +++ b/erpnext/selling/doctype/customer/test_records.toml @@ -0,0 +1,54 @@ +[[Customer]] +customer_group = "_Test Customer Group" +customer_name = "_Test Customer With Template" +customer_type = "Individual" +territory = "_Test Territory" + +[[Customer]] +customer_group = "_Test Customer Group" +customer_name = "_Test Customer P" +customer_type = "Individual" +territory = "_Test Territory" + +[[Customer]] +customer_group = "_Test Customer Group" +customer_name = "_Test Customer" +customer_type = "Individual" +territory = "_Test Territory" + +[[Customer]] +customer_group = "_Test Customer Group" +customer_name = "_Test Customer 1" +customer_type = "Individual" +territory = "_Test Territory" + +[[Customer]] +customer_group = "_Test Customer Group" +customer_name = "_Test Customer 2" +customer_type = "Individual" +territory = "_Test Territory" + +[[Customer]] +customer_group = "_Test Customer Group" +customer_name = "_Test Customer 3" +customer_type = "Individual" +territory = "_Test Territory" + +[[Customer]] +customer_group = "_Test Customer Group" +customer_name = "_Test Customer USD" +customer_type = "Individual" +territory = "_Test Territory" +default_currency = "USD" +[[Customer.accounts]] +company = "_Test Company" +account = "_Test Receivable USD - _TC" + + +[[Customer]] +customer_group = "_Test Customer Group" +customer_name = "_Test Customer With Tax Category" +customer_type = "Individual" +territory = "_Test Territory" +tax_category = "_Test Tax Category 1" + diff --git a/erpnext/selling/doctype/industry_type/test_records.json b/erpnext/selling/doctype/industry_type/test_records.json deleted file mode 100644 index 2b593bb3ac2..00000000000 --- a/erpnext/selling/doctype/industry_type/test_records.json +++ /dev/null @@ -1,10 +0,0 @@ -[ - { - "doctype": "Industry Type", - "industry": "_Test Industry" - }, - { - "doctype": "Industry Type", - "industry": "_Test Industry 1" - } -] \ No newline at end of file diff --git a/erpnext/selling/doctype/industry_type/test_records.toml b/erpnext/selling/doctype/industry_type/test_records.toml new file mode 100644 index 00000000000..07fd5c8ab79 --- /dev/null +++ b/erpnext/selling/doctype/industry_type/test_records.toml @@ -0,0 +1,6 @@ +[["Industry Type"]] +industry = "_Test Industry" + +[["Industry Type"]] +industry = "_Test Industry 1" + diff --git a/erpnext/selling/doctype/installation_note/test_records.json b/erpnext/selling/doctype/installation_note/test_records.json deleted file mode 100644 index 0d4f101c7a3..00000000000 --- a/erpnext/selling/doctype/installation_note/test_records.json +++ /dev/null @@ -1,2 +0,0 @@ -[ -] diff --git a/erpnext/selling/doctype/product_bundle/test_records.json b/erpnext/selling/doctype/product_bundle/test_records.json deleted file mode 100644 index b92892f1bf4..00000000000 --- a/erpnext/selling/doctype/product_bundle/test_records.json +++ /dev/null @@ -1,20 +0,0 @@ -[ - { - "doctype": "Product Bundle", - "new_item_code": "_Test Product Bundle Item", - "items": [ - { - "doctype": "Product Bundle Item", - "item_code": "_Test Item", - "parentfield": "items", - "qty": 5.0 - }, - { - "doctype": "Product Bundle Item", - "item_code": "_Test Item Home Desktop 100", - "parentfield": "items", - "qty": 2.0 - } - ] - } -] \ No newline at end of file diff --git a/erpnext/selling/doctype/product_bundle/test_records.toml b/erpnext/selling/doctype/product_bundle/test_records.toml new file mode 100644 index 00000000000..9453943f2d2 --- /dev/null +++ b/erpnext/selling/doctype/product_bundle/test_records.toml @@ -0,0 +1,15 @@ +[["Product Bundle"]] +new_item_code = "_Test Product Bundle Item" +[["Product Bundle".items]] +doctype = "Product Bundle Item" +item_code = "_Test Item" +parentfield = "items" +qty = 5.0 + +[["Product Bundle".items]] +doctype = "Product Bundle Item" +item_code = "_Test Item Home Desktop 100" +parentfield = "items" +qty = 2.0 + + diff --git a/erpnext/selling/doctype/quotation/test_records.json b/erpnext/selling/doctype/quotation/test_records.json deleted file mode 100644 index 1564f7de0ce..00000000000 --- a/erpnext/selling/doctype/quotation/test_records.json +++ /dev/null @@ -1,37 +0,0 @@ -[ - { - "company": "_Test Company", - "conversion_rate": 1.0, - "currency": "INR", - "party_name": "_Test Customer", - "customer_group": "_Test Customer Group", - "customer_name": "_Test Customer", - "doctype": "Quotation", - "base_grand_total": 1000.0, - "grand_total": 1000.0, - "order_type": "Sales", - "plc_conversion_rate": 1.0, - "price_list_currency": "INR", - "items": [ - { - "base_amount": 1000.0, - "base_rate": 100.0, - "description": "CPU", - "doctype": "Quotation Item", - "item_code": "_Test Item Home Desktop 100", - "item_name": "CPU", - "parentfield": "items", - "qty": 10.0, - "rate": 100.0, - "uom": "_Test UOM 1", - "stock_uom": "_Test UOM 1", - "conversion_factor": 1.0 - } - ], - "quotation_to": "Customer", - "selling_price_list": "_Test Price List", - "territory": "_Test Territory", - "transaction_date": "2013-02-21", - "valid_till": "2013-03-21" - } -] \ No newline at end of file diff --git a/erpnext/selling/doctype/quotation/test_records.toml b/erpnext/selling/doctype/quotation/test_records.toml new file mode 100644 index 00000000000..d92d9639e40 --- /dev/null +++ b/erpnext/selling/doctype/quotation/test_records.toml @@ -0,0 +1,32 @@ +[[Quotation]] +company = "_Test Company" +conversion_rate = 1.0 +currency = "INR" +party_name = "_Test Customer" +customer_group = "_Test Customer Group" +customer_name = "_Test Customer" +base_grand_total = 1000.0 +grand_total = 1000.0 +order_type = "Sales" +plc_conversion_rate = 1.0 +price_list_currency = "INR" +quotation_to = "Customer" +selling_price_list = "_Test Price List" +territory = "_Test Territory" +transaction_date = "2013-02-21" +valid_till = "2013-03-21" +[[Quotation.items]] +base_amount = 1000.0 +base_rate = 100.0 +description = "CPU" +doctype = "Quotation Item" +item_code = "_Test Item Home Desktop 100" +item_name = "CPU" +parentfield = "items" +qty = 10.0 +rate = 100.0 +uom = "_Test UOM 1" +stock_uom = "_Test UOM 1" +conversion_factor = 1.0 + + diff --git a/erpnext/selling/doctype/sales_order/test_records.json b/erpnext/selling/doctype/sales_order/test_records.json deleted file mode 100644 index 8a090e6d3d3..00000000000 --- a/erpnext/selling/doctype/sales_order/test_records.json +++ /dev/null @@ -1,39 +0,0 @@ -[ - { - "advance_paid": 0.0, - "company": "_Test Company", - "conversion_rate": 1.0, - "currency": "INR", - "customer": "_Test Customer", - "customer_group": "_Test Customer Group", - "customer_name": "_Test Customer", - "doctype": "Sales Order", - "base_grand_total": 1000.0, - "grand_total": 1000.0, - "naming_series": "_T-Sales Order-", - "order_type": "Sales", - "plc_conversion_rate": 1.0, - "price_list_currency": "INR", - "items": [ - { - "base_amount": 1000.0, - "base_rate": 100.0, - "description": "CPU", - "doctype": "Sales Order Item", - "item_code": "_Test Item", - "item_name": "_Test Item 1", - "delivery_date": "2013-02-23", - "parentfield": "items", - "qty": 10.0, - "rate": 100.0, - "warehouse": "_Test Warehouse - _TC", - "stock_uom": "_Test UOM", - "conversion_factor": 1.0, - "uom": "_Test UOM" - } - ], - "selling_price_list": "_Test Price List", - "territory": "_Test Territory", - "transaction_date": "2013-02-21" - } -] \ No newline at end of file diff --git a/erpnext/selling/doctype/sales_order/test_records.toml b/erpnext/selling/doctype/sales_order/test_records.toml new file mode 100644 index 00000000000..26dd7c20e7f --- /dev/null +++ b/erpnext/selling/doctype/sales_order/test_records.toml @@ -0,0 +1,34 @@ +[["Sales Order"]] +advance_paid = 0.0 +company = "_Test Company" +conversion_rate = 1.0 +currency = "INR" +customer = "_Test Customer" +customer_group = "_Test Customer Group" +customer_name = "_Test Customer" +base_grand_total = 1000.0 +grand_total = 1000.0 +naming_series = "_T-Sales Order-" +order_type = "Sales" +plc_conversion_rate = 1.0 +price_list_currency = "INR" +selling_price_list = "_Test Price List" +territory = "_Test Territory" +transaction_date = "2013-02-21" +[["Sales Order".items]] +base_amount = 1000.0 +base_rate = 100.0 +description = "CPU" +doctype = "Sales Order Item" +item_code = "_Test Item" +item_name = "_Test Item 1" +delivery_date = "2013-02-23" +parentfield = "items" +qty = 10.0 +rate = 100.0 +warehouse = "_Test Warehouse - _TC" +stock_uom = "_Test UOM" +conversion_factor = 1.0 +uom = "_Test UOM" + + diff --git a/erpnext/setup/doctype/branch/test_records.json b/erpnext/setup/doctype/branch/test_records.json deleted file mode 100644 index 0637a088a01..00000000000 --- a/erpnext/setup/doctype/branch/test_records.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/erpnext/setup/doctype/brand/test_records.json b/erpnext/setup/doctype/brand/test_records.json deleted file mode 100644 index eeed9e77334..00000000000 --- a/erpnext/setup/doctype/brand/test_records.json +++ /dev/null @@ -1,17 +0,0 @@ -[ - { - "brand": "_Test Brand", - "doctype": "Brand" - }, - { - "brand": "_Test Brand With Item Defaults", - "doctype": "Brand", - "brand_defaults": [{ - "company": "_Test Company", - "expense_account": "_Test Account Cost for Goods Sold - _TC", - "income_account": "_Test Account Sales - _TC", - "buying_cost_center": "_Test Cost Center - _TC", - "selling_cost_center": "_Test Cost Center - _TC" - }] - } -] \ No newline at end of file diff --git a/erpnext/setup/doctype/brand/test_records.toml b/erpnext/setup/doctype/brand/test_records.toml new file mode 100644 index 00000000000..3ae2374441c --- /dev/null +++ b/erpnext/setup/doctype/brand/test_records.toml @@ -0,0 +1,13 @@ +[[Brand]] +brand = "_Test Brand" + +[[Brand]] +brand = "_Test Brand With Item Defaults" +[[Brand.brand_defaults]] +company = "_Test Company" +expense_account = "_Test Account Cost for Goods Sold - _TC" +income_account = "_Test Account Sales - _TC" +buying_cost_center = "_Test Cost Center - _TC" +selling_cost_center = "_Test Cost Center - _TC" + + diff --git a/erpnext/setup/doctype/company/test_records.json b/erpnext/setup/doctype/company/test_records.json deleted file mode 100644 index e21bd2a3ce8..00000000000 --- a/erpnext/setup/doctype/company/test_records.json +++ /dev/null @@ -1,109 +0,0 @@ -[ - { - "abbr": "_TC", - "company_name": "_Test Company", - "country": "India", - "default_currency": "INR", - "doctype": "Company", - "domain": "Manufacturing", - "chart_of_accounts": "Standard", - "default_holiday_list": "_Test Holiday List", - "enable_perpetual_inventory": 0, - "allow_account_creation_against_child_company": 1 - }, - { - "abbr": "_TC1", - "company_name": "_Test Company 1", - "country": "United States", - "default_currency": "USD", - "doctype": "Company", - "domain": "Retail", - "chart_of_accounts": "Standard", - "default_holiday_list": "_Test Holiday List", - "enable_perpetual_inventory": 0 - }, - { - "abbr": "_TC2", - "company_name": "_Test Company 2", - "default_currency": "EUR", - "country": "Germany", - "doctype": "Company", - "domain": "Retail", - "chart_of_accounts": "Standard", - "default_holiday_list": "_Test Holiday List", - "enable_perpetual_inventory": 0 - }, - { - "abbr": "_TC3", - "company_name": "_Test Company 3", - "is_group": 1, - "country": "Pakistan", - "default_currency": "INR", - "doctype": "Company", - "domain": "Manufacturing", - "chart_of_accounts": "Standard", - "default_holiday_list": "_Test Holiday List", - "enable_perpetual_inventory": 0 - }, - { - "abbr": "_TC4", - "company_name": "_Test Company 4", - "parent_company": "_Test Company 3", - "is_group": 1, - "country": "Pakistan", - "default_currency": "INR", - "doctype": "Company", - "domain": "Manufacturing", - "chart_of_accounts": "Standard", - "default_holiday_list": "_Test Holiday List", - "enable_perpetual_inventory": 0 - }, - { - "abbr": "_TC5", - "company_name": "_Test Company 5", - "parent_company": "_Test Company 4", - "country": "Pakistan", - "default_currency": "INR", - "doctype": "Company", - "domain": "Manufacturing", - "chart_of_accounts": "Standard", - "default_holiday_list": "_Test Holiday List", - "enable_perpetual_inventory": 0 - }, - { - "abbr": "TCP1", - "company_name": "_Test Company with perpetual inventory", - "country": "India", - "default_currency": "INR", - "doctype": "Company", - "domain": "Manufacturing", - "chart_of_accounts": "Standard", - "enable_perpetual_inventory": 1, - "default_holiday_list": "_Test Holiday List" - }, - { - "abbr": "_TC6", - "company_name": "_Test Company 6", - "is_group": 1, - "country": "India", - "default_currency": "INR", - "doctype": "Company", - "domain": "Manufacturing", - "chart_of_accounts": "Standard", - "default_holiday_list": "_Test Holiday List", - "enable_perpetual_inventory": 0 - }, - { - "abbr": "_TC7", - "company_name": "_Test Company 7", - "parent_company": "_Test Company 6", - "is_group": 1, - "country": "United States", - "default_currency": "USD", - "doctype": "Company", - "domain": "Manufacturing", - "chart_of_accounts": "Standard", - "default_holiday_list": "_Test Holiday List", - "enable_perpetual_inventory": 0 - } -] diff --git a/erpnext/setup/doctype/company/test_records.toml b/erpnext/setup/doctype/company/test_records.toml new file mode 100644 index 00000000000..f78c1179dc1 --- /dev/null +++ b/erpnext/setup/doctype/company/test_records.toml @@ -0,0 +1,98 @@ +[[Company]] +abbr = "_TC" +company_name = "_Test Company" +country = "India" +default_currency = "INR" +domain = "Manufacturing" +chart_of_accounts = "Standard" +default_holiday_list = "_Test Holiday List" +enable_perpetual_inventory = 0 +allow_account_creation_against_child_company = 1 + +[[Company]] +abbr = "_TC1" +company_name = "_Test Company 1" +country = "United States" +default_currency = "USD" +domain = "Retail" +chart_of_accounts = "Standard" +default_holiday_list = "_Test Holiday List" +enable_perpetual_inventory = 0 + +[[Company]] +abbr = "_TC2" +company_name = "_Test Company 2" +default_currency = "EUR" +country = "Germany" +domain = "Retail" +chart_of_accounts = "Standard" +default_holiday_list = "_Test Holiday List" +enable_perpetual_inventory = 0 + +[[Company]] +abbr = "_TC3" +company_name = "_Test Company 3" +is_group = 1 +country = "Pakistan" +default_currency = "INR" +domain = "Manufacturing" +chart_of_accounts = "Standard" +default_holiday_list = "_Test Holiday List" +enable_perpetual_inventory = 0 + +[[Company]] +abbr = "_TC4" +company_name = "_Test Company 4" +parent_company = "_Test Company 3" +is_group = 1 +country = "Pakistan" +default_currency = "INR" +domain = "Manufacturing" +chart_of_accounts = "Standard" +default_holiday_list = "_Test Holiday List" +enable_perpetual_inventory = 0 + +[[Company]] +abbr = "_TC5" +company_name = "_Test Company 5" +parent_company = "_Test Company 4" +country = "Pakistan" +default_currency = "INR" +domain = "Manufacturing" +chart_of_accounts = "Standard" +default_holiday_list = "_Test Holiday List" +enable_perpetual_inventory = 0 + +[[Company]] +abbr = "TCP1" +company_name = "_Test Company with perpetual inventory" +country = "India" +default_currency = "INR" +domain = "Manufacturing" +chart_of_accounts = "Standard" +enable_perpetual_inventory = 1 +default_holiday_list = "_Test Holiday List" + +[[Company]] +abbr = "_TC6" +company_name = "_Test Company 6" +is_group = 1 +country = "India" +default_currency = "INR" +domain = "Manufacturing" +chart_of_accounts = "Standard" +default_holiday_list = "_Test Holiday List" +enable_perpetual_inventory = 0 + +[[Company]] +abbr = "_TC7" +company_name = "_Test Company 7" +parent_company = "_Test Company 6" +is_group = 1 +country = "United States" +default_currency = "USD" +domain = "Manufacturing" +chart_of_accounts = "Standard" +default_holiday_list = "_Test Holiday List" +enable_perpetual_inventory = 0 + diff --git a/erpnext/setup/doctype/currency_exchange/test_records.json b/erpnext/setup/doctype/currency_exchange/test_records.json deleted file mode 100644 index 152060edfc4..00000000000 --- a/erpnext/setup/doctype/currency_exchange/test_records.json +++ /dev/null @@ -1,56 +0,0 @@ -[ - { - "doctype": "Currency Exchange", - "date": "2016-01-01", - "exchange_rate": 60.0, - "from_currency": "USD", - "to_currency": "INR", - "for_buying": 1, - "for_selling": 0 - }, - { - "doctype": "Currency Exchange", - "date": "2016-01-01", - "exchange_rate": 0.773, - "from_currency": "USD", - "to_currency": "EUR", - "for_buying": 0, - "for_selling": 1 - }, - { - "doctype": "Currency Exchange", - "date": "2016-01-01", - "exchange_rate": 0.0167, - "from_currency": "INR", - "to_currency": "USD", - "for_buying": 1, - "for_selling": 0 - }, - { - "doctype": "Currency Exchange", - "date": "2016-01-10", - "exchange_rate": 65.1, - "from_currency": "USD", - "to_currency": "INR", - "for_buying": 1, - "for_selling": 0 - }, - { - "doctype": "Currency Exchange", - "date": "2016-01-30", - "exchange_rate": 62.9, - "from_currency": "USD", - "to_currency": "INR", - "for_buying": 1, - "for_selling": 1 - }, - { - "doctype": "Currency Exchange", - "date": "2016-01-10", - "exchange_rate": 65.1, - "from_currency": "INR", - "to_currency": "NGN", - "for_buying": 1, - "for_selling": 1 - } -] diff --git a/erpnext/setup/doctype/currency_exchange/test_records.toml b/erpnext/setup/doctype/currency_exchange/test_records.toml new file mode 100644 index 00000000000..28ad0da670e --- /dev/null +++ b/erpnext/setup/doctype/currency_exchange/test_records.toml @@ -0,0 +1,48 @@ +[["Currency Exchange"]] +date = "2016-01-01" +exchange_rate = 60.0 +from_currency = "USD" +to_currency = "INR" +for_buying = 1 +for_selling = 0 + +[["Currency Exchange"]] +date = "2016-01-01" +exchange_rate = 0.773 +from_currency = "USD" +to_currency = "EUR" +for_buying = 0 +for_selling = 1 + +[["Currency Exchange"]] +date = "2016-01-01" +exchange_rate = 0.0167 +from_currency = "INR" +to_currency = "USD" +for_buying = 1 +for_selling = 0 + +[["Currency Exchange"]] +date = "2016-01-10" +exchange_rate = 65.1 +from_currency = "USD" +to_currency = "INR" +for_buying = 1 +for_selling = 0 + +[["Currency Exchange"]] +date = "2016-01-30" +exchange_rate = 62.9 +from_currency = "USD" +to_currency = "INR" +for_buying = 1 +for_selling = 1 + +[["Currency Exchange"]] +date = "2016-01-10" +exchange_rate = 65.1 +from_currency = "INR" +to_currency = "NGN" +for_buying = 1 +for_selling = 1 + diff --git a/erpnext/setup/doctype/customer_group/test_records.json b/erpnext/setup/doctype/customer_group/test_records.json deleted file mode 100644 index 4c472b886a6..00000000000 --- a/erpnext/setup/doctype/customer_group/test_records.json +++ /dev/null @@ -1,14 +0,0 @@ -[ - { - "customer_group_name": "_Test Customer Group", - "doctype": "Customer Group", - "is_group": 0, - "parent_customer_group": "All Customer Groups" - }, - { - "customer_group_name": "_Test Customer Group 1", - "doctype": "Customer Group", - "is_group": 0, - "parent_customer_group": "All Customer Groups" - } -] diff --git a/erpnext/setup/doctype/customer_group/test_records.toml b/erpnext/setup/doctype/customer_group/test_records.toml new file mode 100644 index 00000000000..7079b83b7f5 --- /dev/null +++ b/erpnext/setup/doctype/customer_group/test_records.toml @@ -0,0 +1,10 @@ +[["Customer Group"]] +customer_group_name = "_Test Customer Group" +is_group = 0 +parent_customer_group = "All Customer Groups" + +[["Customer Group"]] +customer_group_name = "_Test Customer Group 1" +is_group = 0 +parent_customer_group = "All Customer Groups" + diff --git a/erpnext/setup/doctype/department/test_records.json b/erpnext/setup/doctype/department/test_records.json deleted file mode 100644 index e3421f28b8d..00000000000 --- a/erpnext/setup/doctype/department/test_records.json +++ /dev/null @@ -1,4 +0,0 @@ -[ - {"doctype":"Department", "department_name":"_Test Department", "company": "_Test Company", "parent_department": "All Departments"}, - {"doctype":"Department", "department_name":"_Test Department 1", "company": "_Test Company", "parent_department": "All Departments"} -] \ No newline at end of file diff --git a/erpnext/setup/doctype/department/test_records.toml b/erpnext/setup/doctype/department/test_records.toml new file mode 100644 index 00000000000..8a741c27d07 --- /dev/null +++ b/erpnext/setup/doctype/department/test_records.toml @@ -0,0 +1,10 @@ +[[Department]] +department_name = "_Test Department" +company = "_Test Company" +parent_department = "All Departments" + +[[Department]] +department_name = "_Test Department 1" +company = "_Test Company" +parent_department = "All Departments" + diff --git a/erpnext/setup/doctype/designation/test_records.json b/erpnext/setup/doctype/designation/test_records.json deleted file mode 100644 index 0637a088a01..00000000000 --- a/erpnext/setup/doctype/designation/test_records.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/erpnext/setup/doctype/employee/test_records.json b/erpnext/setup/doctype/employee/test_records.json deleted file mode 100644 index dfd3eed6ea5..00000000000 --- a/erpnext/setup/doctype/employee/test_records.json +++ /dev/null @@ -1,38 +0,0 @@ -[ - { - "company": "_Test Company", - "date_of_birth": "1980-01-01", - "date_of_joining": "2010-01-01", - "department": "_Test Department - _TC", - "doctype": "Employee", - "first_name": "_Test Employee", - "gender": "Female", - "naming_series": "_T-Employee-", - "status": "Active", - "user_id": "test@example.com" - }, - { - "company": "_Test Company", - "date_of_birth": "1980-01-01", - "date_of_joining": "2010-01-01", - "department": "_Test Department 1 - _TC", - "doctype": "Employee", - "first_name": "_Test Employee 1", - "gender": "Male", - "naming_series": "_T-Employee-", - "status": "Active", - "user_id": "test1@example.com" - }, - { - "company": "_Test Company", - "date_of_birth": "1980-01-01", - "date_of_joining": "2010-01-01", - "department": "_Test Department 1 - _TC", - "doctype": "Employee", - "first_name": "_Test Employee 2", - "gender": "Male", - "naming_series": "_T-Employee-", - "status": "Active", - "user_id": "test2@example.com" - } -] \ No newline at end of file diff --git a/erpnext/setup/doctype/employee/test_records.toml b/erpnext/setup/doctype/employee/test_records.toml new file mode 100644 index 00000000000..aae32ce19a6 --- /dev/null +++ b/erpnext/setup/doctype/employee/test_records.toml @@ -0,0 +1,33 @@ +[[Employee]] +company = "_Test Company" +date_of_birth = "1980-01-01" +date_of_joining = "2010-01-01" +department = "_Test Department - _TC" +first_name = "_Test Employee" +gender = "Female" +naming_series = "_T-Employee-" +status = "Active" +user_id = "test@example.com" + +[[Employee]] +company = "_Test Company" +date_of_birth = "1980-01-01" +date_of_joining = "2010-01-01" +department = "_Test Department 1 - _TC" +first_name = "_Test Employee 1" +gender = "Male" +naming_series = "_T-Employee-" +status = "Active" +user_id = "test1@example.com" + +[[Employee]] +company = "_Test Company" +date_of_birth = "1980-01-01" +date_of_joining = "2010-01-01" +department = "_Test Department 1 - _TC" +first_name = "_Test Employee 2" +gender = "Male" +naming_series = "_T-Employee-" +status = "Active" +user_id = "test2@example.com" + diff --git a/erpnext/setup/doctype/holiday_list/test_records.json b/erpnext/setup/doctype/holiday_list/test_records.json deleted file mode 100644 index 0bd096c415a..00000000000 --- a/erpnext/setup/doctype/holiday_list/test_records.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "doctype": "Holiday List", - "from_date": "2013-01-01", - "to_date":"2013-12-31", - "holidays": [ - { - "description": "New Year", - "holiday_date": "2013-01-01" - }, - { - "description": "Republic Day", - "holiday_date": "2013-01-26" - }, - { - "description": "Test Holiday", - "holiday_date": "2013-02-01" - } - ], - "holiday_list_name": "_Test Holiday List" - } -] diff --git a/erpnext/setup/doctype/holiday_list/test_records.toml b/erpnext/setup/doctype/holiday_list/test_records.toml new file mode 100644 index 00000000000..925a56fa256 --- /dev/null +++ b/erpnext/setup/doctype/holiday_list/test_records.toml @@ -0,0 +1,17 @@ +[["Holiday List"]] +from_date = "2013-01-01" +to_date = "2013-12-31" +holiday_list_name = "_Test Holiday List" +[["Holiday List".holidays]] +description = "New Year" +holiday_date = "2013-01-01" + +[["Holiday List".holidays]] +description = "Republic Day" +holiday_date = "2013-01-26" + +[["Holiday List".holidays]] +description = "Test Holiday" +holiday_date = "2013-02-01" + + diff --git a/erpnext/setup/doctype/item_group/test_records.json b/erpnext/setup/doctype/item_group/test_records.json deleted file mode 100644 index ce1d718375a..00000000000 --- a/erpnext/setup/doctype/item_group/test_records.json +++ /dev/null @@ -1,108 +0,0 @@ -[ - { - "doctype": "Item Group", - "is_group": 0, - "item_group_name": "_Test Item Group", - "parent_item_group": "All Item Groups", - "item_group_defaults": [{ - "company": "_Test Company", - "buying_cost_center": "_Test Cost Center 2 - _TC", - "selling_cost_center": "_Test Cost Center 2 - _TC", - "default_warehouse": "_Test Warehouse - _TC" - }] - }, - { - "doctype": "Item Group", - "is_group": 0, - "item_group_name": "_Test Item Group Desktops", - "parent_item_group": "All Item Groups" - }, - { - "doctype": "Item Group", - "is_group": 1, - "item_group_name": "_Test Item Group A", - "parent_item_group": "All Item Groups" - }, - { - "doctype": "Item Group", - "is_group": 1, - "item_group_name": "_Test Item Group B", - "parent_item_group": "All Item Groups" - }, - { - "doctype": "Item Group", - "is_group": 1, - "item_group_name": "_Test Item Group B - 1", - "parent_item_group": "_Test Item Group B" - }, - { - "doctype": "Item Group", - "is_group": 1, - "item_group_name": "_Test Item Group B - 2", - "parent_item_group": "_Test Item Group B" - }, - { - "doctype": "Item Group", - "is_group": 0, - "item_group_name": "_Test Item Group B - 3", - "parent_item_group": "_Test Item Group B" - }, - { - "doctype": "Item Group", - "is_group": 1, - "item_group_name": "_Test Item Group C", - "parent_item_group": "All Item Groups" - }, - { - "doctype": "Item Group", - "is_group": 1, - "item_group_name": "_Test Item Group C - 1", - "parent_item_group": "_Test Item Group C" - }, - { - "doctype": "Item Group", - "is_group": 1, - "item_group_name": "_Test Item Group C - 2", - "parent_item_group": "_Test Item Group C" - }, - { - "doctype": "Item Group", - "is_group": 1, - "item_group_name": "_Test Item Group D", - "parent_item_group": "All Item Groups" - }, - { - "doctype": "Item Group", - "is_group": 1, - "item_group_name": "_Test Item Group Tax Parent", - "parent_item_group": "All Item Groups", - "taxes": [ - { - "doctype": "Item Tax", - "parentfield": "taxes", - "item_tax_template": "_Test Account Excise Duty @ 10 - _TC", - "tax_category": "" - }, - { - "doctype": "Item Tax", - "parentfield": "taxes", - "item_tax_template": "_Test Account Excise Duty @ 12 - _TC", - "tax_category": "_Test Tax Category 1" - } - ] - }, - { - "doctype": "Item Group", - "is_group": 0, - "item_group_name": "_Test Item Group Tax Child Override", - "parent_item_group": "_Test Item Group Tax Parent", - "taxes": [ - { - "doctype": "Item Tax", - "parentfield": "taxes", - "item_tax_template": "_Test Account Excise Duty @ 15 - _TC", - "tax_category": "" - } - ] - } -] diff --git a/erpnext/setup/doctype/item_group/test_records.toml b/erpnext/setup/doctype/item_group/test_records.toml new file mode 100644 index 00000000000..a8bd393f634 --- /dev/null +++ b/erpnext/setup/doctype/item_group/test_records.toml @@ -0,0 +1,89 @@ +[["Item Group"]] +is_group = 0 +item_group_name = "_Test Item Group" +parent_item_group = "All Item Groups" +[["Item Group".item_group_defaults]] +company = "_Test Company" +buying_cost_center = "_Test Cost Center 2 - _TC" +selling_cost_center = "_Test Cost Center 2 - _TC" +default_warehouse = "_Test Warehouse - _TC" + + +[["Item Group"]] +is_group = 0 +item_group_name = "_Test Item Group Desktops" +parent_item_group = "All Item Groups" + +[["Item Group"]] +is_group = 1 +item_group_name = "_Test Item Group A" +parent_item_group = "All Item Groups" + +[["Item Group"]] +is_group = 1 +item_group_name = "_Test Item Group B" +parent_item_group = "All Item Groups" + +[["Item Group"]] +is_group = 1 +item_group_name = "_Test Item Group B - 1" +parent_item_group = "_Test Item Group B" + +[["Item Group"]] +is_group = 1 +item_group_name = "_Test Item Group B - 2" +parent_item_group = "_Test Item Group B" + +[["Item Group"]] +is_group = 0 +item_group_name = "_Test Item Group B - 3" +parent_item_group = "_Test Item Group B" + +[["Item Group"]] +is_group = 1 +item_group_name = "_Test Item Group C" +parent_item_group = "All Item Groups" + +[["Item Group"]] +is_group = 1 +item_group_name = "_Test Item Group C - 1" +parent_item_group = "_Test Item Group C" + +[["Item Group"]] +is_group = 1 +item_group_name = "_Test Item Group C - 2" +parent_item_group = "_Test Item Group C" + +[["Item Group"]] +is_group = 1 +item_group_name = "_Test Item Group D" +parent_item_group = "All Item Groups" + +[["Item Group"]] +is_group = 1 +item_group_name = "_Test Item Group Tax Parent" +parent_item_group = "All Item Groups" +[["Item Group".taxes]] +doctype = "Item Tax" +parentfield = "taxes" +item_tax_template = "_Test Account Excise Duty @ 10 - _TC" +tax_category = "" + +[["Item Group".taxes]] +doctype = "Item Tax" +parentfield = "taxes" +item_tax_template = "_Test Account Excise Duty @ 12 - _TC" +tax_category = "_Test Tax Category 1" + + +[["Item Group"]] +is_group = 0 +item_group_name = "_Test Item Group Tax Child Override" +parent_item_group = "_Test Item Group Tax Parent" +[["Item Group".taxes]] +doctype = "Item Tax" +parentfield = "taxes" +item_tax_template = "_Test Account Excise Duty @ 15 - _TC" +tax_category = "" + + diff --git a/erpnext/setup/doctype/print_heading/test_records.json b/erpnext/setup/doctype/print_heading/test_records.json deleted file mode 100644 index 479c38ad984..00000000000 --- a/erpnext/setup/doctype/print_heading/test_records.json +++ /dev/null @@ -1,5 +0,0 @@ -[ - { - "print_heading": "_Test Print Heading" - } -] \ No newline at end of file diff --git a/erpnext/setup/doctype/print_heading/test_records.toml b/erpnext/setup/doctype/print_heading/test_records.toml new file mode 100644 index 00000000000..d06c3a25f29 --- /dev/null +++ b/erpnext/setup/doctype/print_heading/test_records.toml @@ -0,0 +1,3 @@ +[["Print Heading"]] +print_heading = "_Test Print Heading" + diff --git a/erpnext/setup/doctype/quotation_lost_reason/test_records.json b/erpnext/setup/doctype/quotation_lost_reason/test_records.json deleted file mode 100644 index 29f04de0081..00000000000 --- a/erpnext/setup/doctype/quotation_lost_reason/test_records.json +++ /dev/null @@ -1,6 +0,0 @@ -[ - { - "doctype": "Quotation Lost Reason", - "order_lost_reason": "_Test Quotation Lost Reason" - } -] \ No newline at end of file diff --git a/erpnext/setup/doctype/quotation_lost_reason/test_records.toml b/erpnext/setup/doctype/quotation_lost_reason/test_records.toml new file mode 100644 index 00000000000..be3b7f2fbf9 --- /dev/null +++ b/erpnext/setup/doctype/quotation_lost_reason/test_records.toml @@ -0,0 +1,3 @@ +[["Quotation Lost Reason"]] +order_lost_reason = "_Test Quotation Lost Reason" + diff --git a/erpnext/setup/doctype/sales_partner/test_records.json b/erpnext/setup/doctype/sales_partner/test_records.json deleted file mode 100644 index 0637a088a01..00000000000 --- a/erpnext/setup/doctype/sales_partner/test_records.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/erpnext/setup/doctype/sales_person/test_records.json b/erpnext/setup/doctype/sales_person/test_records.json deleted file mode 100644 index 536552a0c34..00000000000 --- a/erpnext/setup/doctype/sales_person/test_records.json +++ /dev/null @@ -1,23 +0,0 @@ -[ - { - "doctype": "Sales Person", - "employee": "_T-Employee-00001", - "is_group": 0, - "parent_sales_person": "Sales Team", - "sales_person_name": "_Test Sales Person" - }, - { - "doctype": "Sales Person", - "employee": "_T-Employee-00002", - "is_group": 0, - "parent_sales_person": "Sales Team", - "sales_person_name": "_Test Sales Person 1" - }, - { - "doctype": "Sales Person", - "employee": "_T-Employee-00003", - "is_group": 0, - "parent_sales_person": "Sales Team", - "sales_person_name": "_Test Sales Person 2" - } -] \ No newline at end of file diff --git a/erpnext/setup/doctype/sales_person/test_records.toml b/erpnext/setup/doctype/sales_person/test_records.toml new file mode 100644 index 00000000000..7f7e70ce68b --- /dev/null +++ b/erpnext/setup/doctype/sales_person/test_records.toml @@ -0,0 +1,18 @@ +[["Sales Person"]] +employee = "_T-Employee-00001" +is_group = 0 +parent_sales_person = "Sales Team" +sales_person_name = "_Test Sales Person" + +[["Sales Person"]] +employee = "_T-Employee-00002" +is_group = 0 +parent_sales_person = "Sales Team" +sales_person_name = "_Test Sales Person 1" + +[["Sales Person"]] +employee = "_T-Employee-00003" +is_group = 0 +parent_sales_person = "Sales Team" +sales_person_name = "_Test Sales Person 2" + diff --git a/erpnext/setup/doctype/supplier_group/test_records.json b/erpnext/setup/doctype/supplier_group/test_records.json deleted file mode 100644 index 58489637c3c..00000000000 --- a/erpnext/setup/doctype/supplier_group/test_records.json +++ /dev/null @@ -1,8 +0,0 @@ -[ - { - "doctype": "Supplier Group", - "supplier_group_name": "_Test Supplier Group", - "parent_supplier_group": "All Supplier Groups" - } -] - \ No newline at end of file diff --git a/erpnext/setup/doctype/supplier_group/test_records.toml b/erpnext/setup/doctype/supplier_group/test_records.toml new file mode 100644 index 00000000000..90fbc49afe8 --- /dev/null +++ b/erpnext/setup/doctype/supplier_group/test_records.toml @@ -0,0 +1,4 @@ +[["Supplier Group"]] +supplier_group_name = "_Test Supplier Group" +parent_supplier_group = "All Supplier Groups" + diff --git a/erpnext/setup/doctype/terms_and_conditions/test_records.json b/erpnext/setup/doctype/terms_and_conditions/test_records.json deleted file mode 100644 index 9ba107706ca..00000000000 --- a/erpnext/setup/doctype/terms_and_conditions/test_records.json +++ /dev/null @@ -1,6 +0,0 @@ -[ - { - "terms": "_Test Terms", - "title": "_Test Terms and Conditions" - } -] \ No newline at end of file diff --git a/erpnext/setup/doctype/terms_and_conditions/test_records.toml b/erpnext/setup/doctype/terms_and_conditions/test_records.toml new file mode 100644 index 00000000000..38bf5729222 --- /dev/null +++ b/erpnext/setup/doctype/terms_and_conditions/test_records.toml @@ -0,0 +1,4 @@ +[["Terms And Conditions"]] +terms = "_Test Terms" +title = "_Test Terms and Conditions" + diff --git a/erpnext/setup/doctype/territory/test_records.json b/erpnext/setup/doctype/territory/test_records.json deleted file mode 100644 index 6011a388646..00000000000 --- a/erpnext/setup/doctype/territory/test_records.json +++ /dev/null @@ -1,32 +0,0 @@ -[ - { - "doctype": "Territory", - "is_group": 0, - "parent_territory": "All Territories", - "territory_name": "_Test Territory" - }, - { - "doctype": "Territory", - "is_group": 1, - "parent_territory": "All Territories", - "territory_name": "_Test Territory India" - }, - { - "doctype": "Territory", - "is_group": 0, - "parent_territory": "_Test Territory India", - "territory_name": "_Test Territory Maharashtra" - }, - { - "doctype": "Territory", - "is_group": 0, - "parent_territory": "All Territories", - "territory_name": "_Test Territory Rest Of The World" - }, - { - "doctype": "Territory", - "is_group": 0, - "parent_territory": "All Territories", - "territory_name": "_Test Territory United States" - } -] \ No newline at end of file diff --git a/erpnext/setup/doctype/territory/test_records.toml b/erpnext/setup/doctype/territory/test_records.toml new file mode 100644 index 00000000000..07c05a1016a --- /dev/null +++ b/erpnext/setup/doctype/territory/test_records.toml @@ -0,0 +1,25 @@ +[[Territory]] +is_group = 0 +parent_territory = "All Territories" +territory_name = "_Test Territory" + +[[Territory]] +is_group = 1 +parent_territory = "All Territories" +territory_name = "_Test Territory India" + +[[Territory]] +is_group = 0 +parent_territory = "_Test Territory India" +territory_name = "_Test Territory Maharashtra" + +[[Territory]] +is_group = 0 +parent_territory = "All Territories" +territory_name = "_Test Territory Rest Of The World" + +[[Territory]] +is_group = 0 +parent_territory = "All Territories" +territory_name = "_Test Territory United States" + diff --git a/erpnext/setup/doctype/uom/test_records.json b/erpnext/setup/doctype/uom/test_records.json deleted file mode 100644 index ddca542315d..00000000000 --- a/erpnext/setup/doctype/uom/test_records.json +++ /dev/null @@ -1,11 +0,0 @@ -[ - { - "doctype": "UOM", - "must_be_whole_number": 1, - "uom_name": "_Test UOM" - }, - { - "doctype": "UOM", - "uom_name": "_Test UOM 1" - } -] \ No newline at end of file diff --git a/erpnext/setup/doctype/uom/test_records.toml b/erpnext/setup/doctype/uom/test_records.toml new file mode 100644 index 00000000000..75f8033fda7 --- /dev/null +++ b/erpnext/setup/doctype/uom/test_records.toml @@ -0,0 +1,7 @@ +[[UOM]] +must_be_whole_number = 1 +uom_name = "_Test UOM" + +[[UOM]] +uom_name = "_Test UOM 1" + diff --git a/erpnext/stock/doctype/item/test_records.json b/erpnext/stock/doctype/item/test_records.json deleted file mode 100644 index 30eaed272e4..00000000000 --- a/erpnext/stock/doctype/item/test_records.json +++ /dev/null @@ -1,450 +0,0 @@ -[ - { - "description": "_Test Item 1", - "doctype": "Item", - "has_batch_no": 0, - "has_serial_no": 0, - "inspection_required": 0, - "is_stock_item": 1, - "is_sub_contracted_item": 0, - "item_code": "_Test Item", - "item_group": "_Test Item Group", - "item_name": "_Test Item", - "apply_warehouse_wise_reorder_level": 1, - "opening_stock": 10, - "valuation_rate": 100, - "item_defaults": [{ - "company": "_Test Company", - "default_warehouse": "_Test Warehouse - _TC", - "expense_account": "_Test Account Cost for Goods Sold - _TC", - "buying_cost_center": "_Test Cost Center - _TC", - "selling_cost_center": "_Test Cost Center - _TC", - "income_account": "Sales - _TC" - }], - "reorder_levels": [ - { - "material_request_type": "Purchase", - "warehouse": "_Test Warehouse - _TC", - "warehouse_reorder_level": 20, - "warehouse_reorder_qty": 20 - } - ], - "uoms": [ - { - "uom": "_Test UOM", - "conversion_factor": 1.0 - }, - { - "uom": "_Test UOM 1", - "conversion_factor": 10.0 - } - ], - "stock_uom": "_Test UOM" - }, - { - "description": "_Test Item 2", - "doctype": "Item", - "has_batch_no": 0, - "has_serial_no": 0, - "inspection_required": 0, - "is_stock_item": 1, - "is_sub_contracted_item": 0, - "item_code": "_Test Item 2", - "item_group": "_Test Item Group", - "item_name": "_Test Item 2", - "stock_uom": "_Test UOM", - "opening_stock": 10, - "valuation_rate": 100, - "item_defaults": [{ - "company": "_Test Company", - "default_warehouse": "_Test Warehouse - _TC", - "expense_account": "_Test Account Cost for Goods Sold - _TC", - "buying_cost_center": "_Test Cost Center - _TC", - "selling_cost_center": "_Test Cost Center - _TC", - "income_account": "Sales - _TC" - }] - }, - { - "description": "_Test Item Home Desktop 100 3", - "doctype": "Item", - "has_batch_no": 0, - "has_serial_no": 0, - "inspection_required": 0, - "is_stock_item": 1, - "is_sub_contracted_item": 0, - "item_code": "_Test Item Home Desktop 100", - "item_group": "_Test Item Group Desktops", - "item_name": "_Test Item Home Desktop 100", - "valuation_rate": 100, - "item_defaults": [{ - "company": "_Test Company", - "default_warehouse": "_Test Warehouse - _TC", - "expense_account": "_Test Account Cost for Goods Sold - _TC", - "buying_cost_center": "_Test Cost Center - _TC", - "selling_cost_center": "_Test Cost Center - _TC", - "income_account": "Sales - _TC" - }], - "taxes": [ - { - "doctype": "Item Tax", - "parentfield": "taxes", - "item_tax_template": "_Test Account Excise Duty @ 10 - _TC" - } - ], - "stock_uom": "_Test UOM 1" - }, - { - "description": "_Test Item Home Desktop 200 4", - "doctype": "Item", - "has_batch_no": 0, - "has_serial_no": 0, - "inspection_required": 0, - "is_sub_contracted_item": 0, - "item_code": "_Test Item Home Desktop 200", - "item_group": "_Test Item Group Desktops", - "item_name": "_Test Item Home Desktop 200", - "stock_uom": "_Test UOM 1", - "item_defaults": [{ - "company": "_Test Company", - "default_warehouse": "_Test Warehouse - _TC", - "expense_account": "_Test Account Cost for Goods Sold - _TC", - "buying_cost_center": "_Test Cost Center - _TC", - "selling_cost_center": "_Test Cost Center - _TC", - "income_account": "Sales - _TC" - }] - }, - { - "description": "_Test Product Bundle Item 5", - "doctype": "Item", - "has_batch_no": 0, - "has_serial_no": 0, - "inspection_required": 0, - "is_stock_item": 0, - "is_sub_contracted_item": 0, - "item_code": "_Test Product Bundle Item", - "item_group": "_Test Item Group Desktops", - "item_name": "_Test Product Bundle Item", - "stock_uom": "_Test UOM", - "item_defaults": [{ - "company": "_Test Company", - "default_warehouse": "_Test Warehouse - _TC", - "expense_account": "_Test Account Cost for Goods Sold - _TC", - "buying_cost_center": "_Test Cost Center - _TC", - "selling_cost_center": "_Test Cost Center - _TC", - "income_account": "Sales - _TC" - }] - }, - { - "description": "_Test FG Item 6", - "doctype": "Item", - "has_batch_no": 0, - "has_serial_no": 0, - "inspection_required": 0, - "is_stock_item": 1, - "is_sub_contracted_item": 1, - "item_code": "_Test FG Item", - "item_group": "_Test Item Group Desktops", - "item_name": "_Test FG Item", - "stock_uom": "_Test UOM", - "item_defaults": [{ - "company": "_Test Company", - "default_warehouse": "_Test Warehouse - _TC", - "expense_account": "_Test Account Cost for Goods Sold - _TC", - "buying_cost_center": "_Test Cost Center - _TC", - "selling_cost_center": "_Test Cost Center - _TC", - "income_account": "Sales - _TC" - }] - }, - { - "description": "_Test Non Stock Item 7", - "doctype": "Item", - "has_batch_no": 0, - "has_serial_no": 0, - "inspection_required": 0, - "is_stock_item": 0, - "is_sub_contracted_item": 0, - "item_code": "_Test Non Stock Item", - "item_group": "_Test Item Group Desktops", - "item_name": "_Test Non Stock Item", - "stock_uom": "_Test UOM", - "item_defaults": [{ - "company": "_Test Company", - "default_warehouse": "_Test Warehouse - _TC", - "expense_account": "_Test Account Cost for Goods Sold - _TC", - "buying_cost_center": "_Test Cost Center - _TC", - "selling_cost_center": "_Test Cost Center - _TC", - "income_account": "Sales - _TC" - }] - }, - { - "description": "_Test Serialized Item 8", - "doctype": "Item", - "has_batch_no": 0, - "has_serial_no": 1, - "inspection_required": 0, - "is_stock_item": 1, - "is_sub_contracted_item": 0, - "item_code": "_Test Serialized Item", - "item_group": "_Test Item Group Desktops", - "item_name": "_Test Serialized Item", - "stock_uom": "_Test UOM", - "item_defaults": [{ - "company": "_Test Company", - "default_warehouse": "_Test Warehouse - _TC", - "expense_account": "_Test Account Cost for Goods Sold - _TC", - "buying_cost_center": "_Test Cost Center - _TC", - "selling_cost_center": "_Test Cost Center - _TC", - "income_account": "Sales - _TC" - }] - }, - { - "description": "_Test Serialized Item 9", - "doctype": "Item", - "has_batch_no": 0, - "has_serial_no": 1, - "inspection_required": 0, - "is_stock_item": 1, - "is_sub_contracted_item": 0, - "item_code": "_Test Serialized Item With Series", - "item_group": "_Test Item Group Desktops", - "item_name": "_Test Serialized Item With Series", - "serial_no_series": "ABCD.#####", - "stock_uom": "_Test UOM", - "item_defaults": [{ - "company": "_Test Company", - "default_warehouse": "_Test Warehouse - _TC", - "expense_account": "_Test Account Cost for Goods Sold - _TC", - "buying_cost_center": "_Test Cost Center - _TC", - "selling_cost_center": "_Test Cost Center - _TC", - "income_account": "Sales - _TC" - }] - }, - { - "description": "_Test Item Home Desktop Manufactured 10", - "doctype": "Item", - "has_batch_no": 0, - "has_serial_no": 0, - "inspection_required": 0, - "is_stock_item": 1, - "is_sub_contracted_item": 0, - "item_code": "_Test Item Home Desktop Manufactured", - "item_group": "_Test Item Group Desktops", - "item_name": "_Test Item Home Desktop Manufactured", - "stock_uom": "_Test UOM", - "item_defaults": [{ - "company": "_Test Company", - "default_warehouse": "_Test Warehouse - _TC", - "expense_account": "_Test Account Cost for Goods Sold - _TC", - "buying_cost_center": "_Test Cost Center - _TC", - "selling_cost_center": "_Test Cost Center - _TC", - "income_account": "Sales - _TC" - }] - }, - { - "description": "_Test FG Item 2 11", - "doctype": "Item", - "has_batch_no": 0, - "has_serial_no": 0, - "inspection_required": 0, - "is_stock_item": 1, - "is_sub_contracted_item": 1, - "item_code": "_Test FG Item 2", - "item_group": "_Test Item Group Desktops", - "item_name": "_Test FG Item 2", - "stock_uom": "_Test UOM", - "item_defaults": [{ - "company": "_Test Company", - "default_warehouse": "_Test Warehouse - _TC", - "expense_account": "_Test Account Cost for Goods Sold - _TC", - "buying_cost_center": "_Test Cost Center - _TC", - "selling_cost_center": "_Test Cost Center - _TC", - "income_account": "Sales - _TC" - }] - }, - { - "description": "_Test Variant Item 12", - "doctype": "Item", - "has_batch_no": 0, - "has_serial_no": 0, - "inspection_required": 0, - "is_stock_item": 1, - "is_sub_contracted_item": 1, - "item_code": "_Test Variant Item", - "item_group": "_Test Item Group Desktops", - "item_name": "_Test Variant Item", - "stock_uom": "_Test UOM", - "has_variants": 1, - "item_defaults": [{ - "company": "_Test Company", - "default_warehouse": "_Test Warehouse - _TC", - "expense_account": "_Test Account Cost for Goods Sold - _TC", - "buying_cost_center": "_Test Cost Center - _TC", - "selling_cost_center": "_Test Cost Center - _TC", - "income_account": "Sales - _TC" - }], - "attributes": [ - { - "attribute": "Test Size" - } - ], - "apply_warehouse_wise_reorder_level": 1, - "reorder_levels": [ - { - "material_request_type": "Purchase", - "warehouse": "_Test Warehouse - _TC", - "warehouse_reorder_level": 20, - "warehouse_reorder_qty": 20 - } - ] - }, - { - "description": "_Test Item 1", - "doctype": "Item", - "has_batch_no": 0, - "has_serial_no": 0, - "inspection_required": 0, - "is_stock_item": 1, - "is_sub_contracted_item": 0, - "item_code": "_Test Item Warehouse Group Wise Reorder", - "item_group": "_Test Item Group", - "item_name": "_Test Item Warehouse Group Wise Reorder", - "apply_warehouse_wise_reorder_level": 1, - "item_defaults": [{ - "company": "_Test Company", - "default_warehouse": "_Test Warehouse Group-C1 - _TC", - "expense_account": "_Test Account Cost for Goods Sold - _TC", - "buying_cost_center": "_Test Cost Center - _TC", - "selling_cost_center": "_Test Cost Center - _TC", - "income_account": "Sales - _TC" - }], - "reorder_levels": [ - { - "warehouse_group": "_Test Warehouse Group - _TC", - "material_request_type": "Purchase", - "warehouse": "_Test Warehouse Group-C1 - _TC", - "warehouse_reorder_level": 20, - "warehouse_reorder_qty": 20 - } - ], - "stock_uom": "_Test UOM" - }, - { - "description": "_Test Item With Item Tax Template", - "doctype": "Item", - "has_batch_no": 0, - "has_serial_no": 0, - "inspection_required": 0, - "is_stock_item": 1, - "is_sub_contracted_item": 0, - "item_code": "_Test Item With Item Tax Template", - "item_group": "_Test Item Group", - "item_name": "_Test Item With Item Tax Template", - "stock_uom": "_Test UOM", - "item_defaults": [{ - "company": "_Test Company", - "default_warehouse": "_Test Warehouse - _TC", - "expense_account": "_Test Account Cost for Goods Sold - _TC", - "buying_cost_center": "_Test Cost Center - _TC", - "selling_cost_center": "_Test Cost Center - _TC", - "income_account": "Sales - _TC" - }], - "taxes": [ - { - "doctype": "Item Tax", - "parentfield": "taxes", - "item_tax_template": "_Test Account Excise Duty @ 10 - _TC" - }, - { - "doctype": "Item Tax", - "parentfield": "taxes", - "item_tax_template": "_Test Account Excise Duty @ 12 - _TC", - "tax_category": "_Test Tax Category 1" - } - ] - }, - { - "description": "_Test Item Inherit Group Item Tax Template 1", - "doctype": "Item", - "has_batch_no": 0, - "has_serial_no": 0, - "inspection_required": 0, - "is_stock_item": 1, - "is_sub_contracted_item": 0, - "item_code": "_Test Item Inherit Group Item Tax Template 1", - "item_group": "_Test Item Group Tax Parent", - "item_name": "_Test Item Inherit Group Item Tax Template 1", - "stock_uom": "_Test UOM", - "item_defaults": [{ - "company": "_Test Company", - "default_warehouse": "_Test Warehouse - _TC", - "expense_account": "_Test Account Cost for Goods Sold - _TC", - "buying_cost_center": "_Test Cost Center - _TC", - "selling_cost_center": "_Test Cost Center - _TC", - "income_account": "Sales - _TC" - }] - }, - { - "description": "_Test Item Inherit Group Item Tax Template 2", - "doctype": "Item", - "has_batch_no": 0, - "has_serial_no": 0, - "inspection_required": 0, - "is_stock_item": 1, - "is_sub_contracted_item": 0, - "item_code": "_Test Item Inherit Group Item Tax Template 2", - "item_group": "_Test Item Group Tax Child Override", - "item_name": "_Test Item Inherit Group Item Tax Template 2", - "stock_uom": "_Test UOM", - "item_defaults": [{ - "company": "_Test Company", - "default_warehouse": "_Test Warehouse - _TC", - "expense_account": "_Test Account Cost for Goods Sold - _TC", - "buying_cost_center": "_Test Cost Center - _TC", - "selling_cost_center": "_Test Cost Center - _TC", - "income_account": "Sales - _TC" - }] - }, - { - "description": "_Test Item Override Group Item Tax Template", - "doctype": "Item", - "has_batch_no": 0, - "has_serial_no": 0, - "inspection_required": 0, - "is_stock_item": 1, - "is_sub_contracted_item": 0, - "item_code": "_Test Item Override Group Item Tax Template", - "item_group": "_Test Item Group Tax Child Override", - "item_name": "_Test Item Override Group Item Tax Template", - "stock_uom": "_Test UOM", - "item_defaults": [{ - "company": "_Test Company", - "default_warehouse": "_Test Warehouse - _TC", - "expense_account": "_Test Account Cost for Goods Sold - _TC", - "buying_cost_center": "_Test Cost Center - _TC", - "selling_cost_center": "_Test Cost Center - _TC", - "income_account": "Sales - _TC" - }], - "taxes": [ - { - "doctype": "Item Tax", - "parentfield": "taxes", - "item_tax_template": "_Test Account Excise Duty @ 20 - _TC" - }, - { - "doctype": "Item Tax", - "parentfield": "taxes", - "tax_category": "_Test Tax Category 1", - "item_tax_template": "_Test Item Tax Template 1 - _TC" - } - ] - }, - { - "description": "_Test", - "doctype": "Item", - "is_stock_item": 1, - "item_code": "138-CMS Shoe", - "item_group": "_Test Item Group", - "item_name": "138-CMS Shoe", - "stock_uom": "_Test UOM" - } -] diff --git a/erpnext/stock/doctype/item/test_records.toml b/erpnext/stock/doctype/item/test_records.toml new file mode 100644 index 00000000000..ba203d2632e --- /dev/null +++ b/erpnext/stock/doctype/item/test_records.toml @@ -0,0 +1,414 @@ +[[Item]] +description = "_Test Item 1" +has_batch_no = 0 +has_serial_no = 0 +inspection_required = 0 +is_stock_item = 1 +is_sub_contracted_item = 0 +item_code = "_Test Item" +item_group = "_Test Item Group" +item_name = "_Test Item" +apply_warehouse_wise_reorder_level = 1 +opening_stock = 10 +valuation_rate = 100 +stock_uom = "_Test UOM" +[[Item.item_defaults]] +company = "_Test Company" +default_warehouse = "_Test Warehouse - _TC" +expense_account = "_Test Account Cost for Goods Sold - _TC" +buying_cost_center = "_Test Cost Center - _TC" +selling_cost_center = "_Test Cost Center - _TC" +income_account = "Sales - _TC" + +[[Item.reorder_levels]] +material_request_type = "Purchase" +warehouse = "_Test Warehouse - _TC" +warehouse_reorder_level = 20 +warehouse_reorder_qty = 20 + +[[Item.uoms]] +uom = "_Test UOM" +conversion_factor = 1.0 + +[[Item.uoms]] +uom = "_Test UOM 1" +conversion_factor = 10.0 + + +[[Item]] +description = "_Test Item 2" +has_batch_no = 0 +has_serial_no = 0 +inspection_required = 0 +is_stock_item = 1 +is_sub_contracted_item = 0 +item_code = "_Test Item 2" +item_group = "_Test Item Group" +item_name = "_Test Item 2" +stock_uom = "_Test UOM" +opening_stock = 10 +valuation_rate = 100 +[[Item.item_defaults]] +company = "_Test Company" +default_warehouse = "_Test Warehouse - _TC" +expense_account = "_Test Account Cost for Goods Sold - _TC" +buying_cost_center = "_Test Cost Center - _TC" +selling_cost_center = "_Test Cost Center - _TC" +income_account = "Sales - _TC" + + +[[Item]] +description = "_Test Item Home Desktop 100 3" +has_batch_no = 0 +has_serial_no = 0 +inspection_required = 0 +is_stock_item = 1 +is_sub_contracted_item = 0 +item_code = "_Test Item Home Desktop 100" +item_group = "_Test Item Group Desktops" +item_name = "_Test Item Home Desktop 100" +valuation_rate = 100 +stock_uom = "_Test UOM 1" +[[Item.item_defaults]] +company = "_Test Company" +default_warehouse = "_Test Warehouse - _TC" +expense_account = "_Test Account Cost for Goods Sold - _TC" +buying_cost_center = "_Test Cost Center - _TC" +selling_cost_center = "_Test Cost Center - _TC" +income_account = "Sales - _TC" + +[[Item.taxes]] +doctype = "Item Tax" +parentfield = "taxes" +item_tax_template = "_Test Account Excise Duty @ 10 - _TC" + + +[[Item]] +description = "_Test Item Home Desktop 200 4" +has_batch_no = 0 +has_serial_no = 0 +inspection_required = 0 +is_sub_contracted_item = 0 +item_code = "_Test Item Home Desktop 200" +item_group = "_Test Item Group Desktops" +item_name = "_Test Item Home Desktop 200" +stock_uom = "_Test UOM 1" +[[Item.item_defaults]] +company = "_Test Company" +default_warehouse = "_Test Warehouse - _TC" +expense_account = "_Test Account Cost for Goods Sold - _TC" +buying_cost_center = "_Test Cost Center - _TC" +selling_cost_center = "_Test Cost Center - _TC" +income_account = "Sales - _TC" + + +[[Item]] +description = "_Test Product Bundle Item 5" +has_batch_no = 0 +has_serial_no = 0 +inspection_required = 0 +is_stock_item = 0 +is_sub_contracted_item = 0 +item_code = "_Test Product Bundle Item" +item_group = "_Test Item Group Desktops" +item_name = "_Test Product Bundle Item" +stock_uom = "_Test UOM" +[[Item.item_defaults]] +company = "_Test Company" +default_warehouse = "_Test Warehouse - _TC" +expense_account = "_Test Account Cost for Goods Sold - _TC" +buying_cost_center = "_Test Cost Center - _TC" +selling_cost_center = "_Test Cost Center - _TC" +income_account = "Sales - _TC" + + +[[Item]] +description = "_Test FG Item 6" +has_batch_no = 0 +has_serial_no = 0 +inspection_required = 0 +is_stock_item = 1 +is_sub_contracted_item = 1 +item_code = "_Test FG Item" +item_group = "_Test Item Group Desktops" +item_name = "_Test FG Item" +stock_uom = "_Test UOM" +[[Item.item_defaults]] +company = "_Test Company" +default_warehouse = "_Test Warehouse - _TC" +expense_account = "_Test Account Cost for Goods Sold - _TC" +buying_cost_center = "_Test Cost Center - _TC" +selling_cost_center = "_Test Cost Center - _TC" +income_account = "Sales - _TC" + + +[[Item]] +description = "_Test Non Stock Item 7" +has_batch_no = 0 +has_serial_no = 0 +inspection_required = 0 +is_stock_item = 0 +is_sub_contracted_item = 0 +item_code = "_Test Non Stock Item" +item_group = "_Test Item Group Desktops" +item_name = "_Test Non Stock Item" +stock_uom = "_Test UOM" +[[Item.item_defaults]] +company = "_Test Company" +default_warehouse = "_Test Warehouse - _TC" +expense_account = "_Test Account Cost for Goods Sold - _TC" +buying_cost_center = "_Test Cost Center - _TC" +selling_cost_center = "_Test Cost Center - _TC" +income_account = "Sales - _TC" + + +[[Item]] +description = "_Test Serialized Item 8" +has_batch_no = 0 +has_serial_no = 1 +inspection_required = 0 +is_stock_item = 1 +is_sub_contracted_item = 0 +item_code = "_Test Serialized Item" +item_group = "_Test Item Group Desktops" +item_name = "_Test Serialized Item" +stock_uom = "_Test UOM" +[[Item.item_defaults]] +company = "_Test Company" +default_warehouse = "_Test Warehouse - _TC" +expense_account = "_Test Account Cost for Goods Sold - _TC" +buying_cost_center = "_Test Cost Center - _TC" +selling_cost_center = "_Test Cost Center - _TC" +income_account = "Sales - _TC" + + +[[Item]] +description = "_Test Serialized Item 9" +has_batch_no = 0 +has_serial_no = 1 +inspection_required = 0 +is_stock_item = 1 +is_sub_contracted_item = 0 +item_code = "_Test Serialized Item With Series" +item_group = "_Test Item Group Desktops" +item_name = "_Test Serialized Item With Series" +serial_no_series = "ABCD.#####" +stock_uom = "_Test UOM" +[[Item.item_defaults]] +company = "_Test Company" +default_warehouse = "_Test Warehouse - _TC" +expense_account = "_Test Account Cost for Goods Sold - _TC" +buying_cost_center = "_Test Cost Center - _TC" +selling_cost_center = "_Test Cost Center - _TC" +income_account = "Sales - _TC" + + +[[Item]] +description = "_Test Item Home Desktop Manufactured 10" +has_batch_no = 0 +has_serial_no = 0 +inspection_required = 0 +is_stock_item = 1 +is_sub_contracted_item = 0 +item_code = "_Test Item Home Desktop Manufactured" +item_group = "_Test Item Group Desktops" +item_name = "_Test Item Home Desktop Manufactured" +stock_uom = "_Test UOM" +[[Item.item_defaults]] +company = "_Test Company" +default_warehouse = "_Test Warehouse - _TC" +expense_account = "_Test Account Cost for Goods Sold - _TC" +buying_cost_center = "_Test Cost Center - _TC" +selling_cost_center = "_Test Cost Center - _TC" +income_account = "Sales - _TC" + + +[[Item]] +description = "_Test FG Item 2 11" +has_batch_no = 0 +has_serial_no = 0 +inspection_required = 0 +is_stock_item = 1 +is_sub_contracted_item = 1 +item_code = "_Test FG Item 2" +item_group = "_Test Item Group Desktops" +item_name = "_Test FG Item 2" +stock_uom = "_Test UOM" +[[Item.item_defaults]] +company = "_Test Company" +default_warehouse = "_Test Warehouse - _TC" +expense_account = "_Test Account Cost for Goods Sold - _TC" +buying_cost_center = "_Test Cost Center - _TC" +selling_cost_center = "_Test Cost Center - _TC" +income_account = "Sales - _TC" + + +[[Item]] +description = "_Test Variant Item 12" +has_batch_no = 0 +has_serial_no = 0 +inspection_required = 0 +is_stock_item = 1 +is_sub_contracted_item = 1 +item_code = "_Test Variant Item" +item_group = "_Test Item Group Desktops" +item_name = "_Test Variant Item" +stock_uom = "_Test UOM" +has_variants = 1 +apply_warehouse_wise_reorder_level = 1 +[[Item.item_defaults]] +company = "_Test Company" +default_warehouse = "_Test Warehouse - _TC" +expense_account = "_Test Account Cost for Goods Sold - _TC" +buying_cost_center = "_Test Cost Center - _TC" +selling_cost_center = "_Test Cost Center - _TC" +income_account = "Sales - _TC" + +[[Item.attributes]] +attribute = "Test Size" + +[[Item.reorder_levels]] +material_request_type = "Purchase" +warehouse = "_Test Warehouse - _TC" +warehouse_reorder_level = 20 +warehouse_reorder_qty = 20 + + +[[Item]] +description = "_Test Item 1" +has_batch_no = 0 +has_serial_no = 0 +inspection_required = 0 +is_stock_item = 1 +is_sub_contracted_item = 0 +item_code = "_Test Item Warehouse Group Wise Reorder" +item_group = "_Test Item Group" +item_name = "_Test Item Warehouse Group Wise Reorder" +apply_warehouse_wise_reorder_level = 1 +stock_uom = "_Test UOM" +[[Item.item_defaults]] +company = "_Test Company" +default_warehouse = "_Test Warehouse Group-C1 - _TC" +expense_account = "_Test Account Cost for Goods Sold - _TC" +buying_cost_center = "_Test Cost Center - _TC" +selling_cost_center = "_Test Cost Center - _TC" +income_account = "Sales - _TC" + +[[Item.reorder_levels]] +warehouse_group = "_Test Warehouse Group - _TC" +material_request_type = "Purchase" +warehouse = "_Test Warehouse Group-C1 - _TC" +warehouse_reorder_level = 20 +warehouse_reorder_qty = 20 + + +[[Item]] +description = "_Test Item With Item Tax Template" +has_batch_no = 0 +has_serial_no = 0 +inspection_required = 0 +is_stock_item = 1 +is_sub_contracted_item = 0 +item_code = "_Test Item With Item Tax Template" +item_group = "_Test Item Group" +item_name = "_Test Item With Item Tax Template" +stock_uom = "_Test UOM" +[[Item.item_defaults]] +company = "_Test Company" +default_warehouse = "_Test Warehouse - _TC" +expense_account = "_Test Account Cost for Goods Sold - _TC" +buying_cost_center = "_Test Cost Center - _TC" +selling_cost_center = "_Test Cost Center - _TC" +income_account = "Sales - _TC" + +[[Item.taxes]] +doctype = "Item Tax" +parentfield = "taxes" +item_tax_template = "_Test Account Excise Duty @ 10 - _TC" + +[[Item.taxes]] +doctype = "Item Tax" +parentfield = "taxes" +item_tax_template = "_Test Account Excise Duty @ 12 - _TC" +tax_category = "_Test Tax Category 1" + + +[[Item]] +description = "_Test Item Inherit Group Item Tax Template 1" +has_batch_no = 0 +has_serial_no = 0 +inspection_required = 0 +is_stock_item = 1 +is_sub_contracted_item = 0 +item_code = "_Test Item Inherit Group Item Tax Template 1" +item_group = "_Test Item Group Tax Parent" +item_name = "_Test Item Inherit Group Item Tax Template 1" +stock_uom = "_Test UOM" +[[Item.item_defaults]] +company = "_Test Company" +default_warehouse = "_Test Warehouse - _TC" +expense_account = "_Test Account Cost for Goods Sold - _TC" +buying_cost_center = "_Test Cost Center - _TC" +selling_cost_center = "_Test Cost Center - _TC" +income_account = "Sales - _TC" + + +[[Item]] +description = "_Test Item Inherit Group Item Tax Template 2" +has_batch_no = 0 +has_serial_no = 0 +inspection_required = 0 +is_stock_item = 1 +is_sub_contracted_item = 0 +item_code = "_Test Item Inherit Group Item Tax Template 2" +item_group = "_Test Item Group Tax Child Override" +item_name = "_Test Item Inherit Group Item Tax Template 2" +stock_uom = "_Test UOM" +[[Item.item_defaults]] +company = "_Test Company" +default_warehouse = "_Test Warehouse - _TC" +expense_account = "_Test Account Cost for Goods Sold - _TC" +buying_cost_center = "_Test Cost Center - _TC" +selling_cost_center = "_Test Cost Center - _TC" +income_account = "Sales - _TC" + + +[[Item]] +description = "_Test Item Override Group Item Tax Template" +has_batch_no = 0 +has_serial_no = 0 +inspection_required = 0 +is_stock_item = 1 +is_sub_contracted_item = 0 +item_code = "_Test Item Override Group Item Tax Template" +item_group = "_Test Item Group Tax Child Override" +item_name = "_Test Item Override Group Item Tax Template" +stock_uom = "_Test UOM" +[[Item.item_defaults]] +company = "_Test Company" +default_warehouse = "_Test Warehouse - _TC" +expense_account = "_Test Account Cost for Goods Sold - _TC" +buying_cost_center = "_Test Cost Center - _TC" +selling_cost_center = "_Test Cost Center - _TC" +income_account = "Sales - _TC" + +[[Item.taxes]] +doctype = "Item Tax" +parentfield = "taxes" +item_tax_template = "_Test Account Excise Duty @ 20 - _TC" + +[[Item.taxes]] +doctype = "Item Tax" +parentfield = "taxes" +tax_category = "_Test Tax Category 1" +item_tax_template = "_Test Item Tax Template 1 - _TC" + + +[[Item]] +description = "_Test" +is_stock_item = 1 +item_code = "138-CMS Shoe" +item_group = "_Test Item Group" +item_name = "138-CMS Shoe" +stock_uom = "_Test UOM" + diff --git a/erpnext/stock/doctype/item_attribute/test_records.json b/erpnext/stock/doctype/item_attribute/test_records.json deleted file mode 100644 index 6aa6ffd6c9b..00000000000 --- a/erpnext/stock/doctype/item_attribute/test_records.json +++ /dev/null @@ -1,25 +0,0 @@ -[ - { - "doctype": "Item Attribute", - "attribute_name": "Test Size", - "priority": 1, - "item_attribute_values": [ - {"attribute_value": "Extra Small", "abbr": "XSL"}, - {"attribute_value": "Small", "abbr": "S"}, - {"attribute_value": "Medium", "abbr": "M"}, - {"attribute_value": "Large", "abbr": "L"}, - {"attribute_value": "Extra Large", "abbr": "XL"}, - {"attribute_value": "2XL", "abbr": "2XL"} - ] - }, - { - "doctype": "Item Attribute", - "attribute_name": "Test Colour", - "priority": 2, - "item_attribute_values": [ - {"attribute_value": "Red", "abbr": "R"}, - {"attribute_value": "Green", "abbr": "G"}, - {"attribute_value": "Blue", "abbr": "B"} - ] - } -] diff --git a/erpnext/stock/doctype/item_attribute/test_records.toml b/erpnext/stock/doctype/item_attribute/test_records.toml new file mode 100644 index 00000000000..2bfe92f97e3 --- /dev/null +++ b/erpnext/stock/doctype/item_attribute/test_records.toml @@ -0,0 +1,44 @@ +[["Item Attribute"]] +attribute_name = "Test Size" +priority = 1 +[["Item Attribute".item_attribute_values]] +attribute_value = "Extra Small" +abbr = "XSL" + +[["Item Attribute".item_attribute_values]] +attribute_value = "Small" +abbr = "S" + +[["Item Attribute".item_attribute_values]] +attribute_value = "Medium" +abbr = "M" + +[["Item Attribute".item_attribute_values]] +attribute_value = "Large" +abbr = "L" + +[["Item Attribute".item_attribute_values]] +attribute_value = "Extra Large" +abbr = "XL" + +[["Item Attribute".item_attribute_values]] +attribute_value = "2XL" +abbr = "2XL" + + +[["Item Attribute"]] +attribute_name = "Test Colour" +priority = 2 +[["Item Attribute".item_attribute_values]] +attribute_value = "Red" +abbr = "R" + +[["Item Attribute".item_attribute_values]] +attribute_value = "Green" +abbr = "G" + +[["Item Attribute".item_attribute_values]] +attribute_value = "Blue" +abbr = "B" + + diff --git a/erpnext/stock/doctype/item_price/test_records.json b/erpnext/stock/doctype/item_price/test_records.json deleted file mode 100644 index afe5ad65b75..00000000000 --- a/erpnext/stock/doctype/item_price/test_records.json +++ /dev/null @@ -1,56 +0,0 @@ -[ - { - "doctype": "Item Price", - "item_code": "_Test Item", - "price_list": "_Test Price List", - "price_list_rate": 100, - "valid_from": "2017-04-18", - "valid_upto": "2017-04-26" - }, - { - "doctype": "Item Price", - "item_code": "_Test Item", - "price_list": "_Test Price List Rest of the World", - "price_list_rate": 10 - }, - { - "doctype": "Item Price", - "item_code": "_Test Item 2", - "price_list": "_Test Price List Rest of the World", - "price_list_rate": 20, - "valid_from": "2017-04-18", - "valid_upto": "2017-04-26", - "customer": "_Test Customer", - "uom": "_Test UOM" - }, - { - "doctype": "Item Price", - "item_code": "_Test Item Home Desktop 100", - "price_list": "_Test Price List", - "price_list_rate": 1000, - "valid_from": "2017-04-10", - "valid_upto": "2017-04-17" - }, - { - "doctype": "Item Price", - "item_code": "_Test Item Home Desktop Manufactured", - "price_list": "_Test Price List", - "price_list_rate": 1000, - "valid_from": "2017-04-10", - "valid_upto": "2017-04-17" - }, - { - "doctype": "Item Price", - "item_code": "_Test Item", - "price_list": "_Test Buying Price List", - "price_list_rate": 100, - "supplier": "_Test Supplier" - }, - { - "doctype": "Item Price", - "item_code": "_Test Item", - "price_list": "_Test Selling Price List", - "price_list_rate": 200, - "customer": "_Test Customer" - } -] diff --git a/erpnext/stock/doctype/item_price/test_records.toml b/erpnext/stock/doctype/item_price/test_records.toml new file mode 100644 index 00000000000..a378370a05c --- /dev/null +++ b/erpnext/stock/doctype/item_price/test_records.toml @@ -0,0 +1,47 @@ +[["Item Price"]] +item_code = "_Test Item" +price_list = "_Test Price List" +price_list_rate = 100 +valid_from = "2017-04-18" +valid_upto = "2017-04-26" + +[["Item Price"]] +item_code = "_Test Item" +price_list = "_Test Price List Rest of the World" +price_list_rate = 10 + +[["Item Price"]] +item_code = "_Test Item 2" +price_list = "_Test Price List Rest of the World" +price_list_rate = 20 +valid_from = "2017-04-18" +valid_upto = "2017-04-26" +customer = "_Test Customer" +uom = "_Test UOM" + +[["Item Price"]] +item_code = "_Test Item Home Desktop 100" +price_list = "_Test Price List" +price_list_rate = 1000 +valid_from = "2017-04-10" +valid_upto = "2017-04-17" + +[["Item Price"]] +item_code = "_Test Item Home Desktop Manufactured" +price_list = "_Test Price List" +price_list_rate = 1000 +valid_from = "2017-04-10" +valid_upto = "2017-04-17" + +[["Item Price"]] +item_code = "_Test Item" +price_list = "_Test Buying Price List" +price_list_rate = 100 +supplier = "_Test Supplier" + +[["Item Price"]] +item_code = "_Test Item" +price_list = "_Test Selling Price List" +price_list_rate = 200 +customer = "_Test Customer" + diff --git a/erpnext/stock/doctype/material_request/test_records.json b/erpnext/stock/doctype/material_request/test_records.json deleted file mode 100644 index 1c714969eb3..00000000000 --- a/erpnext/stock/doctype/material_request/test_records.json +++ /dev/null @@ -1,57 +0,0 @@ -[ - { - "company": "_Test Company", - "doctype": "Material Request", - "fiscal_year": "_Test Fiscal Year 2013", - "items": [ - { - "description": "_Test Item Home Desktop 100", - "doctype": "Material Request Item", - "item_code": "_Test Item Home Desktop 100", - "item_name": "_Test Item Home Desktop 100", - "parentfield": "items", - "qty": 54.0, - "schedule_date": "2013-02-18", - "uom": "_Test UOM 1", - "warehouse": "_Test Warehouse - _TC" - }, - { - "description": "_Test Item Home Desktop 200", - "doctype": "Material Request Item", - "item_code": "_Test Item Home Desktop 200", - "item_name": "_Test Item Home Desktop 200", - "parentfield": "items", - "qty": 3.0, - "schedule_date": "2013-02-19", - "uom": "_Test UOM 1", - "warehouse": "_Test Warehouse - _TC" - } - ], - "material_request_type": "Purchase", - "naming_series": "_T-Material Request-", - "transaction_date": "2013-02-18", - "schedule_date": "2013-02-19" - }, - { - "company": "_Test Company", - "doctype": "Material Request", - "fiscal_year": "_Test Fiscal Year 2013", - "items": [ - { - "description": "_Test FG Item", - "doctype": "Material Request Item", - "item_code": "_Test FG Item", - "item_name": "_Test FG Item", - "parentfield": "items", - "qty": 5, - "schedule_date": "2013-02-19", - "uom": "_Test UOM 1", - "warehouse": "_Test Warehouse - _TC" - } - ], - "material_request_type": "Manufacture", - "naming_series": "_T-Material Request-", - "transaction_date": "2013-02-18", - "schedule_date": "2013-02-19" - } -] \ No newline at end of file diff --git a/erpnext/stock/doctype/material_request/test_records.toml b/erpnext/stock/doctype/material_request/test_records.toml new file mode 100644 index 00000000000..1a604ec85c3 --- /dev/null +++ b/erpnext/stock/doctype/material_request/test_records.toml @@ -0,0 +1,49 @@ +[["Material Request"]] +company = "_Test Company" +fiscal_year = "_Test Fiscal Year 2013" +material_request_type = "Purchase" +naming_series = "_T-Material Request-" +transaction_date = "2013-02-18" +schedule_date = "2013-02-19" +[["Material Request".items]] +description = "_Test Item Home Desktop 100" +doctype = "Material Request Item" +item_code = "_Test Item Home Desktop 100" +item_name = "_Test Item Home Desktop 100" +parentfield = "items" +qty = 54.0 +schedule_date = "2013-02-18" +uom = "_Test UOM 1" +warehouse = "_Test Warehouse - _TC" + +[["Material Request".items]] +description = "_Test Item Home Desktop 200" +doctype = "Material Request Item" +item_code = "_Test Item Home Desktop 200" +item_name = "_Test Item Home Desktop 200" +parentfield = "items" +qty = 3.0 +schedule_date = "2013-02-19" +uom = "_Test UOM 1" +warehouse = "_Test Warehouse - _TC" + + +[["Material Request"]] +company = "_Test Company" +fiscal_year = "_Test Fiscal Year 2013" +material_request_type = "Manufacture" +naming_series = "_T-Material Request-" +transaction_date = "2013-02-18" +schedule_date = "2013-02-19" +[["Material Request".items]] +description = "_Test FG Item" +doctype = "Material Request Item" +item_code = "_Test FG Item" +item_name = "_Test FG Item" +parentfield = "items" +qty = 5 +schedule_date = "2013-02-19" +uom = "_Test UOM 1" +warehouse = "_Test Warehouse - _TC" + + diff --git a/erpnext/stock/doctype/price_list/test_records.json b/erpnext/stock/doctype/price_list/test_records.json deleted file mode 100644 index e02a7adbd8b..00000000000 --- a/erpnext/stock/doctype/price_list/test_records.json +++ /dev/null @@ -1,51 +0,0 @@ -[ - { - "buying": 1, - "currency": "INR", - "doctype": "Price List", - "enabled": 1, - "price_not_uom_dependant": 1, - "price_list_name": "_Test Price List", - "selling": 1 - }, - { - "buying": 1, - "currency": "INR", - "doctype": "Price List", - "enabled": 1, - "price_list_name": "_Test Price List 2", - "selling": 1 - }, - { - "buying": 1, - "currency": "INR", - "doctype": "Price List", - "enabled": 1, - "price_list_name": "_Test Price List India", - "selling": 1 - }, - { - "buying": 1, - "currency": "USD", - "doctype": "Price List", - "enabled": 1, - "price_list_name": "_Test Price List Rest of the World", - "selling": 1 - }, - { - "buying": 0, - "currency": "USD", - "doctype": "Price List", - "enabled": 1, - "price_list_name": "_Test Selling Price List", - "selling": 1 - }, - { - "buying": 1, - "currency": "USD", - "doctype": "Price List", - "enabled": 1, - "price_list_name": "_Test Buying Price List", - "selling": 0 - } -] diff --git a/erpnext/stock/doctype/price_list/test_records.toml b/erpnext/stock/doctype/price_list/test_records.toml new file mode 100644 index 00000000000..679ef7ce2c4 --- /dev/null +++ b/erpnext/stock/doctype/price_list/test_records.toml @@ -0,0 +1,43 @@ +[["Price List"]] +buying = 1 +currency = "INR" +enabled = 1 +price_not_uom_dependant = 1 +price_list_name = "_Test Price List" +selling = 1 + +[["Price List"]] +buying = 1 +currency = "INR" +enabled = 1 +price_list_name = "_Test Price List 2" +selling = 1 + +[["Price List"]] +buying = 1 +currency = "INR" +enabled = 1 +price_list_name = "_Test Price List India" +selling = 1 + +[["Price List"]] +buying = 1 +currency = "USD" +enabled = 1 +price_list_name = "_Test Price List Rest of the World" +selling = 1 + +[["Price List"]] +buying = 0 +currency = "USD" +enabled = 1 +price_list_name = "_Test Selling Price List" +selling = 1 + +[["Price List"]] +buying = 1 +currency = "USD" +enabled = 1 +price_list_name = "_Test Buying Price List" +selling = 0 + diff --git a/erpnext/stock/doctype/purchase_receipt/test_records.json b/erpnext/stock/doctype/purchase_receipt/test_records.json deleted file mode 100644 index e7ea9af6b9d..00000000000 --- a/erpnext/stock/doctype/purchase_receipt/test_records.json +++ /dev/null @@ -1,87 +0,0 @@ -[ - { - "buying_price_list": "_Test Price List", - "company": "_Test Company", - "conversion_rate": 1.0, - "currency": "INR", - "doctype": "Purchase Receipt", - "base_grand_total": 720.0, - "naming_series": "_T-Purchase Receipt-", - "base_net_total": 500.0, - "taxes": [ - { - "account_head": "_Test Account Shipping Charges - _TC", - "add_deduct_tax": "Add", - "category": "Valuation and Total", - "charge_type": "Actual", - "description": "Shipping Charges", - "doctype": "Purchase Taxes and Charges", - "parentfield": "taxes", - "rate": 100.0, - "tax_amount": 100.0, - "cost_center": "Main - _TC" - }, - { - "account_head": "_Test Account VAT - _TC", - "add_deduct_tax": "Add", - "category": "Total", - "charge_type": "Actual", - "description": "VAT", - "doctype": "Purchase Taxes and Charges", - "parentfield": "taxes", - "rate": 120.0, - "tax_amount": 120.0, - "cost_center": "Main - _TC" - }, - { - "account_head": "_Test Account Customs Duty - _TC", - "add_deduct_tax": "Add", - "category": "Valuation", - "charge_type": "Actual", - "description": "Customs Duty", - "doctype": "Purchase Taxes and Charges", - "parentfield": "taxes", - "rate": 150.0, - "tax_amount": 150.0, - "cost_center": "Main - _TC" - } - ], - "items": [ - { - "base_amount": 250.0, - "conversion_factor": 1.0, - "description": "_Test Item", - "doctype": "Purchase Receipt Item", - "item_code": "_Test Item", - "item_name": "_Test Item", - "parentfield": "items", - "qty": 5.0, - "rate": 50.0, - "received_qty": 5.0, - "rejected_qty": 0.0, - "stock_uom": "_Test UOM", - "uom": "_Test UOM", - "warehouse": "_Test Warehouse - _TC", - "cost_center": "Main - _TC" - }, - { - "base_amount": 250.0, - "conversion_factor": 1.0, - "description": "_Test Item Home Desktop 100", - "doctype": "Purchase Receipt Item", - "item_code": "_Test Item Home Desktop 100", - "item_name": "_Test Item Home Desktop 100", - "parentfield": "items", - "qty": 5.0, - "rate": 50.0, - "received_qty": 5.0, - "rejected_qty": 0.0, - "stock_uom": "_Test UOM", - "uom": "_Test UOM", - "warehouse": "_Test Warehouse 1 - _TC", - "cost_center": "Main - _TC" - } - ], - "supplier": "_Test Supplier" - } -] \ No newline at end of file diff --git a/erpnext/stock/doctype/purchase_receipt/test_records.toml b/erpnext/stock/doctype/purchase_receipt/test_records.toml new file mode 100644 index 00000000000..24bca1cf256 --- /dev/null +++ b/erpnext/stock/doctype/purchase_receipt/test_records.toml @@ -0,0 +1,80 @@ +[["Purchase Receipt"]] +buying_price_list = "_Test Price List" +company = "_Test Company" +conversion_rate = 1.0 +currency = "INR" +base_grand_total = 720.0 +naming_series = "_T-Purchase Receipt-" +base_net_total = 500.0 +supplier = "_Test Supplier" +[["Purchase Receipt".taxes]] +account_head = "_Test Account Shipping Charges - _TC" +add_deduct_tax = "Add" +category = "Valuation and Total" +charge_type = "Actual" +description = "Shipping Charges" +doctype = "Purchase Taxes and Charges" +parentfield = "taxes" +rate = 100.0 +tax_amount = 100.0 +cost_center = "Main - _TC" + +[["Purchase Receipt".taxes]] +account_head = "_Test Account VAT - _TC" +add_deduct_tax = "Add" +category = "Total" +charge_type = "Actual" +description = "VAT" +doctype = "Purchase Taxes and Charges" +parentfield = "taxes" +rate = 120.0 +tax_amount = 120.0 +cost_center = "Main - _TC" + +[["Purchase Receipt".taxes]] +account_head = "_Test Account Customs Duty - _TC" +add_deduct_tax = "Add" +category = "Valuation" +charge_type = "Actual" +description = "Customs Duty" +doctype = "Purchase Taxes and Charges" +parentfield = "taxes" +rate = 150.0 +tax_amount = 150.0 +cost_center = "Main - _TC" + +[["Purchase Receipt".items]] +base_amount = 250.0 +conversion_factor = 1.0 +description = "_Test Item" +doctype = "Purchase Receipt Item" +item_code = "_Test Item" +item_name = "_Test Item" +parentfield = "items" +qty = 5.0 +rate = 50.0 +received_qty = 5.0 +rejected_qty = 0.0 +stock_uom = "_Test UOM" +uom = "_Test UOM" +warehouse = "_Test Warehouse - _TC" +cost_center = "Main - _TC" + +[["Purchase Receipt".items]] +base_amount = 250.0 +conversion_factor = 1.0 +description = "_Test Item Home Desktop 100" +doctype = "Purchase Receipt Item" +item_code = "_Test Item Home Desktop 100" +item_name = "_Test Item Home Desktop 100" +parentfield = "items" +qty = 5.0 +rate = 50.0 +received_qty = 5.0 +rejected_qty = 0.0 +stock_uom = "_Test UOM" +uom = "_Test UOM" +warehouse = "_Test Warehouse 1 - _TC" +cost_center = "Main - _TC" + + diff --git a/erpnext/stock/doctype/quality_inspection_template/test_records.json b/erpnext/stock/doctype/quality_inspection_template/test_records.json deleted file mode 100644 index 2da99f616ac..00000000000 --- a/erpnext/stock/doctype/quality_inspection_template/test_records.json +++ /dev/null @@ -1,17 +0,0 @@ -[ - { - "doctype": "Quality Inspection Parameter", - "parameter" : "_Test Param" - }, - { - "quality_inspection_template_name" : "_Test Quality Inspection Template", - "doctype": "Quality Inspection Template", - "item_quality_inspection_parameter" : [ - { - "specification": "_Test Param", - "doctype": "Item Quality Inspection Parameter", - "parentfield": "item_quality_inspection_parameter" - } - ] - } -] diff --git a/erpnext/stock/doctype/quality_inspection_template/test_records.toml b/erpnext/stock/doctype/quality_inspection_template/test_records.toml new file mode 100644 index 00000000000..12ae042808c --- /dev/null +++ b/erpnext/stock/doctype/quality_inspection_template/test_records.toml @@ -0,0 +1,11 @@ +[["Quality Inspection Parameter"]] +parameter = "_Test Param" + +[["Quality Inspection Template"]] +quality_inspection_template_name = "_Test Quality Inspection Template" +[["Quality Inspection Template".item_quality_inspection_parameter]] +specification = "_Test Param" +doctype = "Item Quality Inspection Parameter" +parentfield = "item_quality_inspection_parameter" + + diff --git a/erpnext/stock/doctype/serial_no/test_records.json b/erpnext/stock/doctype/serial_no/test_records.json deleted file mode 100644 index 0637a088a01..00000000000 --- a/erpnext/stock/doctype/serial_no/test_records.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/erpnext/stock/doctype/stock_entry/test_records.json b/erpnext/stock/doctype/stock_entry/test_records.json deleted file mode 100644 index dc212874139..00000000000 --- a/erpnext/stock/doctype/stock_entry/test_records.json +++ /dev/null @@ -1,105 +0,0 @@ -[ - { - "company": "_Test Company", - "doctype": "Stock Entry", - "stock_entry_type": "Material Receipt", - "purpose": "Material Receipt", - "items": [ - { - "conversion_factor": 1.0, - "cost_center": "_Test Cost Center - _TC", - "doctype": "Stock Entry Detail", - "expense_account": "Stock Adjustment - _TC", - "basic_rate": 100, - "item_code": "_Test Item", - "parentfield": "items", - "qty": 50.0, - "stock_uom": "_Test UOM", - "t_warehouse": "_Test Warehouse - _TC", - "transfer_qty": 50.0, - "uom": "_Test UOM" - } - ] - }, - { - "company": "_Test Company", - "doctype": "Stock Entry", - "purpose": "Material Issue", - "stock_entry_type": "Material Issue", - "items": [ - { - "conversion_factor": 1.0, - "cost_center": "_Test Cost Center - _TC", - "doctype": "Stock Entry Detail", - "expense_account": "Stock Adjustment - _TC", - "basic_rate": 100, - "item_code": "_Test Item", - "parentfield": "items", - "qty": 40.0, - "s_warehouse": "_Test Warehouse - _TC", - "stock_uom": "_Test UOM", - "transfer_qty": 40.0, - "uom": "_Test UOM" - } - ] - }, - { - "company": "_Test Company", - "doctype": "Stock Entry", - "purpose": "Material Transfer", - "stock_entry_type": "Material Transfer", - "items": [ - { - "conversion_factor": 1.0, - "cost_center": "_Test Cost Center - _TC", - "doctype": "Stock Entry Detail", - "expense_account": "Stock Adjustment - _TC", - "basic_rate": 100, - "item_code": "_Test Item", - "parentfield": "items", - "qty": 45.0, - "s_warehouse": "_Test Warehouse - _TC", - "stock_uom": "_Test UOM", - "t_warehouse": "_Test Warehouse 1 - _TC", - "transfer_qty": 45.0, - "uom": "_Test UOM" - } - ] - }, - { - "company": "_Test Company", - "doctype": "Stock Entry", - "purpose": "Repack", - "stock_entry_type": "Repack", - "items": [ - { - "conversion_factor": 1.0, - "cost_center": "_Test Cost Center - _TC", - "doctype": "Stock Entry Detail", - "expense_account": "Stock Adjustment - _TC", - "basic_rate": 100, - "item_code": "_Test Item", - "parentfield": "items", - "qty": 50.0, - "s_warehouse": "_Test Warehouse - _TC", - "stock_uom": "_Test UOM", - "transfer_qty": 50.0, - "uom": "_Test UOM" - }, - { - "conversion_factor": 1.0, - "cost_center": "_Test Cost Center - _TC", - "doctype": "Stock Entry Detail", - "expense_account": "Stock Adjustment - _TC", - "basic_rate": 5000, - "item_code": "_Test Item Home Desktop 100", - "parentfield": "items", - "qty": 1, - "stock_uom": "_Test UOM", - "t_warehouse": "_Test Warehouse - _TC", - "transfer_qty": 1, - "uom": "_Test UOM" - } - ] - } -] diff --git a/erpnext/stock/doctype/stock_entry/test_records.toml b/erpnext/stock/doctype/stock_entry/test_records.toml new file mode 100644 index 00000000000..aca8a433756 --- /dev/null +++ b/erpnext/stock/doctype/stock_entry/test_records.toml @@ -0,0 +1,91 @@ +[["Stock Entry"]] +company = "_Test Company" +stock_entry_type = "Material Receipt" +purpose = "Material Receipt" +[["Stock Entry".items]] +conversion_factor = 1.0 +cost_center = "_Test Cost Center - _TC" +doctype = "Stock Entry Detail" +expense_account = "Stock Adjustment - _TC" +basic_rate = 100 +item_code = "_Test Item" +parentfield = "items" +qty = 50.0 +stock_uom = "_Test UOM" +t_warehouse = "_Test Warehouse - _TC" +transfer_qty = 50.0 +uom = "_Test UOM" + + +[["Stock Entry"]] +company = "_Test Company" +purpose = "Material Issue" +stock_entry_type = "Material Issue" +[["Stock Entry".items]] +conversion_factor = 1.0 +cost_center = "_Test Cost Center - _TC" +doctype = "Stock Entry Detail" +expense_account = "Stock Adjustment - _TC" +basic_rate = 100 +item_code = "_Test Item" +parentfield = "items" +qty = 40.0 +s_warehouse = "_Test Warehouse - _TC" +stock_uom = "_Test UOM" +transfer_qty = 40.0 +uom = "_Test UOM" + + +[["Stock Entry"]] +company = "_Test Company" +purpose = "Material Transfer" +stock_entry_type = "Material Transfer" +[["Stock Entry".items]] +conversion_factor = 1.0 +cost_center = "_Test Cost Center - _TC" +doctype = "Stock Entry Detail" +expense_account = "Stock Adjustment - _TC" +basic_rate = 100 +item_code = "_Test Item" +parentfield = "items" +qty = 45.0 +s_warehouse = "_Test Warehouse - _TC" +stock_uom = "_Test UOM" +t_warehouse = "_Test Warehouse 1 - _TC" +transfer_qty = 45.0 +uom = "_Test UOM" + + +[["Stock Entry"]] +company = "_Test Company" +purpose = "Repack" +stock_entry_type = "Repack" +[["Stock Entry".items]] +conversion_factor = 1.0 +cost_center = "_Test Cost Center - _TC" +doctype = "Stock Entry Detail" +expense_account = "Stock Adjustment - _TC" +basic_rate = 100 +item_code = "_Test Item" +parentfield = "items" +qty = 50.0 +s_warehouse = "_Test Warehouse - _TC" +stock_uom = "_Test UOM" +transfer_qty = 50.0 +uom = "_Test UOM" + +[["Stock Entry".items]] +conversion_factor = 1.0 +cost_center = "_Test Cost Center - _TC" +doctype = "Stock Entry Detail" +expense_account = "Stock Adjustment - _TC" +basic_rate = 5000 +item_code = "_Test Item Home Desktop 100" +parentfield = "items" +qty = 1 +stock_uom = "_Test UOM" +t_warehouse = "_Test Warehouse - _TC" +transfer_qty = 1 +uom = "_Test UOM" + + diff --git a/erpnext/stock/doctype/warehouse/test_records.json b/erpnext/stock/doctype/warehouse/test_records.json deleted file mode 100644 index e128558ed3b..00000000000 --- a/erpnext/stock/doctype/warehouse/test_records.json +++ /dev/null @@ -1,64 +0,0 @@ -[ - { - "company": "_Test Company", - "doctype": "Warehouse", - "warehouse_name": "_Test Warehouse", - "is_group": 0 - }, - { - "company": "_Test Company", - "doctype": "Warehouse", - "warehouse_name": "_Test Scrap Warehouse", - "is_group": 0 - }, - { - "company": "_Test Company", - "doctype": "Warehouse", - "warehouse_name": "_Test Warehouse 1", - "is_group": 0 - }, - { - "company": "_Test Company", - "doctype": "Warehouse", - "warehouse_name": "_Test Warehouse 2", - "is_group": 0 - }, - { - "company": "_Test Company", - "doctype": "Warehouse", - "warehouse_name": "_Test Rejected Warehouse", - "is_group": 0 - }, - { - "company": "_Test Company 1", - "doctype": "Warehouse", - "warehouse_name": "_Test Warehouse 2", - "is_group": 0 - }, - { - "company": "_Test Company", - "doctype": "Warehouse", - "warehouse_name": "_Test Warehouse No Account", - "is_group": 0 - }, - { - "company": "_Test Company", - "doctype": "Warehouse", - "warehouse_name": "_Test Warehouse Group", - "is_group": 1 - }, - { - "company": "_Test Company", - "doctype": "Warehouse", - "warehouse_name": "_Test Warehouse Group-C1", - "is_group": 0, - "parent_warehouse": "_Test Warehouse Group - _TC" - }, - { - "company": "_Test Company", - "doctype": "Warehouse", - "warehouse_name": "_Test Warehouse Group-C2", - "is_group": 0, - "parent_warehouse": "_Test Warehouse Group - _TC" - } -] diff --git a/erpnext/stock/doctype/warehouse/test_records.toml b/erpnext/stock/doctype/warehouse/test_records.toml new file mode 100644 index 00000000000..303d0550b69 --- /dev/null +++ b/erpnext/stock/doctype/warehouse/test_records.toml @@ -0,0 +1,52 @@ +[[Warehouse]] +company = "_Test Company" +warehouse_name = "_Test Warehouse" +is_group = 0 + +[[Warehouse]] +company = "_Test Company" +warehouse_name = "_Test Scrap Warehouse" +is_group = 0 + +[[Warehouse]] +company = "_Test Company" +warehouse_name = "_Test Warehouse 1" +is_group = 0 + +[[Warehouse]] +company = "_Test Company" +warehouse_name = "_Test Warehouse 2" +is_group = 0 + +[[Warehouse]] +company = "_Test Company" +warehouse_name = "_Test Rejected Warehouse" +is_group = 0 + +[[Warehouse]] +company = "_Test Company 1" +warehouse_name = "_Test Warehouse 2" +is_group = 0 + +[[Warehouse]] +company = "_Test Company" +warehouse_name = "_Test Warehouse No Account" +is_group = 0 + +[[Warehouse]] +company = "_Test Company" +warehouse_name = "_Test Warehouse Group" +is_group = 1 + +[[Warehouse]] +company = "_Test Company" +warehouse_name = "_Test Warehouse Group-C1" +is_group = 0 +parent_warehouse = "_Test Warehouse Group - _TC" + +[[Warehouse]] +company = "_Test Company" +warehouse_name = "_Test Warehouse Group-C2" +is_group = 0 +parent_warehouse = "_Test Warehouse Group - _TC" +