printStatementsByCustomerType::printStatementsByCustomerType(QWidget* parent, const char* name, bool modal, Qt::WindowFlags fl) : printSinglecopyDocument(parent, name, modal, fl) { setupUi(optionsWidget()); setWindowTitle(optionsWidget()->windowTitle()); _asOf->setDate(omfgThis->dbDate(), true); _customerTypes->setType(ParameterGroup::CustomerType); if (_preferences->boolean("XCheckBox/forgetful")) _dueonly->setChecked(true); setPrintEnabled(true); setDoctype("AR"); setReportKey("cust_id"); bool ok = false; QString msg; MetaSQLQuery custm = MQLUtil::mqlLoad("customers", "statement", msg, &ok); if (ok) _docinfoQueryString = custm.getSource(); else ErrorReporter::error(QtCriticalMsg, this, tr("Getting Customers to Print"), msg, __FILE__, __LINE__); }
void printQuote::sHandleButtons() { setPrintEnabled(_quote->isValid() && _report->isValid()); }
void printPoForm::sHandleButtons() { setPrintEnabled(_po->isValid() && _report->isValid()); }