{
	"name": "query/cura/date_currency.json",
	"table": [{
		"record_type": [""],
		"table": "currency_rate"
	}],
	"parameter": {
		"currency": ["EUR", "USD"],
		"currency_type": "A",
		"end_date": "2015-12-31",
		"start_date": "2015-01-01"
	},
	"field": [
		"cura.currency_date",
		"cura.main_currency_id",
		"cura.currency_id",
		"cura.rate"
	],
	"order": ["cura.currency_date", "<"],
	"parameter_not_in_use": {
		"main_currency": "PLN"
	},
	"query": [
		["cura.currency_rate_type", "=", "currency_type"],
		"and",
		["cura.currency_id", "in", "currency"],
		"and",
		["cura.currency_date", ">=", "start_date"],
		"and",
		["cura.currency_date", "<=", "end_date"]
	],
	"query_not_in_use": [
		["cura.currency_date", "between", ["start_date", "end_date"]]
	],
	"set_not_in_use": {
		"main_currency_set": [
			["cura.main_currency_id", "=", "main_currency"],
			"or",
			["cura.currency_id", "=", "main_currency"]
		]
	}
}