Patch level :10.0 0188
Files correlati : Ricompilazione Demo : [ ] Commento :terminato fido git-svn-id: svn://10.65.10.50/trunk@17855 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
5ef69c811a
commit
5528812ec3
@ -41,7 +41,8 @@ BEGIN
|
||||
ITEM "Numerazione"
|
||||
ITEM "Descrizione@50"
|
||||
ITEM "Tipo"
|
||||
ITEM "Stato"
|
||||
ITEM "Da stato"
|
||||
ITEM "A stato"
|
||||
ITEM "Doc. a residuo"
|
||||
END
|
||||
|
||||
@ -88,16 +89,23 @@ BEGIN
|
||||
FIELD FIDO_TIP
|
||||
END
|
||||
|
||||
NUMBER SN_STATO 1
|
||||
NUMBER SN_DASTATO 1
|
||||
BEGIN
|
||||
PROMPT 1 4 "Stato "
|
||||
CHECKTYPE REQUIRED
|
||||
FIELD FIDO_STA
|
||||
PROMPT 1 4 "Da stato "
|
||||
CHECKTYPE NORMAL
|
||||
FIELD FIDO_DASTA
|
||||
END
|
||||
|
||||
NUMBER SN_ASTATO 1
|
||||
BEGIN
|
||||
PROMPT 1 5 "A stato "
|
||||
CHECKTYPE NORMAL
|
||||
FIELD FIDO_ASTA
|
||||
END
|
||||
|
||||
BOOLEAN SN_RESIDUO
|
||||
BEGIN
|
||||
PROMPT 1 5 "Documento a residuo "
|
||||
PROMPT 1 6 "Documento a residuo "
|
||||
FIELD FIDO_RES
|
||||
END
|
||||
|
||||
|
@ -207,6 +207,7 @@ Item_05 = "Contabilizzazione", "ve0 -2 -5", "F"
|
||||
Item_06 = "Gestione spese e bolli", "ve0 -2 -6", "F"
|
||||
Item_07 = "Articoli e Distinte", "ve0 -2 -7", "F"
|
||||
Item_08 = "Configurazione contabilita'", "cg5 -1", "F"
|
||||
Item_09 = "Fido cliente", "ve0 -2 -8", "F"
|
||||
|
||||
[ACQVEN_021]
|
||||
Caption = "Servizi"
|
||||
|
@ -281,8 +281,9 @@
|
||||
#define SN_CODNUM 101
|
||||
#define SN_DESCR 102
|
||||
#define SN_TIPO 103
|
||||
#define SN_STATO 104
|
||||
#define SN_RESIDUO 105
|
||||
#define SN_DASTATO 104
|
||||
#define SN_ASTATO 105
|
||||
#define SN_RESIDUO 106
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -3063,6 +3063,9 @@ void TDocumento_mask::user_set_handler(short fieldid, int index)
|
||||
case 5:
|
||||
set_field_handler(fieldid, dummy_hndl);
|
||||
break;
|
||||
case 6:
|
||||
set_field_handler(fieldid, fido_hndl);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@ -744,13 +744,14 @@ static real calcola_fido_da_documenti(const char tipocf, const long codcf, const
|
||||
if (num_fido.blank())
|
||||
break;
|
||||
const TString& tipo_fido = config.get("FIDO_TIP", NULL, j);
|
||||
const int stato_fido = config.get_int("FIDO_STA", NULL, j);
|
||||
const TString4 da_stato_fido = config.get("FIDO_DASTA", NULL, j);
|
||||
const TString4 a_stato_fido = config.get("FIDO_ASTA", NULL, j);
|
||||
const bool residuo_fido = config.get_bool("FIDO_RES", NULL, j);
|
||||
|
||||
//per la numerazione scelta queryzza gli archivi alla ricerca dei documenti che rientrano nei parametri
|
||||
TString query;
|
||||
query << "USE DOC KEY 2\n";
|
||||
query << "SELECT (CODNUM=#CODNUM)&&(TIPODOC=#TIPODOC)&&(STATO=#STATO)\n";
|
||||
query << "SELECT (CODNUM=#CODNUM)&&(TIPODOC=#TIPODOC)&&(BETWEEN(STATO,#DASTATO,#ASTATO))\n";
|
||||
query << "FROM TIPOCF=#TIPOCF CODCF=#CODCF PROVV='D'\n";
|
||||
query << "TO TIPOCF=#TIPOCF CODCF=#CODCF PROVV='D' ANNO=#ANNO DATADOC=#DATACALC";
|
||||
|
||||
@ -763,7 +764,8 @@ static real calcola_fido_da_documenti(const char tipocf, const long codcf, const
|
||||
documenti.set_var("#DATACALC", datacalc);
|
||||
documenti.set_var("#CODNUM", TVariant(num_fido));
|
||||
documenti.set_var("#TIPODOC", TVariant(tipo_fido));
|
||||
documenti.set_var("#STATO", TVariant((long)stato_fido));
|
||||
documenti.set_var("#DASTATO", TVariant(da_stato_fido));
|
||||
documenti.set_var("#ASTATO", TVariant(a_stato_fido));
|
||||
|
||||
const int items = documenti.items();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user