import { Callout } from "zudoku/ui/Callout";

# Available amount and vendor priority

How to limit a payment run in 365 business Banking to an available amount and decide which vendors are paid first.

If the balance in the account is not sufficient for all invoices that are due, set an upper limit in the [extended payment suggestion template](templates.mdx). The suggestion then uses up this amount line by line, optionally starting with the vendors with the highest priority.

## Standard functionality in Business Central

The standard **Suggest Vendor Payments** also has an **Available Amount (LCY)** and the option to use the **Priority** on the vendor card. See [Microsoft Learn: Suggest vendor payments](https://learn.microsoft.com/en-us/dynamics365/business-central/payables-how-suggest-vendor-payments). The **Priority** field on the vendor card is a standard field; 365 business Banking uses it unchanged.

## What 365 business Banking adds

Both settings are stored in the template and apply to every run with that template, including customer and employee payments.

### Available Amount (LCY)

- If **Available Amount (LCY)** is greater than zero, the suggestion creates lines as long as they fit into the remaining amount.
- If a line no longer fits, it is skipped and the suggestion continues with the next line. A smaller invoice further down can therefore still be paid.
- There is no partial payment: an invoice is suggested in full or not at all.
- With **Summarize per Account**, and for accounts with credit memos, the amount of the whole account applies: it is included in full or not at all.
- Blank or 0 means: no limit.

The amount is counted in local currency, and only for lines that are actually created. Netting lines of a [customer-vendor netting](netting.mdx) are not sent to the bank and are not counted.

### Use Vendor Priority

If **Use Vendor Priority** is turned on and an available amount is set, the lines are created in the order of the **Priority** on the vendor card: priority 1 first, then 2, 3 and so on; vendors without a priority (0) come last. For summarized lines, the lowest priority of the account or payment group applies.

If the template also suggests customer or employee payments, these lines are ranked like vendors without a priority: they come after all vendors with a priority, together with the vendors without one. A limited amount is therefore used for the prioritized vendors first.

Without an available amount, the priority has no effect. In this case, all entries are suggested, sorted by account type, account number and currency.

## Example

Available amount 10,000.00 EUR, **Use Vendor Priority** turned on:

| Vendor | Priority | Invoice due | Result | Remaining |
|---|---|---|---|---|
| Utilities | 1 | 4,000.00 | suggested | 6,000.00 |
| Main supplier | 2 | 7,000.00 | skipped (amount not sufficient) | 6,000.00 |
| Office supplies | 3 | 1,500.00 | suggested | 4,500.00 |
| Consulting | 0 | 3,000.00 | suggested | 1,500.00 |

<Callout type="tip" title="Check skipped vendors">
The suggestion does not report skipped invoices individually. After a limited run, check whether important vendors are missing, for example with the **Aged Accounts Payable (Excel)** report (report 4403), and raise their priority if needed.
</Callout>

## See also

- [Set up extended payment suggestion templates](templates.mdx)
- [Which entries are suggested](entry-selection.mdx)
- [Extended payment suggestion](../payment-suggestion.mdx)
