ho-gridb0.0.7

Showcase: journal entry in an ERP

A real business screen built with ho-grid. It is the journal entry window of a finance ERP demo made by HOREETEC, and the table where lines are entered is ho-grid. The pictures below are captures of the working screen (the interface is in Korean); the company, people and amounts are made-up demo data.

While typing: the debit–credit difference shows at once

Journal entry window with debit 3,300,000, credit 0 and a difference of 3,300,000 shown in red
Only two debit lines entered. A difference row appears in red under the total row.
  • The total row and difference row at the bottom are recalculated on every change (Debit–credit balance).
  • A line takes either a debit or a credit. Typing a debit clears the credit on the same line.
  • The magnifier buttons in the department and account cells open a code search. Entering an account code fills in the account name.
  • Several lines copied from Excel can be pasted as they are (Copy, paste and Excel).

Enter adds a line and fills in the difference

Journal entry window where the third line has a credit of 3,300,000 and debit and credit totals match
Pressing Enter on the last line adds a new line with the difference, 3,300,000, already filled in on the short side (credit).

A whole journal can be entered with the keyboard alone. When debits and credits match, the difference row disappears.

A posted journal: read-only

Posted journal window showing five payroll lines and a total of 42,000,000
A posted journal uses the same grid in read-only mode. Excel download still works.

Options used on this screen

Two options turn on what journal entry needs. See Editing for details.

createGrid(el, {
  columns,
  rows,
  // total and difference rows, one side per line, fill the difference on a new line
  balance: { debit: 'entered_dr', credit: 'entered_cr', label: 'account_name', exclusive: true, fillDiff: true },
  // Enter on the last line = new line (carrying over the description)
  appendOnEnter: last => ({ description: last.description })
})

How the screen is built

  • Screen: Vue 3 + ho-grid (no other grid library)
  • Server: a Spring Boot gateway + PostgreSQL functions and procedures
  • What the grid does: editing, totals and difference, adding and removing rows with undo, reviewing changes before saving, Excel download

To build a screen like this, start with Getting started. For enquiries, write to [email protected].