https://bio-moosod.com/services/submitSaleReport

Query Metrics

108 Database Queries
8 Different statements
30.53 ms Query time
1 Invalid entities

Queries

Group similar statements

# Time Info
1 1.86 ms
SELECT t0.id AS id_1, t0.ref_id AS ref_id_2, t0.branch_ref_key AS branch_ref_key_3, t0.branch_id AS branch_id_4, t0.branch_code AS branch_code_5, t0.branch_name AS branch_name_6, t0.address AS address_7, t0.postel AS postel_8, t0.update_by AS update_by_9, t0.update_date AS update_date_10, t0.flag_status AS flag_status_11, t0.flag_show_product_cost AS flag_show_product_cost_12, t0.flag_show_product_balance AS flag_show_product_balance_13, t0.province_key AS province_key_14 FROM branch t0 WHERE t0.ref_id = ? LIMIT 1
Parameters:
[
  "62dfab5bc9e6c"
]
2 0.13 ms
"START TRANSACTION"
Parameters:
[]
3 0.61 ms
INSERT INTO sale_report (report_date, total_cost, total_sale, ref_id, flag_status, branch_id) VALUES (?, ?, ?, ?, ?, ?)
Parameters:
[
  1 => "2024-11-16 08:31:43"
  2 => 6741.0
  3 => 7715.0
  4 => "6738a10566f88"
  5 => 1
  6 => 16
]
4 0.41 ms
"COMMIT"
Parameters:
[]
5 0.69 ms
SELECT t0.id AS id_1, t0.ref_id AS ref_id_2, t0.product_name AS product_name_3, t0.model AS model_4, t0.barcode_no AS barcode_no_5, t0.comment AS comment_6, t0.qty AS qty_7, t0.update_by AS update_by_8, t0.update_date AS update_date_9, t0.flag_status AS flag_status_10, t0.flag_visibility AS flag_visibility_11, t0.cost AS cost_12, t0.sale_price AS sale_price_13, t0.unit AS unit_14, t0.is_join AS is_join_15, t0.join_with_product AS join_with_product_16, t0.sort_index AS sort_index_17, t0.is_favorite AS is_favorite_18, t0.category_id AS category_id_19, t0.sale_type_id AS sale_type_id_20 FROM product t0 WHERE t0.ref_id = ? LIMIT 1
Parameters:
[
  "6178c3fc49413"
]
6 0.11 ms
"START TRANSACTION"
Parameters:
[]
7 0.53 ms
INSERT INTO sale_report_detail (cost, price, vat, qty, flag_status, sale_report_id, product_id) VALUES (?, ?, ?, ?, ?, ?, ?)
Parameters:
[
  1 => 106.0
  2 => 128.0
  3 => null
  4 => 0.74
  5 => 1
  6 => 9726
  7 => 4
]
8 0.38 ms
"COMMIT"
Parameters:
[]
9 0.86 ms
SELECT p0_.id AS id_0, p0_.ref_id AS ref_id_1, p0_.qty AS qty_2, p0_.cost AS cost_3, p0_.price AS price_4, p0_.update_date AS update_date_5, p0_.update_by AS update_by_6, p0_.flag_status AS flag_status_7, p0_.flag_visibility AS flag_visibility_8, p0_.branch_id AS branch_id_9, p0_.product_id AS product_id_10 FROM product_branch p0_ WHERE p0_.branch_id = ? AND p0_.product_id = ?
Parameters:
[
  16
  4
]
10 0.06 ms
"START TRANSACTION"
Parameters:
[]
11 0.29 ms
UPDATE product_branch SET qty = ? WHERE id = ?
Parameters:
[
  -4072.03
  1591
]
12 0.36 ms
"COMMIT"
Parameters:
[]
13 0.41 ms
SELECT t0.id AS id_1, t0.ref_id AS ref_id_2, t0.product_name AS product_name_3, t0.model AS model_4, t0.barcode_no AS barcode_no_5, t0.comment AS comment_6, t0.qty AS qty_7, t0.update_by AS update_by_8, t0.update_date AS update_date_9, t0.flag_status AS flag_status_10, t0.flag_visibility AS flag_visibility_11, t0.cost AS cost_12, t0.sale_price AS sale_price_13, t0.unit AS unit_14, t0.is_join AS is_join_15, t0.join_with_product AS join_with_product_16, t0.sort_index AS sort_index_17, t0.is_favorite AS is_favorite_18, t0.category_id AS category_id_19, t0.sale_type_id AS sale_type_id_20 FROM product t0 WHERE t0.ref_id = ? LIMIT 1
Parameters:
[
  "6178c3fc4c01b"
]
14 0.45 ms
"START TRANSACTION"
Parameters:
[]
15 0.25 ms
INSERT INTO sale_report_detail (cost, price, vat, qty, flag_status, sale_report_id, product_id) VALUES (?, ?, ?, ?, ?, ?, ?)
Parameters:
[
  1 => 105.0
  2 => 126.0
  3 => null
  4 => 1.39
  5 => 1
  6 => 9726
  7 => 7
]
16 0.26 ms
"COMMIT"
Parameters:
[]
17 0.48 ms
SELECT p0_.id AS id_0, p0_.ref_id AS ref_id_1, p0_.qty AS qty_2, p0_.cost AS cost_3, p0_.price AS price_4, p0_.update_date AS update_date_5, p0_.update_by AS update_by_6, p0_.flag_status AS flag_status_7, p0_.flag_visibility AS flag_visibility_8, p0_.branch_id AS branch_id_9, p0_.product_id AS product_id_10 FROM product_branch p0_ WHERE p0_.branch_id = ? AND p0_.product_id = ?
Parameters:
[
  16
  7
]
18 0.05 ms
"START TRANSACTION"
Parameters:
[]
19 0.18 ms
UPDATE product_branch SET qty = ? WHERE id = ?
Parameters:
[
  -2077.91
  1594
]
20 0.26 ms
"COMMIT"
Parameters:
[]
21 0.67 ms
SELECT t0.id AS id_1, t0.ref_id AS ref_id_2, t0.product_name AS product_name_3, t0.model AS model_4, t0.barcode_no AS barcode_no_5, t0.comment AS comment_6, t0.qty AS qty_7, t0.update_by AS update_by_8, t0.update_date AS update_date_9, t0.flag_status AS flag_status_10, t0.flag_visibility AS flag_visibility_11, t0.cost AS cost_12, t0.sale_price AS sale_price_13, t0.unit AS unit_14, t0.is_join AS is_join_15, t0.join_with_product AS join_with_product_16, t0.sort_index AS sort_index_17, t0.is_favorite AS is_favorite_18, t0.category_id AS category_id_19, t0.sale_type_id AS sale_type_id_20 FROM product t0 WHERE t0.ref_id = ? LIMIT 1
Parameters:
[
  "6178c3fc9349d"
]
22 0.05 ms
"START TRANSACTION"
Parameters:
[]
23 0.21 ms
INSERT INTO sale_report_detail (cost, price, vat, qty, flag_status, sale_report_id, product_id) VALUES (?, ?, ?, ?, ?, ?, ?)
Parameters:
[
  1 => 125.0
  2 => 140.0
  3 => null
  4 => 9.23
  5 => 1
  6 => 9726
  7 => 65
]
24 0.25 ms
"COMMIT"
Parameters:
[]
25 0.48 ms
SELECT p0_.id AS id_0, p0_.ref_id AS ref_id_1, p0_.qty AS qty_2, p0_.cost AS cost_3, p0_.price AS price_4, p0_.update_date AS update_date_5, p0_.update_by AS update_by_6, p0_.flag_status AS flag_status_7, p0_.flag_visibility AS flag_visibility_8, p0_.branch_id AS branch_id_9, p0_.product_id AS product_id_10 FROM product_branch p0_ WHERE p0_.branch_id = ? AND p0_.product_id = ?
Parameters:
[
  16
  17
]
26 0.06 ms
"START TRANSACTION"
Parameters:
[]
27 0.23 ms
UPDATE product_branch SET qty = ? WHERE id = ?
Parameters:
[
  -4071.15
  1604
]
28 0.25 ms
"COMMIT"
Parameters:
[]
29 0.42 ms
SELECT t0.id AS id_1, t0.ref_id AS ref_id_2, t0.product_name AS product_name_3, t0.model AS model_4, t0.barcode_no AS barcode_no_5, t0.comment AS comment_6, t0.qty AS qty_7, t0.update_by AS update_by_8, t0.update_date AS update_date_9, t0.flag_status AS flag_status_10, t0.flag_visibility AS flag_visibility_11, t0.cost AS cost_12, t0.sale_price AS sale_price_13, t0.unit AS unit_14, t0.is_join AS is_join_15, t0.join_with_product AS join_with_product_16, t0.sort_index AS sort_index_17, t0.is_favorite AS is_favorite_18, t0.category_id AS category_id_19, t0.sale_type_id AS sale_type_id_20 FROM product t0 WHERE t0.ref_id = ? LIMIT 1
Parameters:
[
  "6178c3fc85655"
]
30 0.05 ms
"START TRANSACTION"
Parameters:
[]
31 0.23 ms
INSERT INTO sale_report_detail (cost, price, vat, qty, flag_status, sale_report_id, product_id) VALUES (?, ?, ?, ?, ?, ?, ?)
Parameters:
[
  1 => 113.0
  2 => 133.0
  3 => null
  4 => 10.76
  5 => 1
  6 => 9726
  7 => 58
]
32 0.33 ms
"COMMIT"
Parameters:
[]
33 0.49 ms
SELECT p0_.id AS id_0, p0_.ref_id AS ref_id_1, p0_.qty AS qty_2, p0_.cost AS cost_3, p0_.price AS price_4, p0_.update_date AS update_date_5, p0_.update_by AS update_by_6, p0_.flag_status AS flag_status_7, p0_.flag_visibility AS flag_visibility_8, p0_.branch_id AS branch_id_9, p0_.product_id AS product_id_10 FROM product_branch p0_ WHERE p0_.branch_id = ? AND p0_.product_id = ?
Parameters:
[
  16
  3
]
34 0.05 ms
"START TRANSACTION"
Parameters:
[]
35 0.19 ms
UPDATE product_branch SET qty = ? WHERE id = ?
Parameters:
[
  -7824.42
  1590
]
36 0.27 ms
"COMMIT"
Parameters:
[]
37 0.46 ms
SELECT t0.id AS id_1, t0.ref_id AS ref_id_2, t0.product_name AS product_name_3, t0.model AS model_4, t0.barcode_no AS barcode_no_5, t0.comment AS comment_6, t0.qty AS qty_7, t0.update_by AS update_by_8, t0.update_date AS update_date_9, t0.flag_status AS flag_status_10, t0.flag_visibility AS flag_visibility_11, t0.cost AS cost_12, t0.sale_price AS sale_price_13, t0.unit AS unit_14, t0.is_join AS is_join_15, t0.join_with_product AS join_with_product_16, t0.sort_index AS sort_index_17, t0.is_favorite AS is_favorite_18, t0.category_id AS category_id_19, t0.sale_type_id AS sale_type_id_20 FROM product t0 WHERE t0.ref_id = ? LIMIT 1
Parameters:
[
  "6178c3fca451a"
]
38 0.04 ms
"START TRANSACTION"
Parameters:
[]
39 0.18 ms
INSERT INTO sale_report_detail (cost, price, vat, qty, flag_status, sale_report_id, product_id) VALUES (?, ?, ?, ?, ?, ?, ?)
Parameters:
[
  1 => 106.0
  2 => 123.0
  3 => null
  4 => 4.31
  5 => 1
  6 => 9726
  7 => 75
]
40 0.25 ms
"COMMIT"
Parameters:
[]
41 0.43 ms
SELECT p0_.id AS id_0, p0_.ref_id AS ref_id_1, p0_.qty AS qty_2, p0_.cost AS cost_3, p0_.price AS price_4, p0_.update_date AS update_date_5, p0_.update_by AS update_by_6, p0_.flag_status AS flag_status_7, p0_.flag_visibility AS flag_visibility_8, p0_.branch_id AS branch_id_9, p0_.product_id AS product_id_10 FROM product_branch p0_ WHERE p0_.branch_id = ? AND p0_.product_id = ?
Parameters:
[
  16
  4
]
42 0.05 ms
"START TRANSACTION"
Parameters:
[]
43 0.19 ms
UPDATE product_branch SET qty = ? WHERE id = ?
Parameters:
[
  -4076.34
  1591
]
44 0.24 ms
"COMMIT"
Parameters:
[]
45 0.86 ms
SELECT t0.id AS id_1, t0.ref_id AS ref_id_2, t0.product_name AS product_name_3, t0.model AS model_4, t0.barcode_no AS barcode_no_5, t0.comment AS comment_6, t0.qty AS qty_7, t0.update_by AS update_by_8, t0.update_date AS update_date_9, t0.flag_status AS flag_status_10, t0.flag_visibility AS flag_visibility_11, t0.cost AS cost_12, t0.sale_price AS sale_price_13, t0.unit AS unit_14, t0.is_join AS is_join_15, t0.join_with_product AS join_with_product_16, t0.sort_index AS sort_index_17, t0.is_favorite AS is_favorite_18, t0.category_id AS category_id_19, t0.sale_type_id AS sale_type_id_20 FROM product t0 WHERE t0.ref_id = ? LIMIT 1
Parameters:
[
  "6178c3fc81a19"
]
46 0.04 ms
"START TRANSACTION"
Parameters:
[]
47 0.20 ms
INSERT INTO sale_report_detail (cost, price, vat, qty, flag_status, sale_report_id, product_id) VALUES (?, ?, ?, ?, ?, ?, ?)
Parameters:
[
  1 => 134.0
  2 => 151.0
  3 => null
  4 => 14.6
  5 => 1
  6 => 9726
  7 => 56
]
48 0.28 ms
"COMMIT"
Parameters:
[]
49 0.45 ms
SELECT p0_.id AS id_0, p0_.ref_id AS ref_id_1, p0_.qty AS qty_2, p0_.cost AS cost_3, p0_.price AS price_4, p0_.update_date AS update_date_5, p0_.update_by AS update_by_6, p0_.flag_status AS flag_status_7, p0_.flag_visibility AS flag_visibility_8, p0_.branch_id AS branch_id_9, p0_.product_id AS product_id_10 FROM product_branch p0_ WHERE p0_.branch_id = ? AND p0_.product_id = ?
Parameters:
[
  16
  5
]
50 0.06 ms
"START TRANSACTION"
Parameters:
[]
51 0.19 ms
UPDATE product_branch SET qty = ? WHERE id = ?
Parameters:
[
  -3766.21
  1592
]
52 0.25 ms
"COMMIT"
Parameters:
[]
53 0.42 ms
SELECT t0.id AS id_1, t0.ref_id AS ref_id_2, t0.product_name AS product_name_3, t0.model AS model_4, t0.barcode_no AS barcode_no_5, t0.comment AS comment_6, t0.qty AS qty_7, t0.update_by AS update_by_8, t0.update_date AS update_date_9, t0.flag_status AS flag_status_10, t0.flag_visibility AS flag_visibility_11, t0.cost AS cost_12, t0.sale_price AS sale_price_13, t0.unit AS unit_14, t0.is_join AS is_join_15, t0.join_with_product AS join_with_product_16, t0.sort_index AS sort_index_17, t0.is_favorite AS is_favorite_18, t0.category_id AS category_id_19, t0.sale_type_id AS sale_type_id_20 FROM product t0 WHERE t0.ref_id = ? LIMIT 1
Parameters:
[
  "6178c3fca3248"
]
54 0.04 ms
"START TRANSACTION"
Parameters:
[]
55 0.19 ms
INSERT INTO sale_report_detail (cost, price, vat, qty, flag_status, sale_report_id, product_id) VALUES (?, ?, ?, ?, ?, ?, ?)
Parameters:
[
  1 => 64.0
  2 => 79.0
  3 => null
  4 => 0.97
  5 => 1
  6 => 9726
  7 => 74
]
56 0.24 ms
"COMMIT"
Parameters:
[]
57 0.44 ms
SELECT p0_.id AS id_0, p0_.ref_id AS ref_id_1, p0_.qty AS qty_2, p0_.cost AS cost_3, p0_.price AS price_4, p0_.update_date AS update_date_5, p0_.update_by AS update_by_6, p0_.flag_status AS flag_status_7, p0_.flag_visibility AS flag_visibility_8, p0_.branch_id AS branch_id_9, p0_.product_id AS product_id_10 FROM product_branch p0_ WHERE p0_.branch_id = ? AND p0_.product_id = ?
Parameters:
[
  16
  90
]
58 0.05 ms
"START TRANSACTION"
Parameters:
[]
59 0.17 ms
UPDATE product_branch SET qty = ? WHERE id = ?
Parameters:
[
  -345.22
  1637
]
60 0.26 ms
"COMMIT"
Parameters:
[]
61 0.40 ms
SELECT t0.id AS id_1, t0.ref_id AS ref_id_2, t0.product_name AS product_name_3, t0.model AS model_4, t0.barcode_no AS barcode_no_5, t0.comment AS comment_6, t0.qty AS qty_7, t0.update_by AS update_by_8, t0.update_date AS update_date_9, t0.flag_status AS flag_status_10, t0.flag_visibility AS flag_visibility_11, t0.cost AS cost_12, t0.sale_price AS sale_price_13, t0.unit AS unit_14, t0.is_join AS is_join_15, t0.join_with_product AS join_with_product_16, t0.sort_index AS sort_index_17, t0.is_favorite AS is_favorite_18, t0.category_id AS category_id_19, t0.sale_type_id AS sale_type_id_20 FROM product t0 WHERE t0.ref_id = ? LIMIT 1
Parameters:
[
  "6178c3fc9aed1"
]
62 0.04 ms
"START TRANSACTION"
Parameters:
[]
63 0.18 ms
INSERT INTO sale_report_detail (cost, price, vat, qty, flag_status, sale_report_id, product_id) VALUES (?, ?, ?, ?, ?, ?, ?)
Parameters:
[
  1 => 95.0
  2 => 110.0
  3 => null
  4 => 0.98
  5 => 1
  6 => 9726
  7 => 69
]
64 0.27 ms
"COMMIT"
Parameters:
[]
65 0.46 ms
SELECT p0_.id AS id_0, p0_.ref_id AS ref_id_1, p0_.qty AS qty_2, p0_.cost AS cost_3, p0_.price AS price_4, p0_.update_date AS update_date_5, p0_.update_by AS update_by_6, p0_.flag_status AS flag_status_7, p0_.flag_visibility AS flag_visibility_8, p0_.branch_id AS branch_id_9, p0_.product_id AS product_id_10 FROM product_branch p0_ WHERE p0_.branch_id = ? AND p0_.product_id = ?
Parameters:
[
  16
  20
]
66 0.05 ms
"START TRANSACTION"
Parameters:
[]
67 0.17 ms
UPDATE product_branch SET qty = ? WHERE id = ?
Parameters:
[
  -388.42
  1607
]
68 0.22 ms
"COMMIT"
Parameters:
[]
69 0.30 ms
SELECT t0.id AS id_1, t0.ref_id AS ref_id_2, t0.product_name AS product_name_3, t0.model AS model_4, t0.barcode_no AS barcode_no_5, t0.comment AS comment_6, t0.qty AS qty_7, t0.update_by AS update_by_8, t0.update_date AS update_date_9, t0.flag_status AS flag_status_10, t0.flag_visibility AS flag_visibility_11, t0.cost AS cost_12, t0.sale_price AS sale_price_13, t0.unit AS unit_14, t0.is_join AS is_join_15, t0.join_with_product AS join_with_product_16, t0.sort_index AS sort_index_17, t0.is_favorite AS is_favorite_18, t0.category_id AS category_id_19, t0.sale_type_id AS sale_type_id_20 FROM product t0 WHERE t0.ref_id = ? LIMIT 1
Parameters:
[
  "6178c3fc52204"
]
70 0.05 ms
"START TRANSACTION"
Parameters:
[]
71 0.20 ms
INSERT INTO sale_report_detail (cost, price, vat, qty, flag_status, sale_report_id, product_id) VALUES (?, ?, ?, ?, ?, ?, ?)
Parameters:
[
  1 => 220.0
  2 => 240.0
  3 => null
  4 => 1.01
  5 => 1
  6 => 9726
  7 => 13
]
72 0.22 ms
"COMMIT"
Parameters:
[]
73 0.43 ms
SELECT p0_.id AS id_0, p0_.ref_id AS ref_id_1, p0_.qty AS qty_2, p0_.cost AS cost_3, p0_.price AS price_4, p0_.update_date AS update_date_5, p0_.update_by AS update_by_6, p0_.flag_status AS flag_status_7, p0_.flag_visibility AS flag_visibility_8, p0_.branch_id AS branch_id_9, p0_.product_id AS product_id_10 FROM product_branch p0_ WHERE p0_.branch_id = ? AND p0_.product_id = ?
Parameters:
[
  16
  13
]
74 0.05 ms
"START TRANSACTION"
Parameters:
[]
75 0.18 ms
UPDATE product_branch SET qty = ? WHERE id = ?
Parameters:
[
  -39.32
  1600
]
76 0.24 ms
"COMMIT"
Parameters:
[]
77 0.54 ms
SELECT t0.id AS id_1, t0.ref_id AS ref_id_2, t0.product_name AS product_name_3, t0.model AS model_4, t0.barcode_no AS barcode_no_5, t0.comment AS comment_6, t0.qty AS qty_7, t0.update_by AS update_by_8, t0.update_date AS update_date_9, t0.flag_status AS flag_status_10, t0.flag_visibility AS flag_visibility_11, t0.cost AS cost_12, t0.sale_price AS sale_price_13, t0.unit AS unit_14, t0.is_join AS is_join_15, t0.join_with_product AS join_with_product_16, t0.sort_index AS sort_index_17, t0.is_favorite AS is_favorite_18, t0.category_id AS category_id_19, t0.sale_type_id AS sale_type_id_20 FROM product t0 WHERE t0.ref_id = ? LIMIT 1
Parameters:
[
  "61f2aa459fe8d"
]
78 0.05 ms
"START TRANSACTION"
Parameters:
[]
79 0.21 ms
INSERT INTO sale_report_detail (cost, price, vat, qty, flag_status, sale_report_id, product_id) VALUES (?, ?, ?, ?, ?, ?, ?)
Parameters:
[
  1 => 80.0
  2 => 100.0
  3 => null
  4 => 0.68
  5 => 1
  6 => 9726
  7 => 136
]
80 0.24 ms
"COMMIT"
Parameters:
[]
81 0.49 ms
SELECT p0_.id AS id_0, p0_.ref_id AS ref_id_1, p0_.qty AS qty_2, p0_.cost AS cost_3, p0_.price AS price_4, p0_.update_date AS update_date_5, p0_.update_by AS update_by_6, p0_.flag_status AS flag_status_7, p0_.flag_visibility AS flag_visibility_8, p0_.branch_id AS branch_id_9, p0_.product_id AS product_id_10 FROM product_branch p0_ WHERE p0_.branch_id = ? AND p0_.product_id = ?
Parameters:
[
  16
  136
]
82 0.05 ms
"START TRANSACTION"
Parameters:
[]
83 0.18 ms
UPDATE product_branch SET qty = ? WHERE id = ?
Parameters:
[
  -187.28
  1663
]
84 0.25 ms
"COMMIT"
Parameters:
[]
85 1.06 ms
SELECT t0.id AS id_1, t0.ref_id AS ref_id_2, t0.product_name AS product_name_3, t0.model AS model_4, t0.barcode_no AS barcode_no_5, t0.comment AS comment_6, t0.qty AS qty_7, t0.update_by AS update_by_8, t0.update_date AS update_date_9, t0.flag_status AS flag_status_10, t0.flag_visibility AS flag_visibility_11, t0.cost AS cost_12, t0.sale_price AS sale_price_13, t0.unit AS unit_14, t0.is_join AS is_join_15, t0.join_with_product AS join_with_product_16, t0.sort_index AS sort_index_17, t0.is_favorite AS is_favorite_18, t0.category_id AS category_id_19, t0.sale_type_id AS sale_type_id_20 FROM product t0 WHERE t0.ref_id = ? LIMIT 1
Parameters:
[
  "6178c3fc83823"
]
86 0.07 ms
"START TRANSACTION"
Parameters:
[]
87 0.17 ms
INSERT INTO sale_report_detail (cost, price, vat, qty, flag_status, sale_report_id, product_id) VALUES (?, ?, ?, ?, ?, ?, ?)
Parameters:
[
  1 => 140.0
  2 => 159.0
  3 => null
  4 => 3.9
  5 => 1
  6 => 9726
  7 => 57
]
88 0.26 ms
"COMMIT"
Parameters:
[]
89 0.44 ms
SELECT p0_.id AS id_0, p0_.ref_id AS ref_id_1, p0_.qty AS qty_2, p0_.cost AS cost_3, p0_.price AS price_4, p0_.update_date AS update_date_5, p0_.update_by AS update_by_6, p0_.flag_status AS flag_status_7, p0_.flag_visibility AS flag_visibility_8, p0_.branch_id AS branch_id_9, p0_.product_id AS product_id_10 FROM product_branch p0_ WHERE p0_.branch_id = ? AND p0_.product_id = ?
Parameters:
[
  16
  8
]
90 0.08 ms
"START TRANSACTION"
Parameters:
[]
91 0.18 ms
UPDATE product_branch SET qty = ? WHERE id = ?
Parameters:
[
  -2970.04
  1595
]
92 0.25 ms
"COMMIT"
Parameters:
[]
93 0.41 ms
SELECT t0.id AS id_1, t0.ref_id AS ref_id_2, t0.product_name AS product_name_3, t0.model AS model_4, t0.barcode_no AS barcode_no_5, t0.comment AS comment_6, t0.qty AS qty_7, t0.update_by AS update_by_8, t0.update_date AS update_date_9, t0.flag_status AS flag_status_10, t0.flag_visibility AS flag_visibility_11, t0.cost AS cost_12, t0.sale_price AS sale_price_13, t0.unit AS unit_14, t0.is_join AS is_join_15, t0.join_with_product AS join_with_product_16, t0.sort_index AS sort_index_17, t0.is_favorite AS is_favorite_18, t0.category_id AS category_id_19, t0.sale_type_id AS sale_type_id_20 FROM product t0 WHERE t0.ref_id = ? LIMIT 1
Parameters:
[
  "6178c3fc87226"
]
94 0.06 ms
"START TRANSACTION"
Parameters:
[]
95 0.17 ms
INSERT INTO sale_report_detail (cost, price, vat, qty, flag_status, sale_report_id, product_id) VALUES (?, ?, ?, ?, ?, ?, ?)
Parameters:
[
  1 => 105.0
  2 => 121.0
  3 => null
  4 => 5.97
  5 => 1
  6 => 9726
  7 => 59
]
96 0.24 ms
"COMMIT"
Parameters:
[]
97 0.39 ms
SELECT p0_.id AS id_0, p0_.ref_id AS ref_id_1, p0_.qty AS qty_2, p0_.cost AS cost_3, p0_.price AS price_4, p0_.update_date AS update_date_5, p0_.update_by AS update_by_6, p0_.flag_status AS flag_status_7, p0_.flag_visibility AS flag_visibility_8, p0_.branch_id AS branch_id_9, p0_.product_id AS product_id_10 FROM product_branch p0_ WHERE p0_.branch_id = ? AND p0_.product_id = ?
Parameters:
[
  16
  7
]
98 0.05 ms
"START TRANSACTION"
Parameters:
[]
99 0.24 ms
UPDATE product_branch SET qty = ? WHERE id = ?
Parameters:
[
  -2083.88
  1594
]
100 0.26 ms
"COMMIT"
Parameters:
[]
101 0.41 ms
SELECT t0.id AS id_1, t0.ref_id AS ref_id_2, t0.product_name AS product_name_3, t0.model AS model_4, t0.barcode_no AS barcode_no_5, t0.comment AS comment_6, t0.qty AS qty_7, t0.update_by AS update_by_8, t0.update_date AS update_date_9, t0.flag_status AS flag_status_10, t0.flag_visibility AS flag_visibility_11, t0.cost AS cost_12, t0.sale_price AS sale_price_13, t0.unit AS unit_14, t0.is_join AS is_join_15, t0.join_with_product AS join_with_product_16, t0.sort_index AS sort_index_17, t0.is_favorite AS is_favorite_18, t0.category_id AS category_id_19, t0.sale_type_id AS sale_type_id_20 FROM product t0 WHERE t0.ref_id = ? LIMIT 1
Parameters:
[
  "6178c3fc7ff9d"
]
102 0.05 ms
"START TRANSACTION"
Parameters:
[]
103 0.21 ms
INSERT INTO sale_report_detail (cost, price, vat, qty, flag_status, sale_report_id, product_id) VALUES (?, ?, ?, ?, ?, ?, ?)
Parameters:
[
  1 => 106.0
  2 => 123.0
  3 => null
  4 => 1.26
  5 => 1
  6 => 9726
  7 => 55
]
104 0.24 ms
"COMMIT"
Parameters:
[]
105 0.50 ms
SELECT p0_.id AS id_0, p0_.ref_id AS ref_id_1, p0_.qty AS qty_2, p0_.cost AS cost_3, p0_.price AS price_4, p0_.update_date AS update_date_5, p0_.update_by AS update_by_6, p0_.flag_status AS flag_status_7, p0_.flag_visibility AS flag_visibility_8, p0_.branch_id AS branch_id_9, p0_.product_id AS product_id_10 FROM product_branch p0_ WHERE p0_.branch_id = ? AND p0_.product_id = ?
Parameters:
[
  16
  1
]
106 0.05 ms
"START TRANSACTION"
Parameters:
[]
107 0.22 ms
UPDATE product_branch SET qty = ? WHERE id = ?
Parameters:
[
  -3006.54
  1588
]
108 0.23 ms
"COMMIT"
Parameters:
[]

Database Connections

Name Service
default doctrine.dbal.default_connection

Entity Managers

Name Service
default doctrine.orm.default_entity_manager

Second Level Cache

Second Level Cache is not enabled.

Entities Mapping

Class Mapping errors
App\Entity\Branch No errors.
App\Entity\Province No errors.
App\Entity\SaleReport No errors.
App\Entity\SaleReportDetail No errors.
App\Entity\Product
  • The association App\Entity\Product#sale_type refers to the inverse side field App\Entity\SaleType#no which does not exist.
  • The field App\Entity\Product#product_branch is on the inverse side of a bi-directional relationship, but the specified mappedBy association on the target-entity App\Entity\ProductBranch#product does not contain the required 'inversedBy="product_branch"' attribute.
App\Entity\Category No errors.
App\Entity\SaleType No errors.
App\Entity\ProductBranch No errors.