Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Introduction

This configuration allows you to specify which documents can be generated from the Store App. Once configured, these documents will be displayed from the printer button (pages without scan) or from the preparation pop-up (page with scan).

Page without scan

By default, “shipment” and “dispatch_note” documents are displayed

Image Added

Page with scan

By default, “shipment” and “dispatch_note” documents are displayed

Image Added

Default configurations

...

Most of the time, it is not necessary to modify these elements as a default configuration exists on most pages. Here are the details.

Page

Documents by default

JSON format

prepare_select

Expand
titleUnfold
Code Block
languagejson
[
  {
    "name": "preparation_note",
    "existsIf": "documents.preparation_note",
    "type": "multi_parcel"
  }
]

...

pack or pack_multi

Expand
titleUnfold
Code Block
languagejson

...

[

...


  

...

{

...


    "name": "shipment",

...


    "existsIf": "shipment.document_id"

...


  

...

},

...


  {

...


    "name": "dispatch_note",

...


    

...

"existsIf": "documents.dispatch_note"

...


  }

...

]

pack_scan

Expand
title

...

Unfold
Code Block
languagejson
[
  {
    "name": "shipment",
    "existsIf": "shipment.document_id"
  },
  {
    "name": "dispatch_note",
    "existsIf": "documents.dispatch_note"
  }
]

dispatch

Expand
title

...

Unfold
Code Block
languagejson
[
  {
    "name": "shipment",
    "existsIf": "shipment.document_id",
    "entityType": "parcel"
  },
  {
    "name": "dispatch_note",
    "existsIf": "documents.dispatch_note",
    "entityType": "parcel"
  },
  {
    "name": "manifest",
    "existsIf": "document_id",
    "entityType": "shipment_manifest"
  }
]

...

...

bag or bag_multi

Expand
titleUnfold
Code Block
languagejson
[
  {
    "name": "dispatch_note",
    "existsIf": "documents.dispatch_note"
  }
]

bag_scan

Expand
title

...

Unfold
Code Block
languagejson
[
  {
    "name": "dispatch_note",
    "existsIf": "documents.dispatch_note"
  }
]

boxing

Expand
title

...

Unfold
Code Block
languagejson
[
  {
    "name": "shipment",
    "existsIf": "shipment.document_id"
  },
  {
    "name": "dispatch_note",
    "existsIf": "documents.dispatch_note"
  }
]

...

customer_search > customer_order

Expand
titleUnfold
Code Block
languagejson
[
  {
    "name": "collect_note",
    "existsIf": "documents.collect_note",
    "entityType": "order"
  },
  {
    "name": "shipment",
    "existsIf": "shipment.document_id",
    "entityType": "parcel"
  },
  {
    "name": "dispatch_note",
    "existsIf": "documents.dispatch_note",
    "entityType": "parcel"
  },
  {
    "name": "return_note",
    "existsIf": "documents.return_note",
    "entityType": "return_parcel"
  },
  {
    "name": "manifest",
    "existsIf": "documents.manifest",
    "entityType": "parcel"
  }
]

  • name (mandatory) - Name of the document. Must match the name given in the document template configuration.

  • existsIf (mandatory) - Path used to identify whether or not the document has already been generated. If the document is found via the configured path, then a green tick will be displayed and the document will simply be retrieved and not posted again.

  • entityType (optional) - Used to identify the entity in which you need to check whether the document has been generated. If not entered, the default value is "parcel". Other values can be "return_parcel", "order" or "shipment_manifest"

  • type (optional) - Used to indicate whether a custom document is a shipment. Does not need to be configured for a standard "shipment" but must be configured for "return_shipment".