Patch level : 10.0 592

Files correlati     : lv2.exe
Ricompilazione Demo : [ ]
Commento            :

Corretto valore convenzionale per articolo


git-svn-id: svn://10.65.10.50/trunk@20030 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 2010-01-31 10:06:59 +00:00
parent 677c9aeebf
commit 9507373884
2 changed files with 5 additions and 4 deletions

View File

@ -687,7 +687,8 @@ void TFatturazione_lavanderie::post_process(TLista_documenti& doc_out, TLista_do
const TString80 codart = riga.get(RDOC_CODART); const TString80 codart = riga.get(RDOC_CODART);
const TRectype & rcont = contr.row(codart); const TRectype & rcont = contr.row(codart);
const char tipvalconvcli = rcont.get_char(LVRCONDV_VCARTCLI); const char tipvalconvcli = rcont.get_char(LVRCONDV_VCARTCLI);
if (tipvalconvcli == 'C') char lavtype = riga.get_char("LVTYPE");
if (tipvalconvcli == 'C' && lavtype != 'D')
{ {
if (arts.objptr(codart) == NULL) if (arts.objptr(codart) == NULL)
{ {
@ -737,7 +738,7 @@ void TFatturazione_lavanderie::post_process(TLista_documenti& doc_out, TLista_do
const TRectype& rcont = contr.row(codart); const TRectype& rcont = contr.row(codart);
const char tipvalconvcli = rcont.get_char(LVRCONDV_VCARTCLI); const char tipvalconvcli = rcont.get_char(LVRCONDV_VCARTCLI);
char lavtype = delrow.get_char("LVTYPE"); char lavtype = delrow.get_char("LVTYPE");
if (tipvalconvcli == 'C' && (lavtype == '\0' || lavtype == 'C')) if (tipvalconvcli == 'C' && lavtype != 'D')
doc.destroy_row(k, true); doc.destroy_row(k, true);
} }
} }

View File

@ -888,14 +888,14 @@ TConta_pulito_msk::TConta_pulito_msk():TAutomask("lv2900a")
_auto = _auto.right(1); _auto = _auto.right(1);
TString16 tmp = main_app().argv(3); TString16 tmp = main_app().argv(3);
_codcf = 0L;
if (tmp.left(2) == "-C") if (tmp.left(2) == "-C")
{ {
_percli = true; _percli = true;
if (tmp.len() > 2) if (tmp.len() > 2)
_codcf = atoi(tmp.sub(2)); _codcf = atoi(tmp.sub(2));
else
_codcf = 0;
_permag = false; _permag = false;
} }