BeyondERP.Newsletter
Menu

Setup page · Accounts payable

Charges code

The Accounts payable list of charges codes: each code for an amount added to purchase orders and vendor invoices besides the item lines, such as freight or insurance, with its debit and credit posting.

Read the guide Back to Accounts payable

Used by
Accounts payable manager, Rental coordinator agent, Rental manager and 4 more roles
Business process
Perform invoice matching in Dynamics 365 Finance
Menu item
MarkupTable_Vend
Main table
MarkupTable
Data entity
None for this page's own settings
Setup steps
1 on this page

How this guide was checked

Checked in Dynamics 365
Version 10.0.49: the menu item, form, table and security, the page, the demo records and the values in the screenshots.
Recommended values
Based on Microsoft's documentation. A sound starting point to adjust to your own business requirements.
Tests
A ready-to-run test, “Freight charge posts to expense”, to confirm this setup in your own test environment.
Show what matters for
PAGE GUIDEWhat the page does and how to use it9 sections. Choose a role to highlight what matters to you.
Everyone

1What it is and why

What it isThe Accounts payable list of charges codes: each code for an amount added to purchase orders and vendor invoices besides the item lines, such as freight or insurance, with its debit and credit posting.
What you do hereUse this page to define each charge, its optional maximum amount for invoice validation, and how it is debited and credited when posted.
ExampleFor example, BEAT sets up the code FREIGHT with Debit type Ledger account on expense account 605100 and Credit type Customer/Vendor, a maximum amount of 500.00 and Compare purchase order and invoice values on, so freight is expensed, capped and matched.
Charges code page in Dynamics 365
The page in Dynamics 365. page title tab to open what to set or check
Functional consultant · Solution architect

2Where it fits

End user · Functional consultant

3How to do it

About the examples: Examples and screenshots in this guide use BEAT, a demo company in a Dynamics 365 test environment. Use your own company's codes and values instead of copying them.

Step by step, with screenshots

Set up Charges code1 screen

Set up the codes for the charges, such as freight or fees, that are used on purchase orders.

  1. Screen 1

    Create the freight charges code

    Go to Accounts payable > Charges setup > Charges code, Posting section

    1. Select New and enter the charges code and description
    2. In the Posting section, set the debit and credit types
    3. Turn on Compare purchase order and invoice values
    1Charges codeBEAT-FRT
    DescriptionFreight
    Maximum amount0.00
    Debit TypeLedger account
    Debit PostingPurchase, charge
    Debit Account610100
    Credit TypeCustomer/Vendor
    Compare purchase order and invoice valuesYes
    Create the freight charges code (zoomed on the outlined fields)
    Show the full screenCreate the freight charges code
    page title tab to open what to set or check

Steps from Microsoft

  1. Go to Accounts payable > Charges setup > Charges code.
  2. Select New.
  3. In the Charges code field, enter a code for the charge, and add a description.
  4. Optionally, select an Item sales tax group and enter a Maximum amount for the charge.
  5. On the Posting FastTab, set how the charge is debited and credited, including the posting types and main accounts for ledger postings.
  6. To compare the charge on invoices with the purchase order, turn on Compare purchase order and invoice values.

Source: Microsoft Learn

Fields on the page

FieldWhat it meansExampleTable column
Maximum amountThe highest amount allowed for this charge, used when vendor invoice charges are validated.Microsoft Learn 0.00MaxAmount
Compare purchase order and invoice valuesWhen on, the charge on an invoice is compared with the same charge on the purchase order.Microsoft Learn Yes
Debit postingFor ledger postings, the posting type used on the debit side, together with the debit main account.Microsoft Learn CustPosting
Charges codeThe code for the charge, such as freight or an invoice fee.Microsoft Learn FREIGHTMarkupCode
DescriptionA short description of the charges code.Microsoft Learn FreightTxt
Debit TypeThe type of account the debit side of the charge posts to, such as Ledger account or Item.Microsoft Learn Ledger accountCustType
Debit AccountThe main account the debit side of the charge posts to.Microsoft Learn 610100CustomerLedgerDimension
Credit TypeWhere the credit side of the charge posts. Customer/Vendor adds the charge to the vendor's account.Microsoft Learn Customer/VendorVendType

Common errors and fixes

MessageWhat to do
The Maximum amount on the charges code isn't enforcedCharges are only validated when Enable invoice matching validation is on in Accounts payable parameters and a policy rule type based on charges exists in the vendor invoice policy. Microsoft Learn
A charge isn't compared with the purchase orderCharges matching runs only for codes with Compare purchase order and invoice values selected, and when Match charges is on in Accounts payable parameters. Microsoft Learn

Test checklist

  1. Create a Freight code with Debit Ledger account (expense) and Credit Customer/Vendor.
  2. Add the charge to a purchase order and post the invoice.
  3. Check the voucher debits the expense account and increases the vendor balance.
  4. Set a Maximum amount, turn on invoice matching validation and a charges policy rule, then check an invoice above it is flagged.

