# Clone Order Request Entity for Back Office

This section explains how to **clone an Order Request entity** and customize it for the **Back Office role**.\
Back Office users are responsible for **reviewing order requests**, **selecting suppliers from supplier lists**, and **preparing cost information** before the approval stage.

The Back Office entity is created by cloning the **Admin Order Request entity** and adjusting fields, conditions, and UI behavior to fit the Back Office responsibilities.

***

### Objective

By completing this section, you will learn how to:

* Clone an existing Admin entity for Back Office usage
* Modify displayed fields and layout
* Change decision configuration for Back Office workflows
* Add summary and pricing information
* Restrict actions that should not be available to Back Office users

***

### Step 1: Open Clone Entity

1. From the **ONEWEB App Designer** screen, click\
   **Entities > Clone Entity**.
2. The **Clone Entity** dialog opens.

***

### Step 2: Clone the Admin Entity

1. At **Select Existing Entity**, choose\
   `Doc Order Request - Admin`.
2. At **Name of Clone Entity**, enter\
   `Doc Order Request - Back Office`.
3. Click **Clone**.
4. Wait until the message\
   \&#xNAN;**“Entity has been imported successfully”** appears and the\
   **Open Cloned Entity** button is displayed.

***

### Step 3: Open the Cloned Entity

1. Click **Open Cloned Entity**.
2. The **Search Entities** dialog opens.
3. Click the **pencil icon** to edit the cloned entity.

***

### Step 4: Adjust Order Request Layout

1. In the **Order Request** module, locate the field **Project Name**.
2. Move **Project Name** to the **right cell** in the layout.

This adjustment optimizes the layout for Back Office usage.

***

### Step 5: Add Total Amount Field

1. From **Tools > Field**, drag a **Text Box** field and place it **in front of Project Name**.
2. Click the **pencil icon** to configure the Text Box.

Configure the field as follows:

* Number Formatter: `Currency`
* FIELD\_ID: `TOTAL_AMT`
* ShowFieldName: `Total Amount`
* viewFlag: `Y`

3. Click **OK**.

This field displays the total calculated amount for the order request.

***

### Step 6: Update Decision Configuration for Back Office

1. In the **Order Request** module, edit the **Decision** field.
2. Click the **pencil icon** and update the condition as follows:

* Condition Value:\
  `category_code = 'BACK_OFFICE_DECISION'`

3. Click **OK**.

This ensures the decision dropdown shows only **Back Office decision options**.

***

### Step 7: Add Summary Price Field to Order Item

1. From **Tools > Field**, drag a **Text Box** field into the **Order Item module**.
2. Click the **pencil icon** to configure the field.

Configure the field as follows:

* Number Formatter: `Currency`
* FIELD\_ID: `SUMMARY_PRICE`
* Populate ShowFieldName → `Summary Price`
* FieldGroup: `3`
* Seq: `1`
* ShowSearch: `Y`
* showSearchSeq: `4`

3. Click **OK**.

This field allows Back Office users to review summarized pricing for each order item.

***

### Step 8: Remove Unused Module Button

1. In the **Order Item** module, locate the module button **ADD**.
2. Delete the **ADD** button.

Back Office users should not add new items at this stage.

***

### Step 9: Save the Entity

1. Click **Save this Entity** to apply all changes.

The completed Back Office entity appears as shown below:

<figure><img src="https://docs.oneweb.tech/oneweb/~gitbook/image?url=https%3A%2F%2F2015371994-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FMpDjHWFRUtZ5nJcSfVXd%252Fuploads%252Fth6Tpbjc06K3tJ8XfJ5S%252Fimage.png%3Falt%3Dmedia%26token%3D79b6a7a1-ea05-48c5-9e03-24afd3bb1fff&#x26;width=768&#x26;dpr=1&#x26;quality=100&#x26;sign=7242485e&#x26;sv=2" alt=""><figcaption></figcaption></figure>

***

### Summary

In this section, you have:

* Cloned the Admin Order Request entity for Back Office usage
* Adjusted layout and displayed fields
* Added total and summary pricing fields
* Configured Back Office–specific decision options
* Restricted item‑level actions not relevant to Back Office

This entity prepares the **Order Management App (Web)** for Back Office processing, ensuring that requests are reviewed, costed, and prepared correctly before entering the approval workflow.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.onewebstack.com/tutorials-examples/order-management-app-web/app-designer/clone-order-request-entity-for-back-office.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
