Pages

Banner 468 x 60px

 

Friday, November 17, 2017

inUse in x++

0 comments
inUse in x++ :

display int inUse(KRE_ID_Tax_VAT _KRE_ID_Tax_VAT)
{
    #resAppl
    int             idx;
    boolean         foundHere = false;

    idx = confind(KRE_ID_Tax_VATMarkCon, _KRE_ID_Tax_VAT.RecId);

    if (idx && conpeek(KRE_ID_Tax_VATMarkCon, idx + 1 ) == NoYes::Yes)
        foundHere = true;

    if (KRE_ID_Tax_VATMark::exist(_KRE_ID_Tax_VAT.RecId)
        && !foundHere)
    {
         return #Image_JournalBlockInUse;
    }

    return 0;
}

0 comments:

A financial dimension value is based on the record and has been used on a transaction. You cannot delete the record

  SOLUTION delete in table DimensionAttributeLevelValue base on Bank Account  :  and Delete the Bank Account FINISH