Patch level : 10.0
Files correlati : Ricompilazione Demo : [ ] Commento : Aggiunto flag per ricaricamento descrizione in elaborazione git-svn-id: svn://10.65.10.50/branches/R_10_00@22508 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
b559577672
commit
e5bad22480
@ -186,6 +186,7 @@ public:
|
||||
bool pack_rif() const { return get_bool("B15"); }
|
||||
bool calcola_scarti() const { return get_bool("B11"); }
|
||||
bool reload_prices() const { return get_bool("B13"); }
|
||||
bool reload_descriptions() const { return reload_prices() && get_bool("B14"); }
|
||||
const TString & num_riferimenti_in() const { return get("S11"); }
|
||||
|
||||
int intestazioni_sheet() const { return get_int("I1"); }
|
||||
|
@ -644,7 +644,7 @@ bool TConsegna_ordini::elabora(TLista_documenti& doc_in, TLista_documenti& doc_o
|
||||
outrec.put(RDOC_QTA, UNO);
|
||||
}
|
||||
aggiorna_ncolli_tara_pnetto(outrec);
|
||||
if (outrec.tipo().tipo() != RIGA_DESCRIZIONI && kill_descrizione_estesa()) // Cancello eventualmente la descrizione estesa
|
||||
if (kill_descrizione_estesa() && outrec.tipo().tipo() != RIGA_DESCRIZIONI) // Cancello eventualmente la descrizione estesa
|
||||
{
|
||||
outrec.zero(RDOC_DESCLUNGA);
|
||||
outrec.zero(RDOC_DESCEST);
|
||||
@ -659,9 +659,16 @@ bool TConsegna_ordini::elabora(TLista_documenti& doc_in, TLista_documenti& doc_o
|
||||
outrec.zero(RDOC_CHECKED);
|
||||
|
||||
const TString& codiva = outdoc.codesiva();
|
||||
|
||||
if (codiva.full())
|
||||
if (codiva.full())
|
||||
outrec.put(RDOC_CODIVA, codiva);
|
||||
|
||||
const TString& codart = outrec.get(RDOC_CODARTMAG);
|
||||
if (codart.full() && reload_descriptions())
|
||||
{
|
||||
outrec.put(RDOC_DESCR, cache().get(LF_ANAMAG, codart, ANAMAG_DESCR));
|
||||
outrec.zero(RDOC_DESCLUNGA);
|
||||
outrec.zero(RDOC_DESCEST);
|
||||
}
|
||||
}
|
||||
|
||||
if (prezzo_da_ordine())
|
||||
|
@ -1675,7 +1675,7 @@ bool codart_handler(TMask_field& f, KEY key )
|
||||
}
|
||||
desc << ' ' << dicitura_omaggio;
|
||||
}
|
||||
if (lingua.not_empty())
|
||||
if (lingua.full())
|
||||
{
|
||||
TLocalisamfile deslin(LF_DESLIN);
|
||||
deslin.setkey(2);
|
||||
@ -1683,13 +1683,7 @@ bool codart_handler(TMask_field& f, KEY key )
|
||||
deslin.put(DESLIN_CODLIN, lingua);
|
||||
if (deslin.read() == NOERR)
|
||||
{
|
||||
static int __lingua_only = 3;
|
||||
|
||||
if (__lingua_only > 2)
|
||||
{
|
||||
TConfig c(CONFIG_DITTA, "ve");
|
||||
__lingua_only = c.get_bool("LINGUA_ONLY");
|
||||
}
|
||||
static bool __lingua_only = ini_get_bool(CONFIG_DITTA, "ve", "LINGUA_ONLY");
|
||||
if (__lingua_only)
|
||||
desc = deslin.get(DESLIN_DESCR);
|
||||
else
|
||||
@ -1769,7 +1763,7 @@ bool codart_handler(TMask_field& f, KEY key )
|
||||
{
|
||||
const TRectype & rec = cache().get(LF_ANAMAG, row_mask.get(FR_CODARTMAG));
|
||||
if (rec.get_bool(ANAMAG_SOSPESO))
|
||||
return error_box(TR("Articolo %s sospeso, quindi non movimentabile"), (const char *)codart);
|
||||
return error_box(FR("Articolo %s sospeso, quindi non movimentabile"), (const char *)codart);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -53,7 +53,7 @@
|
||||
#define F_RELOAD_PRICES 174
|
||||
#define F_CHGCF 175
|
||||
#define F_PACKRIF 176
|
||||
|
||||
#define F_RELOAD_DESCR 177
|
||||
|
||||
#define H_DOC1 180
|
||||
#define H_DOC2 181
|
||||
|
@ -532,6 +532,15 @@ BEGIN
|
||||
PROMPT 45 17 "Ricarica i prezzi"
|
||||
FIELD B13
|
||||
GROUP 1
|
||||
MESSAGE FALSE DISABLE,F_RELOAD_DESCR
|
||||
MESSAGE TRUE ENABLE,F_RELOAD_DESCR
|
||||
END
|
||||
|
||||
BOOLEAN F_RELOAD_DESCR
|
||||
BEGIN
|
||||
PROMPT 45 18 "Ricarica le descrizioni"
|
||||
FIELD B14
|
||||
GROUP 1
|
||||
END
|
||||
|
||||
RADIOBUTTON F_PROTOCOLLO 1 38
|
||||
@ -545,7 +554,7 @@ END
|
||||
|
||||
BOOLEAN F_AGGIORNA_TESTATA
|
||||
BEGIN
|
||||
PROMPT 2 18 "Aggiorna testata dopo l'elaborazione, se il documento e' vuoto"
|
||||
PROMPT 2 19 "Aggiorna testata dopo l'elaborazione, se il documento e' vuoto"
|
||||
FIELD B6
|
||||
END
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user