# Better receipt tagging defaults

**URL:** <https://community.quickfile.co.uk/t/better-receipt-tagging-defaults/26253>\
**Category:** Feature Request\
**Created:** [8 March 2019 14:22 UTC](https://community.quickfile.co.uk/t/better-receipt-tagging-defaults/26253 "2019-03-08T14:22:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![cjdshaw](https://qfcommunity.b-cdn.net/letter_avatar_proxy/v4/letter/c/ea5d25/32.png) [@cjdshaw](https://community.quickfile.co.uk/u/cjdshaw)\
**Post date:** [8 March 2019 14:22 UTC](https://community.quickfile.co.uk/t/better-receipt-tagging-defaults/26253/1 "2019-03-08T14:22:52Z")

</div>

I like that when I choose a supplier when tagging an invoice, some fields are filled in for me automatically, particularly the category. It could be better though. For instance, I have some US supplier, which are always tagged as currency USD, No VAT, but when I choose them, the form actively switches to GBP and 20% VAT. I’d like to see the following fields correctly remembered from the last time that supplier was used:  
Currency  
VAT rate  
Category (already works)  
Project tags  
Payment information (some suppliers are always immediately paid in full from a specific account)

It would make tagging receipts much quicker. Really, Supplier should be moved to the top to encourage users to choose it first and get their defaults filled in immediately.

---

<div class="post-metadata">

**Author:** ![ian\_roberts](https://qfcommunity.b-cdn.net/user_avatar/community.quickfile.co.uk/ian_roberts/32/17630_2.png) [@ian\_roberts](https://community.quickfile.co.uk/u/ian_roberts)\
**Post date:** [8 March 2019 14:28 UTC](https://community.quickfile.co.uk/t/better-receipt-tagging-defaults/26253/2 "2019-03-08T14:28:05Z")

</div>

> [@cjdshaw](#):
>
> I’d like to see the following fields correctly remembered from the last time that supplier was used:  
> Currency  
> VAT rate  
> Category (already works)

I believe these are all taken from the default for that supplier, as set in the supplier control panel under “modify supplier details”.

---

<div class="post-metadata">

**Author:** ![cjdshaw](https://qfcommunity.b-cdn.net/letter_avatar_proxy/v4/letter/c/ea5d25/32.png) [@cjdshaw](https://community.quickfile.co.uk/u/cjdshaw)\
**Post date:** [8 March 2019 18:15 UTC](https://community.quickfile.co.uk/t/better-receipt-tagging-defaults/26253/3 "2019-03-08T18:15:16Z")

</div>

Ah yes. So it seems the problem is that the defaults aren’t set correctly when you create a new supplier from the Tagging page

I’d still like to see automatic filling of Payment information - i.e. whether it has been paid in full and from which account. That would save a lot of time when tagging receipts.

---

<div class="post-metadata">

**Author:** ![Lurch](https://qfcommunity.b-cdn.net/letter_avatar_proxy/v4/letter/l/a9a28c/32.png) [@Lurch](https://community.quickfile.co.uk/u/Lurch)\
**Post date:** [8 March 2019 20:58 UTC](https://community.quickfile.co.uk/t/better-receipt-tagging-defaults/26253/4 "2019-03-08T20:58:42Z")

</div>

> [@cjdshaw](#):
>
> I’d still like to see automatic filling of Payment information - i.e. whether it has been paid in full and from which account. That would save a lot of time when tagging receipts.

You can do this with some entries in the custom scripts section if you have a power user subscription.

This would select for example the credit card as the default account in the receipt hub when you check the “paid in full” box;

```auto
$(document).ready(function() {
    nominal = 1250;
    currency = 'GBP';
    $('#dropBankAccount').val(nominal + '-' + currency);

```

There’s more info on custom scripts here;

> [@Global Scripts](https://community.quickfile.co.uk/t/global-scripts/9117):
>
> Please Note: To make use of the Global Scripts template you will need a good working knowledge of Javascript Introduction Global Scripts are a powerful customisation allowing you to run your own Javascript/JQuery code directly within your QuickFile administration area. By implementing custom Javascript you are free to create a multitude of advanced features on top of the core QuickFile platform. You can use Global Scripts to auto form fill, clear default values, display warning messages and ex…

---

<div class="post-metadata">

**Author:** ![cjdshaw](https://qfcommunity.b-cdn.net/letter_avatar_proxy/v4/letter/c/ea5d25/32.png) [@cjdshaw](https://community.quickfile.co.uk/u/cjdshaw)\
**Post date:** [12 July 2019 11:36 UTC](https://community.quickfile.co.uk/t/better-receipt-tagging-defaults/26253/5 "2019-07-12T11:36:35Z")

</div>

Thanks for this. It seems very cryptic though. Why does the nominal code need a currency? Is there any reference for the scripting language?

I’d hoped hovering over a UI item might give me its id, but I can’t find any way to get it

EDIT: Just realised I can get the id using Chrome’s Inspect function. Some scripting docs would be good though. For anyone wanting to automatically set expenses as Paid in full from Petty Cash, the script is

```
function paidPettyCash() {
  $('#dropBankAccount').val("1230-GBP");
  $("#chkPaid").attr("checked",true);
  $('#trPaidFromBank').show();
}

$(".imgCreateNewPurchase").click(function() {
    setTimeout(paidPettyCash, 0); // Lets it execute after the default handler
});  

```

The 1230 comes from the “Nominal code” in account settings

---

<div class="post-metadata">

**Author:** ![Lurch](https://qfcommunity.b-cdn.net/letter_avatar_proxy/v4/letter/l/a9a28c/32.png) [@Lurch](https://community.quickfile.co.uk/u/Lurch)\
**Post date:** [13 July 2019 11:59 UTC](https://community.quickfile.co.uk/t/better-receipt-tagging-defaults/26253/6 "2019-07-13T11:59:07Z")

</div>

> [@cjdshaw](#):
>
> Is there any reference for the scripting language?

It’s Javascript/Ajax, so although there is no specific Quickfile reference it should just work with any JS that fits in with the code on the site. The whole point is that you can do whatever you want that works, so there is no set scripts to use.
