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 <mask.h>
|
||||
#include <modaut.h>
|
||||
#include <nditte.h>
|
||||
#include <printer.h>
|
||||
#include <relation.h>
|
||||
#include <utility.h>
|
||||
@ -593,15 +592,10 @@ bool TMenu::set_firm(long firm) const
|
||||
{
|
||||
if (firm <= 0)
|
||||
{
|
||||
TRelation rel(LF_NDITTE);
|
||||
TCursor cur(&rel);
|
||||
if (cur.items() == 1)
|
||||
{
|
||||
cur = 0L;
|
||||
firm = rel.curr().get_long(NDT_CODDITTA);
|
||||
if (!prefix().exist(firm))
|
||||
firm = 0;
|
||||
}
|
||||
TPointer_array codes;
|
||||
const int nditte = prefix().firms(codes);
|
||||
if (nditte == 1)
|
||||
firm = codes.get_long(0);
|
||||
}
|
||||
return main_app().set_firm(firm);
|
||||
}
|
||||
@ -807,7 +801,7 @@ bool is_tassan()
|
||||
bool yes = false;
|
||||
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);
|
||||
yes = oggi >= morte;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user