first re-commit.
This commit is contained in:
67
miniCashConnect/mcceditview.h
Normal file
67
miniCashConnect/mcceditview.h
Normal file
@@ -0,0 +1,67 @@
|
||||
/***************************************************************************
|
||||
|
||||
miniCashConnect
|
||||
Copyright © 2022 christoph holzheuer
|
||||
c.holzheuer@sourceworx.org
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef MCCEDITVIEW_H
|
||||
#define MCCEDITVIEW_H
|
||||
|
||||
#include <QWidget>
|
||||
#include <QRegularExpressionValidator>
|
||||
|
||||
#include <libMiniCash.h>
|
||||
#include <ui_mcceditview.h>
|
||||
#include <mcsalesmodel.h>
|
||||
|
||||
|
||||
class MCMainWindowBase;
|
||||
|
||||
|
||||
/**
|
||||
* @brief Dieses Widget zeigt die aktuelle Transaktionsdatei an und ermöglicht Änderungen
|
||||
* und Stornos.
|
||||
*/
|
||||
|
||||
class MCCEditView : public QWidget, private Ui_MCCEditView
|
||||
{
|
||||
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
|
||||
explicit MCCEditView( QWidget* parent = nullptr );
|
||||
virtual ~MCCEditView();
|
||||
|
||||
void setupDefaults( MCMainWindowBase* parent );
|
||||
void loadTransactions( const QString& fileName );
|
||||
|
||||
public slots:
|
||||
|
||||
void onSearch();
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
void accept();
|
||||
|
||||
MCMainWindowBase* _parent = nullptr;
|
||||
MCSalesModel _salesModel;
|
||||
int _poscount = 1; /// Verkaufsposition innerhanlb des aktuellen Vorgangs
|
||||
double _overallSum = 0.0; /// Gesamtpreis der aktuellen Verkaufstransaktion
|
||||
|
||||
QRegularExpressionValidator _valCustId; /// Validator für die Kundennnummer
|
||||
QRegularExpressionValidator _valItemNo; /// Validator für die laufende Nummer des Artikels
|
||||
QRegularExpressionValidator _valPrice; /// Validator für die Preisangabe
|
||||
|
||||
};
|
||||
|
||||
#endif // MCCEDITVIEW_H
|
Reference in New Issue
Block a user