# Questions about Revenue and Profit

## Question 1. What is the formula for calculating order profit when using the Inventory Module in Getfly?

**Order Profit** = Quantity × Selling Price - Product Discount - Order Discount + Installation Fee (if any) - Quantity × Cost of Goods Sold (COGS) from warehouse (including gift products) - Quantity × Input Price for service products (entered in order details)

The COGS from warehouse is calculated as:

COGS = (Opening Stock × Opening Price + Incoming Stock × Incoming Price) / (Opening Stock + Incoming Stock)

**Notes:**

* COGS is calculated based on the inventory data at the time the product is dispatched.

For example, if the order is fulfilled in July, the COGS will reflect July’s data.

<figure><img src="/files/CaQtxQiNuTdhW2ZDITyw" alt=""><figcaption></figcaption></figure>

* You can check the COGS in the “Stock Movement Report” under the Outflow During Period column. COGS is calculated per warehouse — the system uses the COGS of the warehouse from which the item is dispatched. To calculate order profit, the order must be fulfilled (dispatched). If not, the system assumes COGS = 0.

  <figure><img src="/files/0RBLpO9XrkgA0FFwKzjf" alt=""><figcaption></figcaption></figure>
* If only part of the order has been dispatched, the system treats the remaining products as having COGS = 0.
* Gift products are included in profit calculation, but their selling price is assumed to be 0.
* For service products, if the “Input Price” field is not filled, it defaults to 0.
* To enable the Input Price column, you must contact Getfly Support by submitting a ticket: <https://wiki.getfly.vn/portal/post/1702>
* Profit calculation excludes VAT and shipping fees.

## Question 2. What is the formula for calculating order profit when not using the Inventory Module?

If the Inventory Module is not used, the system needs the Input Price column enabled in the order to calculate profit.

* Order Profit = (Quantity × Selling Price) - Product Discount - Order Discount + Installation Fee (if any) - (Quantity × Input Price)

  <figure><img src="/files/bGAhDhiHhBqwxXBfDNOL" alt=""><figcaption></figcaption></figure>

**Notes:**

* You must request Getfly Support to enable the Input Price column via ticket: <https://wiki.getfly.vn/portal/post/1702>
* The Input Price should be entered for each product in the order.
* Gift products are not included in the profit calculation.
* Profit calculation excludes VAT and shipping fees.

## Question 3. How to view order profit in Getfly?

To view order profit, your account must have the "Order Profit" permission.

<figure><img src="/files/leimw3hZPbselljOM813" alt=""><figcaption></figcaption></figure>

Once granted, order profit is shown on the Order List screen (Sales → F4).

<figure><img src="/files/2RrX9ol7FwDn9e3ZYvXM" alt=""><figcaption></figcaption></figure>

## Question 4. What is the formula for calculating product profit when using the Inventory Module?

Product Profit = Quantity × (Selling Price - COGS) - Discount

## Question 5. What is the formula for calculating product profit when the Input Price column is enabled?

Product Profit = Quantity × (Selling Price - Input Price) - Discount

## Question 6. What is the formula for calculating product profit when not using the Inventory Module and Input Price is not enabled?

Product Profit = Quantity × Selling Price - Discount

## Question 7. How to view product profit in Getfly?

To view product profit, your account must have the "View Product KPI Statistics" permission.

<figure><img src="/files/SZKkCp6nBxgNFGBOiryX" alt=""><figcaption></figcaption></figure>

Once granted, go to KPI Statistics (F7) → Select Products → The profit information will be displayed in the Products Sold During the Period table.

<figure><img src="/files/93KFN2h0oofDVlSKFYNA" alt=""><figcaption></figcaption></figure>

## Question 8. How to filter customer revenue over a specific time period?

To filter revenue by customer:

Go to Sales → Sales → Click Filter → Switch to the Customer tab

Search by customer name, phone number, or email → Click Apply

<figure><img src="/files/IL57ONc6GwOh5irzy4C1" alt=""><figcaption></figcaption></figure>

Then, choose the desired time range (this month, this quarter, this year, or custom period).\
The revenue is shown in the Total section.

<figure><img src="/files/2UQ3Ky3IOlwLUyYLkrfq" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/HeRNVi8NFNwIuEJlpRNU" alt=""><figcaption></figcaption></figure>


---

# 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://helpdesk.getfly.vn/web-version/interactive-blocks/questions-about-revenue-and-profit.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.
