Patch level : 10.0 640
Files correlati : ve0.exe Ricompilazione Demo : [ ] Commento : Bug 0001560: Errore Gestione archivi provvigioni Ho creato un archivio provv. con codice numerico. Chiave Cliente-Articolo. Dopo averlo associato all'agente non riporta la % di provv. git-svn-id: svn://10.65.10.50/trunk@20126 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
12e2ac7fad
commit
36e3e49f9b
@ -619,7 +619,6 @@ void TCond_vendita::ricerca(bool load_um_only, bool load_scagl_only)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
TString16 codric;
|
|
||||||
if (_riga && _riga->id2pos(FR_PERCPROV) >= 0 && _riga->field(FR_PERCPROV).active())
|
if (_riga && _riga->id2pos(FR_PERCPROV) >= 0 && _riga->field(FR_PERCPROV).active())
|
||||||
{
|
{
|
||||||
const TString & codage = _testa->get(F_CODAG);
|
const TString & codage = _testa->get(F_CODAG);
|
||||||
@ -643,16 +642,20 @@ void TCond_vendita::ricerca(bool load_um_only, bool load_scagl_only)
|
|||||||
_load_mask |= load_scagl_only && cv_um;
|
_load_mask |= load_scagl_only && cv_um;
|
||||||
for (i = 0; percprovv.is_zero() && seqric[i] != '\0' && seqric[i] != '-'; i++)
|
for (i = 0; percprovv.is_zero() && seqric[i] != '\0' && seqric[i] != '-'; i++)
|
||||||
{
|
{
|
||||||
|
TString16 codric;
|
||||||
|
|
||||||
if (isdigit(seqric[i]))
|
if (isdigit(seqric[i]))
|
||||||
const TString codric = age.get(format("CODRICPR%d", i+1));
|
codric = age.get(format("CODRICPR%d", i+1));
|
||||||
percprovv = get_percprovv(seqric[i], codric, true, age);
|
percprovv = get_percprovv(seqric[i], codric, true, age);
|
||||||
}
|
}
|
||||||
real percalt;
|
real percalt;
|
||||||
seqric = age.get(AGE_SEQALT);
|
seqric = age.get(AGE_SEQALT);
|
||||||
for (i = 0; percalt.is_zero() && seqric[i] != '\0' && seqric[i] != '-'; i++)
|
for (i = 0; percalt.is_zero() && seqric[i] != '\0' && seqric[i] != '-'; i++)
|
||||||
{
|
{
|
||||||
|
TString16 codric;
|
||||||
|
|
||||||
if (isdigit(seqric[i]))
|
if (isdigit(seqric[i]))
|
||||||
const TString & codric = age.get(format("CODALTPR%d", i+1));
|
codric = age.get(format("CODALTPR%d", i+1));
|
||||||
percalt = get_percprovv(seqric[i], codric, true, age);
|
percalt = get_percprovv(seqric[i], codric, true, age);
|
||||||
}
|
}
|
||||||
percprovv += percalt;
|
percprovv += percalt;
|
||||||
@ -683,16 +686,20 @@ void TCond_vendita::ricerca(bool load_um_only, bool load_scagl_only)
|
|||||||
_load_mask |= load_scagl_only && cv_um;
|
_load_mask |= load_scagl_only && cv_um;
|
||||||
for (i = 0; percprovv.is_zero() && seqric[i] != '\0' && seqric[i] != '-'; i++)
|
for (i = 0; percprovv.is_zero() && seqric[i] != '\0' && seqric[i] != '-'; i++)
|
||||||
{
|
{
|
||||||
if (isdigit(seqric[i]))
|
TString16 codric;
|
||||||
const TString & codric = age.get(format("CODRICPR%d", i+1));
|
|
||||||
|
if (isdigit(seqric[i]))
|
||||||
|
codric = age.get(format("CODRICPR%d", i+1));
|
||||||
percprovv = get_percprovv(seqric[i], codric, false, age);
|
percprovv = get_percprovv(seqric[i], codric, false, age);
|
||||||
}
|
}
|
||||||
real percalt;
|
real percalt;
|
||||||
seqric = age.get(AGE_SEQALT);
|
seqric = age.get(AGE_SEQALT);
|
||||||
for (i = 0; percalt.is_zero() && seqric[i] != '\0' && seqric[i] != '-'; i++)
|
for (i = 0; percalt.is_zero() && seqric[i] != '\0' && seqric[i] != '-'; i++)
|
||||||
{
|
{
|
||||||
if (isdigit(seqric[i]))
|
TString16 codric;
|
||||||
const TString & codric = age.get(format("CODALTPR%d", i+1));
|
|
||||||
|
if (isdigit(seqric[i]))
|
||||||
|
codric = age.get(format("CODALTPR%d", i+1));
|
||||||
percalt = get_percprovv(seqric[i], codric, false, age);
|
percalt = get_percprovv(seqric[i], codric, false, age);
|
||||||
}
|
}
|
||||||
percprovv += percalt;
|
percprovv += percalt;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user