Patch level : 12.0 458
Files correlati : tf Commento : - Rafforzate chiavi clienti - Ripristinata esclusione Schede Carburanti git-svn-id: svn://10.65.10.50/branches/R_10_00@24112 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
30069e6b4d
commit
94b33e50ea
@ -291,12 +291,12 @@ bool bd2017()
|
||||
return today <= lastDay;
|
||||
}
|
||||
|
||||
TTrFa_mask& msk()
|
||||
{
|
||||
static TTrFa_mask* msk = NULL;
|
||||
if (msk == NULL)
|
||||
msk = new TTrFa_mask("tf0100a");
|
||||
return *msk;
|
||||
TTrFa_mask& msk()
|
||||
{
|
||||
static TTrFa_mask* msk = NULL;
|
||||
if (msk == NULL)
|
||||
msk = new TTrFa_mask("tf0100a");
|
||||
return *msk;
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////
|
||||
@ -904,14 +904,15 @@ TString TTrFa_app::getBody(TToken_string* strarr, bool add)
|
||||
static TString keyMap; keyMap.cut(0) << strarr->get_char(_tipocf) << "|" << strarr->get_int(_codcf) << "|" << strarr->get(_occas);
|
||||
|
||||
clifoDoc app = mCliDoc[keyMap];
|
||||
static TString numDoc; numDoc.cut(0) << strarr->get(_numdoc) << "|" << TDate(strarr->get(_datadoc)).year();
|
||||
if(add)
|
||||
{
|
||||
app.countDoc += 1;
|
||||
app.docID.insert(std::pair<TString,long>(strarr->get(_numdoc), app.countDoc));
|
||||
app.docID.insert(std::pair<TString,long>(numDoc, app.countDoc));
|
||||
}
|
||||
mCliDoc[keyMap] = app;
|
||||
|
||||
static TString body; body.format("%010d%010d", app.contCliFo, app.docID[strarr->get(_numdoc)]);
|
||||
static TString body; body.format("%010d%010d", app.contCliFo, app.docID[numDoc]);
|
||||
return body;
|
||||
}
|
||||
|
||||
@ -1330,7 +1331,7 @@ bool TTrFa_app::tff0700(TSheet_field& sheet)
|
||||
{
|
||||
|
||||
#ifdef DBG
|
||||
if(strarr->get_char(_tipocf) == 'F' && strarr->get_long(_codcf) == 2409 && ((strcmp(strarr->get(_numdoc), "28070") == 0) || strcmp(strarr->get(_numdoc), "28072") == 0))
|
||||
if(strarr->get_char(_tipocf) == 'F' && strarr->get_long(_codcf) == 3)
|
||||
bool tolla = true;
|
||||
#endif
|
||||
|
||||
|
@ -84,8 +84,11 @@ TString getRFSO(TString codrfso)
|
||||
bool checkRecord(TISAM_recordset* rec)
|
||||
{
|
||||
TAnagrafica anaCli(rec->get("23.TIPO").as_string()[0], rec->get("23.CODCF").as_int(), rec->get("23.OCFPI").as_string());
|
||||
|
||||
static TString keyClifo; keyClifo.cut(0) << rec->get("23.TIPO").as_string() << "|" << rec->get("23.CODCF").as_string();
|
||||
TRectype rclifo = cache().get(LF_CLIFO, keyClifo);
|
||||
// Salto le schede carburanti
|
||||
if(anaCli.inserimento_in_allegato() == 'C')
|
||||
if(rclifo.get("ALLEG") == "C")
|
||||
return false;
|
||||
|
||||
// Clienti
|
||||
|
Loading…
x
Reference in New Issue
Block a user