Skip to content

Maintenance Document Terms

Licence

The machine-maintenance terms need the crm-maintenance licence code; the service-maintenance terms need crm-maintenance-services.

The maintenance suites are where CRM document terms do real work. Almost everything that looks automatic in maintenance — a contract that fans out into a year of work plans, a work plan that turns into orders, an order that hands each machine to a technician as an execution sheet, an invoice that empties the parts out of the warehouse — is driven from a term. Get the terms right once and the whole cycle runs off button presses. Get them wrong and the buttons quietly do nothing.

If you have not read How CRM Document Terms Work yet, start there: it explains the accounts block, the generation block and the one-sided-term trap that applies here too.

One term configuration, two products

The machine suite and the services suite are separate products under separate licences, but five of the term configurations are literally the same shape used twice:

Term configurationMachine documentServices document
Order termMaintenance Order (أمر صيانة), Maintenance Order Request (طلب أمر صيانة)Maintenance Service Order (أمر خدمة صيانة)
Contract termMaintenance Contract (عقد صيانة)Maintenance Service Contract (عقد خدمة صيانة)
Invoice termMaintenance Invoice (فاتورة صيانة)Maintenance Service Invoice (فاتورة خدمة صيانة)
Invoice return termMaintenance Invoice Return (مردود فاتورة صيانة)Maintenance Service Invoice Return (مردود فاتورة خدمة الصيانة)
Work plan termMaintenance Work Plan (خطة عمل صيانة)Maintenance Service Work Plan (خطة عمل خدمة صيانة)

The screens are adjusted per document — the services versions swap in their own book-and-term fields and hide the account sides the services document cannot use — but the settings underneath are shared. The practical consequence is the theme of the second half of this page: an option that does something useful on a machine document may have nothing to act on when it appears on its services twin. Never assume that because a switch works on the maintenance invoice it works on the service invoice.

Four more terms are not shared at all: the Maintenance Estimation term, the Maintenance Order Execution term, the Maintenance Visit term and the CRM Maintenance Plan term. The Maintenance Service Order Execution has no term configuration of any kind.

The generation pairs — what every generate button actually runs on

This is the single most important table in maintenance setup. Each row is a book-and-term pair that lives on one term and produces one kind of document.

Configured on the term forFieldsProducesWhen
Maintenance Contractدفتر خطة العمل / Work Plan Book · توجيه خطة العمل / Work Plan TermMaintenance Work PlansButton Generate maintenance work plans
Maintenance Service Contractدفتر خطة عمل خدمة صيانة / Service Work Plan Book · توجيه خطة عمل خدمة صيانة / Service Work Plan TermMaintenance Service Work PlansThe equivalent button
Maintenance Work Planدفتر أمر الصيانة / Mn Order Book · توجيه أمر الصيانة / Mn Order TermMaintenance OrdersButton Generate maintenance orders
Maintenance Service Work Planدفتر أمر خدمة صيانة / Service Order Book · توجيه أمر خدمة صيانة / Service Order TermMaintenance Service OrdersThe equivalent button
Maintenance Order / Order Requestدفتر سند التنفيذ / Mn Execution Doc Book · توجيه سند التنفيذ / Mn Execution Doc TermMaintenance Order ExecutionsButtons create execution for all lines / for selected lines
Maintenance Service Orderthe service execution book and termMaintenance Service Order ExecutionsThe equivalent buttons
Maintenance Order / Order Requestدفتر عقد الضمان / Warranty Contract Book · توجيه عقد الضمان / Warranty Contract TermA warranty Maintenance ContractAutomatically, on commit, when Order Type is Installation
Maintenance Invoice / Service Invoiceدفتر سند صرف مخزني / Stock Issue Book · توجيه سند صرف مخزني / Stock Issue Term, plus Generate Stock Issue With Spare Parts and Generate Stock Issue With Service ItemsA supply-chain Stock IssueAutomatically, on commit
Maintenance Invoice Return / Service Invoice Returnدفتر سند توريد مخزني / Stock Receipt Book · توجيه سند توريد مخزني / Stock Receipt Term, plus the two Generate Stock Receipt With… switchesA supply-chain Stock ReceiptAutomatically, on commit
Maintenance Estimationthe stock issue book and term — not reachable from the term screen, see belowA supply-chain Stock IssueAutomatically, on commit

