Mobile Printing
OMD Mobile supports printing receipts on mobile printers. Mobile printers are connected to the mobile device by using a Bluetooth connection.
A printout of a receipt is immediately activated once the task is closed if:
- the App preferences for mobile printing have been set (Printer model and Bluetooth name of the device)
- the
showPrintIcon
is true for the process flow of the task
showPrintIcon | ||||
---|---|---|---|---|
Type | Default Value | Example | Android | HTML 5 |
Boolean | false | true | + | + |
Once the task has been closed, a receipt can be printed by selecting the task on the Closed tab and pressing the Print button.
The general layout of the service report is defined as follows:
<Top of the report>
Logo of the company
Section 1: all relevant task and task attachment details
Signature of the customer, if present
Section 2: Final text
<End of the report>
It is possible to immediately print a receipt once the task is finished. To activate this functionality, turn the printWhenFinish
preference on. The mobile worker will not have to push the print button himself, the receipt will be sent to the mobile printer automatically.
printWhenFinish | ||||
---|---|---|---|---|
Type | Default Value | Example | Android | HTML 5 |
Boolean | false | true | + | - |
The http-based URL of the logo which should be used for the receipt is stored in the process flow preference urlPrinterLogo
.
urlPrinterLogo | ||||
---|---|---|---|---|
Type | Default Value | Example | Android | HTML 5 |
String | Undefined | http://www.yourdomain.com/ /printLogo.jpg | + | - |
The layout of the sections 1 and 2 can be adapted by defining XSL template documents. The transformation will be based on an XML document containing all relevant elements and attributes (Task, TaskAttachment
, Product, Status). The process flow preferences are named printSection1Template
and printSection2Template
.
printSection1Template | ||||
---|---|---|---|---|
Type | Default Value | Example | Android | HTML 5 |
String | Undefined | See below. | + | - |
printSection2Template | ||||
---|---|---|---|---|
Type | Default Value | Example | Android | HTML 5 |
String | Undefined | See below. | + | - |
Both templates can use the following XML structure derived from the task to layout the printable text:
to make the extra information accessibly by the templates, the XML document in the extra field of the task is copied into a separate sub-element of the Task element, whereas each attribute in the Data element of the extra XML on item level is included as an additional attribute on the TaskAttachment
element.
3. Each XML element apart from the Other element includes all correspond attributes as defined in the datamodel of OMD. ↩
4. Note that only those products having a corresponding reference on at least one of the attachments of subtype itemsPlanned
or material are included in the XML. ↩