In Yokoy, you can:
let your employees submit invoices and expenses for posting directly in Business Central.
manage approvals either by line manager, dimension (cost object), or a combination of both.
review all spending, rejecting invoices or expenses or changing cost center allocation, as required, sending the definitive accounting documents to Business Central.
💡 Tip
For a general overview on the integration, see Yokoy Spend Management Connector for MS Dynamics 365 Business Central.
Updating master data from Business Central
During the initial setup of the connector, users and suppliers are created in Yokoy directly from Business Central.
However, the Yokoy connector includes a task in Business Central Update Data in Yokoy that allows you to bulk update master data. For example, you can bulk update users, cost objects and tags, categories, and suppliers in Yokoy.
With this task, you can use Business Central filters to choose the employees (users), dimension values (cost objects and/or tags), GL accounts (categories), and vendors (suppliers).
You can set up this Business Central task to run periodically to ensure that your master data stays up-to-date.
✏️ Note
Yokoy BC
permission set is required to run the master data update.
💡 Tip
If you are unable to sync master data or the task ends in error, check that the Yokoy ID exists in the corresponding card. For example, in the Employee card, look for the Yokoy user ID field. If there is no value in that field, you may need to re-synchronize the data.
Processing expenses
Expenses are processed in Yokoy according to your company’s standard process flow:
Submit: Employees upload any expenses directly in Yokoy, whether they are receipt or receiptless expenses, mileage or per diems, included as part of a trip or individual expenses, according to your company’s policy.
Approve: Managers approve employees' expenses to ensure spending complies with your company's policies.
Review: The Finance team checks and supervises all expenses, choosing to review all expenses, only those with flagged notifications, or none.
Once processed, expenses are exported to Business Central by Yokoy either manually (as triggered by the Finance team) or automatically (using an automatic export job).
Yokoy exports expenses by document type:
expenses: receipt and receiptless expenses and credit notes, per diem and mileage
travel expenses: expenses received from a third-party business travel integration
card transactions: transactions from either Yokoy cards or third-party cards
Expenses can be further split into standard expenses and per diem/mileage, so you can export per diem/mileage into a separate payroll system, rather than Business Central. This is determined in Yokoy, in Admin > Company settings, and configured as a separate export system.
In Business Central, Yokoy expenses are created in the General journal as general journal entries. These entries are then posted according to standard Business Central behavior (i.e. creating G/L entries and VAT entries as appropriate).
Account determination by account type
Depending on whether the expense is reimbursable (i.e. meals paid by employee) or non-reimbursable (i.e. meals paid by company card or travel expenses), the configuration determines the account type to be used for export.
Reimbursable: takes the account type from Employee card.
Non-reimbursable: takes creditor account from either the User or Company card.
✏️ Note
Since users are linked to the Employee card in Business Central, currently the account type can only be taken from the Employee card. If you use Vendor cards to manage employees, you need to manually indicate the impacted account before posting (i.e. automatic posting not possible).
Tax amount validation and calculation in Business Central
For each expense line item, Yokoy provides the country, tax amount, and tax rate (which includes the VAT Business and Product Posting group).
If the expense currency is same as reporting currency (i.e. local currency), Business Central performs a validation to check that the calculated amount matches the Yokoy sent tax amount. If the tax amounts match, then no action is performed. If the tax amounts do not match, Business Central recalculates the tax amount based on the VAT Business and Product Posting groups provided.
If the expense currency is not the local currency, then Business Central does not validate the tax amount sent by Yokoy. It recalculates the tax amount based on its own FX rates. See Expenses in foreign currencies.
Exporting expenses to Business Central
Once you have approved and reviewed expenses, you export expenses from Finance > Export.
When you export expenses from Yokoy, Yokoy prepares the journal items to be sent to Business Central. If any errors occur during the export process, an API warning is displayed with information on the type of error so you can troubleshoot the issue.
Expense line items are created in the General journal. The Yokoy ID of the expense is displayed in the External Document No. column.
✏️ Note
Yokoy IDs are case-sensitive. Business Central displays these IDs in upper case. So it is recommended you use both the ID and amount as a way of locating these expenses again in Yokoy.
Expenses in foreign currencies
If a receipt in a foreign currency is processed in Yokoy, Yokoy converts the amounts to the company’s currency using the FX rates used by Yokoy.
Depending on the company configuration, the amounts are transferred either in the company currency (journal currency) or the original currency of the receipt.
If the company currency is used, it is usually the same as the local currency in Business Central, therefore no FX conversion is performed (only that when processing the receipt in Yokoy). For taxable amounts, Business Central checks that the amount sent from Yokoy matches the amount it calculates based on the tax code used and the net amount. If the Yokoy amount doesn’t match its calculated amount, Business Central uses its own calculation.
Expense receipts & attachments
If you choose to import expense receipts, they are linked with the corresponding general journal entry as an incoming document. Click on the receipt to download.
In addition, if you choose to import other supporting documents as attachments, they are also displayed in the Incoming documents tab for the corresponding journal entry.
✏️ Note - Importing attachments in Business Central
Bear in mind that any receipts and attachments imported from Yokoy contribute to your company’s data storage capacity in Business Central.
Processing invoices
Yokoy Spend Management Connector for MS Dynamics 365 Business Central lets you process these invoice types:
| Process | Exported to |
Non-PO invoice |
| |
PO invoice
|
|
|
PO invoice with GR
|
|
|
After creating an invoice in Yokoy, when you export the approved invoice from Yokoy, it generates either a purchase order or a purchase invoice in Business Central, which can be automatically or manually posted depending on the connector’s settings (see Posting logic in Business Central).
For non-PO invoices, you need to select the cost object, category, and tax rate at invoice line item level when processing the invoice in Yokoy. Usually, category and tax rate are automatically assigned by Yokoy’s AI. For PO invoices, the cost object and category are inherited from the purchase order/goods receipt.
✏️ Dimensions for purchase orders
Since Yokoy invoices inherit categories (G/L accounts) and/or cost objects (dimensions) from the purchase order, it is recommended that you set financial dimensions as mandatory for purchase orders if you plan to use a cost object approval strategy.
Creating a non-PO invoice
To create a non-PO invoice that can be posted in Business Central, simply upload a new invoice in Yokoy.
For each line item, you need to manually select:
Cost center: financial dimensions to be used in Business Central
Category: G/L account where items should be posted
Tax rate (as appropriate)
When these invoices are exported to Business Central, the invoice line items are handled as G/L Account items and are not related directly to inventory (Items), fixed assets or item charges.
🚧 Calculation of net, tax and gross amounts
Business Central is responsible for calculating the net, tax, and gross amounts using the unit price and quantity provided by Yokoy. Since Yokoy extracts the net, tax and gross amounts from the invoice, it may result in differences in the amounts in Yokoy compared to Business Central (particularly if you adjust one of these values in Yokoy).
Non-PO invoice in Yokoy
Purchase invoice in Business Central
Creating a PO invoice
Purchase orders are created in Yokoy automatically from the Business Central purchase order. You can use both open and released purchase orders to create a purchase order in Yokoy.
The purchase order must contain:
Vendor name
Vendor invoice no. (if available)
Document date
Line item (item/charge item/fixed assets)
Dimensions (to determine cost object & category, as required)
Once the PO has been created in Yokoy, the Yokoy PO ID is displayed in the Yokoy PO ID field in Business Central. If you make any changes in the purchase order, these changes are automatically updated in Yokoy.
Additionally, if you need to manually send the PO from Business Central to Yokoy for whatever reason, you can click Send/Update Purchase Order to Yokoy on the Purchase Order card. If you change any of the details of the purchase order (with Open status), you can update the information in Yokoy by clicking the same button.
The purchase order is displayed in Yokoy in Invoice processor > Purchase orders:
The PO number corresponds with the number of the Purchase Order card in Business Central.
Assigning the cost object and category
For POs containing standard items, you input the PO against a cost object by selecting the dimension in the Purchase order (Order tab > Dimensions).
✏️ Financial dimensions as cost objects
Since you may have several financial dimensions synchronized as cost objects and/or tags, make sure to select one that has been created as a cost object in Yokoy.
Once you have uploaded a PO in Yokoy, you can upload the corresponding invoice and proceed to match invoice and PO line items.
🚧 Caution
If you post the purchase order in Business Central before the invoice has been matched and exported from Yokoy, an error warning is triggered in Yokoy indicating that the purchase order does not exist. When an invoice is exported from Yokoy, it updates the existing purchase order so it can be subsequently posted.
PO with cost object (financial dimension)
Invoice with cost object inherited from the PO
Creating a PO invoice with GR
Only POs with item or fixed asset type line items require a goods receipt. Usually, item charge item types do not require a GR.
Goods receipts are created in Yokoy automatically from the Business Central posted purchase receipt (which you obtain by receiving a purchase order). Goods receipts are always associated to a purchase order and are used to perform three-way matching.
An automated job creates GRs in Yokoy whenever a new posted purchase receipt is generated.
🚧 Caution
A purchase order must previously exist for Business Central to create a purchase receipt.
To create a GR manually (if required):
Create the posted purchase receipt from the purchase order as usual by clicking Post… and then select Receipt.
Go to the Posted purchase receipt archive and select the receipt to be uploaded to Yokoy.
Click Send Purchase receipt to Yokoy.
The Yokoy internal ID field in Business Central is updated with the Yokoy ID for the GR.
The corresponding GR can be viewed in Yokoy Invoice processor > Purchase orders by selecting the corresponding PO and viewing the GR number in Goods receipt. The GR number corresponds to the Posted purchase receipt number.
Matching PO and GR line items against invoice line items
Purchase order line items are matched against invoice line items, performing two-way matching where no posted purchase receipt is present (i.e. for fixed asset and item charge line types).
If you associate a posted purchase receipt to a purchase order in Business Central, Yokoy performs three-way matching, checking both amounts and quantities against the purchase order and the posted purchase receipt.
Matching item type line items
If you have matched an invoice line item against a Item document line type, a missing GR notification is displayed in Yokoy. Goods receipts are not required for fixed asset and item charge document line types.
Once you receive the order in Business Central, generating the posted purchase receipt, you may need to unmatch the invoice line item and re-match it with the goods receipt line item.
Handling multiple posted purchase receipts
Business Central lets you create multiple posted purchase receipts to process partial deliveries. Since Yokoy only allows a one-to-one relationship between goods receipt and invoice line items, you need to manually adjust the line item quantities and amounts to take into account multiple posted purchase receipts.
For example, you create a purchase order for an item with quantity 1,000. This item is delivered in two shipments, 250 and 750. You create two posted purchase receipts to indicate the delivery of these shipments. However, the invoice gives the total quantity ordered in a single line item.
In Yokoy, to process this invoice, you adjust the quantity and amount in the initial invoice line item so you can match the line item to one of the posted purchase receipts. You then need to create an additional line item with the same description, cost object, category, etc. with the remaining quantity and amount.
Working with non-inventory line items
Business Central lets you create non-inventory line items, which you can process with Yokoy.
Non-inventory line items are:
G/L accounts
Item charge
Fixed assets
✏️ Note
These line item types must have been set up previously in Yokoy since they are handled differently to standard items.
There are two scenarios for documents containing these types of lines:
Update an existing inventory PO: If an invoice containing items also includes non-inventory line items, the PO is updated with a new line (G/L Account, Item Charge, or Fixed Asset type).
Create a new purchase invoice document: If an invoice is not linked to any PO but includes a non-inventory line item, it generates a new Purchase Invoice document in Business Central.
Non-inventory line items in the PO are automatically recognized in Yokoy as non-GR line items (and hence, do not require two-way or three-way matching).
Since Yokoy does not inherit the financial dimensions from the PO, you need to specify the cost object and/or category at line item level before you can export the invoice to Business Central.
Exporting and posting item charges in invoices
Regardless of whether Yokoy updates the purchase order or creates a new purchase invoice in Business Central for item charges, the key detail about this type of line in Business Central is that once the line is created, the charges must be allocated to the receipt lines. Therefore, after the line is created, the standard Business Central process for allocating item charges should be followed, and the document should then be posted.
Exporting invoices to Business Central
Once you have matched and submitted (and approved) invoices, you export the invoices as usual from Finance > Export.
You can set up an automatic export job for the connector. You can use the export log in Yokoy to check whether the export job completed successfully.
When you export invoices from Yokoy, Business Central fetches all invoice data from Yokoy, including the original invoice as an attachment.
Depending on the type of invoice (non-PO or PO), the document updated in Business Central may vary:
PO invoice: Updates existing purchase order, so it can be posted as a posted purchase invoice.
Non-PO invoice: Creates new purchase invoice, which is subsequently posted as a posted purchase invoice.
Line item calculation & FX conversion
Business Central is responsible for calculating net, tax and gross amounts for each line based on the quantity and unit price.
If the invoice currency is different to the local currency, this information is stored in Business Central in Currency Code and Business Central is responsible for converting all amounts to the local currency when posting.
Exporting a PO invoice
When you export a PO invoice from Yokoy, the Business Central Purchase Order is updated with the details of the line items: quantity to invoice, unit price, tax rates, etc.
In addition, in the General section of the purchase order, Business Central displays the Yokoy ID of the invoice in the field Yokoy Invoice Id:
The Purchase Order is then automatically posted or manually posted as a posted purchase invoice by the Finance team depending on the posting logic configured in the connector setup.
🚧 Caution
If your company has set up custom fields in the Purchase Order card in Business Central, make sure you have entered values for these fields in Business Central before exporting the PO invoice from Yokoy.
Otherwise, you will see an error in Yokoy that prevents you from exporting the invoice.
Exporting a non-PO invoice
When you export a non-PO invoice from Yokoy, Business Central creates a new Purchase Invoice with the information taken from the invoice, creating the line items with quantity to invoice, unit price, etc. The Yokoy invoice ID is included in the Yokoy Invoice Id field to enable you to track an invoice back in Yokoy.
The Purchase Invoice is then automatically posted or manually posted as a posted purchase invoice by the Finance team depending on the posting logic configured in the connector setup.
Posting logic in Business Central
Depending on the specific setup in Business Central, these actions may take place:
Integration option | Action |
Automatic posting | Business Central performs these actions:
|
Automatic posting not activated | Business Central performs these actions:
The Finance team needs to manually post the purchase order or the purchase invoice in Business Central to generate the posted purchase invoice and journal entries. |
Post With Status Approved activated | This setting determines at what point the purchase order/invoice in updated/created and posted in Business Central. In this case, purchase orders and invoices are updated when the invoice are approved and exported in Yokoy.
In Business Central, these action are performed:
|
Posted With Status Approved not activated | This setting determines at what point the purchase order/invoice in updated/created and posted in Business Central. In this case, purchase orders and invoices are updated when the invoice is submitted in Yokoy. In Business Central, these actions are performed on export:
Once the invoice is approved and exported in Yokoy, Business Central updates the Yokoy payment status as Approved. |
Invoice attachments
Depending on the origin of the invoice (non-PO, PO, etc.), the invoice PDF is attached in the Attachments tab of the corresponding Business Central document.