BeyondERP.Newsletter
Menu

Setup page · Procurement and sourcing

Charges code

A setup page where you define the charges codes, such as freight or insurance, that are added to purchase orders and how each charge posts.

Read the guide Back to Procurement and sourcing

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
PurchProcurementChargeEntity
Setup steps
2 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
2 ready-to-run tests 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 isA setup page where you define the charges codes, such as freight or insurance, that are added to purchase orders and how each charge posts.
What you do hereUse this page to define each purchase charge, its optional maximum amount for invoice validation, and whether it posts to a ledger account, the vendor or the item cost.
ExampleFor example, BEAT sets up FREIGHT with Debit Type Ledger account 610100 and Credit Type Customer/Vendor, so 85.00 USD of freight on a purchase order is added to the vendor balance and posted to freight expense when the invoice posts.
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
Decide how purchase charges post

Set up the purchase charges codes so freight, fees and similar costs post where finance expects them.

Steps from Microsoft

  1. Go to Procurement and sourcing > Setup > Charges > Charges code.
  2. Select New, and enter the Charges code and a Description.
  3. Optionally, select an Item sales tax group and enter a Maximum amount for invoice validation.
  4. On the Posting FastTab, set the Debit and Credit Type, Posting and Account for the charge.
  5. Select Save, then use the code in Automatic charges or in Maintain charges on a purchase order.

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 TypeOn the Posting FastTab, the type of account that the charge is debited to (ledger, customer/vendor or item); Item adds the charge to the inventory cost.Microsoft Learn Ledger accountCustType
Debit AccountThe main account that the charge is debited to when Debit Type is Ledger account.Microsoft Learn 610100CustomerLedgerDimension
Credit TypeOn the Posting FastTab, the type of account that the charge is credited to; Customer/Vendor adds the charge to the vendor balance.Microsoft Learn Customer/VendorVendType

Common errors and fixes

MessageWhat to do
A purchase order with an Item-type charge can't be confirmed.Charges that are accounted as product cost (Debit Type Item) must be allocated from the order header to the lines before the order is confirmed. Select Allocate charges on the purchase order. Microsoft Learn

Test checklist

  1. Create a charges code with Debit Type Ledger account and Credit Type set, and a Maximum amount.
  2. Turn on Compare purchase order and invoice values on the code.
  3. Add the charge to a purchase order, then invoice with a different charge value and check invoice matching flags the difference.
  4. Post the invoice and check the voucher uses the debit and credit accounts from the code.

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
Decide how purchase charges postDebit Type Ledger account with the expense main account for charges that are expenses; Debit Type Item only for charges that must go into the item costItem-type charges become inventory cost but must be allocated from the header to the lines before the order can be confirmed; ledger charges post straight to the expense account.Should a purchase charge post to expense or to the item cost?Setting a Maximum amount and expecting it to block invoices: it is only checked when Enable invoice matching validation is on in Accounts payable parameters.Test: Charge posts to the set-up accounts

Feature management and licence

Licence or add-inOn the live system, Purchasing manager, Accounts payable manager, Sales manager, Sales clerk, Rental manager, Rental coordinator agent and Rental sales manager use this page. The same table holds sales charges codes, opened from Accounts receivable.

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: You can change the posting setup at any time; charges already posted keep their vouchers. Microsoft Learn
If you change it laterThe posting setup is used when the charge posts, and the Maximum amount is only checked when Enable invoice matching validation is on in Accounts payable parameters. 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 Microsoft data model SalesChargeEntitySales charge codes Microsoft data model InventoryChargeEntityInventory charge codes Microsoft data model SalesDeliveryChargeEntitySales delivery charge codes 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 itPurchasing manager TradePurchasingManagerAccounts payable manager VendInvoiceAccountsPayableManagerRental manager RentalManagerRental 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
Integrate withPurchProcurementChargeEntity data entity Microsoft data model
Data migrationPurchProcurementChargeEntity Procurement charge codes: loads the purchase charges on this page, for each company; in Microsoft's default template 120 - Accounts payable.Load order: Load the main accounts and item sales tax groups first, then the procurement charge codes, then the charges groups and automatic charges, before open purchase orders.Load first: Main accounts, Item sales tax groupsChecked in Dynamics 365
Table definitionMarkupTable columns and relations Microsoft data model
Everyone

9Sources