Commit 6d965f9f authored by Hugo Hörnquist's avatar Hugo Hörnquist

Add money diff reset button

parent dbdc3ab2
...@@ -893,3 +893,9 @@ void MainWindow::on_quickInventoryCheckBox_toggled(bool checked) ...@@ -893,3 +893,9 @@ void MainWindow::on_quickInventoryCheckBox_toggled(bool checked)
? "sale_status = 0 or expected != 0" ? "sale_status = 0 or expected != 0"
: "sale_status in (0, 1)"); : "sale_status in (0, 1)");
} }
void MainWindow::on_moneyDiffReload_clicked()
{
ui->diffDrawer->setText("");
setMoneyDiffLabels();
}
...@@ -77,6 +77,8 @@ private slots: ...@@ -77,6 +77,8 @@ private slots:
void on_quickInventoryCheckBox_toggled(bool checked); void on_quickInventoryCheckBox_toggled(bool checked);
void on_moneyDiffReload_clicked();
private: private:
Ui::MainWindow *ui; Ui::MainWindow *ui;
QSqlTableModel* model; QSqlTableModel* model;
......
...@@ -420,6 +420,13 @@ ...@@ -420,6 +420,13 @@
</property> </property>
</spacer> </spacer>
</item> </item>
<item>
<widget class="QPushButton" name="moneyDiffReload">
<property name="text">
<string>Ladda om</string>
</property>
</widget>
</item>
<item> <item>
<widget class="QPushButton" name="diffSubmit"> <widget class="QPushButton" name="diffSubmit">
<property name="text"> <property name="text">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment