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

Query Metrics

156 Database Queries
8 Different statements
74.68 ms Query time
1 Invalid entities

Queries

Group similar statements

# Time Info
1 0.62 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:
[
  "61496139bd592"
]
2 0.11 ms
"START TRANSACTION"
Parameters:
[]
3 0.56 ms
INSERT INTO sale_report (report_date, total_cost, total_sale, ref_id, flag_status, branch_id) VALUES (?, ?, ?, ?, ?, ?)
Parameters:
[
  1 => "2024-11-15 16:33:21"
  2 => 7531.0
  3 => 8833.0
  4 => "67377a487d671"
  5 => 1
  6 => 5
]
4 0.51 ms
"COMMIT"
Parameters:
[]
5 0.71 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:
[
  "6178c3fc460db"
]
6 0.11 ms
"START TRANSACTION"
Parameters:
[]
7 0.47 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.32
  5 => 1
  6 => 9721
  7 => 1
]
8 0.34 ms
"COMMIT"
Parameters:
[]
9 1.07 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:
[
  5
  1
]
10 0.11 ms
"START TRANSACTION"
Parameters:
[]
11 2.12 ms
UPDATE product_branch SET qty = ? WHERE id = ?
Parameters:
[
  -6924.63
  285
]
12 0.38 ms
"COMMIT"
Parameters:
[]
13 0.63 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"
]
14 0.12 ms
"START TRANSACTION"
Parameters:
[]
15 0.30 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 => 5.32
  5 => 1
  6 => 9721
  7 => 56
]
16 0.31 ms
"COMMIT"
Parameters:
[]
17 0.58 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:
[
  5
  5
]
18 0.11 ms
"START TRANSACTION"
Parameters:
[]
19 0.91 ms
UPDATE product_branch SET qty = ? WHERE id = ?
Parameters:
[
  -7223.52
  299
]
20 0.29 ms
"COMMIT"
Parameters:
[]
21 0.49 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"
]
22 0.12 ms
"START TRANSACTION"
Parameters:
[]
23 0.23 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 => 0.83
  5 => 1
  6 => 9721
  7 => 57
]
24 0.36 ms
"COMMIT"
Parameters:
[]
25 0.62 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:
[
  5
  8
]
26 0.07 ms
"START TRANSACTION"
Parameters:
[]
27 0.80 ms
UPDATE product_branch SET qty = ? WHERE id = ?
Parameters:
[
  -11983.62
  797
]
28 0.31 ms
"COMMIT"
Parameters:
[]
29 0.64 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"
]
30 0.07 ms
"START TRANSACTION"
Parameters:
[]
31 0.28 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 => 0.81
  5 => 1
  6 => 9721
  7 => 65
]
32 0.28 ms
"COMMIT"
Parameters:
[]
33 0.75 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:
[
  5
  17
]
34 0.05 ms
"START TRANSACTION"
Parameters:
[]
35 1.55 ms
UPDATE product_branch SET qty = ? WHERE id = ?
Parameters:
[
  -887.45
  327
]
36 0.32 ms
"COMMIT"
Parameters:
[]
37 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:
[
  "6178c3fc49413"
]
38 0.05 ms
"START TRANSACTION"
Parameters:
[]
39 0.23 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 => 1.23
  5 => 1
  6 => 9721
  7 => 4
]
40 0.33 ms
"COMMIT"
Parameters:
[]
41 0.58 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:
[
  5
  4
]
42 0.05 ms
"START TRANSACTION"
Parameters:
[]
43 0.72 ms
UPDATE product_branch SET qty = ? WHERE id = ?
Parameters:
[
  -8825.43
  804
]
44 0.29 ms
"COMMIT"
Parameters:
[]
45 0.63 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:
[
  "6178c3fcbea6b"
]
46 0.05 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 => 127.0
  2 => 167.0
  3 => null
  4 => 0.16
  5 => 1
  6 => 9721
  7 => 96
]
48 0.28 ms
"COMMIT"
Parameters:
[]
49 0.66 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:
[
  5
  96
]
50 0.07 ms
"START TRANSACTION"
Parameters:
[]
51 0.99 ms
UPDATE product_branch SET qty = ? WHERE id = ?
Parameters:
[
  -1347.94
  467
]
52 0.28 ms
"COMMIT"
Parameters:
[]
53 0.45 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:
[
  "6178c3fc5610a"
]
54 0.09 ms
"START TRANSACTION"
Parameters:
[]
55 0.39 ms
INSERT INTO sale_report_detail (cost, price, vat, qty, flag_status, sale_report_id, product_id) VALUES (?, ?, ?, ?, ?, ?, ?)
Parameters:
[
  1 => 125.0
  2 => 145.0
  3 => null
  4 => 1.11
  5 => 1
  6 => 9721
  7 => 17
]
56 0.27 ms
"COMMIT"
Parameters:
[]
57 0.57 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:
[
  5
  17
]
58 0.08 ms
"START TRANSACTION"
Parameters:
[]
59 0.85 ms
UPDATE product_branch SET qty = ? WHERE id = ?
Parameters:
[
  -888.56
  327
]
60 0.27 ms
"COMMIT"
Parameters:
[]
61 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"
]
62 0.05 ms
"START TRANSACTION"
Parameters:
[]
63 0.19 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 => 0.65
  5 => 1
  6 => 9721
  7 => 7
]
64 0.29 ms
"COMMIT"
Parameters:
[]
65 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:
[
  5
  7
]
66 0.05 ms
"START TRANSACTION"
Parameters:
[]
67 0.64 ms
UPDATE product_branch SET qty = ? WHERE id = ?
Parameters:
[
  -2780.94
  313
]
68 0.26 ms
"COMMIT"
Parameters:
[]
69 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:
[
  "6178c3fcad089"
]
70 0.07 ms
"START TRANSACTION"
Parameters:
[]
71 0.24 ms
INSERT INTO sale_report_detail (cost, price, vat, qty, flag_status, sale_report_id, product_id) VALUES (?, ?, ?, ?, ?, ?, ?)
Parameters:
[
  1 => 130.0
  2 => 160.0
  3 => null
  4 => 6.13
  5 => 1
  6 => 9721
  7 => 82
]
72 0.27 ms
"COMMIT"
Parameters:
[]
73 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:
[
  5
  82
]
74 0.07 ms
"START TRANSACTION"
Parameters:
[]
75 0.55 ms
UPDATE product_branch SET qty = ? WHERE id = ?
Parameters:
[
  -5772.94
  439
]
76 0.27 ms
"COMMIT"
Parameters:
[]
77 0.57 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:
[
  "6385414449bb6"
]
78 0.04 ms
"START TRANSACTION"
Parameters:
[]
79 0.19 ms
INSERT INTO sale_report_detail (cost, price, vat, qty, flag_status, sale_report_id, product_id) VALUES (?, ?, ?, ?, ?, ?, ?)
Parameters:
[
  1 => 116.0
  2 => 143.0
  3 => null
  4 => 20.26
  5 => 1
  6 => 9721
  7 => 143
]
80 0.34 ms
"COMMIT"
Parameters:
[]
81 0.51 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:
[
  5
  143
]
82 0.05 ms
"START TRANSACTION"
Parameters:
[]
83 0.64 ms
UPDATE product_branch SET qty = ? WHERE id = ?
Parameters:
[
  -963.21
  2154
]
84 0.30 ms
"COMMIT"
Parameters:
[]
85 0.47 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:
[
  "6178c3fc8d222"
]
86 0.05 ms
"START TRANSACTION"
Parameters:
[]
87 0.20 ms
INSERT INTO sale_report_detail (cost, price, vat, qty, flag_status, sale_report_id, product_id) VALUES (?, ?, ?, ?, ?, ?, ?)
Parameters:
[
  1 => 245.0
  2 => 260.0
  3 => null
  4 => 7.37
  5 => 1
  6 => 9721
  7 => 62
]
88 0.74 ms
"COMMIT"
Parameters:
[]
89 0.57 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:
[
  5
  11
]
90 0.09 ms
"START TRANSACTION"
Parameters:
[]
91 0.68 ms
UPDATE product_branch SET qty = ? WHERE id = ?
Parameters:
[
  -1365.06
  320
]
92 0.27 ms
"COMMIT"
Parameters:
[]
93 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:
[
  "6178c3fc4d35b"
]
94 0.08 ms
"START TRANSACTION"
Parameters:
[]
95 0.23 ms
INSERT INTO sale_report_detail (cost, price, vat, qty, flag_status, sale_report_id, product_id) VALUES (?, ?, ?, ?, ?, ?, ?)
Parameters:
[
  1 => 140.0
  2 => 164.0
  3 => null
  4 => 0.76
  5 => 1
  6 => 9721
  7 => 8
]
96 0.24 ms
"COMMIT"
Parameters:
[]
97 0.52 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:
[
  5
  8
]
98 0.06 ms
"START TRANSACTION"
Parameters:
[]
99 0.59 ms
UPDATE product_branch SET qty = ? WHERE id = ?
Parameters:
[
  -11984.38
  797
]
100 0.25 ms
"COMMIT"
Parameters:
[]
101 0.49 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:
[
  "6178c3fc91429"
]
102 0.06 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 => 42.0
  2 => 57.0
  3 => null
  4 => 5.0
  5 => 1
  6 => 9721
  7 => 64
]
104 0.25 ms
"COMMIT"
Parameters:
[]
105 0.66 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:
[
  5
  12
]
106 0.07 ms
"START TRANSACTION"
Parameters:
[]
107 0.63 ms
UPDATE product_branch SET qty = ? WHERE id = ?
Parameters:
[
  -5384.9
  531
]
108 0.29 ms
"COMMIT"
Parameters:
[]
109 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:
[
  "6178c3fc4a34c"
]
110 0.10 ms
"START TRANSACTION"
Parameters:
[]
111 0.23 ms
INSERT INTO sale_report_detail (cost, price, vat, qty, flag_status, sale_report_id, product_id) VALUES (?, ?, ?, ?, ?, ?, ?)
Parameters:
[
  1 => 134.0
  2 => 156.0
  3 => null
  4 => 0.82
  5 => 1
  6 => 9721
  7 => 5
]
112 0.26 ms
"COMMIT"
Parameters:
[]
113 0.53 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:
[
  5
  5
]
114 0.10 ms
"START TRANSACTION"
Parameters:
[]
115 0.60 ms
UPDATE product_branch SET qty = ? WHERE id = ?
Parameters:
[
  -7224.34
  299
]
116 0.27 ms
"COMMIT"
Parameters:
[]
117 0.48 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:
[
  "6178c3fcae28e"
]
118 0.07 ms
"START TRANSACTION"
Parameters:
[]
119 0.24 ms
INSERT INTO sale_report_detail (cost, price, vat, qty, flag_status, sale_report_id, product_id) VALUES (?, ?, ?, ?, ?, ?, ?)
Parameters:
[
  1 => 40.0
  2 => 50.0
  3 => null
  4 => 2.0
  5 => 1
  6 => 9721
  7 => 83
]
120 0.27 ms
"COMMIT"
Parameters:
[]
121 0.52 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:
[
  5
  83
]
122 0.05 ms
"START TRANSACTION"
Parameters:
[]
123 0.57 ms
UPDATE product_branch SET qty = ? WHERE id = ?
Parameters:
[
  -950.0
  1185
]
124 0.24 ms
"COMMIT"
Parameters:
[]
125 0.39 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"
]
126 0.10 ms
"START TRANSACTION"
Parameters:
[]
127 15.84 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 => 1.26
  5 => 1
  6 => 9721
  7 => 59
]
128 0.41 ms
"COMMIT"
Parameters:
[]
129 0.97 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:
[
  5
  7
]
130 0.15 ms
"START TRANSACTION"
Parameters:
[]
131 1.36 ms
UPDATE product_branch SET qty = ? WHERE id = ?
Parameters:
[
  -2782.2
  313
]
132 0.17 ms
"COMMIT"
Parameters:
[]
133 0.45 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:
[
  "6178c3fc972b2"
]
134 0.07 ms
"START TRANSACTION"
Parameters:
[]
135 0.25 ms
INSERT INTO sale_report_detail (cost, price, vat, qty, flag_status, sale_report_id, product_id) VALUES (?, ?, ?, ?, ?, ?, ?)
Parameters:
[
  1 => 60.0
  2 => 75.0
  3 => null
  4 => 2.68
  5 => 1
  6 => 9721
  7 => 67
]
136 0.33 ms
"COMMIT"
Parameters:
[]
137 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:
[
  5
  140
]
138 0.05 ms
"START TRANSACTION"
Parameters:
[]
139 0.52 ms
UPDATE product_branch SET qty = ? WHERE id = ?
Parameters:
[
  -251.05
  1176
]
140 0.27 ms
"COMMIT"
Parameters:
[]
141 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:
[
  "6178c3fc7ff9d"
]
142 0.09 ms
"START TRANSACTION"
Parameters:
[]
143 0.23 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 => 2.17
  5 => 1
  6 => 9721
  7 => 55
]
144 0.24 ms
"COMMIT"
Parameters:
[]
145 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:
[
  5
  1
]
146 0.07 ms
"START TRANSACTION"
Parameters:
[]
147 0.73 ms
UPDATE product_branch SET qty = ? WHERE id = ?
Parameters:
[
  -6926.8
  285
]
148 0.25 ms
"COMMIT"
Parameters:
[]
149 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"
]
150 0.07 ms
"START TRANSACTION"
Parameters:
[]
151 0.42 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 => 2.19
  5 => 1
  6 => 9721
  7 => 75
]
152 0.26 ms
"COMMIT"
Parameters:
[]
153 0.57 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:
[
  5
  4
]
154 0.05 ms
"START TRANSACTION"
Parameters:
[]
155 1.68 ms
UPDATE product_branch SET qty = ? WHERE id = ?
Parameters:
[
  -8827.62
  804
]
156 0.34 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.