Read that table as a chain and the worked example falls straight out of it. Contract MC-0021 is saved under book MC with term T-MC-STD; that term names work-plan book WP and term T-WP-STD, so Generate maintenance work plans produces WP-0087WP-0098, one per month. Term T-WP-STD in turn names order book MO and term T-MO-STD, so pressing Generate maintenance orders on a plan produces MO-0513. Term T-MO-STD names execution book OEX and term T-OEX-STD, so the order's execution buttons produce OEX-0771OEX-0773. Finally invoice MINV-0298 is saved under book MINV with term T-MINV-STD, whose stock-issue book SI and term T-SI-CRM produce the supply-chain issue SI-1904 on commit.

Break any link in that chain by leaving a book or term empty and the chain stops there.

A generate button with no book and term does nothing

The manual buttons refuse politely: they answer with a message asking you to set the book and term on the named term, and no documents appear. The automatic ones say nothing at all — an invoice whose term has no stock-issue book simply commits without generating a stock issue, and nobody is told.

Two details worth knowing while you configure:

  • Work-plan generation from a contract also needs the contract start and end dates filled in. Without them the button fails, whatever the term says.
  • The order-generation and execution-generation checks only fire when both the book and the term are empty. Fill one and leave the other and the check stays silent, so always set the pair together.

Which maintenance documents reach the ledger

Only some of them, and always through the term's Debit and Credit sides.

DocumentIts term's accounting behaviour
Maintenance Order, Maintenance Order RequestAn Effect (التأثير) page with a single Debit and Credit pair. Set both and the document creates a two-sided journal entry over its spare-part and service lines.
Maintenance Contract, Maintenance Service ContractAn Invoice effect (تأثير الفاتوره) page — the full invoice shape, with tax, discount, cash and approximation-discount sides.
Maintenance Invoice, Maintenance Service InvoiceThe same full invoice shape, plus four extra Service Fees debit/credit pairs on the machine invoice.
Maintenance Invoice Return, Maintenance Service Invoice ReturnThe same, in the opposite direction.
Maintenance EstimationThe pages are there — but see the warning below.
Maintenance Service OrderIts term shows no account sides, and the document creates no accounting entry.
Maintenance Order ExecutionTax settings only. It creates no accounting entry and moves no stock.
Maintenance Notice, both sales orders, both sales quotations, Maintenance Visit, the plansNothing.

As on every CRM term, the effect only happens when both sides are configured. One side alone means no journal entry, no error message and nothing in Business Requests, because no request was ever raised.

The estimation term — two traps on one screen

The Maintenance Estimation is the most dangerous document in the suite to configure, and both of its problems live on its term.

The generation settings on the estimation term are the wrong ones

The estimation term's Settings page has a Generation (الإنشاء التلقائي) group holding Generate Stock Receipt With Spare Parts, Generate Stock Receipt With Service Items, Stock Receipt Book and Stock Receipt Term. Those are stock receipt settings, and the estimation never reads them — ticking or filling them changes nothing.

What the estimation actually reads is a stock issue book, a stock issue term and two stock-issue switches, and none of those four is on this screen. So the estimation's stock generation cannot be configured from the standard term screen at all.

Take that as a safety feature, not a limitation: an estimation that issues stock is almost never what a site wants. Configure stock generation on the maintenance invoice term and leave the estimation term's generation group alone. See Maintenance Estimations.

The estimation's account sides are dormant, not harmless

The estimation term displays full Debit, Credit, tax and discount pages. Saving an estimation does not use them — the document creates no accounting entry on commit. But they are not ignored forever: if anyone presses Regenerate Accounting Effects on the estimation, or a ledger-regeneration job runs over it, the document suddenly produces a full invoice-style entry from exactly those pages.

Leave the estimation term's account sides empty unless that behaviour is deliberately wanted.

Stock generation belongs on exactly one term

Enable stock generation once, on the invoice term

The maintenance invoice and the maintenance estimation each generate their own stock issue, from their own copies of the same spare-part and service lines, and neither one knows about the other. There is no netting and no "already issued" check, so a single repair can empty the same parts out of the warehouse twice.

