--- title: "Expense quantity and unit price for Accountants - Payhawk Help Center" slug: "recording-quantity-and-unit-price-on-expenses" description: "Turn on the Quantity & Unit price field to record how many items you bought and at what price. Payhawk calculates the amount and exports it to your ERP system." updated: 2026-11-30T13:55:59Z published: 2026-11-30T13:55:59Z canonical: "payhawk.com/recording-quantity-and-unit-price-on-expenses" --- > ## Documentation Index > Fetch the complete documentation index at: https://payhawk.com/help/llms.txt > Use this file to discover all available pages before exploring further. # Recording quantity and unit price on expenses You can record how many items you bought and at what price on an expense or on each of its line items. Payhawk calculates the amount for you and sends the quantity and unit price to your accounting system when you export. ## Before you start You can find the necessary prerequisites in the following table: | **What you need** | **Details** | | --- | --- | | Payhawk role | A Payhawk Administrator turns on the field and chooses who sees it. | | Where it works | Quantity and unit price work in the [Payhawk Web Portal](https://portal.payhawk.com). | | Spend types | Card, cash, bill, and reimbursement expenses. Mileage and per diem expenses don't have the field, because Payhawk calculates their amounts itself. | ## Enabling the quantity and unit price field **Quantity & Unit price** is disabled until a Payhawk Administrator enables it. Expenses created before you enable it stay as they are. To enable the field: 1. In the [Payhawk Web Portal](https://portal.payhawk.com), open the app switcher in the top-left corner and go to **Settings** > **Expense fields**. 2. Under **Built-in fields**, click on **Quantity & Unit price**. 3. Enable the **Enable field** toggle button. 4. Under **Visibility**, select the roles that can see and change the value of the field. The Payhawk Administrator and Payhawk Accountant roles are always selected and can't be removed. 5. (Optional) Under **Required**, enable the **Required for submission** or **Required for review** toggle buttons. The **Required for submission** option appears when you select the Payhawk Employee role. 6. Click on **Save changes**. ![Quantity and Unit price field settings in Payhawk with the field enabled, the roles that can see it, and the Required for submission and Required for review toggles](https://cdn.payhawk.com/Acc%3AExpenses/Recording_quantity_and_unit_price_on_expenses_enable_field_20261111_ai.png) ## Entering quantity and unit price To enter the quantity and unit price on an expense: 1. Open the expense. 2. Find **Quantity & Unit price** in the **Amount** section. If the expense is split into line items, each line has its own quantity and unit price. 3. Enter the **Quantity** and the **Unit price**. ![Amount section of an expense in Payhawk showing a quantity of 2 at a unit price of 10.00 EUR and a total of 20.00 EUR](https://cdn.payhawk.com/Acc%3AExpenses/Recording_quantity_and_unit_price_on_expenses_amount_section_20261111_ai.png) Payhawk multiplies the quantity by the unit price to get the net amount, then adds tax to give the total. For example, 2 × EUR 10.00 with 20% VAT gives a total of EUR 24.00. On line items, the quantity and unit price appear as follows, depending on the layout: - Table layout - The **Quantity** and **Unit price** columns come before **Discount**. - List layout - Each line shows its quantity and unit price in a single row. > [!TIP] > In **Quantity**, type `x` or `*` to go straight to **Unit price**. ### Calculating the amount You can see how Payhawk calculates the amount in different use cases in the following table: | **Use case** | **What happens** | | --- | --- | | You enter both quantity and unit price. | Payhawk calculates the total, and you can't edit **Total** directly. | | You want to enter the total yourself. | Clear the quantity or the unit price. **Total** becomes editable again. | | You enter only one of the two values. | Payhawk doesn't recalculate the amount, as it needs both values. | | The expense is a credit note. | The unit price is negative. | | The expense is paid. | Quantity and unit price become read-only. | > [!TIP] > The values must meet the following criteria: > > - **Quantity** must be greater than zero and can have up to 4 decimal places, for example, 22.5 days. > - **Unit price** is the price of one unit before tax, in the expense currency. It can have up to 4 decimal places. ### Adding documents You can see what Payhawk fills in when you add an invoice or a receipt to an expense in the following table: | **What you do** | **What Payhawk fills in** | | --- | --- | | You upload an invoice or a receipt. | Quantity 1, with the unit price set to the net amount. For e-invoices, or when the net amount is 0, these fields stay empty. Enter them yourself if you need them. | | You split the expense by document lines. | Each line takes the quantity and unit price printed on that line of the document. | Card and cash expenses that already had an amount before you added a document keep that amount. Payhawk doesn't fill in quantity and unit price on them. ### Splitting and merging line items When you [split an expense into line items](/help/splitting-expenses-into-line-items-in-the-portal) by document lines, request lines, or purchase order lines, each new line keeps its quantity and unit price. When you merge line items, the result depends on the lines you merge: | **Lines you merge** | **Result** | | --- | --- | | Lines with the same unit price | One line with the quantities added together | | Lines with different unit prices | One line with quantity 1 and the combined net amount | | The lines have different tax rates, items or purchase order items, only some of them are linked to a purchase order, or they're purchase order lines with different unit prices | These lines can't be merged. Merge only lines that match. | ## Using quantity and unit price with purchase orders and workflows You can use the quantity and unit price on your expenses to check invoices against purchase orders and to route expenses for approval. ### Matching quantities against purchase orders When the purchase order has quantities, Payhawk checks each linked line. It flags the expense as a discrepancy and sends it for approval when more is invoiced than was ordered, when the unit price is higher than on the purchase order by more than your [discrepancy threshold](/help/setting-discrepancy-rules), or when a line has no quantity or unit price. Your threshold applies to unit price only, not to quantity. ### Using quantity and unit price in workflows In [expense workflows](/help/setting-approval-workflows-for-expense-types), you can use a line's item and its **Unit price** as conditions, for example, to send an expense to a second approver when the unit price is above 1,000. Item conditions are available at entity level when inventory items are on. To act on **Quantity**, use automation rules. ## Troubleshooting You can find the most common issues, their causes, and solutions in the following table: | **Issue** | **Cause** | **Solution** | | --- | --- | --- | | You don't see **Quantity & Unit price**. | The field is off, or your role or this spend type isn't set to see it. | Ask a Payhawk Administrator to check the field settings. | | You don't see the field in the Payhawk Mobile App. | Quantity and unit price are available in the web portal only. | Use the [Payhawk Web Portal](https://portal.payhawk.com). | | You see the "Enter a quantity greater than 0 with up to 4 decimal places." error. | The quantity is 0, negative, or has too many decimal places. | Enter a positive number with up to 4 decimal places. | | You see the "Enter a valid unit price." error. | The unit price is empty or isn't a number. | Enter the price of one unit before tax. | | You can't edit **Total**. | Both quantity and unit price are filled in. | Clear one of them to enter the total yourself. | | The field isn't on a mileage or per diem expense. | Payhawk calculates those amounts. | No action is needed. | | Xero or MS Business Central shows quantity 1. | The unit price couldn't be rounded to add back up to the line amount, so Payhawk exported a quantity of 1 and the full line amount. | No action is needed. Payhawk sends the full amount so your totals always match. | | Xero or MS Business Central shows a higher unit price. | The unit price there includes tax (for MS Business Central, outside the US). | No action is needed. The line total is correct. | | Oracle NetSuite doesn't show the quantity or unit price. | The line is booked to an account instead of an item, or your Payhawk SuiteApp is older than version 3.10.0. For credit card charges, only the quantity is sent. | Ask your Oracle NetSuite administrator to update the SuiteApp. Lines booked to an account carry the amount only. | | The expense is flagged as a discrepancy. | More was invoiced than was ordered, the unit price is above your discrepancy threshold, or a line has no quantity or unit price. | Check the invoice against the purchase order, then approve or return the expense. | ## Useful resources - [Splitting expenses into line items](/help/splitting-expenses-into-line-items-in-the-portal) - [Setting discrepancy rules for purchase orders](/help/setting-discrepancy-rules) - [Configuring fields in spend types](/help/configuring-expense-types-fields)