2009-10-26 15:28:39 +00:00
|
|
|
#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);
|
2009-11-11 09:52:02 +00:00
|
|
|
if (oggi >= 20091230)
|
2009-10-26 15:28:39 +00:00
|
|
|
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;
|
|
|
|
}
|