Pick one document term in the installation to carry the stock-issue settings — in practice the maintenance invoice term, as T-MINV-STD does in our example — and leave every other term's generation group empty.

The manual Spare parts issue buttons on the order, the execution and the invoice are an alternative to term-driven generation, never an addition to it. They open a pre-filled supply-chain document for someone to save, with no duplicate detection whatsoever. Choose one route per site and train people on it. See Maintenance Invoicing.

The warranty contract an installation order creates

An order whose Order Type is Installation automatically creates a warranty Maintenance Contract on commit, using the warranty-contract book and term on the order's own term. That generated contract is a full copy — machines, spare parts, services and the whole money block.

Leave the warranty-contract term without account sides

The warranty contract is a contract like any other, so if the term you name in Warranty Contract Term has Debit and Credit configured, the installation revenue reaches the ledger twice: once from the order, once from the contract it generated. Nothing warns you.

Point Warranty Contract Term at a term whose account sides are deliberately empty. See Maintenance Orders.

A maintenance order request is not a neutral request

The Maintenance Order Request shares the order term's shape, Effect page and all, and it creates its journal entry the same way the order does. A document whose whole purpose is to ask for work will reach the ledger the moment it is saved if its term carries account sides. Give requests their own term with the sides left empty.

The rest of the machine-suite settings

The order term also carries Do Not Copy Header Data Of From Doc and Do Not Copy Details Of From Doc, the tax group (Tax Plan, Taxable, Modifiable Tax, Allow Editing Header Tax In Details), Consider Task Templates Tasks When Creating Executions (اعتبار مهام قوالب المهام عند إنشاء عمليات التنفيذ — take the checklist from the header task template rather than the machine line's), and on the machine order only, a reward-points configuration and a discount-coupon group and book.

The invoice term adds Consider Lines Of FromDoc, Copy Remaining To Cash, Price List Default Price, the payment options, and the same reward-points and coupon fields.

Both the order term and the invoice term offer Update Machine Dysfunction Warranties (تحديث جدول ضمانات الأعطال في الآلة), which writes the machine's dysfunction-warranty rows.

Tick Update Machine Dysfunction Warranties on one term, not two

If both the invoice's term and its source order's term have this option on, the invoice is refused outright with a message naming the two files. Decide whether the order or the invoice is the document that registers warranties at your site — in our example it is the order term T-MO-STD — and switch it off on the other.

The smaller terms hold almost nothing: the Maintenance Order Execution term has only the four tax settings, the Maintenance Visit term has only Consider Lines Of FromDoc, and the CRM Maintenance Plan term is completely empty.

One cosmetic oddity on the contract terms — both the machine one and the services one: Pay Installments In Order is rendered twice, in two groups one after the other. It is the same single setting shown two times, not two settings, so ticking either box does the same thing.

The services-suite terms

Everything above applies to the services suite with the shared fields renamed — but the services documents do less than the machine documents whose settings they inherit, so several options arrive with nothing to act on.

Settings on the service terms that have nothing to act on

  • On the Maintenance Service Order term, Warranty Contract Book and Warranty Contract Term are displayed and read by nothing. No service order ever produces a warranty contract.
  • On that same screen, the service execution book and term — the two fields that do matter, since they drive the service order's execution buttons — are shipped without translations and appear under raw technical names in both languages. They are the two fields immediately below the do-not-copy switches.
  • On the Maintenance Service Invoice and Maintenance Service Invoice Return terms, the payment and pricing options — Copy Remaining To Cash, Pay Installments In Order, Allow Payment More Than Invoice Amount, Use Payment Docs As Debt Ages and Price List Default Price — have no payment or schedule lines to work on in this suite. Ticking them changes nothing.
  • Also on the service invoice term, ticking Generate Stock Issue With Service Items produces an empty stock issue, because only spare-part lines are ever collected. Only Generate Stock Issue With Spare Parts does anything.

See Services or Machines? for the wider picture of what the services branch does and does not have.

And one gap rather than a defect: the Maintenance Service Order Execution has no term configuration at all, so its Document Term offers only the platform's standard options. In our example SEX-0090 is saved under book SEX with no term.