Fix bug in export/import + doc

This commit is contained in:
sparkyx 2006-06-24 19:48:16 +00:00
parent 3419393d55
commit 5207fda9c8
6 changed files with 104 additions and 49 deletions

View file

@ -270,7 +270,7 @@ declare
nCount integer;
begin
select count(*) into nCount from tmp_pcmn where pcm_val=p_id;
if nCount != 0 then
if nCount = 0 then
nParent=account_parent(p_id);
insert into tmp_pcmn (pcm_val,pcm_lib,pcm_val_parent)
values (p_id, p_name,nParent);