package info.bukova.isspst.ui.reporting;

import info.bukova.isspst.reporting.ReportDefinition;
import info.bukova.isspst.ui.DocumentViewModel;

import org.zkoss.bind.annotation.Init;
import org.zkoss.zk.ui.select.annotation.WireVariable;

public class OrderOptionsVM extends DocumentViewModel
{
	private boolean printPrices;
	@WireVariable
	private ReportDefinition reportDefinition;
	
	@Init(superclass = true)
	public void init() {
		printPrices = true;
		reportDefinition.setParam("SET_PRICES", true);
	}

	public boolean isPrintPrices() {
		return printPrices;
	}

	public void setPrintPrices(boolean printPrices) {
		this.printPrices = printPrices;
		reportDefinition.setParam("SET_PRICES", printPrices);
	}

}
