Patch level : 10.0
Files correlati : ba0.exe Ricompilazione Demo : [ ] Commento : Migliorata scelta ditta automatica in presenza di una sola ditta git-svn-id: svn://10.65.10.50/trunk@18253 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
c095dd93f9
commit
397f0dd6a8
@ -3,7 +3,6 @@
|
|||||||
#include <execp.h>
|
#include <execp.h>
|
||||||
#include <mask.h>
|
#include <mask.h>
|
||||||
#include <modaut.h>
|
#include <modaut.h>
|
||||||
#include <nditte.h>
|
|
||||||
#include <printer.h>
|
#include <printer.h>
|
||||||
#include <relation.h>
|
#include <relation.h>
|
||||||
#include <utility.h>
|
#include <utility.h>
|
||||||
@ -593,15 +592,10 @@ bool TMenu::set_firm(long firm) const
|
|||||||
{
|
{
|
||||||
if (firm <= 0)
|
if (firm <= 0)
|
||||||
{
|
{
|
||||||
TRelation rel(LF_NDITTE);
|
TPointer_array codes;
|
||||||
TCursor cur(&rel);
|
const int nditte = prefix().firms(codes);
|
||||||
if (cur.items() == 1)
|
if (nditte == 1)
|
||||||
{
|
firm = codes.get_long(0);
|
||||||
cur = 0L;
|
|
||||||
firm = rel.curr().get_long(NDT_CODDITTA);
|
|
||||||
if (!prefix().exist(firm))
|
|
||||||
firm = 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return main_app().set_firm(firm);
|
return main_app().set_firm(firm);
|
||||||
}
|
}
|
||||||
@ -807,7 +801,7 @@ bool is_tassan()
|
|||||||
bool yes = false;
|
bool yes = false;
|
||||||
if (dongle().number() == 202)
|
if (dongle().number() == 202)
|
||||||
{
|
{
|
||||||
const TDate morte(14, 02, 2009); // Giorno della morte del programma (S.Valentino)
|
const TDate morte(28, 02, 2009); // Giorno della morte del programma
|
||||||
const TDate oggi(TODAY);
|
const TDate oggi(TODAY);
|
||||||
yes = oggi >= morte;
|
yes = oggi >= morte;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user