blob: 2ba5db56069acc9b2f209b675b6d0bfe61a2afa3 [file] [log] [blame]
Rushabh Mehta43ef4e92017-07-03 11:53:07 +05301$.extend(frappe.test_data, {
Shivam Mishra3fe5ecc2017-07-11 10:33:07 +05302 "Customer": {
3 "Test Customer 1": [
4 {customer_name: "Test Customer 1"}
Rushabh Mehta43ef4e92017-07-03 11:53:07 +05305 ],
Shivam Mishra3fe5ecc2017-07-11 10:33:07 +05306 "Test Customer 2": [
7 {customer_name: "Test Customer 2"}
Rushabh Mehta43ef4e92017-07-03 11:53:07 +05308 ],
Shivam Mishra3fe5ecc2017-07-11 10:33:07 +05309 "Test Customer 3": [
10 {customer_name: "Test Customer 3"}
Rushabh Mehta43ef4e92017-07-03 11:53:07 +053011 ],
12 },
Shivam Mishra3fe5ecc2017-07-11 10:33:07 +053013 "Item": {
14 "Test Product 1": [
15 {item_code: "Test Product 1"},
16 {item_group: "Products"},
Rushabh Mehta43ef4e92017-07-03 11:53:07 +053017 {is_stock_item: 1},
18 {standard_rate: 100},
19 {opening_stock: 100},
20 ],
Shivam Mishra3fe5ecc2017-07-11 10:33:07 +053021 "Test Product 2": [
22 {item_code: "Test Product 2"},
23 {item_group: "Products"},
Rushabh Mehta43ef4e92017-07-03 11:53:07 +053024 {is_stock_item: 1},
25 {standard_rate: 150},
26 {opening_stock: 200},
27 ],
Shivam Mishra3fe5ecc2017-07-11 10:33:07 +053028 "Test Product 3": [
29 {item_code: "Test Product 3"},
30 {item_group: "Products"},
Rushabh Mehta43ef4e92017-07-03 11:53:07 +053031 {is_stock_item: 1},
32 {standard_rate: 250},
33 {opening_stock: 100},
34 ],
Shivam Mishra3fe5ecc2017-07-11 10:33:07 +053035 "Test Service 1": [
36 {item_code: "Test Service 1"},
37 {item_group: "Services"},
Rushabh Mehta43ef4e92017-07-03 11:53:07 +053038 {is_stock_item: 0},
39 {standard_rate: 200}
40 ],
Shivam Mishra3fe5ecc2017-07-11 10:33:07 +053041 "Test Service 2": [
42 {item_code: "Test Service 2"},
43 {item_group: "Services"},
Rushabh Mehta43ef4e92017-07-03 11:53:07 +053044 {is_stock_item: 0},
45 {standard_rate: 300}
46 ]
Shivam Mishra3fe5ecc2017-07-11 10:33:07 +053047 },
48 "Lead": {
49 "LEAD-00001": [
50 {lead_name: "Test Lead 1"}
51 ],
52 "LEAD-00002": [
53 {lead_name: "Test Lead 2"}
54 ],
55 "LEAD-00003": [
56 {lead_name: "Test Lead 3"}
57 ]
58 },
59 "Address": {
60 "Test1-Billing": [
61 {address_title:"Test1"},
62 {address_type: "Billing"},
63 {address_line1: "Billing Street 1"},
64 {city: "Billing City 1"},
65 {links: [
66 [
67 {link_doctype: "Customer"},
68 {link_name: "Test Customer 1"}
69 ]
70 ]}
71 ],
72 "Test1-Shipping": [
73 {address_title:"Test1"},
74 {address_type: "Shipping"},
75 {address_line1: "Shipping Street 1"},
76 {city: "Shipping City 1"},
77 {links: [
78 [
79 {link_doctype: "Customer"},
80 {link_name: "Test Customer 1"}
81 ]
82 ]}
83 ],
84 "Test1-Warehouse": [
85 {address_title:"Test1"},
86 {address_type: "Warehouse"},
87 {address_line1: "Warehouse Street 1"},
88 {city: "Warehouse City 1"},
89 {links: [
90 [
91 {link_doctype: "Customer"},
92 {link_name: "Test Customer 1"}
93 ]
94 ]}
95 ],
96 "Test2-Billing": [
97 {address_title:"Test2"},
98 {address_type: "Billing"},
99 {address_line1: "Billing Street 2"},
100 {city: "Billing City 2"},
101 {links: [
102 [
103 {link_doctype: "Customer"},
104 {link_name: "Test Customer 2"}
105 ]
106 ]}
107 ],
108 "Test2-Shipping": [
109 {address_title:"Test2"},
110 {address_type: "Shipping"},
111 {address_line1: "Shipping Street 2"},
112 {city: "Shipping City 2"},
113 {links: [
114 [
115 {link_doctype: "Customer"},
116 {link_name: "Test Customer 2"}
117 ]
118 ]}
119 ],
120 "Test2-Warehouse": [
121 {address_title:"Test2"},
122 {address_type: "Warehouse"},
123 {address_line1: "Warehouse Street 2"},
124 {city: "Warehouse City 2"},
125 {links: [
126 [
127 {link_doctype: "Customer"},
128 {link_name: "Test Customer 2"}
129 ]
130 ]}
131 ]
132 },
133 "Contact": {
134 "Contact 1-Test Customer 1": [
135 {first_name: "Contact 1"},
136 {links: [
137 [
138 {link_doctype: "Customer"},
139 {link_name: "Test Customer 1"}
140 ]
141 ]}
142 ],
143 "Contact 2-Test Customer 1": [
144 {first_name: "Contact 2"},
145 {links: [
146 [
147 {link_doctype: "Customer"},
148 {link_name: "Test Customer 1"}
149 ]
150 ]}
151 ],
152 "Contact 1-Test Customer 2": [
153 {first_name: "Contact 1"},
154 {links: [
155 [
156 {link_doctype: "Customer"},
157 {link_name: "Test Customer 2"}
158 ]
159 ]}
160 ],
161 "Contact 2-Test Customer 2": [
162 {first_name: "Contact 2"},
163 {links: [
164 [
165 {link_doctype: "Customer"},
166 {link_name: "Test Customer 2"}
167 ]
168 ]}
169 ],
170 },
171 "Price List": {
172 "Test-Buying-USD": [
173 {price_list_name: "Test-Buying-USD"},
174 {currency: "USD"},
175 {buying: "1"}
176 ],
177 "Test-Buying-EUR": [
178 {price_list_name: "Test-Buying-EUR"},
179 {currency: "EUR"},
180 {buying: "1"}
181 ],
182 "Test-Selling-USD": [
183 {price_list_name: "Test-Selling-USD"},
184 {currency: "USD"},
185 {selling: "1"}
186 ],
187 "Test-Selling-EUR": [
188 {price_list_name: "Test-Selling-EUR"},
189 {currency: "EUR"},
190 {selling: "1"}
191 ],
192 },
193 "Terms and Conditions": {
194 "Test Term 1": [
195 {title: "Test Term 1"}
196 ],
197 "Test Term 2": [
198 {title: "Test Term 2"}
199 ]
200 },
201 "Sales Taxes and Charges Template": {
202 "TEST In State GST": [
203 {title: "TEST In State GST"},
204 {taxes:[
205 [
206 {charge_type:"On Net Total"},
207 {account_head:"CGST - "+frappe.get_abbr(frappe.defaults.get_default("Company")) }
208 ],
209 [
210 {charge_type:"On Net Total"},
211 {account_head:"SGST - "+frappe.get_abbr(frappe.defaults.get_default("Company")) }
212 ]
213 ]}
214 ]
Rushabh Mehta43ef4e92017-07-03 11:53:07 +0530215 }
Shivam Mishra3fe5ecc2017-07-11 10:33:07 +0530216});