#432

Current orders is the manager’s main working page. It holds every order of the factory except the shipped and the cancelled ones — from drafts to those ready for dispatch. It opens from Orders → Current.

The same page serves the Search, Cancelled, Shipped, Goods sales and Problem tabs — only the set of orders differs, the layout is the same everywhere.

Pages and volume

The list is paginated: at the top and at the bottom you see Showing N–M of K and a switch for how many orders to keep on a page — 30, 50 or 100. Pages and the total are counted by the server, so the total is a real number and not merely what fitted into the query.

The heavy per-row data — payment, delivery, CNC statuses, accounting codes, the link to the programs — arrives in a separate request after the list itself. That is why the table shows up at once and some icons appear a moment later. A dash in the amount column means “not calculated yet”, not zero.

Filters: five tabs

The filter fields are laid out in tabs, one open at a time. The tab heading shows how many conditions it holds, so you do not have to open each one to find where you left something.

  • Search — the accounting code, the order ID or code, the order name.
  • Status and people — status, manager, customer.
  • Dates — the creation date range and the production date range.
  • Order flags — amount from and to, material collected, production queue, order overdue, urgent order, CNC operations, manual nesting.
  • Materials and services — material type and service type.

Conditions are applied by the magnifier button or by Enter, not on every keystroke: fill in several fields calmly and search once. The reset button sits next to it.

The reference lists (status, manager, customer, material and service types) have autocomplete and show the number of orders in brackets. The filters are interdependent: as soon as one condition is applied, the other lists keep only the values that will actually return something. Empty results from incompatible conditions are gone.

Under the filters every active condition is listed — any of them is removed by its cross, without opening the tab. The same place carries the total for the current search and, in brackets, how many such orders exist in all statuses.

Filter sets

A filter you have built can be saved with the diskette button: the system asks for a name (up to 50 characters, unique within the tab).

  • The list of saved sets appears only when there are sets.
  • One set can be marked as the default — it is applied by itself when the page opens.
  • If you change the conditions and they drift away from the set, the list honestly shows “not saved”.
  • The sets live in your browser and are tied to the firm and the user: a set refers to particular managers, customers and materials, and in another firm those are different records.

The table

The columns are: the tick, id, name, customer, manager, status, amount, “collected”, change date, production date and actions. By id, name, status, amount, change date and production date the list can be sorted — with a click on the heading.

The row actions are unchanged: change the status, mark the payment, edit the production date, look at materials and services, delivery, download the programs, open the order card.

Group actions

Tick several orders and a line appears above the table with the actions: assign a manager, set a production date, cancel the orders. The rights are checked exactly as in a row, and every action asks for confirmation. If some of the orders do not fit the action, the system says outright how many were skipped.

Export and refresh

  • The export button gives the ticked orders, or the current page when nothing is ticked. The file is a real xlsx.
  • The list refreshes by itself about once a minute. There is no separate refresh button: the search does that job.

What matters to the factory admin

  • Order visibility depends on the role: the head sees every order of the factory, an ordinary manager sees their own, a shop worker sees those that reached their shift task.
  • The list of statuses comes from the factory reference book; new statuses are added by the administrator.
  • Every filter condition is evaluated by the server, so the advanced search works at any volume — not only on a small selection as before.

How to read the table rows

The table is compact: the column widths are fixed, so long names no longer pull the rows apart, and the header, the filters, the pagination and the table itself share one width in the centre of the page.

  • The status is labelled as «[code] Name», the client and the manager as «[id] Name». Values are printed in full and wrap inside their own column instead of being truncated.
  • The change date and the production date are printed in short form, dd.mm.yy; the full date with the time is shown in the tooltip on hover.
  • Renaming an order and changing its status update the row right away, without reloading the page. If the server refuses, an error notification appears and the previous value stays in place.