mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-12 17:23:38 +00:00
chore(tests): move to compact, human readable, commentable toml layout for test records
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
[
|
||||
{
|
||||
"doctype": "Account",
|
||||
"name": "_Test Account 1"
|
||||
}
|
||||
]
|
||||
3
erpnext/accounts/doctype/account/test_records.toml
Normal file
3
erpnext/accounts/doctype/account/test_records.toml
Normal file
@@ -0,0 +1,3 @@
|
||||
[[Account]]
|
||||
name = "_Test Account 1"
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
18
erpnext/accounts/doctype/cost_center/test_records.toml
Normal file
18
erpnext/accounts/doctype/cost_center/test_records.toml
Normal file
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
28
erpnext/accounts/doctype/dunning_type/test_records.toml
Normal file
28
erpnext/accounts/doctype/dunning_type/test_records.toml
Normal file
@@ -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."
|
||||
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
62
erpnext/accounts/doctype/item_tax_template/test_records.toml
Normal file
62
erpnext/accounts/doctype/item_tax_template/test_records.toml
Normal file
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
81
erpnext/accounts/doctype/journal_entry/test_records.toml
Normal file
81
erpnext/accounts/doctype/journal_entry/test_records.toml
Normal file
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
}]
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
28
erpnext/accounts/doctype/payment_term/test_records.toml
Normal file
28
erpnext/accounts/doctype/payment_term/test_records.toml
Normal file
@@ -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
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
194
erpnext/accounts/doctype/purchase_invoice/test_records.toml
Normal file
194
erpnext/accounts/doctype/purchase_invoice/test_records.toml
Normal file
@@ -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
|
||||
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
377
erpnext/accounts/doctype/sales_invoice/test_records.toml
Normal file
377
erpnext/accounts/doctype/sales_invoice/test_records.toml
Normal file
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
}]
|
||||
}
|
||||
]
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
[
|
||||
{
|
||||
"doctype": "Share Type",
|
||||
"title": "Class A"
|
||||
},
|
||||
{
|
||||
"doctype": "Share Type",
|
||||
"title": "Class B"
|
||||
}
|
||||
]
|
||||
6
erpnext/accounts/doctype/share_type/test_records.toml
Normal file
6
erpnext/accounts/doctype/share_type/test_records.toml
Normal file
@@ -0,0 +1,6 @@
|
||||
[["Share Type"]]
|
||||
title = "Class A"
|
||||
|
||||
[["Share Type"]]
|
||||
title = "Class B"
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
15
erpnext/accounts/doctype/shareholder/test_records.toml
Normal file
15
erpnext/accounts/doctype/shareholder/test_records.toml
Normal file
@@ -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"
|
||||
|
||||
@@ -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"}
|
||||
]
|
||||
}
|
||||
]
|
||||
97
erpnext/accounts/doctype/shipping_rule/test_records.toml
Normal file
97
erpnext/accounts/doctype/shipping_rule/test_records.toml
Normal file
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
9
erpnext/accounts/doctype/tax_category/test_records.toml
Normal file
9
erpnext/accounts/doctype/tax_category/test_records.toml
Normal file
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
24
erpnext/accounts/doctype/tax_rule/test_records.toml
Normal file
24
erpnext/accounts/doctype/tax_rule/test_records.toml
Normal file
@@ -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"
|
||||
|
||||
@@ -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.###"
|
||||
}
|
||||
]
|
||||
75
erpnext/assets/doctype/asset_maintenance/test_records.toml
Normal file
75
erpnext/assets/doctype/asset_maintenance/test_records.toml
Normal file
@@ -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.###"
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
37
erpnext/assets/doctype/location/test_records.toml
Normal file
37
erpnext/assets/doctype/location/test_records.toml
Normal file
@@ -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
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
31
erpnext/buying/doctype/purchase_order/test_records.toml
Normal file
31
erpnext/buying/doctype/purchase_order/test_records.toml
Normal file
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
40
erpnext/buying/doctype/supplier/test_records.toml
Normal file
40
erpnext/buying/doctype/supplier/test_records.toml
Normal file
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
26
erpnext/buying/doctype/supplier_quotation/test_records.toml
Normal file
26
erpnext/buying/doctype/supplier_quotation/test_records.toml
Normal file
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
27
erpnext/crm/doctype/lead/test_records.toml
Normal file
27
erpnext/crm/doctype/lead/test_records.toml
Normal file
@@ -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"
|
||||
|
||||
@@ -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
|
||||
}]
|
||||
}
|
||||
]
|
||||
13
erpnext/crm/doctype/opportunity/test_records.toml
Normal file
13
erpnext/crm/doctype/opportunity/test_records.toml
Normal file
@@ -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
|
||||
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
[
|
||||
]
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
169
erpnext/manufacturing/doctype/bom/test_records.toml
Normal file
169
erpnext/manufacturing/doctype/bom/test_records.toml
Normal file
@@ -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
|
||||
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
[
|
||||
{
|
||||
"doctype": "Operation",
|
||||
"name": "_Test Operation 1",
|
||||
"workstation": "_Test Workstation 1"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,4 @@
|
||||
[[Operation]]
|
||||
name = "_Test Operation 1"
|
||||
workstation = "_Test Workstation 1"
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
14
erpnext/manufacturing/doctype/workstation/test_records.toml
Normal file
14
erpnext/manufacturing/doctype/workstation/test_records.toml
Normal file
@@ -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"
|
||||
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
[]
|
||||
@@ -1,11 +0,0 @@
|
||||
[
|
||||
{
|
||||
"activity_type": "_Test Activity Type"
|
||||
},
|
||||
{
|
||||
"activity_type": "_Test Activity Type 1"
|
||||
},
|
||||
{
|
||||
"activity_type": "_Test Activity Type 2"
|
||||
}
|
||||
]
|
||||
9
erpnext/projects/doctype/activity_type/test_records.toml
Normal file
9
erpnext/projects/doctype/activity_type/test_records.toml
Normal file
@@ -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"
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
[
|
||||
{
|
||||
"project_name": "_Test Project",
|
||||
"status": "Open"
|
||||
}
|
||||
]
|
||||
4
erpnext/projects/doctype/project/test_records.toml
Normal file
4
erpnext/projects/doctype/project/test_records.toml
Normal file
@@ -0,0 +1,4 @@
|
||||
[[Project]]
|
||||
project_name = "_Test Project"
|
||||
status = "Open"
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
54
erpnext/selling/doctype/customer/test_records.toml
Normal file
54
erpnext/selling/doctype/customer/test_records.toml
Normal file
@@ -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"
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
[
|
||||
{
|
||||
"doctype": "Industry Type",
|
||||
"industry": "_Test Industry"
|
||||
},
|
||||
{
|
||||
"doctype": "Industry Type",
|
||||
"industry": "_Test Industry 1"
|
||||
}
|
||||
]
|
||||
6
erpnext/selling/doctype/industry_type/test_records.toml
Normal file
6
erpnext/selling/doctype/industry_type/test_records.toml
Normal file
@@ -0,0 +1,6 @@
|
||||
[["Industry Type"]]
|
||||
industry = "_Test Industry"
|
||||
|
||||
[["Industry Type"]]
|
||||
industry = "_Test Industry 1"
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
[
|
||||
]
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
15
erpnext/selling/doctype/product_bundle/test_records.toml
Normal file
15
erpnext/selling/doctype/product_bundle/test_records.toml
Normal file
@@ -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
|
||||
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
32
erpnext/selling/doctype/quotation/test_records.toml
Normal file
32
erpnext/selling/doctype/quotation/test_records.toml
Normal file
@@ -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
|
||||
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
34
erpnext/selling/doctype/sales_order/test_records.toml
Normal file
34
erpnext/selling/doctype/sales_order/test_records.toml
Normal file
@@ -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"
|
||||
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
[]
|
||||
@@ -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"
|
||||
}]
|
||||
}
|
||||
]
|
||||
13
erpnext/setup/doctype/brand/test_records.toml
Normal file
13
erpnext/setup/doctype/brand/test_records.toml
Normal file
@@ -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"
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
98
erpnext/setup/doctype/company/test_records.toml
Normal file
98
erpnext/setup/doctype/company/test_records.toml
Normal file
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
48
erpnext/setup/doctype/currency_exchange/test_records.toml
Normal file
48
erpnext/setup/doctype/currency_exchange/test_records.toml
Normal file
@@ -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
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
10
erpnext/setup/doctype/customer_group/test_records.toml
Normal file
10
erpnext/setup/doctype/customer_group/test_records.toml
Normal file
@@ -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"
|
||||
|
||||
@@ -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"}
|
||||
]
|
||||
10
erpnext/setup/doctype/department/test_records.toml
Normal file
10
erpnext/setup/doctype/department/test_records.toml
Normal file
@@ -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"
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
[]
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
33
erpnext/setup/doctype/employee/test_records.toml
Normal file
33
erpnext/setup/doctype/employee/test_records.toml
Normal file
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
17
erpnext/setup/doctype/holiday_list/test_records.toml
Normal file
17
erpnext/setup/doctype/holiday_list/test_records.toml
Normal file
@@ -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"
|
||||
|
||||
|
||||
@@ -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": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
89
erpnext/setup/doctype/item_group/test_records.toml
Normal file
89
erpnext/setup/doctype/item_group/test_records.toml
Normal file
@@ -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 = ""
|
||||
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
[
|
||||
{
|
||||
"print_heading": "_Test Print Heading"
|
||||
}
|
||||
]
|
||||
3
erpnext/setup/doctype/print_heading/test_records.toml
Normal file
3
erpnext/setup/doctype/print_heading/test_records.toml
Normal file
@@ -0,0 +1,3 @@
|
||||
[["Print Heading"]]
|
||||
print_heading = "_Test Print Heading"
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
[
|
||||
{
|
||||
"doctype": "Quotation Lost Reason",
|
||||
"order_lost_reason": "_Test Quotation Lost Reason"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,3 @@
|
||||
[["Quotation Lost Reason"]]
|
||||
order_lost_reason = "_Test Quotation Lost Reason"
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
[]
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
18
erpnext/setup/doctype/sales_person/test_records.toml
Normal file
18
erpnext/setup/doctype/sales_person/test_records.toml
Normal file
@@ -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"
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
[
|
||||
{
|
||||
"doctype": "Supplier Group",
|
||||
"supplier_group_name": "_Test Supplier Group",
|
||||
"parent_supplier_group": "All Supplier Groups"
|
||||
}
|
||||
]
|
||||
|
||||
4
erpnext/setup/doctype/supplier_group/test_records.toml
Normal file
4
erpnext/setup/doctype/supplier_group/test_records.toml
Normal file
@@ -0,0 +1,4 @@
|
||||
[["Supplier Group"]]
|
||||
supplier_group_name = "_Test Supplier Group"
|
||||
parent_supplier_group = "All Supplier Groups"
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
[
|
||||
{
|
||||
"terms": "_Test Terms",
|
||||
"title": "_Test Terms and Conditions"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,4 @@
|
||||
[["Terms And Conditions"]]
|
||||
terms = "_Test Terms"
|
||||
title = "_Test Terms and Conditions"
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user