e106e46ff4
Files correlati : Ricompilazione Demo : [ ] Commento :modulo per utenti paganti git-svn-id: svn://10.65.10.50/trunk@19603 c028cbd2-c16b-5b4b-a496-9718f37d4682
38 lines
781 B
C++
Executable File
38 lines
781 B
C++
Executable File
#include <applicat.h>
|
|
#include <utility.h>
|
|
|
|
#include "velib07.h"
|
|
#include "../ba/ba8500.h"
|
|
|
|
///////////////////////////////////////////////////////////
|
|
// TGeneral_sell
|
|
///////////////////////////////////////////////////////////
|
|
|
|
class TGeneral_sell : public TKlarkKent_app
|
|
{
|
|
protected:
|
|
virtual bool create();
|
|
};
|
|
|
|
bool TGeneral_sell::create()
|
|
{
|
|
//controlla che solo il producer AGA possa usare questo programma
|
|
if (!is_power_reseller())
|
|
{
|
|
return error_box(TR("Programma non autorizzato!"));
|
|
|
|
//se non paghi ti stronco!!!
|
|
const TDate oggi(TODAY);
|
|
if (oggi >= 20091230)
|
|
return false;
|
|
}
|
|
return TKlarkKent_app::create();
|
|
}
|
|
|
|
int ve3900(int argc, char* argv[])
|
|
{
|
|
TGeneral_sell app;
|
|
app.run(argc, argv, TR("Stampe Acquisti/Vendite"));
|
|
return 0;
|
|
}
|