Source: Microsoft Learn

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Set up Charges codeFor a vendor charge recorded as expense: Credit Type Customer/Vendor and Debit Type Ledger account with the expense main accountLearn's example adds the charge to the vendor's account on the credit side and posts the cost to an expense account on the debit side.How should vendor charges be posted?Entering a Maximum amount and expecting it to be enforced: validation needs Enable invoice matching validation and a charges-based policy rule type in the vendor invoice policy.Test: Freight charge posts to expense

Feature management and licence

Licence or add-inIn this system 7 roles can open this page, among them Rental coordinator agent, Rental manager, Rental sales manager and Purchasing manager.

Checked in Dynamics 365

Solution architect

5Design impact

Shared or per companyPer company: each legal entity has its own records. Microsoft data model
Can it be undoneReversible: Charges codes can be edited at any time; charges already posted keep the accounts they used. Microsoft Learn
If you change it laterThe posting setup is read when a charge is posted, so a change affects charges posted afterwards; every automatic charge that uses the code picks up the change. Microsoft Learn
Technical architect

6Technical

Menu itemMarkupTable_Vend Checked in Dynamics 365
FormMarkupTable Checked in Dynamics 365
TableMarkupTableShown as “Charges code” in Record infoKey field: MarkupCodeChecked in Dynamics 365
Data entitiesPurchProcurementChargeEntityProcurement charge codes (The procurement charges codes (MarkupTable records of the vendor module).) Microsoft data model
Who can open it

8 security roles. Select a role to see its duties and privileges.

  • RoleMCRTestUserRole no duty on this page is assigned to this role directly
  • RoleRental coordinator agentRentalCoordinatorAgent
    • DutyEnable quotation to sales order processRentalSalesQuotationToSlsOrdProcessEnable
      • PrivilegeMaintain charges in the purchase processMarkupAutoSetup_VendMaintain
  • RoleRental managerRentalManager
    • DutyEnable quotation to sales order processRentalSalesQuotationToSlsOrdProcessEnable
      • PrivilegeMaintain charges in the purchase processMarkupAutoSetup_VendMaintain
  • RoleRental sales managerRentalSalesManager
    • DutyEnable quotation to sales order processRentalSalesQuotationToSlsOrdProcessEnable
      • PrivilegeMaintain charges in the purchase processMarkupAutoSetup_VendMaintain
  • RolePurchasing managerTradePurchasingManager
    • DutyEnable purchase order to invoice processPurchOrderToInvoiceProcessEnable
      • PrivilegeMaintain charges in the purchase processMarkupAutoSetup_VendMaintain
  • RoleSales clerkTradeSalesClerk
    • DutyInquire into product sales prices and discount masterPriceDiscProdSalesPriceDiscMasterInquir
      • PrivilegeView charges in the purchase processMarkupAutoSetup_VendView
  • RoleSales managerTradeSalesManager
    • DutyInquire into product sales prices and discount masterPriceDiscProdSalesPriceDiscMasterInquir
      • PrivilegeView charges in the purchase processMarkupAutoSetup_VendView
  • RoleAccounts payable managerVendInvoiceAccountsPayableManager
    • DutyEnable purchase order to invoice processPurchOrderToInvoiceProcessEnable
      • PrivilegeMaintain charges in the purchase processMarkupAutoSetup_VendMaintain
Checked in Dynamics 365
Roles to set it up and use itTo set it up or change itAccounts payable manager VendInvoiceAccountsPayableManagerRental manager RentalManagerPurchasing manager TradePurchasingManagerRental coordinator agent RentalCoordinatorAgentRental sales manager RentalSalesManagerTo use itSales manager TradeSalesManagerSales clerk TradeSalesClerkGive people one of these roles. On this system, 7 roles can open this page.Checked in Dynamics 365
Actions on the pageButtons: Translations, External codesChecked in Dynamics 365
Security administrator · Solution architect

7Advanced Security configuration

Each button below opens a menu item. Start from a standard security role, or from an empty one, and choose what the new role gets for each button: remove it, or an access level. Then create the file that System administration > Security > Security configuration > Data > Import reads. The file holds a copy of the role and copies of only the duties and privileges that change. Everything else stays the standard object.

This demo uses Microsoft's standard roles. To do the same on your own system, with your own roles, use the Chrome extension or the bookmark.

Information technology manager (SysServerITManager) can use 2 of these buttons. You can also give it buttons it does not have.

On the page

On your own system, the Advanced Security configuration bookmark does the same with your real roles, including your own: click a button on the live page to see who can use it and what to change.

Built from Microsoft's standard security definitions for version 10.0.49 and the buttons seen on this page in a working system. Add-ons, your own roles and later versions can differ. Beyond ERP is not affiliated with Microsoft. Buttons without a menu item, such as Post, are not listed: security roles cannot change them this way.

Developer

8Developer

Open it by URLhttps://<your-environment>/?mi=MarkupTable_Vend
Data migrationPurchProcurementChargeEntity Procurement charges codes with their posting.Load order: Load main accounts and item sales tax groups first, then the charges codes, before automatic charges and charges tolerances.Load first: MainAccountEntityMicrosoft Learn
Table definitionMarkupTable columns and relations Microsoft data model
Everyone

9Sources