@dascompany/product 4.2.5 → 4.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ParameterType, QueryOptions } from "@dascompany/database";
|
|
2
2
|
import DatabaseConnection from "../DatabaseConnection";
|
|
3
3
|
import OrderStatusReader from "./OrderStatusReader";
|
|
4
|
+
import PriceConverter from "../utils/PriceConverter";
|
|
4
5
|
export default class OrderReader {
|
|
5
6
|
static async get(queryOptions) {
|
|
6
7
|
const orderData = await DatabaseConnection.getInstance().orders.select(queryOptions);
|
|
@@ -40,6 +41,7 @@ export default class OrderReader {
|
|
|
40
41
|
id: order.id,
|
|
41
42
|
email: order.email,
|
|
42
43
|
netPrice: order.net_price,
|
|
44
|
+
grossPrice: PriceConverter.netToGrossPrice(order.net_price, order.vat),
|
|
43
45
|
vat: order.vat,
|
|
44
46
|
createdAt: order.created_at,
|
|
45
47
|
clientId: order.client_id,
|