Options

Question on Document Type filter on Sales/Purchase forms

kenlkenl Member Posts: 182
Hello,

I don't understand how does the "Document Type" filter work on sales/purchase forms.

So far as I know, the form property
"SourceTableView" has table filter.

I am creating a similar forms (Setting SourceTableView = WHERE(Document Type=FILTER(Invoice)). But the filter fail when there is no record exist in the table.

System always init the record with optionString value = 0 (Quotation). So when user save the record, the record Document Type becomes Quotation.

Can anyone explain me how does the Document Type filter works on Sales/Purchase form ?

Thanks.

Comments

  • Options
    krikikriki Member, Moderator Posts: 9,090
    The filter should work correctly and create records of type Invoice.

    I think you have somewhere in your code (form or table) something that clears the record like a CLEAR.
    You should check with the debugger wich code is executed and the values "Document Type" takes.
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.