{
	"namespace": "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"",
	"linebreak": "\r\n",
	"convert": [
		[
			"/ArrayOfInvoice",
			"=",
			""
		],
		[
			"/ArrayOfInvoice/Invoice",
			"=",
			[
				"inv",
				[
					[
						"Invoice_date",
						"=",
						"ord.order_date"
					],
					[
						"Invoice_customer_number",
						"=",
						["linkedFieldValue",["ord.invoicing_company_id", "co.json_data.company_number"]]
					],
					[
						"Invoice_customer_name1",
						"=",
						"ord.json_data.invoicing_address.name"
					],
					[
						"Invoice_delivery_customer_number",
						"=",
						"ord.json_data.delivery_address.company_number"
					],
					[
						"Language_code",
						"=",
						["from_preference","test/convert/test_inv_to_xml_preference.language_code[ord.json_data.invoicing_address.country]", "FIN"]
					],
					[
						"Payment_term",
						"=",
						"top.json_data.export_code"
					],
					[
						["if",	[["linkedFieldValue",["ord.invoicing_company_id", "co.json_data.send_type"]], "=", "EDI"],
							[
								["/ArrayOfInvoice/Invoice/Invoice_Method_Id", "=", "13"],
								["xyz", "=", "X"]
							],
						"elseif", [["linkedFieldValue",["ord.invoicing_company_id", "co.json_data.send_type"]], "=", "EDIz"],
							[
								["Invoice_Method_Id", "=", "EDI"]
							],
						"else",
							[
								["Invoice_Method_Id", "=", "17"]
							]
						]
					],
					[
						"Person_seller_number",
						"=",
						["linkedFieldValue",["invr.1.ordr.json_data.employee_id", "per.json_data.employee_number"]]
					],
					[
						"/ArrayOfInvoice/Invoice/InvoiceRows/InvoiceRow",
						"=",
						[
							"invr",
							[
								[
									"Row_productcode",
									"=",
									"ordr.product_id"
								],
								[
									"Accountlist_account",
									"=",
									["linkedFieldValue",["ordr.order_code_id", "ordc.account_id"]]
								]
							]
						]
					]
				]
			]
		]
	]
}
