// Copyright (c) 2013, Web Notes Technologies Pvt. Ltd.
// License: GNU General Public License v3. See license.txt
erpnext.fs = {}
pscript['onload_Financial Statements'] = function(wrapper) {
	wn.ui.make_app_page({
		parent: wrapper,
		"title": "Financial Statements",
		"single_column": true,
	});
	
	erpnext.fs.stmt_type = wrapper.appframe.add_field({
		fieldtype:"Select",
		fieldname:"stmt_type",
		options: ['Select Statement...','Balance Sheet','Profit & Loss']
	})
	erpnext.fs.stmt_company = wrapper.appframe.add_field({
		fieldtype:"Select",
		fieldname:"stmt_company",
		options: ['Loading Companies...']
	})
	erpnext.fs.stmt_period = wrapper.appframe.add_field({
		fieldtype:"Select",
		fieldname:"stmt_period",
		options: ['Select Period...', 'Annual', 'Quarterly', 'Monthly']
	})
	erpnext.fs.stmt_fiscal_year = wrapper.appframe.add_field({
		fieldtype:"Select",
		fieldname:"stmt_fiscal_year",
		options: ['Loading...']
	})
	wrapper.appframe.add_button("Create", function() {
		pscript.stmt_new();
	}, "icon-refresh")
	wrapper.appframe.add_button("Print", function() {
		_p.go($i('print_html').innerHTML);
	}, "icon-print")
		
	$(wrapper).find(".layout-main").html('
\
		
\
		
\
		
Please select options and click on Create
\