Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Answered

Kofax - Invoice Matching to Purchases with Fixed Asset

(0) ShareShare
ReportReport
Posted on by 30
I'm having an issue with Fixed Assets being unlinked from Purchase Orders when posting the Supplier Invoice. We import Supplier Invoices using a third party product, Kofax AP Essentials.
 
The process that we follow is:
 
  1. Create a purchase order with a line linked to a fixed asset.
  2. Receipt the purchase order which created the fixed asset.
  3. Import the Supplier Invoice from Kofax. Part of this process involves linking the Invoice line to the Purchase Order line.
  4. Match the supplier invoice to the product reciept in MSD.
  5. when you then look at the lines in the vendor invoice there is no link to the fixed asset in the line details.
 
when an invoice is manually entered (without Kofax) and linked to the purchase order the fixed asset details are visable in the fixed asset tab on the line details.
 
Why when importing an invoice does the fixed asset details from the purchase order not pull through to the invoice?
 
Thanks
Hannah
  • HM-29041150-0 Profile Picture
    HM-29041150-0 30 on at
    Kofax - Invoice Matching to Purchases with Fixed Asset
    thank you, this is really helpful.
     
    Thanks
    Hannah
  • Verified answer
    Phil Matthews Profile Picture
    Phil Matthews 52 on at
    Kofax - Invoice Matching to Purchases with Fixed Asset
    With a code solution. It's gross code, but it plugs the gap until Microsoft sort properly.
     
    Static method to create the fixed asset (obviously put your own label in, I changed them to plain text here for legibility):
    public static void forceAddFixedAsset(VendInvoiceInfoLine _vendInvoiceInfoLine)
        {
            VendInvoiceInfoLine_Asset VendInvoiceInfoLine_Asset;
    
            if(_vendInvoiceInfoLine.OrigPurchId != '')//Is Vendor Invoice line linked to PO.
            {
                PurchLine purchLine = PurchLine::findInventTransId(_vendInvoiceInfoLine.InventTransId);
    
                if (PurchLine)
                {
                    if (PurchLine.AssetId != '') //Does purchase order line have a linked asset?
                    {
                        if(_vendInvoiceInfoLine.vendInvoiceInfoLine_Asset() == null) //If Vendor Invoice line is not linked to a FA already.
                        {
                            ttsbegin;
                            VendInvoiceInfoLine_Asset = VendInvoiceInfoLine_Asset::createVendInvoiceInfoLine_Asset(_vendInvoiceInfoLine);
                            VendInvoiceInfoLine_Asset.initFromPurchLine(purchLine);
                            VendInvoiceInfoLine_Asset.AssetGroup = AssetTable::find(VendInvoiceInfoLine_Asset.AssetId).AssetGroup;
                            VendInvoiceInfoLine_Asset.insert();
                            ttscommit;
    
                        }
                        else {
                            Error('Supplier invoice line already has linked asset');
                        }
                    }
                    else {
                        Error('Purchase order line has no linked asset');
                    }
    
                }
                else
                {
                    Error('PurchLine cannot be found.');
                }
            }
            else
            {
                Error('No OrigPurchId value');
            }
        }
    And then call by extending VendInvoiceInfoLine table.
    [ExtensionOf(tablestr(VendInvoiceInfoLine))]
    final class VendInvoiceInfoLine_bbs_Extension
    {
        public void insert(boolean _defaultRelatedTables)
        {
            next insert(_defaultRelatedTables);
    
            PurchParameters params = PurchParameters::find();
    
            if(params.AutoApplyFixedAsset == NoYes::Yes)
            {
                ForceUpdateFixedAsset::forceAddFixedAsset(this);
            }
        }
    
    }
     
    ForceUpdateFixedAsset::forceAddFixedAsset() is the method that you created above.
    params.AutoApplyFixedAsset is a NoYes enum field that I added to the PurchParams table so that you can turn the functionality on and off.

    No idea was raised, it just exists as a bug on LCS - Details for issue 855081 (dynamics.com) As you can see, not much progress thus far!
  • HM-29041150-0 Profile Picture
    HM-29041150-0 30 on at
    Kofax - Invoice Matching to Purchases with Fixed Asset
    Thank you Phil,
     
    How did you modify the functionality?
     
    Do you know if an idea has been raised for this that i can vote for?
     
    Thanks
    Hannah
  • Phil Matthews Profile Picture
    Phil Matthews 52 on at
    Kofax - Invoice Matching to Purchases with Fixed Asset
    Hi Hannah,
     
    I have had this exact issue. It's not a problem unique to Kofax because if you create the supplier invoice line using the Vendor Invoice Line data entity in Excel, the same issue is present. It correctly populates other fields based on the Purchase Order lines such as Financial Dimensions for example. It also works if you manually create the Supplier Invoice line rather than importing it, so it's an issue purely related to that specific data entity.
     
    I logged with Microsoft to clarify whether I was doing something wrong and they confirmed that it is a functional oversight, which they have added to the backlog. This was literally last week, so we had to do a modification to adjust the functionality because they would not commit to any timescales.
  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,642 Super User 2024 Season 2 on at
    Kofax - Invoice Matching to Purchases with Fixed Asset
    Hi Hannah,
     
    The Kofax AP Essentials is a third-party solution. I would suggest you to try reaching out to your partner or the Kofax helpdesk. I'm not familiar with this solution.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,642 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,371 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans