Help centre › MAJA Books › Settings

Add your own fields to invoices, bills and orders — custom fields

Quick answerIn MAJA Books go to Settings → Documents → Custom fields → New field: a label (PO reference, Project, Licence expiry, Account number), one of thirteen types (text, long text, a number, an amount, a percent, a date, a checkbox, an e-mail, a web address, a phone, a list of one choice, a list of several, an auto-number), which records carry it (invoices, credit notes, proformas, sales orders, delivery challans, payments received, bills, purchase orders, debit notes, expenses, payments made, manual journals, items, customers, vendors), a default, whether it is required, unique and printed, and who may change it. From then on each of those forms shows a "More fields" block; the values are saved beside the record, shown on its page and printed on the paper among the document's details.
Where: MAJA Books → Settings → Documents → Custom fields · the "More fields" block on each formWho: The owner or an admin makes the fields; anyone who edits the record fills them, unless the field names the roles that may

Steps

  1. Click Settings, then Documents, then under Custom fields click New field.
  2. Type the label and pick the type. For a list (one choice or several), type the choices separated by |. For an auto-number, give the prefix, the digits and the next number — MAJA gives each record its number when it is first saved.
  3. Tick which records carry it — they are grouped as Sales, Purchases, Accountant, and Items and contacts.
  4. Give a default value if a new record should start with one, a help text shown under the field, and tick Required, Unique (no two records alike — text, e-mail, web address, phone, number, amount) and Printed as you need.
  5. Under Who may change it, tick the roles that may change the value. None ticked: every role that may edit the record. The owner always may; the others see the field locked.
  6. Save. Open a new record of that kind: the block More fields shows the field with its default; fill it and save as usual. The record's page shows the values; Print, PDF and the e-mailed copy carry the printed ones among the details.
  7. To change a field, click its pencil; to remove it, the bin — a field that records already carry is retired, not deleted: the values stay on those records.

What MAJA does for you

  • Checks each value by its type before the record is saved, on the page and again on the server: a required field cannot be left empty (a required checkbox must be ticked), a number, an amount and a percent take a number, an e-mail, a web address and a phone take one, a list takes only its choices.
  • Refuses a unique value another record of the kind already holds, whatever its capitals.
  • Gives an auto-number once — the first time the record is saved with the field — and never changes it; a copy of a record is given its own. The next number only moves forward.
  • Keeps a field closed to a role as it was: a member whose role may not change it saves the record with the value it held (a new record with the default).
  • Keeps the values beside the record, never inside it: the record's own save, its number, its journal and its stock are exactly what they were.

Good to know

  • The type of a field is fixed once a record carries a value — make a new field instead.
  • A record that has never carried any field of its kind shows the defaults when it is next opened, and takes them when it is next saved with them left blank; a record that already carries other fields keeps the new one blank until it is filled.
  • A draft manual journal posted from the list keeps its fields on the posted entry; a posted journal changed takes its fields to the entry that takes its place.
  • A field marked not printed is for your own eyes — the page shows it, the paper does not.
  • A proforma's or a sales order's fields do not copy to the invoice made from it — the invoice has its own block to fill.
  • A vendor advance, the quick Record Payment from an invoice, a bulk payment, the till's sales and the recurring profiles carry no custom fields.

Validation rules — your own conditions

  1. Click Settings → Validation Rules → New rule. Give it a name, pick the kind of record it is on (the fifteen kinds above), and whether it is judged when the record is made, changed, or both.
  2. Add up to ten conditions: a field (the record's own — a date, the customer or vendor, a total, the discount, the reference, the notes — or one of your custom fields), a comparison (is more than, is before, contains, starts with, is empty …) and what it is compared with (a number, a date or today, words, a customer). Say whether the rule refuses when all of them are met or any.
  3. Write the words it refuses with — the member sees exactly these, with the rule's name. Tick the roles it is not for, if any (the manager who may give the larger discount). Save.
  • MAJA judges a rule when the record is made, or when one of the fields it reads changes — so a payment that changes an invoice's balance, or a change to its notes, is never refused by a rule on its discount.
  • The server judges every save, from the page or the API; a rule on custom fields is also asked on the page before anything is saved. MAJA's own jobs (the daily run, a recurring profile) are not judged.
  • A figure the books work out themselves — a balance, a status — is not offered in a rule.

Lock a record

  1. Open the invoice, credit note, proforma, sales order, delivery challan, bill, purchase order, debit note, expense, payment or manual journal, and click Lock above its details. Say why (sent to the auditor, agreed with the customer).
  2. The page shows Locked by … on … — the reason. Nobody edits, voids or deletes it, adds or changes a line or its custom fields, until it is unlocked; payments, credits applied to it, a close and the cost of its goods still go on.
  3. To change it again, click Unlock and say why. Both reasons are kept in the audit trail.
  • The owner and admins may lock and unlock; Settings → Record Locking names any other role that may, and lists what is locked now.
  • A void record is final already and is not locked; a journal a document posts is locked with its document, not by hand.

Custom buttons, links and related lists

Settings → Documents → Custom Buttons & Links → New button or related list:

  1. Give it a Name, choose On (invoices, customers, items …) and Shown as: a button on the record's page, which opens a new tab, or a related list, which shows the web page inside the record's page.
  2. Type the Web address, starting with https://. Placeholders in braces take the record's values: {number} {name} {date} {total} {currency} {party_name} {party_trn} {party_email} {id}, any field of the record by its own name (for example {invoice_number} or {trn}), and {company_id} {company_name} {user_email} {user_name}. For example: https://track.example.com/?ref={number}.
  3. Optionally choose an icon, the related list's height and the roles that see it (none ticked: everyone; the owner and admins always see it), then Save.

Each value is encoded for the address. MAJA opens the address and runs nothing else. A placeholder that is not the record's, or an address that is not https, is refused when you save. You can have ten buttons and five related lists per kind of record. Some sites refuse to be shown inside another page; Open in a new tab sits beside every related list for those.

Web tabs

Settings → Documents → Web Tabs → New web tab: a name, an https address (it may carry {company_id} {company_name} {user_email} {user_name}), an icon and the roles that see it. The tabs open from Web Tabs in the menu, above Chat, with Open in a new window beside them. You can have twenty at most.

Custom modules — your own kinds of record

Settings → Documents → Custom Modules → New module makes a kind of record of your own, such as Vehicles, Contracts, Projects or Assets on loan:

  1. Give it a Name (Vehicles), what one record is (Vehicle), an icon, a Number prefix (VEH-) and the digits. The first record will be VEH-00001.
  2. Add its Fields: a label and a type (text, long text, number, amount, percent, date, checkbox, e-mail, web address, phone, a list of one or several choices, or a link to a customer, a vendor or an item). Tick which are required, which are unique (no two records with the same plate, say) and which show in the list.
  3. Choose who sees it and who changes it. With no role ticked, every member sees it and every member who writes changes it; a viewer never changes it. The owner and admins always can. Then Save.

The module appears in the menu. It has a searchable list, New, and a page for each record with Edit and Delete. Each value is checked by its type when you save. A record that links to a customer, vendor or item also shows on that customer's, vendor's or item's page.

Custom buttons and related lists (above) work on a module's records too, using its fields as placeholders, for example {plate}. Once records hold values for a field, its type stays as it is. A module with records is not deleted; switch it off instead. A module holds information beside the books and posts nothing to the ledger.

People also ask
  • Can I add custom fields to invoices in MAJA Books?
  • How do I print a PO reference or project code on an invoice in MAJA?
  • Does MAJA support custom fields on purchase orders and bills?
Still stuck? In the app, tap the ? button at the top and choose Chat with MAJA support — the screen you are on goes with your message and the reply comes to the same place (within one working day). Or write to support@majabooks.com, or ask MAJA's assistant (the round button at the bottom right of MAJA Books).