コミュニティ

FCI - How to set line Items to null depending on certain condition

Hi,

The requirement is the if certain key words are present on Invoice then we are not suppose to extract line items. How to do this. Can it be possible to stop line Item extraction on condition  or to set it to null ?

この記事は役に立ちましたか?

0人中0人がこの記事が役に立ったと言っています

コメント

1件のコメント

  • Avatar
    Scott Chau

    You're going to have to script this in the workflow of your FlexiCapture project.  for example the following script deletes the line item if there is no PurchaseOrder found.  You can either modify the script for your needs or talk to ABBYY professional service team.

    if (Document.Field("Invoice Layout\\PurchaseOrder").Items.Count == 0)
    {
    for (int i = Document.Field("Invoice Layout\\LineItems").Items.Count - 1; i >= 0; i--)
    {
    IField objDeleteField = Document.Field("Invoice Layout\\LineItems").Items[i];
    Document.Field("Invoice Layout\\LineItems").Items.Delete(objDeleteField);
    }
    }

    0

サインインしてコメントを残してください。