1 |
27.14 ms |
SELECT a0_.id AS id_0, a0_.email AS email_1, a0_.phone_number AS phone_number_2, a0_.password AS password_3, a0_.roles AS roles_4, a0_.lastname AS lastname_5, a0_.firstname AS firstname_6, a0_.created_at AS created_at_7, a0_.registration_source AS registration_source_8, a0_.honorific_prefix AS honorific_prefix_9, a0_.reset_token AS reset_token_10, a0_.reset_token_expiration_date AS reset_token_expiration_date_11, a0_.uniq_id AS uniq_id_12, a0_.code_confirmation AS code_confirmation_13, a0_.updated_at AS updated_at_14, a0_.is_active AS is_active_15 FROM app_users a0_ WHERE a0_.email = ? OR a0_.phone_number = ?
Parameters: [
"davy@digidom.pro"
"davy@digidom.pro"
]
SELECT a0_.id AS id_0, a0_.email AS email_1, a0_.phone_number AS phone_number_2, a0_.password AS password_3, a0_.roles AS roles_4, a0_.lastname AS lastname_5, a0_.firstname AS firstname_6, a0_.created_at AS created_at_7, a0_.registration_source AS registration_source_8, a0_.honorific_prefix AS honorific_prefix_9, a0_.reset_token AS reset_token_10, a0_.reset_token_expiration_date AS reset_token_expiration_date_11, a0_.uniq_id AS uniq_id_12, a0_.code_confirmation AS code_confirmation_13, a0_.updated_at AS updated_at_14, a0_.is_active AS is_active_15 FROM app_users a0_ WHERE a0_.email = 'davy@digidom.pro' OR a0_.phone_number = 'davy@digidom.pro';
|
2 |
1.29 ms |
SELECT d0_.id AS id_0, d0_.name AS name_1, d0_.discount_percentage AS discount_percentage_2, d0_.discount_amount AS discount_amount_3, d0_.created_at AS created_at_4, d0_.updated_at AS updated_at_5, d0_.is_active AS is_active_6, d0_.type AS type_7, d0_.usage_count AS usage_count_8, d0_.promo_code AS promo_code_9, d0_.discount_type AS discount_type_10, d0_.prepaid_months AS prepaid_months_11, d0_.for_frequency AS for_frequency_12, d0_.promo_code_history_id AS promo_code_history_id_13 FROM discount_code d0_ WHERE d0_.is_active = ? ORDER BY d0_.id ASC LIMIT 30
SELECT d0_.id AS id_0, d0_.name AS name_1, d0_.discount_percentage AS discount_percentage_2, d0_.discount_amount AS discount_amount_3, d0_.created_at AS created_at_4, d0_.updated_at AS updated_at_5, d0_.is_active AS is_active_6, d0_.type AS type_7, d0_.usage_count AS usage_count_8, d0_.promo_code AS promo_code_9, d0_.discount_type AS discount_type_10, d0_.prepaid_months AS prepaid_months_11, d0_.for_frequency AS for_frequency_12, d0_.promo_code_history_id AS promo_code_history_id_13 FROM discount_code d0_ WHERE d0_.is_active = 1 ORDER BY d0_.id ASC LIMIT 30;
|
3 |
1.20 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.price AS price_3, t0.focus AS focus_4, t0.price_without_tax AS price_without_tax_5, t0.vat_rate AS vat_rate_6, t0.discount AS discount_7, t0.unique_key AS unique_key_8, t0.automation AS automation_9, t0.is_published AS is_published_10, t0.is_subscription AS is_subscription_11, t0.published_name AS published_name_12, t0.is_published_pack AS is_published_pack_13, t0.type AS type_14, t0.legal_status AS legal_status_15, t0.created_at AS created_at_16, t0.association_pack_id AS association_pack_id_17, t0.category_id AS category_id_18, t0.recurring_invoice_id AS recurring_invoice_id_19, t0.initial_invoice_id AS initial_invoice_id_20, t0.subscription_id AS subscription_id_21 FROM pack t0 INNER JOIN discount_code_pack ON t0.id = discount_code_pack.pack_id WHERE discount_code_pack.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.price AS price_3, t0.focus AS focus_4, t0.price_without_tax AS price_without_tax_5, t0.vat_rate AS vat_rate_6, t0.discount AS discount_7, t0.unique_key AS unique_key_8, t0.automation AS automation_9, t0.is_published AS is_published_10, t0.is_subscription AS is_subscription_11, t0.published_name AS published_name_12, t0.is_published_pack AS is_published_pack_13, t0.type AS type_14, t0.legal_status AS legal_status_15, t0.created_at AS created_at_16, t0.association_pack_id AS association_pack_id_17, t0.category_id AS category_id_18, t0.recurring_invoice_id AS recurring_invoice_id_19, t0.initial_invoice_id AS initial_invoice_id_20, t0.subscription_id AS subscription_id_21 FROM pack t0 INNER JOIN discount_code_pack ON t0.id = discount_code_pack.pack_id WHERE discount_code_pack.discount_code_id = 1;
|
4 |
1.19 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.unique_key AS unique_key_3, t0.security_deposit AS security_deposit_4, t0.is_active AS is_active_5, t0.authorized_frequency AS authorized_frequency_6, t0.created_at AS created_at_7, t0.update_at AS update_at_8, t0.price_without_tax AS price_without_tax_9, t0.product_id AS product_id_10 FROM subscription_model t0 INNER JOIN discount_code_subscription_model ON t0.id = discount_code_subscription_model.subscription_model_id WHERE discount_code_subscription_model.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.unique_key AS unique_key_3, t0.security_deposit AS security_deposit_4, t0.is_active AS is_active_5, t0.authorized_frequency AS authorized_frequency_6, t0.created_at AS created_at_7, t0.update_at AS update_at_8, t0.price_without_tax AS price_without_tax_9, t0.product_id AS product_id_10 FROM subscription_model t0 INNER JOIN discount_code_subscription_model ON t0.id = discount_code_subscription_model.subscription_model_id WHERE discount_code_subscription_model.discount_code_id = 1;
|
5 |
1.23 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.opening_hours AS opening_hours_3, t0.currencies_accepted AS currencies_accepted_4, t0.payment_accepted_type AS payment_accepted_type_5, t0.price_range AS price_range_6, t0.aggregate_rating AS aggregate_rating_7, t0.created_at AS created_at_8, t0.prefectoral_approval_number AS prefectoral_approval_number_9, t0.status AS status_10, t0.cedex AS cedex_11, t0.is_exportable_ibml AS is_exportable_ibml_12, t0.postal_address_id AS postal_address_id_13, t0.sector_id AS sector_id_14 FROM store t0 INNER JOIN discount_code_store ON t0.id = discount_code_store.store_id WHERE discount_code_store.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.opening_hours AS opening_hours_3, t0.currencies_accepted AS currencies_accepted_4, t0.payment_accepted_type AS payment_accepted_type_5, t0.price_range AS price_range_6, t0.aggregate_rating AS aggregate_rating_7, t0.created_at AS created_at_8, t0.prefectoral_approval_number AS prefectoral_approval_number_9, t0.status AS status_10, t0.cedex AS cedex_11, t0.is_exportable_ibml AS is_exportable_ibml_12, t0.postal_address_id AS postal_address_id_13, t0.sector_id AS sector_id_14 FROM store t0 INNER JOIN discount_code_store ON t0.id = discount_code_store.store_id WHERE discount_code_store.discount_code_id = 1;
|
6 |
3.19 ms |
SELECT t0.id AS id_1, t0.created_at AS created_at_2, t0.updated_at AS updated_at_3, t0.confirmation_number AS confirmation_number_4, t0.status AS status_5, t0.period_start AS period_start_6, t0.period_end AS period_end_7, t0.period_length AS period_length_8, t0.vatrate AS vatrate_9, t0.price_without_tax AS price_without_tax_10, t0.object AS object_11, t0.path AS path_12, t0.price AS price_13, t0.payment_recurrence AS payment_recurrence_14, t0.new_organization_legal_name AS new_organization_legal_name_15, t0.new_organization_vatid AS new_organization_vatid_16, t0.is_new_organization AS is_new_organization_17, t0.is_prescriber AS is_prescriber_18, t0.total_paid AS total_paid_19, t0.new_organization_user_email AS new_organization_user_email_20, t0.is_sent AS is_sent_21, t0.sent_date AS sent_date_22, t0.sent_to AS sent_to_23, t0.number AS number_24, t0.total_refund AS total_refund_25, t0.is_canceled AS is_canceled_26, t0.discount_without_tax AS discount_without_tax_27, t0.discount_without_tax_percent AS discount_without_tax_percent_28, t0.is_imported AS is_imported_29, t0.is_domiciliation AS is_domiciliation_30, t0.payment_url AS payment_url_31, t0.reference AS reference_32, t0.remaining_to_pay AS remaining_to_pay_33, t0.total_refunded_payment AS total_refunded_payment_34, t0.marge AS marge_35, t0.is_new_organization_prescribed AS is_new_organization_prescribed_36, t0.is_not_in_prescriber AS is_not_in_prescriber_37, t0.new_prescriber_legal_name AS new_prescriber_legal_name_38, t0.new_prescriber_vatid AS new_prescriber_vatid_39, t0.new_prescriber_user_email AS new_prescriber_user_email_40, t0.is_attached_to_prescriber AS is_attached_to_prescriber_41, t0.invoice_type AS invoice_type_42, t0.reference_stripe AS reference_stripe_43, t0.new_organization_phone_number AS new_organization_phone_number_44, t0.payment_deadline AS payment_deadline_45, t0.is_template AS is_template_46, t0.unique_key AS unique_key_47, t0.is_paid_by_stripe AS is_paid_by_stripe_48, t0.is_pack_invoice AS is_pack_invoice_49, t0.sync_billing_report AS sync_billing_report_50, t0.external_id AS external_id_51, t0.organization_id AS organization_id_52, t0.user_id AS user_id_53, t0.new_organization_address_id AS new_organization_address_id_54, t55.id AS id_56, t55.created_at AS created_at_57, t55.updated_at AS updated_at_58, t55.status AS status_59, t55.vatrate AS vatrate_60, t55.price_without_tax AS price_without_tax_61, t55.object AS object_62, t55.path AS path_63, t55.price AS price_64, t55.new_organization_legal_name AS new_organization_legal_name_65, t55.new_organization_vatid AS new_organization_vatid_66, t55.is_new_organization AS is_new_organization_67, t55.is_prescriber AS is_prescriber_68, t55.new_organization_user_email AS new_organization_user_email_69, t55.is_sent AS is_sent_70, t55.sent_date AS sent_date_71, t55.sent_to AS sent_to_72, t55.number AS number_73, t55.is_canceled AS is_canceled_74, t55.discount_without_tax AS discount_without_tax_75, t55.discount_without_tax_percent AS discount_without_tax_percent_76, t55.invoice_is_generated AS invoice_is_generated_77, t55.payment_url AS payment_url_78, t55.is_generate AS is_generate_79, t55.marge AS marge_80, t55.new_organization_phone_number AS new_organization_phone_number_81, t55.is_new_organization_prescribed AS is_new_organization_prescribed_82, t55.is_not_in_prescriber AS is_not_in_prescriber_83, t55.new_prescriber_legal_name AS new_prescriber_legal_name_84, t55.new_prescriber_vatid AS new_prescriber_vatid_85, t55.new_prescriber_user_email AS new_prescriber_user_email_86, t55.is_attached_to_prescriber AS is_attached_to_prescriber_87, t55.is_paid_by_stripe AS is_paid_by_stripe_88, t55.organization_id AS organization_id_89, t55.new_organization_address_id AS new_organization_address_id_90, t55.invoice_id AS invoice_id_91, t55.prescriber_id AS prescriber_id_92, t55.new_prescriber_address_id AS new_prescriber_address_id_93, t55.discount_code_id AS discount_code_id_94, t0.prescriber_id AS prescriber_id_95, t0.new_prescriber_address_id AS new_prescriber_address_id_96, t97.id AS id_98, t97.created_at AS created_at_99, t97.updated_at AS updated_at_100, t97.is_done AS is_done_101, t97.comment AS comment_102, t97.npai AS npai_103, t97.price_without_tax AS price_without_tax_104, t97.tracking_number AS tracking_number_105, t97.price AS price_106, t97.days_keep AS days_keep_107, t97.organization_id AS organization_id_108, t97.invoice_id AS invoice_id_109, t0.invoice_parent_id AS invoice_parent_id_110, t111.id AS id_112, t111.created_at AS created_at_113, t111.updated_at AS updated_at_114, t111.confirmation_number AS confirmation_number_115, t111.status AS status_116, t111.period_start AS period_start_117, t111.period_end AS period_end_118, t111.period_length AS period_length_119, t111.vatrate AS vatrate_120, t111.price_without_tax AS price_without_tax_121, t111.object AS object_122, t111.path AS path_123, t111.price AS price_124, t111.payment_recurrence AS payment_recurrence_125, t111.new_organization_legal_name AS new_organization_legal_name_126, t111.new_organization_vatid AS new_organization_vatid_127, t111.is_new_organization AS is_new_organization_128, t111.is_prescriber AS is_prescriber_129, t111.total_paid AS total_paid_130, t111.new_organization_user_email AS new_organization_user_email_131, t111.is_sent AS is_sent_132, t111.sent_date AS sent_date_133, t111.sent_to AS sent_to_134, t111.number AS number_135, t111.total_refund AS total_refund_136, t111.is_canceled AS is_canceled_137, t111.discount_without_tax AS discount_without_tax_138, t111.discount_without_tax_percent AS discount_without_tax_percent_139, t111.is_imported AS is_imported_140, t111.is_domiciliation AS is_domiciliation_141, t111.payment_url AS payment_url_142, t111.reference AS reference_143, t111.remaining_to_pay AS remaining_to_pay_144, t111.total_refunded_payment AS total_refunded_payment_145, t111.marge AS marge_146, t111.is_new_organization_prescribed AS is_new_organization_prescribed_147, t111.is_not_in_prescriber AS is_not_in_prescriber_148, t111.new_prescriber_legal_name AS new_prescriber_legal_name_149, t111.new_prescriber_vatid AS new_prescriber_vatid_150, t111.new_prescriber_user_email AS new_prescriber_user_email_151, t111.is_attached_to_prescriber AS is_attached_to_prescriber_152, t111.invoice_type AS invoice_type_153, t111.reference_stripe AS reference_stripe_154, t111.new_organization_phone_number AS new_organization_phone_number_155, t111.payment_deadline AS payment_deadline_156, t111.is_template AS is_template_157, t111.unique_key AS unique_key_158, t111.is_paid_by_stripe AS is_paid_by_stripe_159, t111.is_pack_invoice AS is_pack_invoice_160, t111.sync_billing_report AS sync_billing_report_161, t111.external_id AS external_id_162, t111.organization_id AS organization_id_163, t111.user_id AS user_id_164, t111.new_organization_address_id AS new_organization_address_id_165, t111.prescriber_id AS prescriber_id_166, t111.new_prescriber_address_id AS new_prescriber_address_id_167, t111.invoice_parent_id AS invoice_parent_id_168, t111.discount_code_id AS discount_code_id_169, t0.discount_code_id AS discount_code_id_170 FROM invoice t0 LEFT JOIN quote t55 ON t55.invoice_id = t0.id LEFT JOIN letter_forward t97 ON t97.invoice_id = t0.id LEFT JOIN invoice t111 ON t111.invoice_parent_id = t0.id WHERE t0.discount_code_id = ?
SELECT
t0.id AS id_1,
t0.created_at AS created_at_2,
t0.updated_at AS updated_at_3,
t0.confirmation_number AS confirmation_number_4,
t0.status AS status_5,
t0.period_start AS period_start_6,
t0.period_end AS period_end_7,
t0.period_length AS period_length_8,
t0.vatrate AS vatrate_9,
t0.price_without_tax AS price_without_tax_10,
t0.object AS object_11,
t0.path AS path_12,
t0.price AS price_13,
t0.payment_recurrence AS payment_recurrence_14,
t0.new_organization_legal_name AS new_organization_legal_name_15,
t0.new_organization_vatid AS new_organization_vatid_16,
t0.is_new_organization AS is_new_organization_17,
t0.is_prescriber AS is_prescriber_18,
t0.total_paid AS total_paid_19,
t0.new_organization_user_email AS new_organization_user_email_20,
t0.is_sent AS is_sent_21,
t0.sent_date AS sent_date_22,
t0.sent_to AS sent_to_23,
t0.number AS number_24,
t0.total_refund AS total_refund_25,
t0.is_canceled AS is_canceled_26,
t0.discount_without_tax AS discount_without_tax_27,
t0.discount_without_tax_percent AS discount_without_tax_percent_28,
t0.is_imported AS is_imported_29,
t0.is_domiciliation AS is_domiciliation_30,
t0.payment_url AS payment_url_31,
t0.reference AS reference_32,
t0.remaining_to_pay AS remaining_to_pay_33,
t0.total_refunded_payment AS total_refunded_payment_34,
t0.marge AS marge_35,
t0.is_new_organization_prescribed AS is_new_organization_prescribed_36,
t0.is_not_in_prescriber AS is_not_in_prescriber_37,
t0.new_prescriber_legal_name AS new_prescriber_legal_name_38,
t0.new_prescriber_vatid AS new_prescriber_vatid_39,
t0.new_prescriber_user_email AS new_prescriber_user_email_40,
t0.is_attached_to_prescriber AS is_attached_to_prescriber_41,
t0.invoice_type AS invoice_type_42,
t0.reference_stripe AS reference_stripe_43,
t0.new_organization_phone_number AS new_organization_phone_number_44,
t0.payment_deadline AS payment_deadline_45,
t0.is_template AS is_template_46,
t0.unique_key AS unique_key_47,
t0.is_paid_by_stripe AS is_paid_by_stripe_48,
t0.is_pack_invoice AS is_pack_invoice_49,
t0.sync_billing_report AS sync_billing_report_50,
t0.external_id AS external_id_51,
t0.organization_id AS organization_id_52,
t0.user_id AS user_id_53,
t0.new_organization_address_id AS new_organization_address_id_54,
t55.id AS id_56,
t55.created_at AS created_at_57,
t55.updated_at AS updated_at_58,
t55.status AS status_59,
t55.vatrate AS vatrate_60,
t55.price_without_tax AS price_without_tax_61,
t55.object AS object_62,
t55.path AS path_63,
t55.price AS price_64,
t55.new_organization_legal_name AS new_organization_legal_name_65,
t55.new_organization_vatid AS new_organization_vatid_66,
t55.is_new_organization AS is_new_organization_67,
t55.is_prescriber AS is_prescriber_68,
t55.new_organization_user_email AS new_organization_user_email_69,
t55.is_sent AS is_sent_70,
t55.sent_date AS sent_date_71,
t55.sent_to AS sent_to_72,
t55.number AS number_73,
t55.is_canceled AS is_canceled_74,
t55.discount_without_tax AS discount_without_tax_75,
t55.discount_without_tax_percent AS discount_without_tax_percent_76,
t55.invoice_is_generated AS invoice_is_generated_77,
t55.payment_url AS payment_url_78,
t55.is_generate AS is_generate_79,
t55.marge AS marge_80,
t55.new_organization_phone_number AS new_organization_phone_number_81,
t55.is_new_organization_prescribed AS is_new_organization_prescribed_82,
t55.is_not_in_prescriber AS is_not_in_prescriber_83,
t55.new_prescriber_legal_name AS new_prescriber_legal_name_84,
t55.new_prescriber_vatid AS new_prescriber_vatid_85,
t55.new_prescriber_user_email AS new_prescriber_user_email_86,
t55.is_attached_to_prescriber AS is_attached_to_prescriber_87,
t55.is_paid_by_stripe AS is_paid_by_stripe_88,
t55.organization_id AS organization_id_89,
t55.new_organization_address_id AS new_organization_address_id_90,
t55.invoice_id AS invoice_id_91,
t55.prescriber_id AS prescriber_id_92,
t55.new_prescriber_address_id AS new_prescriber_address_id_93,
t55.discount_code_id AS discount_code_id_94,
t0.prescriber_id AS prescriber_id_95,
t0.new_prescriber_address_id AS new_prescriber_address_id_96,
t97.id AS id_98,
t97.created_at AS created_at_99,
t97.updated_at AS updated_at_100,
t97.is_done AS is_done_101,
t97.comment AS comment_102,
t97.npai AS npai_103,
t97.price_without_tax AS price_without_tax_104,
t97.tracking_number AS tracking_number_105,
t97.price AS price_106,
t97.days_keep AS days_keep_107,
t97.organization_id AS organization_id_108,
t97.invoice_id AS invoice_id_109,
t0.invoice_parent_id AS invoice_parent_id_110,
t111.id AS id_112,
t111.created_at AS created_at_113,
t111.updated_at AS updated_at_114,
t111.confirmation_number AS confirmation_number_115,
t111.status AS status_116,
t111.period_start AS period_start_117,
t111.period_end AS period_end_118,
t111.period_length AS period_length_119,
t111.vatrate AS vatrate_120,
t111.price_without_tax AS price_without_tax_121,
t111.object AS object_122,
t111.path AS path_123,
t111.price AS price_124,
t111.payment_recurrence AS payment_recurrence_125,
t111.new_organization_legal_name AS new_organization_legal_name_126,
t111.new_organization_vatid AS new_organization_vatid_127,
t111.is_new_organization AS is_new_organization_128,
t111.is_prescriber AS is_prescriber_129,
t111.total_paid AS total_paid_130,
t111.new_organization_user_email AS new_organization_user_email_131,
t111.is_sent AS is_sent_132,
t111.sent_date AS sent_date_133,
t111.sent_to AS sent_to_134,
t111.number AS number_135,
t111.total_refund AS total_refund_136,
t111.is_canceled AS is_canceled_137,
t111.discount_without_tax AS discount_without_tax_138,
t111.discount_without_tax_percent AS discount_without_tax_percent_139,
t111.is_imported AS is_imported_140,
t111.is_domiciliation AS is_domiciliation_141,
t111.payment_url AS payment_url_142,
t111.reference AS reference_143,
t111.remaining_to_pay AS remaining_to_pay_144,
t111.total_refunded_payment AS total_refunded_payment_145,
t111.marge AS marge_146,
t111.is_new_organization_prescribed AS is_new_organization_prescribed_147,
t111.is_not_in_prescriber AS is_not_in_prescriber_148,
t111.new_prescriber_legal_name AS new_prescriber_legal_name_149,
t111.new_prescriber_vatid AS new_prescriber_vatid_150,
t111.new_prescriber_user_email AS new_prescriber_user_email_151,
t111.is_attached_to_prescriber AS is_attached_to_prescriber_152,
t111.invoice_type AS invoice_type_153,
t111.reference_stripe AS reference_stripe_154,
t111.new_organization_phone_number AS new_organization_phone_number_155,
t111.payment_deadline AS payment_deadline_156,
t111.is_template AS is_template_157,
t111.unique_key AS unique_key_158,
t111.is_paid_by_stripe AS is_paid_by_stripe_159,
t111.is_pack_invoice AS is_pack_invoice_160,
t111.sync_billing_report AS sync_billing_report_161,
t111.external_id AS external_id_162,
t111.organization_id AS organization_id_163,
t111.user_id AS user_id_164,
t111.new_organization_address_id AS new_organization_address_id_165,
t111.prescriber_id AS prescriber_id_166,
t111.new_prescriber_address_id AS new_prescriber_address_id_167,
t111.invoice_parent_id AS invoice_parent_id_168,
t111.discount_code_id AS discount_code_id_169,
t0.discount_code_id AS discount_code_id_170
FROM
invoice t0
LEFT JOIN quote t55 ON t55.invoice_id = t0.id
LEFT JOIN letter_forward t97 ON t97.invoice_id = t0.id
LEFT JOIN invoice t111 ON t111.invoice_parent_id = t0.id
WHERE
t0.discount_code_id = ?
SELECT t0.id AS id_1, t0.created_at AS created_at_2, t0.updated_at AS updated_at_3, t0.confirmation_number AS confirmation_number_4, t0.status AS status_5, t0.period_start AS period_start_6, t0.period_end AS period_end_7, t0.period_length AS period_length_8, t0.vatrate AS vatrate_9, t0.price_without_tax AS price_without_tax_10, t0.object AS object_11, t0.path AS path_12, t0.price AS price_13, t0.payment_recurrence AS payment_recurrence_14, t0.new_organization_legal_name AS new_organization_legal_name_15, t0.new_organization_vatid AS new_organization_vatid_16, t0.is_new_organization AS is_new_organization_17, t0.is_prescriber AS is_prescriber_18, t0.total_paid AS total_paid_19, t0.new_organization_user_email AS new_organization_user_email_20, t0.is_sent AS is_sent_21, t0.sent_date AS sent_date_22, t0.sent_to AS sent_to_23, t0.number AS number_24, t0.total_refund AS total_refund_25, t0.is_canceled AS is_canceled_26, t0.discount_without_tax AS discount_without_tax_27, t0.discount_without_tax_percent AS discount_without_tax_percent_28, t0.is_imported AS is_imported_29, t0.is_domiciliation AS is_domiciliation_30, t0.payment_url AS payment_url_31, t0.reference AS reference_32, t0.remaining_to_pay AS remaining_to_pay_33, t0.total_refunded_payment AS total_refunded_payment_34, t0.marge AS marge_35, t0.is_new_organization_prescribed AS is_new_organization_prescribed_36, t0.is_not_in_prescriber AS is_not_in_prescriber_37, t0.new_prescriber_legal_name AS new_prescriber_legal_name_38, t0.new_prescriber_vatid AS new_prescriber_vatid_39, t0.new_prescriber_user_email AS new_prescriber_user_email_40, t0.is_attached_to_prescriber AS is_attached_to_prescriber_41, t0.invoice_type AS invoice_type_42, t0.reference_stripe AS reference_stripe_43, t0.new_organization_phone_number AS new_organization_phone_number_44, t0.payment_deadline AS payment_deadline_45, t0.is_template AS is_template_46, t0.unique_key AS unique_key_47, t0.is_paid_by_stripe AS is_paid_by_stripe_48, t0.is_pack_invoice AS is_pack_invoice_49, t0.sync_billing_report AS sync_billing_report_50, t0.external_id AS external_id_51, t0.organization_id AS organization_id_52, t0.user_id AS user_id_53, t0.new_organization_address_id AS new_organization_address_id_54, t55.id AS id_56, t55.created_at AS created_at_57, t55.updated_at AS updated_at_58, t55.status AS status_59, t55.vatrate AS vatrate_60, t55.price_without_tax AS price_without_tax_61, t55.object AS object_62, t55.path AS path_63, t55.price AS price_64, t55.new_organization_legal_name AS new_organization_legal_name_65, t55.new_organization_vatid AS new_organization_vatid_66, t55.is_new_organization AS is_new_organization_67, t55.is_prescriber AS is_prescriber_68, t55.new_organization_user_email AS new_organization_user_email_69, t55.is_sent AS is_sent_70, t55.sent_date AS sent_date_71, t55.sent_to AS sent_to_72, t55.number AS number_73, t55.is_canceled AS is_canceled_74, t55.discount_without_tax AS discount_without_tax_75, t55.discount_without_tax_percent AS discount_without_tax_percent_76, t55.invoice_is_generated AS invoice_is_generated_77, t55.payment_url AS payment_url_78, t55.is_generate AS is_generate_79, t55.marge AS marge_80, t55.new_organization_phone_number AS new_organization_phone_number_81, t55.is_new_organization_prescribed AS is_new_organization_prescribed_82, t55.is_not_in_prescriber AS is_not_in_prescriber_83, t55.new_prescriber_legal_name AS new_prescriber_legal_name_84, t55.new_prescriber_vatid AS new_prescriber_vatid_85, t55.new_prescriber_user_email AS new_prescriber_user_email_86, t55.is_attached_to_prescriber AS is_attached_to_prescriber_87, t55.is_paid_by_stripe AS is_paid_by_stripe_88, t55.organization_id AS organization_id_89, t55.new_organization_address_id AS new_organization_address_id_90, t55.invoice_id AS invoice_id_91, t55.prescriber_id AS prescriber_id_92, t55.new_prescriber_address_id AS new_prescriber_address_id_93, t55.discount_code_id AS discount_code_id_94, t0.prescriber_id AS prescriber_id_95, t0.new_prescriber_address_id AS new_prescriber_address_id_96, t97.id AS id_98, t97.created_at AS created_at_99, t97.updated_at AS updated_at_100, t97.is_done AS is_done_101, t97.comment AS comment_102, t97.npai AS npai_103, t97.price_without_tax AS price_without_tax_104, t97.tracking_number AS tracking_number_105, t97.price AS price_106, t97.days_keep AS days_keep_107, t97.organization_id AS organization_id_108, t97.invoice_id AS invoice_id_109, t0.invoice_parent_id AS invoice_parent_id_110, t111.id AS id_112, t111.created_at AS created_at_113, t111.updated_at AS updated_at_114, t111.confirmation_number AS confirmation_number_115, t111.status AS status_116, t111.period_start AS period_start_117, t111.period_end AS period_end_118, t111.period_length AS period_length_119, t111.vatrate AS vatrate_120, t111.price_without_tax AS price_without_tax_121, t111.object AS object_122, t111.path AS path_123, t111.price AS price_124, t111.payment_recurrence AS payment_recurrence_125, t111.new_organization_legal_name AS new_organization_legal_name_126, t111.new_organization_vatid AS new_organization_vatid_127, t111.is_new_organization AS is_new_organization_128, t111.is_prescriber AS is_prescriber_129, t111.total_paid AS total_paid_130, t111.new_organization_user_email AS new_organization_user_email_131, t111.is_sent AS is_sent_132, t111.sent_date AS sent_date_133, t111.sent_to AS sent_to_134, t111.number AS number_135, t111.total_refund AS total_refund_136, t111.is_canceled AS is_canceled_137, t111.discount_without_tax AS discount_without_tax_138, t111.discount_without_tax_percent AS discount_without_tax_percent_139, t111.is_imported AS is_imported_140, t111.is_domiciliation AS is_domiciliation_141, t111.payment_url AS payment_url_142, t111.reference AS reference_143, t111.remaining_to_pay AS remaining_to_pay_144, t111.total_refunded_payment AS total_refunded_payment_145, t111.marge AS marge_146, t111.is_new_organization_prescribed AS is_new_organization_prescribed_147, t111.is_not_in_prescriber AS is_not_in_prescriber_148, t111.new_prescriber_legal_name AS new_prescriber_legal_name_149, t111.new_prescriber_vatid AS new_prescriber_vatid_150, t111.new_prescriber_user_email AS new_prescriber_user_email_151, t111.is_attached_to_prescriber AS is_attached_to_prescriber_152, t111.invoice_type AS invoice_type_153, t111.reference_stripe AS reference_stripe_154, t111.new_organization_phone_number AS new_organization_phone_number_155, t111.payment_deadline AS payment_deadline_156, t111.is_template AS is_template_157, t111.unique_key AS unique_key_158, t111.is_paid_by_stripe AS is_paid_by_stripe_159, t111.is_pack_invoice AS is_pack_invoice_160, t111.sync_billing_report AS sync_billing_report_161, t111.external_id AS external_id_162, t111.organization_id AS organization_id_163, t111.user_id AS user_id_164, t111.new_organization_address_id AS new_organization_address_id_165, t111.prescriber_id AS prescriber_id_166, t111.new_prescriber_address_id AS new_prescriber_address_id_167, t111.invoice_parent_id AS invoice_parent_id_168, t111.discount_code_id AS discount_code_id_169, t0.discount_code_id AS discount_code_id_170 FROM invoice t0 LEFT JOIN quote t55 ON t55.invoice_id = t0.id LEFT JOIN letter_forward t97 ON t97.invoice_id = t0.id LEFT JOIN invoice t111 ON t111.invoice_parent_id = t0.id WHERE t0.discount_code_id = 1;
|
7 |
1.15 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.alternate_name AS alternate_name_3, t0.price_without_tax AS price_without_tax_4, t0.description AS description_5, t0.active AS active_6, t0.meta_description AS meta_description_7, t0.meta_title AS meta_title_8, t0.url AS url_9, t0.created_at AS created_at_10, t0.subscription_type AS subscription_type_11, t0.unique_key AS unique_key_12, t0.is_displayed AS is_displayed_13, t0.is_archived AS is_archived_14, t0.is_subscription_component AS is_subscription_component_15, t0.category_id AS category_id_16, t0.category_for_billing_report_id AS category_for_billing_report_id_17 FROM product t0 INNER JOIN discount_code_product ON t0.id = discount_code_product.product_id WHERE discount_code_product.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.alternate_name AS alternate_name_3, t0.price_without_tax AS price_without_tax_4, t0.description AS description_5, t0.active AS active_6, t0.meta_description AS meta_description_7, t0.meta_title AS meta_title_8, t0.url AS url_9, t0.created_at AS created_at_10, t0.subscription_type AS subscription_type_11, t0.unique_key AS unique_key_12, t0.is_displayed AS is_displayed_13, t0.is_archived AS is_archived_14, t0.is_subscription_component AS is_subscription_component_15, t0.category_id AS category_id_16, t0.category_for_billing_report_id AS category_for_billing_report_id_17 FROM product t0 INNER JOIN discount_code_product ON t0.id = discount_code_product.product_id WHERE discount_code_product.discount_code_id = 1;
|
8 |
1.27 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.price AS price_3, t0.focus AS focus_4, t0.price_without_tax AS price_without_tax_5, t0.vat_rate AS vat_rate_6, t0.discount AS discount_7, t0.unique_key AS unique_key_8, t0.automation AS automation_9, t0.is_published AS is_published_10, t0.is_subscription AS is_subscription_11, t0.published_name AS published_name_12, t0.is_published_pack AS is_published_pack_13, t0.type AS type_14, t0.legal_status AS legal_status_15, t0.created_at AS created_at_16, t0.association_pack_id AS association_pack_id_17, t0.category_id AS category_id_18, t0.recurring_invoice_id AS recurring_invoice_id_19, t0.initial_invoice_id AS initial_invoice_id_20, t0.subscription_id AS subscription_id_21 FROM pack t0 INNER JOIN discount_code_pack ON t0.id = discount_code_pack.pack_id WHERE discount_code_pack.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.price AS price_3, t0.focus AS focus_4, t0.price_without_tax AS price_without_tax_5, t0.vat_rate AS vat_rate_6, t0.discount AS discount_7, t0.unique_key AS unique_key_8, t0.automation AS automation_9, t0.is_published AS is_published_10, t0.is_subscription AS is_subscription_11, t0.published_name AS published_name_12, t0.is_published_pack AS is_published_pack_13, t0.type AS type_14, t0.legal_status AS legal_status_15, t0.created_at AS created_at_16, t0.association_pack_id AS association_pack_id_17, t0.category_id AS category_id_18, t0.recurring_invoice_id AS recurring_invoice_id_19, t0.initial_invoice_id AS initial_invoice_id_20, t0.subscription_id AS subscription_id_21 FROM pack t0 INNER JOIN discount_code_pack ON t0.id = discount_code_pack.pack_id WHERE discount_code_pack.discount_code_id = 2;
|
9 |
1.10 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.unique_key AS unique_key_3, t0.security_deposit AS security_deposit_4, t0.is_active AS is_active_5, t0.authorized_frequency AS authorized_frequency_6, t0.created_at AS created_at_7, t0.update_at AS update_at_8, t0.price_without_tax AS price_without_tax_9, t0.product_id AS product_id_10 FROM subscription_model t0 INNER JOIN discount_code_subscription_model ON t0.id = discount_code_subscription_model.subscription_model_id WHERE discount_code_subscription_model.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.unique_key AS unique_key_3, t0.security_deposit AS security_deposit_4, t0.is_active AS is_active_5, t0.authorized_frequency AS authorized_frequency_6, t0.created_at AS created_at_7, t0.update_at AS update_at_8, t0.price_without_tax AS price_without_tax_9, t0.product_id AS product_id_10 FROM subscription_model t0 INNER JOIN discount_code_subscription_model ON t0.id = discount_code_subscription_model.subscription_model_id WHERE discount_code_subscription_model.discount_code_id = 2;
|
10 |
1.48 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.opening_hours AS opening_hours_3, t0.currencies_accepted AS currencies_accepted_4, t0.payment_accepted_type AS payment_accepted_type_5, t0.price_range AS price_range_6, t0.aggregate_rating AS aggregate_rating_7, t0.created_at AS created_at_8, t0.prefectoral_approval_number AS prefectoral_approval_number_9, t0.status AS status_10, t0.cedex AS cedex_11, t0.is_exportable_ibml AS is_exportable_ibml_12, t0.postal_address_id AS postal_address_id_13, t0.sector_id AS sector_id_14 FROM store t0 INNER JOIN discount_code_store ON t0.id = discount_code_store.store_id WHERE discount_code_store.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.opening_hours AS opening_hours_3, t0.currencies_accepted AS currencies_accepted_4, t0.payment_accepted_type AS payment_accepted_type_5, t0.price_range AS price_range_6, t0.aggregate_rating AS aggregate_rating_7, t0.created_at AS created_at_8, t0.prefectoral_approval_number AS prefectoral_approval_number_9, t0.status AS status_10, t0.cedex AS cedex_11, t0.is_exportable_ibml AS is_exportable_ibml_12, t0.postal_address_id AS postal_address_id_13, t0.sector_id AS sector_id_14 FROM store t0 INNER JOIN discount_code_store ON t0.id = discount_code_store.store_id WHERE discount_code_store.discount_code_id = 2;
|
11 |
1.41 ms |
SELECT p0_.id AS id_0, p0_.name AS name_1, p0_.alternate_name AS alternate_name_2, p0_.price_without_tax AS price_without_tax_3, p0_.description AS description_4, p0_.active AS active_5, p0_.meta_description AS meta_description_6, p0_.meta_title AS meta_title_7, p0_.url AS url_8, p0_.created_at AS created_at_9, p0_.subscription_type AS subscription_type_10, p0_.unique_key AS unique_key_11, p0_.is_displayed AS is_displayed_12, p0_.is_archived AS is_archived_13, p0_.is_subscription_component AS is_subscription_component_14, p0_.category_id AS category_id_15, p0_.category_for_billing_report_id AS category_for_billing_report_id_16 FROM product p0_ WHERE p0_.name LIKE ? AND p0_.active = 0
Parameters: [
"%75008%"
]
SELECT p0_.id AS id_0, p0_.name AS name_1, p0_.alternate_name AS alternate_name_2, p0_.price_without_tax AS price_without_tax_3, p0_.description AS description_4, p0_.active AS active_5, p0_.meta_description AS meta_description_6, p0_.meta_title AS meta_title_7, p0_.url AS url_8, p0_.created_at AS created_at_9, p0_.subscription_type AS subscription_type_10, p0_.unique_key AS unique_key_11, p0_.is_displayed AS is_displayed_12, p0_.is_archived AS is_archived_13, p0_.is_subscription_component AS is_subscription_component_14, p0_.category_id AS category_id_15, p0_.category_for_billing_report_id AS category_for_billing_report_id_16 FROM product p0_ WHERE p0_.name LIKE '%75008%' AND p0_.active = 0;
|
12 |
1.48 ms |
SELECT p0_.id AS id_0, p0_.name AS name_1, p0_.alternate_name AS alternate_name_2, p0_.price_without_tax AS price_without_tax_3, p0_.description AS description_4, p0_.active AS active_5, p0_.meta_description AS meta_description_6, p0_.meta_title AS meta_title_7, p0_.url AS url_8, p0_.created_at AS created_at_9, p0_.subscription_type AS subscription_type_10, p0_.unique_key AS unique_key_11, p0_.is_displayed AS is_displayed_12, p0_.is_archived AS is_archived_13, p0_.is_subscription_component AS is_subscription_component_14, p0_.category_id AS category_id_15, p0_.category_for_billing_report_id AS category_for_billing_report_id_16 FROM product p0_ WHERE p0_.name LIKE ? AND p0_.active = 0
Parameters: [
"%75011%"
]
SELECT p0_.id AS id_0, p0_.name AS name_1, p0_.alternate_name AS alternate_name_2, p0_.price_without_tax AS price_without_tax_3, p0_.description AS description_4, p0_.active AS active_5, p0_.meta_description AS meta_description_6, p0_.meta_title AS meta_title_7, p0_.url AS url_8, p0_.created_at AS created_at_9, p0_.subscription_type AS subscription_type_10, p0_.unique_key AS unique_key_11, p0_.is_displayed AS is_displayed_12, p0_.is_archived AS is_archived_13, p0_.is_subscription_component AS is_subscription_component_14, p0_.category_id AS category_id_15, p0_.category_for_billing_report_id AS category_for_billing_report_id_16 FROM product p0_ WHERE p0_.name LIKE '%75011%' AND p0_.active = 0;
|
13 |
2.37 ms |
SELECT t0.id AS id_1, t0.created_at AS created_at_2, t0.updated_at AS updated_at_3, t0.confirmation_number AS confirmation_number_4, t0.status AS status_5, t0.period_start AS period_start_6, t0.period_end AS period_end_7, t0.period_length AS period_length_8, t0.vatrate AS vatrate_9, t0.price_without_tax AS price_without_tax_10, t0.object AS object_11, t0.path AS path_12, t0.price AS price_13, t0.payment_recurrence AS payment_recurrence_14, t0.new_organization_legal_name AS new_organization_legal_name_15, t0.new_organization_vatid AS new_organization_vatid_16, t0.is_new_organization AS is_new_organization_17, t0.is_prescriber AS is_prescriber_18, t0.total_paid AS total_paid_19, t0.new_organization_user_email AS new_organization_user_email_20, t0.is_sent AS is_sent_21, t0.sent_date AS sent_date_22, t0.sent_to AS sent_to_23, t0.number AS number_24, t0.total_refund AS total_refund_25, t0.is_canceled AS is_canceled_26, t0.discount_without_tax AS discount_without_tax_27, t0.discount_without_tax_percent AS discount_without_tax_percent_28, t0.is_imported AS is_imported_29, t0.is_domiciliation AS is_domiciliation_30, t0.payment_url AS payment_url_31, t0.reference AS reference_32, t0.remaining_to_pay AS remaining_to_pay_33, t0.total_refunded_payment AS total_refunded_payment_34, t0.marge AS marge_35, t0.is_new_organization_prescribed AS is_new_organization_prescribed_36, t0.is_not_in_prescriber AS is_not_in_prescriber_37, t0.new_prescriber_legal_name AS new_prescriber_legal_name_38, t0.new_prescriber_vatid AS new_prescriber_vatid_39, t0.new_prescriber_user_email AS new_prescriber_user_email_40, t0.is_attached_to_prescriber AS is_attached_to_prescriber_41, t0.invoice_type AS invoice_type_42, t0.reference_stripe AS reference_stripe_43, t0.new_organization_phone_number AS new_organization_phone_number_44, t0.payment_deadline AS payment_deadline_45, t0.is_template AS is_template_46, t0.unique_key AS unique_key_47, t0.is_paid_by_stripe AS is_paid_by_stripe_48, t0.is_pack_invoice AS is_pack_invoice_49, t0.sync_billing_report AS sync_billing_report_50, t0.external_id AS external_id_51, t0.organization_id AS organization_id_52, t0.user_id AS user_id_53, t0.new_organization_address_id AS new_organization_address_id_54, t55.id AS id_56, t55.created_at AS created_at_57, t55.updated_at AS updated_at_58, t55.status AS status_59, t55.vatrate AS vatrate_60, t55.price_without_tax AS price_without_tax_61, t55.object AS object_62, t55.path AS path_63, t55.price AS price_64, t55.new_organization_legal_name AS new_organization_legal_name_65, t55.new_organization_vatid AS new_organization_vatid_66, t55.is_new_organization AS is_new_organization_67, t55.is_prescriber AS is_prescriber_68, t55.new_organization_user_email AS new_organization_user_email_69, t55.is_sent AS is_sent_70, t55.sent_date AS sent_date_71, t55.sent_to AS sent_to_72, t55.number AS number_73, t55.is_canceled AS is_canceled_74, t55.discount_without_tax AS discount_without_tax_75, t55.discount_without_tax_percent AS discount_without_tax_percent_76, t55.invoice_is_generated AS invoice_is_generated_77, t55.payment_url AS payment_url_78, t55.is_generate AS is_generate_79, t55.marge AS marge_80, t55.new_organization_phone_number AS new_organization_phone_number_81, t55.is_new_organization_prescribed AS is_new_organization_prescribed_82, t55.is_not_in_prescriber AS is_not_in_prescriber_83, t55.new_prescriber_legal_name AS new_prescriber_legal_name_84, t55.new_prescriber_vatid AS new_prescriber_vatid_85, t55.new_prescriber_user_email AS new_prescriber_user_email_86, t55.is_attached_to_prescriber AS is_attached_to_prescriber_87, t55.is_paid_by_stripe AS is_paid_by_stripe_88, t55.organization_id AS organization_id_89, t55.new_organization_address_id AS new_organization_address_id_90, t55.invoice_id AS invoice_id_91, t55.prescriber_id AS prescriber_id_92, t55.new_prescriber_address_id AS new_prescriber_address_id_93, t55.discount_code_id AS discount_code_id_94, t0.prescriber_id AS prescriber_id_95, t0.new_prescriber_address_id AS new_prescriber_address_id_96, t97.id AS id_98, t97.created_at AS created_at_99, t97.updated_at AS updated_at_100, t97.is_done AS is_done_101, t97.comment AS comment_102, t97.npai AS npai_103, t97.price_without_tax AS price_without_tax_104, t97.tracking_number AS tracking_number_105, t97.price AS price_106, t97.days_keep AS days_keep_107, t97.organization_id AS organization_id_108, t97.invoice_id AS invoice_id_109, t0.invoice_parent_id AS invoice_parent_id_110, t111.id AS id_112, t111.created_at AS created_at_113, t111.updated_at AS updated_at_114, t111.confirmation_number AS confirmation_number_115, t111.status AS status_116, t111.period_start AS period_start_117, t111.period_end AS period_end_118, t111.period_length AS period_length_119, t111.vatrate AS vatrate_120, t111.price_without_tax AS price_without_tax_121, t111.object AS object_122, t111.path AS path_123, t111.price AS price_124, t111.payment_recurrence AS payment_recurrence_125, t111.new_organization_legal_name AS new_organization_legal_name_126, t111.new_organization_vatid AS new_organization_vatid_127, t111.is_new_organization AS is_new_organization_128, t111.is_prescriber AS is_prescriber_129, t111.total_paid AS total_paid_130, t111.new_organization_user_email AS new_organization_user_email_131, t111.is_sent AS is_sent_132, t111.sent_date AS sent_date_133, t111.sent_to AS sent_to_134, t111.number AS number_135, t111.total_refund AS total_refund_136, t111.is_canceled AS is_canceled_137, t111.discount_without_tax AS discount_without_tax_138, t111.discount_without_tax_percent AS discount_without_tax_percent_139, t111.is_imported AS is_imported_140, t111.is_domiciliation AS is_domiciliation_141, t111.payment_url AS payment_url_142, t111.reference AS reference_143, t111.remaining_to_pay AS remaining_to_pay_144, t111.total_refunded_payment AS total_refunded_payment_145, t111.marge AS marge_146, t111.is_new_organization_prescribed AS is_new_organization_prescribed_147, t111.is_not_in_prescriber AS is_not_in_prescriber_148, t111.new_prescriber_legal_name AS new_prescriber_legal_name_149, t111.new_prescriber_vatid AS new_prescriber_vatid_150, t111.new_prescriber_user_email AS new_prescriber_user_email_151, t111.is_attached_to_prescriber AS is_attached_to_prescriber_152, t111.invoice_type AS invoice_type_153, t111.reference_stripe AS reference_stripe_154, t111.new_organization_phone_number AS new_organization_phone_number_155, t111.payment_deadline AS payment_deadline_156, t111.is_template AS is_template_157, t111.unique_key AS unique_key_158, t111.is_paid_by_stripe AS is_paid_by_stripe_159, t111.is_pack_invoice AS is_pack_invoice_160, t111.sync_billing_report AS sync_billing_report_161, t111.external_id AS external_id_162, t111.organization_id AS organization_id_163, t111.user_id AS user_id_164, t111.new_organization_address_id AS new_organization_address_id_165, t111.prescriber_id AS prescriber_id_166, t111.new_prescriber_address_id AS new_prescriber_address_id_167, t111.invoice_parent_id AS invoice_parent_id_168, t111.discount_code_id AS discount_code_id_169, t0.discount_code_id AS discount_code_id_170 FROM invoice t0 LEFT JOIN quote t55 ON t55.invoice_id = t0.id LEFT JOIN letter_forward t97 ON t97.invoice_id = t0.id LEFT JOIN invoice t111 ON t111.invoice_parent_id = t0.id WHERE t0.discount_code_id = ?
SELECT
t0.id AS id_1,
t0.created_at AS created_at_2,
t0.updated_at AS updated_at_3,
t0.confirmation_number AS confirmation_number_4,
t0.status AS status_5,
t0.period_start AS period_start_6,
t0.period_end AS period_end_7,
t0.period_length AS period_length_8,
t0.vatrate AS vatrate_9,
t0.price_without_tax AS price_without_tax_10,
t0.object AS object_11,
t0.path AS path_12,
t0.price AS price_13,
t0.payment_recurrence AS payment_recurrence_14,
t0.new_organization_legal_name AS new_organization_legal_name_15,
t0.new_organization_vatid AS new_organization_vatid_16,
t0.is_new_organization AS is_new_organization_17,
t0.is_prescriber AS is_prescriber_18,
t0.total_paid AS total_paid_19,
t0.new_organization_user_email AS new_organization_user_email_20,
t0.is_sent AS is_sent_21,
t0.sent_date AS sent_date_22,
t0.sent_to AS sent_to_23,
t0.number AS number_24,
t0.total_refund AS total_refund_25,
t0.is_canceled AS is_canceled_26,
t0.discount_without_tax AS discount_without_tax_27,
t0.discount_without_tax_percent AS discount_without_tax_percent_28,
t0.is_imported AS is_imported_29,
t0.is_domiciliation AS is_domiciliation_30,
t0.payment_url AS payment_url_31,
t0.reference AS reference_32,
t0.remaining_to_pay AS remaining_to_pay_33,
t0.total_refunded_payment AS total_refunded_payment_34,
t0.marge AS marge_35,
t0.is_new_organization_prescribed AS is_new_organization_prescribed_36,
t0.is_not_in_prescriber AS is_not_in_prescriber_37,
t0.new_prescriber_legal_name AS new_prescriber_legal_name_38,
t0.new_prescriber_vatid AS new_prescriber_vatid_39,
t0.new_prescriber_user_email AS new_prescriber_user_email_40,
t0.is_attached_to_prescriber AS is_attached_to_prescriber_41,
t0.invoice_type AS invoice_type_42,
t0.reference_stripe AS reference_stripe_43,
t0.new_organization_phone_number AS new_organization_phone_number_44,
t0.payment_deadline AS payment_deadline_45,
t0.is_template AS is_template_46,
t0.unique_key AS unique_key_47,
t0.is_paid_by_stripe AS is_paid_by_stripe_48,
t0.is_pack_invoice AS is_pack_invoice_49,
t0.sync_billing_report AS sync_billing_report_50,
t0.external_id AS external_id_51,
t0.organization_id AS organization_id_52,
t0.user_id AS user_id_53,
t0.new_organization_address_id AS new_organization_address_id_54,
t55.id AS id_56,
t55.created_at AS created_at_57,
t55.updated_at AS updated_at_58,
t55.status AS status_59,
t55.vatrate AS vatrate_60,
t55.price_without_tax AS price_without_tax_61,
t55.object AS object_62,
t55.path AS path_63,
t55.price AS price_64,
t55.new_organization_legal_name AS new_organization_legal_name_65,
t55.new_organization_vatid AS new_organization_vatid_66,
t55.is_new_organization AS is_new_organization_67,
t55.is_prescriber AS is_prescriber_68,
t55.new_organization_user_email AS new_organization_user_email_69,
t55.is_sent AS is_sent_70,
t55.sent_date AS sent_date_71,
t55.sent_to AS sent_to_72,
t55.number AS number_73,
t55.is_canceled AS is_canceled_74,
t55.discount_without_tax AS discount_without_tax_75,
t55.discount_without_tax_percent AS discount_without_tax_percent_76,
t55.invoice_is_generated AS invoice_is_generated_77,
t55.payment_url AS payment_url_78,
t55.is_generate AS is_generate_79,
t55.marge AS marge_80,
t55.new_organization_phone_number AS new_organization_phone_number_81,
t55.is_new_organization_prescribed AS is_new_organization_prescribed_82,
t55.is_not_in_prescriber AS is_not_in_prescriber_83,
t55.new_prescriber_legal_name AS new_prescriber_legal_name_84,
t55.new_prescriber_vatid AS new_prescriber_vatid_85,
t55.new_prescriber_user_email AS new_prescriber_user_email_86,
t55.is_attached_to_prescriber AS is_attached_to_prescriber_87,
t55.is_paid_by_stripe AS is_paid_by_stripe_88,
t55.organization_id AS organization_id_89,
t55.new_organization_address_id AS new_organization_address_id_90,
t55.invoice_id AS invoice_id_91,
t55.prescriber_id AS prescriber_id_92,
t55.new_prescriber_address_id AS new_prescriber_address_id_93,
t55.discount_code_id AS discount_code_id_94,
t0.prescriber_id AS prescriber_id_95,
t0.new_prescriber_address_id AS new_prescriber_address_id_96,
t97.id AS id_98,
t97.created_at AS created_at_99,
t97.updated_at AS updated_at_100,
t97.is_done AS is_done_101,
t97.comment AS comment_102,
t97.npai AS npai_103,
t97.price_without_tax AS price_without_tax_104,
t97.tracking_number AS tracking_number_105,
t97.price AS price_106,
t97.days_keep AS days_keep_107,
t97.organization_id AS organization_id_108,
t97.invoice_id AS invoice_id_109,
t0.invoice_parent_id AS invoice_parent_id_110,
t111.id AS id_112,
t111.created_at AS created_at_113,
t111.updated_at AS updated_at_114,
t111.confirmation_number AS confirmation_number_115,
t111.status AS status_116,
t111.period_start AS period_start_117,
t111.period_end AS period_end_118,
t111.period_length AS period_length_119,
t111.vatrate AS vatrate_120,
t111.price_without_tax AS price_without_tax_121,
t111.object AS object_122,
t111.path AS path_123,
t111.price AS price_124,
t111.payment_recurrence AS payment_recurrence_125,
t111.new_organization_legal_name AS new_organization_legal_name_126,
t111.new_organization_vatid AS new_organization_vatid_127,
t111.is_new_organization AS is_new_organization_128,
t111.is_prescriber AS is_prescriber_129,
t111.total_paid AS total_paid_130,
t111.new_organization_user_email AS new_organization_user_email_131,
t111.is_sent AS is_sent_132,
t111.sent_date AS sent_date_133,
t111.sent_to AS sent_to_134,
t111.number AS number_135,
t111.total_refund AS total_refund_136,
t111.is_canceled AS is_canceled_137,
t111.discount_without_tax AS discount_without_tax_138,
t111.discount_without_tax_percent AS discount_without_tax_percent_139,
t111.is_imported AS is_imported_140,
t111.is_domiciliation AS is_domiciliation_141,
t111.payment_url AS payment_url_142,
t111.reference AS reference_143,
t111.remaining_to_pay AS remaining_to_pay_144,
t111.total_refunded_payment AS total_refunded_payment_145,
t111.marge AS marge_146,
t111.is_new_organization_prescribed AS is_new_organization_prescribed_147,
t111.is_not_in_prescriber AS is_not_in_prescriber_148,
t111.new_prescriber_legal_name AS new_prescriber_legal_name_149,
t111.new_prescriber_vatid AS new_prescriber_vatid_150,
t111.new_prescriber_user_email AS new_prescriber_user_email_151,
t111.is_attached_to_prescriber AS is_attached_to_prescriber_152,
t111.invoice_type AS invoice_type_153,
t111.reference_stripe AS reference_stripe_154,
t111.new_organization_phone_number AS new_organization_phone_number_155,
t111.payment_deadline AS payment_deadline_156,
t111.is_template AS is_template_157,
t111.unique_key AS unique_key_158,
t111.is_paid_by_stripe AS is_paid_by_stripe_159,
t111.is_pack_invoice AS is_pack_invoice_160,
t111.sync_billing_report AS sync_billing_report_161,
t111.external_id AS external_id_162,
t111.organization_id AS organization_id_163,
t111.user_id AS user_id_164,
t111.new_organization_address_id AS new_organization_address_id_165,
t111.prescriber_id AS prescriber_id_166,
t111.new_prescriber_address_id AS new_prescriber_address_id_167,
t111.invoice_parent_id AS invoice_parent_id_168,
t111.discount_code_id AS discount_code_id_169,
t0.discount_code_id AS discount_code_id_170
FROM
invoice t0
LEFT JOIN quote t55 ON t55.invoice_id = t0.id
LEFT JOIN letter_forward t97 ON t97.invoice_id = t0.id
LEFT JOIN invoice t111 ON t111.invoice_parent_id = t0.id
WHERE
t0.discount_code_id = ?
SELECT t0.id AS id_1, t0.created_at AS created_at_2, t0.updated_at AS updated_at_3, t0.confirmation_number AS confirmation_number_4, t0.status AS status_5, t0.period_start AS period_start_6, t0.period_end AS period_end_7, t0.period_length AS period_length_8, t0.vatrate AS vatrate_9, t0.price_without_tax AS price_without_tax_10, t0.object AS object_11, t0.path AS path_12, t0.price AS price_13, t0.payment_recurrence AS payment_recurrence_14, t0.new_organization_legal_name AS new_organization_legal_name_15, t0.new_organization_vatid AS new_organization_vatid_16, t0.is_new_organization AS is_new_organization_17, t0.is_prescriber AS is_prescriber_18, t0.total_paid AS total_paid_19, t0.new_organization_user_email AS new_organization_user_email_20, t0.is_sent AS is_sent_21, t0.sent_date AS sent_date_22, t0.sent_to AS sent_to_23, t0.number AS number_24, t0.total_refund AS total_refund_25, t0.is_canceled AS is_canceled_26, t0.discount_without_tax AS discount_without_tax_27, t0.discount_without_tax_percent AS discount_without_tax_percent_28, t0.is_imported AS is_imported_29, t0.is_domiciliation AS is_domiciliation_30, t0.payment_url AS payment_url_31, t0.reference AS reference_32, t0.remaining_to_pay AS remaining_to_pay_33, t0.total_refunded_payment AS total_refunded_payment_34, t0.marge AS marge_35, t0.is_new_organization_prescribed AS is_new_organization_prescribed_36, t0.is_not_in_prescriber AS is_not_in_prescriber_37, t0.new_prescriber_legal_name AS new_prescriber_legal_name_38, t0.new_prescriber_vatid AS new_prescriber_vatid_39, t0.new_prescriber_user_email AS new_prescriber_user_email_40, t0.is_attached_to_prescriber AS is_attached_to_prescriber_41, t0.invoice_type AS invoice_type_42, t0.reference_stripe AS reference_stripe_43, t0.new_organization_phone_number AS new_organization_phone_number_44, t0.payment_deadline AS payment_deadline_45, t0.is_template AS is_template_46, t0.unique_key AS unique_key_47, t0.is_paid_by_stripe AS is_paid_by_stripe_48, t0.is_pack_invoice AS is_pack_invoice_49, t0.sync_billing_report AS sync_billing_report_50, t0.external_id AS external_id_51, t0.organization_id AS organization_id_52, t0.user_id AS user_id_53, t0.new_organization_address_id AS new_organization_address_id_54, t55.id AS id_56, t55.created_at AS created_at_57, t55.updated_at AS updated_at_58, t55.status AS status_59, t55.vatrate AS vatrate_60, t55.price_without_tax AS price_without_tax_61, t55.object AS object_62, t55.path AS path_63, t55.price AS price_64, t55.new_organization_legal_name AS new_organization_legal_name_65, t55.new_organization_vatid AS new_organization_vatid_66, t55.is_new_organization AS is_new_organization_67, t55.is_prescriber AS is_prescriber_68, t55.new_organization_user_email AS new_organization_user_email_69, t55.is_sent AS is_sent_70, t55.sent_date AS sent_date_71, t55.sent_to AS sent_to_72, t55.number AS number_73, t55.is_canceled AS is_canceled_74, t55.discount_without_tax AS discount_without_tax_75, t55.discount_without_tax_percent AS discount_without_tax_percent_76, t55.invoice_is_generated AS invoice_is_generated_77, t55.payment_url AS payment_url_78, t55.is_generate AS is_generate_79, t55.marge AS marge_80, t55.new_organization_phone_number AS new_organization_phone_number_81, t55.is_new_organization_prescribed AS is_new_organization_prescribed_82, t55.is_not_in_prescriber AS is_not_in_prescriber_83, t55.new_prescriber_legal_name AS new_prescriber_legal_name_84, t55.new_prescriber_vatid AS new_prescriber_vatid_85, t55.new_prescriber_user_email AS new_prescriber_user_email_86, t55.is_attached_to_prescriber AS is_attached_to_prescriber_87, t55.is_paid_by_stripe AS is_paid_by_stripe_88, t55.organization_id AS organization_id_89, t55.new_organization_address_id AS new_organization_address_id_90, t55.invoice_id AS invoice_id_91, t55.prescriber_id AS prescriber_id_92, t55.new_prescriber_address_id AS new_prescriber_address_id_93, t55.discount_code_id AS discount_code_id_94, t0.prescriber_id AS prescriber_id_95, t0.new_prescriber_address_id AS new_prescriber_address_id_96, t97.id AS id_98, t97.created_at AS created_at_99, t97.updated_at AS updated_at_100, t97.is_done AS is_done_101, t97.comment AS comment_102, t97.npai AS npai_103, t97.price_without_tax AS price_without_tax_104, t97.tracking_number AS tracking_number_105, t97.price AS price_106, t97.days_keep AS days_keep_107, t97.organization_id AS organization_id_108, t97.invoice_id AS invoice_id_109, t0.invoice_parent_id AS invoice_parent_id_110, t111.id AS id_112, t111.created_at AS created_at_113, t111.updated_at AS updated_at_114, t111.confirmation_number AS confirmation_number_115, t111.status AS status_116, t111.period_start AS period_start_117, t111.period_end AS period_end_118, t111.period_length AS period_length_119, t111.vatrate AS vatrate_120, t111.price_without_tax AS price_without_tax_121, t111.object AS object_122, t111.path AS path_123, t111.price AS price_124, t111.payment_recurrence AS payment_recurrence_125, t111.new_organization_legal_name AS new_organization_legal_name_126, t111.new_organization_vatid AS new_organization_vatid_127, t111.is_new_organization AS is_new_organization_128, t111.is_prescriber AS is_prescriber_129, t111.total_paid AS total_paid_130, t111.new_organization_user_email AS new_organization_user_email_131, t111.is_sent AS is_sent_132, t111.sent_date AS sent_date_133, t111.sent_to AS sent_to_134, t111.number AS number_135, t111.total_refund AS total_refund_136, t111.is_canceled AS is_canceled_137, t111.discount_without_tax AS discount_without_tax_138, t111.discount_without_tax_percent AS discount_without_tax_percent_139, t111.is_imported AS is_imported_140, t111.is_domiciliation AS is_domiciliation_141, t111.payment_url AS payment_url_142, t111.reference AS reference_143, t111.remaining_to_pay AS remaining_to_pay_144, t111.total_refunded_payment AS total_refunded_payment_145, t111.marge AS marge_146, t111.is_new_organization_prescribed AS is_new_organization_prescribed_147, t111.is_not_in_prescriber AS is_not_in_prescriber_148, t111.new_prescriber_legal_name AS new_prescriber_legal_name_149, t111.new_prescriber_vatid AS new_prescriber_vatid_150, t111.new_prescriber_user_email AS new_prescriber_user_email_151, t111.is_attached_to_prescriber AS is_attached_to_prescriber_152, t111.invoice_type AS invoice_type_153, t111.reference_stripe AS reference_stripe_154, t111.new_organization_phone_number AS new_organization_phone_number_155, t111.payment_deadline AS payment_deadline_156, t111.is_template AS is_template_157, t111.unique_key AS unique_key_158, t111.is_paid_by_stripe AS is_paid_by_stripe_159, t111.is_pack_invoice AS is_pack_invoice_160, t111.sync_billing_report AS sync_billing_report_161, t111.external_id AS external_id_162, t111.organization_id AS organization_id_163, t111.user_id AS user_id_164, t111.new_organization_address_id AS new_organization_address_id_165, t111.prescriber_id AS prescriber_id_166, t111.new_prescriber_address_id AS new_prescriber_address_id_167, t111.invoice_parent_id AS invoice_parent_id_168, t111.discount_code_id AS discount_code_id_169, t0.discount_code_id AS discount_code_id_170 FROM invoice t0 LEFT JOIN quote t55 ON t55.invoice_id = t0.id LEFT JOIN letter_forward t97 ON t97.invoice_id = t0.id LEFT JOIN invoice t111 ON t111.invoice_parent_id = t0.id WHERE t0.discount_code_id = 2;
|
14 |
1.15 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.alternate_name AS alternate_name_3, t0.price_without_tax AS price_without_tax_4, t0.description AS description_5, t0.active AS active_6, t0.meta_description AS meta_description_7, t0.meta_title AS meta_title_8, t0.url AS url_9, t0.created_at AS created_at_10, t0.subscription_type AS subscription_type_11, t0.unique_key AS unique_key_12, t0.is_displayed AS is_displayed_13, t0.is_archived AS is_archived_14, t0.is_subscription_component AS is_subscription_component_15, t0.category_id AS category_id_16, t0.category_for_billing_report_id AS category_for_billing_report_id_17 FROM product t0 INNER JOIN discount_code_product ON t0.id = discount_code_product.product_id WHERE discount_code_product.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.alternate_name AS alternate_name_3, t0.price_without_tax AS price_without_tax_4, t0.description AS description_5, t0.active AS active_6, t0.meta_description AS meta_description_7, t0.meta_title AS meta_title_8, t0.url AS url_9, t0.created_at AS created_at_10, t0.subscription_type AS subscription_type_11, t0.unique_key AS unique_key_12, t0.is_displayed AS is_displayed_13, t0.is_archived AS is_archived_14, t0.is_subscription_component AS is_subscription_component_15, t0.category_id AS category_id_16, t0.category_for_billing_report_id AS category_for_billing_report_id_17 FROM product t0 INNER JOIN discount_code_product ON t0.id = discount_code_product.product_id WHERE discount_code_product.discount_code_id = 2;
|
15 |
1.25 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.price AS price_3, t0.focus AS focus_4, t0.price_without_tax AS price_without_tax_5, t0.vat_rate AS vat_rate_6, t0.discount AS discount_7, t0.unique_key AS unique_key_8, t0.automation AS automation_9, t0.is_published AS is_published_10, t0.is_subscription AS is_subscription_11, t0.published_name AS published_name_12, t0.is_published_pack AS is_published_pack_13, t0.type AS type_14, t0.legal_status AS legal_status_15, t0.created_at AS created_at_16, t0.association_pack_id AS association_pack_id_17, t0.category_id AS category_id_18, t0.recurring_invoice_id AS recurring_invoice_id_19, t0.initial_invoice_id AS initial_invoice_id_20, t0.subscription_id AS subscription_id_21 FROM pack t0 INNER JOIN discount_code_pack ON t0.id = discount_code_pack.pack_id WHERE discount_code_pack.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.price AS price_3, t0.focus AS focus_4, t0.price_without_tax AS price_without_tax_5, t0.vat_rate AS vat_rate_6, t0.discount AS discount_7, t0.unique_key AS unique_key_8, t0.automation AS automation_9, t0.is_published AS is_published_10, t0.is_subscription AS is_subscription_11, t0.published_name AS published_name_12, t0.is_published_pack AS is_published_pack_13, t0.type AS type_14, t0.legal_status AS legal_status_15, t0.created_at AS created_at_16, t0.association_pack_id AS association_pack_id_17, t0.category_id AS category_id_18, t0.recurring_invoice_id AS recurring_invoice_id_19, t0.initial_invoice_id AS initial_invoice_id_20, t0.subscription_id AS subscription_id_21 FROM pack t0 INNER JOIN discount_code_pack ON t0.id = discount_code_pack.pack_id WHERE discount_code_pack.discount_code_id = 3;
|
16 |
1.48 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.unique_key AS unique_key_3, t0.security_deposit AS security_deposit_4, t0.is_active AS is_active_5, t0.authorized_frequency AS authorized_frequency_6, t0.created_at AS created_at_7, t0.update_at AS update_at_8, t0.price_without_tax AS price_without_tax_9, t0.product_id AS product_id_10 FROM subscription_model t0 INNER JOIN discount_code_subscription_model ON t0.id = discount_code_subscription_model.subscription_model_id WHERE discount_code_subscription_model.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.unique_key AS unique_key_3, t0.security_deposit AS security_deposit_4, t0.is_active AS is_active_5, t0.authorized_frequency AS authorized_frequency_6, t0.created_at AS created_at_7, t0.update_at AS update_at_8, t0.price_without_tax AS price_without_tax_9, t0.product_id AS product_id_10 FROM subscription_model t0 INNER JOIN discount_code_subscription_model ON t0.id = discount_code_subscription_model.subscription_model_id WHERE discount_code_subscription_model.discount_code_id = 3;
|
17 |
1.16 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.opening_hours AS opening_hours_3, t0.currencies_accepted AS currencies_accepted_4, t0.payment_accepted_type AS payment_accepted_type_5, t0.price_range AS price_range_6, t0.aggregate_rating AS aggregate_rating_7, t0.created_at AS created_at_8, t0.prefectoral_approval_number AS prefectoral_approval_number_9, t0.status AS status_10, t0.cedex AS cedex_11, t0.is_exportable_ibml AS is_exportable_ibml_12, t0.postal_address_id AS postal_address_id_13, t0.sector_id AS sector_id_14 FROM store t0 INNER JOIN discount_code_store ON t0.id = discount_code_store.store_id WHERE discount_code_store.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.opening_hours AS opening_hours_3, t0.currencies_accepted AS currencies_accepted_4, t0.payment_accepted_type AS payment_accepted_type_5, t0.price_range AS price_range_6, t0.aggregate_rating AS aggregate_rating_7, t0.created_at AS created_at_8, t0.prefectoral_approval_number AS prefectoral_approval_number_9, t0.status AS status_10, t0.cedex AS cedex_11, t0.is_exportable_ibml AS is_exportable_ibml_12, t0.postal_address_id AS postal_address_id_13, t0.sector_id AS sector_id_14 FROM store t0 INNER JOIN discount_code_store ON t0.id = discount_code_store.store_id WHERE discount_code_store.discount_code_id = 3;
|
18 |
2.73 ms |
SELECT t0.id AS id_1, t0.created_at AS created_at_2, t0.updated_at AS updated_at_3, t0.confirmation_number AS confirmation_number_4, t0.status AS status_5, t0.period_start AS period_start_6, t0.period_end AS period_end_7, t0.period_length AS period_length_8, t0.vatrate AS vatrate_9, t0.price_without_tax AS price_without_tax_10, t0.object AS object_11, t0.path AS path_12, t0.price AS price_13, t0.payment_recurrence AS payment_recurrence_14, t0.new_organization_legal_name AS new_organization_legal_name_15, t0.new_organization_vatid AS new_organization_vatid_16, t0.is_new_organization AS is_new_organization_17, t0.is_prescriber AS is_prescriber_18, t0.total_paid AS total_paid_19, t0.new_organization_user_email AS new_organization_user_email_20, t0.is_sent AS is_sent_21, t0.sent_date AS sent_date_22, t0.sent_to AS sent_to_23, t0.number AS number_24, t0.total_refund AS total_refund_25, t0.is_canceled AS is_canceled_26, t0.discount_without_tax AS discount_without_tax_27, t0.discount_without_tax_percent AS discount_without_tax_percent_28, t0.is_imported AS is_imported_29, t0.is_domiciliation AS is_domiciliation_30, t0.payment_url AS payment_url_31, t0.reference AS reference_32, t0.remaining_to_pay AS remaining_to_pay_33, t0.total_refunded_payment AS total_refunded_payment_34, t0.marge AS marge_35, t0.is_new_organization_prescribed AS is_new_organization_prescribed_36, t0.is_not_in_prescriber AS is_not_in_prescriber_37, t0.new_prescriber_legal_name AS new_prescriber_legal_name_38, t0.new_prescriber_vatid AS new_prescriber_vatid_39, t0.new_prescriber_user_email AS new_prescriber_user_email_40, t0.is_attached_to_prescriber AS is_attached_to_prescriber_41, t0.invoice_type AS invoice_type_42, t0.reference_stripe AS reference_stripe_43, t0.new_organization_phone_number AS new_organization_phone_number_44, t0.payment_deadline AS payment_deadline_45, t0.is_template AS is_template_46, t0.unique_key AS unique_key_47, t0.is_paid_by_stripe AS is_paid_by_stripe_48, t0.is_pack_invoice AS is_pack_invoice_49, t0.sync_billing_report AS sync_billing_report_50, t0.external_id AS external_id_51, t0.organization_id AS organization_id_52, t0.user_id AS user_id_53, t0.new_organization_address_id AS new_organization_address_id_54, t55.id AS id_56, t55.created_at AS created_at_57, t55.updated_at AS updated_at_58, t55.status AS status_59, t55.vatrate AS vatrate_60, t55.price_without_tax AS price_without_tax_61, t55.object AS object_62, t55.path AS path_63, t55.price AS price_64, t55.new_organization_legal_name AS new_organization_legal_name_65, t55.new_organization_vatid AS new_organization_vatid_66, t55.is_new_organization AS is_new_organization_67, t55.is_prescriber AS is_prescriber_68, t55.new_organization_user_email AS new_organization_user_email_69, t55.is_sent AS is_sent_70, t55.sent_date AS sent_date_71, t55.sent_to AS sent_to_72, t55.number AS number_73, t55.is_canceled AS is_canceled_74, t55.discount_without_tax AS discount_without_tax_75, t55.discount_without_tax_percent AS discount_without_tax_percent_76, t55.invoice_is_generated AS invoice_is_generated_77, t55.payment_url AS payment_url_78, t55.is_generate AS is_generate_79, t55.marge AS marge_80, t55.new_organization_phone_number AS new_organization_phone_number_81, t55.is_new_organization_prescribed AS is_new_organization_prescribed_82, t55.is_not_in_prescriber AS is_not_in_prescriber_83, t55.new_prescriber_legal_name AS new_prescriber_legal_name_84, t55.new_prescriber_vatid AS new_prescriber_vatid_85, t55.new_prescriber_user_email AS new_prescriber_user_email_86, t55.is_attached_to_prescriber AS is_attached_to_prescriber_87, t55.is_paid_by_stripe AS is_paid_by_stripe_88, t55.organization_id AS organization_id_89, t55.new_organization_address_id AS new_organization_address_id_90, t55.invoice_id AS invoice_id_91, t55.prescriber_id AS prescriber_id_92, t55.new_prescriber_address_id AS new_prescriber_address_id_93, t55.discount_code_id AS discount_code_id_94, t0.prescriber_id AS prescriber_id_95, t0.new_prescriber_address_id AS new_prescriber_address_id_96, t97.id AS id_98, t97.created_at AS created_at_99, t97.updated_at AS updated_at_100, t97.is_done AS is_done_101, t97.comment AS comment_102, t97.npai AS npai_103, t97.price_without_tax AS price_without_tax_104, t97.tracking_number AS tracking_number_105, t97.price AS price_106, t97.days_keep AS days_keep_107, t97.organization_id AS organization_id_108, t97.invoice_id AS invoice_id_109, t0.invoice_parent_id AS invoice_parent_id_110, t111.id AS id_112, t111.created_at AS created_at_113, t111.updated_at AS updated_at_114, t111.confirmation_number AS confirmation_number_115, t111.status AS status_116, t111.period_start AS period_start_117, t111.period_end AS period_end_118, t111.period_length AS period_length_119, t111.vatrate AS vatrate_120, t111.price_without_tax AS price_without_tax_121, t111.object AS object_122, t111.path AS path_123, t111.price AS price_124, t111.payment_recurrence AS payment_recurrence_125, t111.new_organization_legal_name AS new_organization_legal_name_126, t111.new_organization_vatid AS new_organization_vatid_127, t111.is_new_organization AS is_new_organization_128, t111.is_prescriber AS is_prescriber_129, t111.total_paid AS total_paid_130, t111.new_organization_user_email AS new_organization_user_email_131, t111.is_sent AS is_sent_132, t111.sent_date AS sent_date_133, t111.sent_to AS sent_to_134, t111.number AS number_135, t111.total_refund AS total_refund_136, t111.is_canceled AS is_canceled_137, t111.discount_without_tax AS discount_without_tax_138, t111.discount_without_tax_percent AS discount_without_tax_percent_139, t111.is_imported AS is_imported_140, t111.is_domiciliation AS is_domiciliation_141, t111.payment_url AS payment_url_142, t111.reference AS reference_143, t111.remaining_to_pay AS remaining_to_pay_144, t111.total_refunded_payment AS total_refunded_payment_145, t111.marge AS marge_146, t111.is_new_organization_prescribed AS is_new_organization_prescribed_147, t111.is_not_in_prescriber AS is_not_in_prescriber_148, t111.new_prescriber_legal_name AS new_prescriber_legal_name_149, t111.new_prescriber_vatid AS new_prescriber_vatid_150, t111.new_prescriber_user_email AS new_prescriber_user_email_151, t111.is_attached_to_prescriber AS is_attached_to_prescriber_152, t111.invoice_type AS invoice_type_153, t111.reference_stripe AS reference_stripe_154, t111.new_organization_phone_number AS new_organization_phone_number_155, t111.payment_deadline AS payment_deadline_156, t111.is_template AS is_template_157, t111.unique_key AS unique_key_158, t111.is_paid_by_stripe AS is_paid_by_stripe_159, t111.is_pack_invoice AS is_pack_invoice_160, t111.sync_billing_report AS sync_billing_report_161, t111.external_id AS external_id_162, t111.organization_id AS organization_id_163, t111.user_id AS user_id_164, t111.new_organization_address_id AS new_organization_address_id_165, t111.prescriber_id AS prescriber_id_166, t111.new_prescriber_address_id AS new_prescriber_address_id_167, t111.invoice_parent_id AS invoice_parent_id_168, t111.discount_code_id AS discount_code_id_169, t0.discount_code_id AS discount_code_id_170 FROM invoice t0 LEFT JOIN quote t55 ON t55.invoice_id = t0.id LEFT JOIN letter_forward t97 ON t97.invoice_id = t0.id LEFT JOIN invoice t111 ON t111.invoice_parent_id = t0.id WHERE t0.discount_code_id = ?
SELECT
t0.id AS id_1,
t0.created_at AS created_at_2,
t0.updated_at AS updated_at_3,
t0.confirmation_number AS confirmation_number_4,
t0.status AS status_5,
t0.period_start AS period_start_6,
t0.period_end AS period_end_7,
t0.period_length AS period_length_8,
t0.vatrate AS vatrate_9,
t0.price_without_tax AS price_without_tax_10,
t0.object AS object_11,
t0.path AS path_12,
t0.price AS price_13,
t0.payment_recurrence AS payment_recurrence_14,
t0.new_organization_legal_name AS new_organization_legal_name_15,
t0.new_organization_vatid AS new_organization_vatid_16,
t0.is_new_organization AS is_new_organization_17,
t0.is_prescriber AS is_prescriber_18,
t0.total_paid AS total_paid_19,
t0.new_organization_user_email AS new_organization_user_email_20,
t0.is_sent AS is_sent_21,
t0.sent_date AS sent_date_22,
t0.sent_to AS sent_to_23,
t0.number AS number_24,
t0.total_refund AS total_refund_25,
t0.is_canceled AS is_canceled_26,
t0.discount_without_tax AS discount_without_tax_27,
t0.discount_without_tax_percent AS discount_without_tax_percent_28,
t0.is_imported AS is_imported_29,
t0.is_domiciliation AS is_domiciliation_30,
t0.payment_url AS payment_url_31,
t0.reference AS reference_32,
t0.remaining_to_pay AS remaining_to_pay_33,
t0.total_refunded_payment AS total_refunded_payment_34,
t0.marge AS marge_35,
t0.is_new_organization_prescribed AS is_new_organization_prescribed_36,
t0.is_not_in_prescriber AS is_not_in_prescriber_37,
t0.new_prescriber_legal_name AS new_prescriber_legal_name_38,
t0.new_prescriber_vatid AS new_prescriber_vatid_39,
t0.new_prescriber_user_email AS new_prescriber_user_email_40,
t0.is_attached_to_prescriber AS is_attached_to_prescriber_41,
t0.invoice_type AS invoice_type_42,
t0.reference_stripe AS reference_stripe_43,
t0.new_organization_phone_number AS new_organization_phone_number_44,
t0.payment_deadline AS payment_deadline_45,
t0.is_template AS is_template_46,
t0.unique_key AS unique_key_47,
t0.is_paid_by_stripe AS is_paid_by_stripe_48,
t0.is_pack_invoice AS is_pack_invoice_49,
t0.sync_billing_report AS sync_billing_report_50,
t0.external_id AS external_id_51,
t0.organization_id AS organization_id_52,
t0.user_id AS user_id_53,
t0.new_organization_address_id AS new_organization_address_id_54,
t55.id AS id_56,
t55.created_at AS created_at_57,
t55.updated_at AS updated_at_58,
t55.status AS status_59,
t55.vatrate AS vatrate_60,
t55.price_without_tax AS price_without_tax_61,
t55.object AS object_62,
t55.path AS path_63,
t55.price AS price_64,
t55.new_organization_legal_name AS new_organization_legal_name_65,
t55.new_organization_vatid AS new_organization_vatid_66,
t55.is_new_organization AS is_new_organization_67,
t55.is_prescriber AS is_prescriber_68,
t55.new_organization_user_email AS new_organization_user_email_69,
t55.is_sent AS is_sent_70,
t55.sent_date AS sent_date_71,
t55.sent_to AS sent_to_72,
t55.number AS number_73,
t55.is_canceled AS is_canceled_74,
t55.discount_without_tax AS discount_without_tax_75,
t55.discount_without_tax_percent AS discount_without_tax_percent_76,
t55.invoice_is_generated AS invoice_is_generated_77,
t55.payment_url AS payment_url_78,
t55.is_generate AS is_generate_79,
t55.marge AS marge_80,
t55.new_organization_phone_number AS new_organization_phone_number_81,
t55.is_new_organization_prescribed AS is_new_organization_prescribed_82,
t55.is_not_in_prescriber AS is_not_in_prescriber_83,
t55.new_prescriber_legal_name AS new_prescriber_legal_name_84,
t55.new_prescriber_vatid AS new_prescriber_vatid_85,
t55.new_prescriber_user_email AS new_prescriber_user_email_86,
t55.is_attached_to_prescriber AS is_attached_to_prescriber_87,
t55.is_paid_by_stripe AS is_paid_by_stripe_88,
t55.organization_id AS organization_id_89,
t55.new_organization_address_id AS new_organization_address_id_90,
t55.invoice_id AS invoice_id_91,
t55.prescriber_id AS prescriber_id_92,
t55.new_prescriber_address_id AS new_prescriber_address_id_93,
t55.discount_code_id AS discount_code_id_94,
t0.prescriber_id AS prescriber_id_95,
t0.new_prescriber_address_id AS new_prescriber_address_id_96,
t97.id AS id_98,
t97.created_at AS created_at_99,
t97.updated_at AS updated_at_100,
t97.is_done AS is_done_101,
t97.comment AS comment_102,
t97.npai AS npai_103,
t97.price_without_tax AS price_without_tax_104,
t97.tracking_number AS tracking_number_105,
t97.price AS price_106,
t97.days_keep AS days_keep_107,
t97.organization_id AS organization_id_108,
t97.invoice_id AS invoice_id_109,
t0.invoice_parent_id AS invoice_parent_id_110,
t111.id AS id_112,
t111.created_at AS created_at_113,
t111.updated_at AS updated_at_114,
t111.confirmation_number AS confirmation_number_115,
t111.status AS status_116,
t111.period_start AS period_start_117,
t111.period_end AS period_end_118,
t111.period_length AS period_length_119,
t111.vatrate AS vatrate_120,
t111.price_without_tax AS price_without_tax_121,
t111.object AS object_122,
t111.path AS path_123,
t111.price AS price_124,
t111.payment_recurrence AS payment_recurrence_125,
t111.new_organization_legal_name AS new_organization_legal_name_126,
t111.new_organization_vatid AS new_organization_vatid_127,
t111.is_new_organization AS is_new_organization_128,
t111.is_prescriber AS is_prescriber_129,
t111.total_paid AS total_paid_130,
t111.new_organization_user_email AS new_organization_user_email_131,
t111.is_sent AS is_sent_132,
t111.sent_date AS sent_date_133,
t111.sent_to AS sent_to_134,
t111.number AS number_135,
t111.total_refund AS total_refund_136,
t111.is_canceled AS is_canceled_137,
t111.discount_without_tax AS discount_without_tax_138,
t111.discount_without_tax_percent AS discount_without_tax_percent_139,
t111.is_imported AS is_imported_140,
t111.is_domiciliation AS is_domiciliation_141,
t111.payment_url AS payment_url_142,
t111.reference AS reference_143,
t111.remaining_to_pay AS remaining_to_pay_144,
t111.total_refunded_payment AS total_refunded_payment_145,
t111.marge AS marge_146,
t111.is_new_organization_prescribed AS is_new_organization_prescribed_147,
t111.is_not_in_prescriber AS is_not_in_prescriber_148,
t111.new_prescriber_legal_name AS new_prescriber_legal_name_149,
t111.new_prescriber_vatid AS new_prescriber_vatid_150,
t111.new_prescriber_user_email AS new_prescriber_user_email_151,
t111.is_attached_to_prescriber AS is_attached_to_prescriber_152,
t111.invoice_type AS invoice_type_153,
t111.reference_stripe AS reference_stripe_154,
t111.new_organization_phone_number AS new_organization_phone_number_155,
t111.payment_deadline AS payment_deadline_156,
t111.is_template AS is_template_157,
t111.unique_key AS unique_key_158,
t111.is_paid_by_stripe AS is_paid_by_stripe_159,
t111.is_pack_invoice AS is_pack_invoice_160,
t111.sync_billing_report AS sync_billing_report_161,
t111.external_id AS external_id_162,
t111.organization_id AS organization_id_163,
t111.user_id AS user_id_164,
t111.new_organization_address_id AS new_organization_address_id_165,
t111.prescriber_id AS prescriber_id_166,
t111.new_prescriber_address_id AS new_prescriber_address_id_167,
t111.invoice_parent_id AS invoice_parent_id_168,
t111.discount_code_id AS discount_code_id_169,
t0.discount_code_id AS discount_code_id_170
FROM
invoice t0
LEFT JOIN quote t55 ON t55.invoice_id = t0.id
LEFT JOIN letter_forward t97 ON t97.invoice_id = t0.id
LEFT JOIN invoice t111 ON t111.invoice_parent_id = t0.id
WHERE
t0.discount_code_id = ?
SELECT t0.id AS id_1, t0.created_at AS created_at_2, t0.updated_at AS updated_at_3, t0.confirmation_number AS confirmation_number_4, t0.status AS status_5, t0.period_start AS period_start_6, t0.period_end AS period_end_7, t0.period_length AS period_length_8, t0.vatrate AS vatrate_9, t0.price_without_tax AS price_without_tax_10, t0.object AS object_11, t0.path AS path_12, t0.price AS price_13, t0.payment_recurrence AS payment_recurrence_14, t0.new_organization_legal_name AS new_organization_legal_name_15, t0.new_organization_vatid AS new_organization_vatid_16, t0.is_new_organization AS is_new_organization_17, t0.is_prescriber AS is_prescriber_18, t0.total_paid AS total_paid_19, t0.new_organization_user_email AS new_organization_user_email_20, t0.is_sent AS is_sent_21, t0.sent_date AS sent_date_22, t0.sent_to AS sent_to_23, t0.number AS number_24, t0.total_refund AS total_refund_25, t0.is_canceled AS is_canceled_26, t0.discount_without_tax AS discount_without_tax_27, t0.discount_without_tax_percent AS discount_without_tax_percent_28, t0.is_imported AS is_imported_29, t0.is_domiciliation AS is_domiciliation_30, t0.payment_url AS payment_url_31, t0.reference AS reference_32, t0.remaining_to_pay AS remaining_to_pay_33, t0.total_refunded_payment AS total_refunded_payment_34, t0.marge AS marge_35, t0.is_new_organization_prescribed AS is_new_organization_prescribed_36, t0.is_not_in_prescriber AS is_not_in_prescriber_37, t0.new_prescriber_legal_name AS new_prescriber_legal_name_38, t0.new_prescriber_vatid AS new_prescriber_vatid_39, t0.new_prescriber_user_email AS new_prescriber_user_email_40, t0.is_attached_to_prescriber AS is_attached_to_prescriber_41, t0.invoice_type AS invoice_type_42, t0.reference_stripe AS reference_stripe_43, t0.new_organization_phone_number AS new_organization_phone_number_44, t0.payment_deadline AS payment_deadline_45, t0.is_template AS is_template_46, t0.unique_key AS unique_key_47, t0.is_paid_by_stripe AS is_paid_by_stripe_48, t0.is_pack_invoice AS is_pack_invoice_49, t0.sync_billing_report AS sync_billing_report_50, t0.external_id AS external_id_51, t0.organization_id AS organization_id_52, t0.user_id AS user_id_53, t0.new_organization_address_id AS new_organization_address_id_54, t55.id AS id_56, t55.created_at AS created_at_57, t55.updated_at AS updated_at_58, t55.status AS status_59, t55.vatrate AS vatrate_60, t55.price_without_tax AS price_without_tax_61, t55.object AS object_62, t55.path AS path_63, t55.price AS price_64, t55.new_organization_legal_name AS new_organization_legal_name_65, t55.new_organization_vatid AS new_organization_vatid_66, t55.is_new_organization AS is_new_organization_67, t55.is_prescriber AS is_prescriber_68, t55.new_organization_user_email AS new_organization_user_email_69, t55.is_sent AS is_sent_70, t55.sent_date AS sent_date_71, t55.sent_to AS sent_to_72, t55.number AS number_73, t55.is_canceled AS is_canceled_74, t55.discount_without_tax AS discount_without_tax_75, t55.discount_without_tax_percent AS discount_without_tax_percent_76, t55.invoice_is_generated AS invoice_is_generated_77, t55.payment_url AS payment_url_78, t55.is_generate AS is_generate_79, t55.marge AS marge_80, t55.new_organization_phone_number AS new_organization_phone_number_81, t55.is_new_organization_prescribed AS is_new_organization_prescribed_82, t55.is_not_in_prescriber AS is_not_in_prescriber_83, t55.new_prescriber_legal_name AS new_prescriber_legal_name_84, t55.new_prescriber_vatid AS new_prescriber_vatid_85, t55.new_prescriber_user_email AS new_prescriber_user_email_86, t55.is_attached_to_prescriber AS is_attached_to_prescriber_87, t55.is_paid_by_stripe AS is_paid_by_stripe_88, t55.organization_id AS organization_id_89, t55.new_organization_address_id AS new_organization_address_id_90, t55.invoice_id AS invoice_id_91, t55.prescriber_id AS prescriber_id_92, t55.new_prescriber_address_id AS new_prescriber_address_id_93, t55.discount_code_id AS discount_code_id_94, t0.prescriber_id AS prescriber_id_95, t0.new_prescriber_address_id AS new_prescriber_address_id_96, t97.id AS id_98, t97.created_at AS created_at_99, t97.updated_at AS updated_at_100, t97.is_done AS is_done_101, t97.comment AS comment_102, t97.npai AS npai_103, t97.price_without_tax AS price_without_tax_104, t97.tracking_number AS tracking_number_105, t97.price AS price_106, t97.days_keep AS days_keep_107, t97.organization_id AS organization_id_108, t97.invoice_id AS invoice_id_109, t0.invoice_parent_id AS invoice_parent_id_110, t111.id AS id_112, t111.created_at AS created_at_113, t111.updated_at AS updated_at_114, t111.confirmation_number AS confirmation_number_115, t111.status AS status_116, t111.period_start AS period_start_117, t111.period_end AS period_end_118, t111.period_length AS period_length_119, t111.vatrate AS vatrate_120, t111.price_without_tax AS price_without_tax_121, t111.object AS object_122, t111.path AS path_123, t111.price AS price_124, t111.payment_recurrence AS payment_recurrence_125, t111.new_organization_legal_name AS new_organization_legal_name_126, t111.new_organization_vatid AS new_organization_vatid_127, t111.is_new_organization AS is_new_organization_128, t111.is_prescriber AS is_prescriber_129, t111.total_paid AS total_paid_130, t111.new_organization_user_email AS new_organization_user_email_131, t111.is_sent AS is_sent_132, t111.sent_date AS sent_date_133, t111.sent_to AS sent_to_134, t111.number AS number_135, t111.total_refund AS total_refund_136, t111.is_canceled AS is_canceled_137, t111.discount_without_tax AS discount_without_tax_138, t111.discount_without_tax_percent AS discount_without_tax_percent_139, t111.is_imported AS is_imported_140, t111.is_domiciliation AS is_domiciliation_141, t111.payment_url AS payment_url_142, t111.reference AS reference_143, t111.remaining_to_pay AS remaining_to_pay_144, t111.total_refunded_payment AS total_refunded_payment_145, t111.marge AS marge_146, t111.is_new_organization_prescribed AS is_new_organization_prescribed_147, t111.is_not_in_prescriber AS is_not_in_prescriber_148, t111.new_prescriber_legal_name AS new_prescriber_legal_name_149, t111.new_prescriber_vatid AS new_prescriber_vatid_150, t111.new_prescriber_user_email AS new_prescriber_user_email_151, t111.is_attached_to_prescriber AS is_attached_to_prescriber_152, t111.invoice_type AS invoice_type_153, t111.reference_stripe AS reference_stripe_154, t111.new_organization_phone_number AS new_organization_phone_number_155, t111.payment_deadline AS payment_deadline_156, t111.is_template AS is_template_157, t111.unique_key AS unique_key_158, t111.is_paid_by_stripe AS is_paid_by_stripe_159, t111.is_pack_invoice AS is_pack_invoice_160, t111.sync_billing_report AS sync_billing_report_161, t111.external_id AS external_id_162, t111.organization_id AS organization_id_163, t111.user_id AS user_id_164, t111.new_organization_address_id AS new_organization_address_id_165, t111.prescriber_id AS prescriber_id_166, t111.new_prescriber_address_id AS new_prescriber_address_id_167, t111.invoice_parent_id AS invoice_parent_id_168, t111.discount_code_id AS discount_code_id_169, t0.discount_code_id AS discount_code_id_170 FROM invoice t0 LEFT JOIN quote t55 ON t55.invoice_id = t0.id LEFT JOIN letter_forward t97 ON t97.invoice_id = t0.id LEFT JOIN invoice t111 ON t111.invoice_parent_id = t0.id WHERE t0.discount_code_id = 3;
|
19 |
1.62 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.alternate_name AS alternate_name_3, t0.price_without_tax AS price_without_tax_4, t0.description AS description_5, t0.active AS active_6, t0.meta_description AS meta_description_7, t0.meta_title AS meta_title_8, t0.url AS url_9, t0.created_at AS created_at_10, t0.subscription_type AS subscription_type_11, t0.unique_key AS unique_key_12, t0.is_displayed AS is_displayed_13, t0.is_archived AS is_archived_14, t0.is_subscription_component AS is_subscription_component_15, t0.category_id AS category_id_16, t0.category_for_billing_report_id AS category_for_billing_report_id_17 FROM product t0 INNER JOIN discount_code_product ON t0.id = discount_code_product.product_id WHERE discount_code_product.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.alternate_name AS alternate_name_3, t0.price_without_tax AS price_without_tax_4, t0.description AS description_5, t0.active AS active_6, t0.meta_description AS meta_description_7, t0.meta_title AS meta_title_8, t0.url AS url_9, t0.created_at AS created_at_10, t0.subscription_type AS subscription_type_11, t0.unique_key AS unique_key_12, t0.is_displayed AS is_displayed_13, t0.is_archived AS is_archived_14, t0.is_subscription_component AS is_subscription_component_15, t0.category_id AS category_id_16, t0.category_for_billing_report_id AS category_for_billing_report_id_17 FROM product t0 INNER JOIN discount_code_product ON t0.id = discount_code_product.product_id WHERE discount_code_product.discount_code_id = 3;
|
20 |
1.41 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.price AS price_3, t0.focus AS focus_4, t0.price_without_tax AS price_without_tax_5, t0.vat_rate AS vat_rate_6, t0.discount AS discount_7, t0.unique_key AS unique_key_8, t0.automation AS automation_9, t0.is_published AS is_published_10, t0.is_subscription AS is_subscription_11, t0.published_name AS published_name_12, t0.is_published_pack AS is_published_pack_13, t0.type AS type_14, t0.legal_status AS legal_status_15, t0.created_at AS created_at_16, t0.association_pack_id AS association_pack_id_17, t0.category_id AS category_id_18, t0.recurring_invoice_id AS recurring_invoice_id_19, t0.initial_invoice_id AS initial_invoice_id_20, t0.subscription_id AS subscription_id_21 FROM pack t0 INNER JOIN discount_code_pack ON t0.id = discount_code_pack.pack_id WHERE discount_code_pack.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.price AS price_3, t0.focus AS focus_4, t0.price_without_tax AS price_without_tax_5, t0.vat_rate AS vat_rate_6, t0.discount AS discount_7, t0.unique_key AS unique_key_8, t0.automation AS automation_9, t0.is_published AS is_published_10, t0.is_subscription AS is_subscription_11, t0.published_name AS published_name_12, t0.is_published_pack AS is_published_pack_13, t0.type AS type_14, t0.legal_status AS legal_status_15, t0.created_at AS created_at_16, t0.association_pack_id AS association_pack_id_17, t0.category_id AS category_id_18, t0.recurring_invoice_id AS recurring_invoice_id_19, t0.initial_invoice_id AS initial_invoice_id_20, t0.subscription_id AS subscription_id_21 FROM pack t0 INNER JOIN discount_code_pack ON t0.id = discount_code_pack.pack_id WHERE discount_code_pack.discount_code_id = 4;
|
21 |
1.09 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.unique_key AS unique_key_3, t0.security_deposit AS security_deposit_4, t0.is_active AS is_active_5, t0.authorized_frequency AS authorized_frequency_6, t0.created_at AS created_at_7, t0.update_at AS update_at_8, t0.price_without_tax AS price_without_tax_9, t0.product_id AS product_id_10 FROM subscription_model t0 INNER JOIN discount_code_subscription_model ON t0.id = discount_code_subscription_model.subscription_model_id WHERE discount_code_subscription_model.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.unique_key AS unique_key_3, t0.security_deposit AS security_deposit_4, t0.is_active AS is_active_5, t0.authorized_frequency AS authorized_frequency_6, t0.created_at AS created_at_7, t0.update_at AS update_at_8, t0.price_without_tax AS price_without_tax_9, t0.product_id AS product_id_10 FROM subscription_model t0 INNER JOIN discount_code_subscription_model ON t0.id = discount_code_subscription_model.subscription_model_id WHERE discount_code_subscription_model.discount_code_id = 4;
|
22 |
1.04 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.opening_hours AS opening_hours_3, t0.currencies_accepted AS currencies_accepted_4, t0.payment_accepted_type AS payment_accepted_type_5, t0.price_range AS price_range_6, t0.aggregate_rating AS aggregate_rating_7, t0.created_at AS created_at_8, t0.prefectoral_approval_number AS prefectoral_approval_number_9, t0.status AS status_10, t0.cedex AS cedex_11, t0.is_exportable_ibml AS is_exportable_ibml_12, t0.postal_address_id AS postal_address_id_13, t0.sector_id AS sector_id_14 FROM store t0 INNER JOIN discount_code_store ON t0.id = discount_code_store.store_id WHERE discount_code_store.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.opening_hours AS opening_hours_3, t0.currencies_accepted AS currencies_accepted_4, t0.payment_accepted_type AS payment_accepted_type_5, t0.price_range AS price_range_6, t0.aggregate_rating AS aggregate_rating_7, t0.created_at AS created_at_8, t0.prefectoral_approval_number AS prefectoral_approval_number_9, t0.status AS status_10, t0.cedex AS cedex_11, t0.is_exportable_ibml AS is_exportable_ibml_12, t0.postal_address_id AS postal_address_id_13, t0.sector_id AS sector_id_14 FROM store t0 INNER JOIN discount_code_store ON t0.id = discount_code_store.store_id WHERE discount_code_store.discount_code_id = 4;
|
23 |
1.82 ms |
SELECT t0.id AS id_1, t0.created_at AS created_at_2, t0.updated_at AS updated_at_3, t0.confirmation_number AS confirmation_number_4, t0.status AS status_5, t0.period_start AS period_start_6, t0.period_end AS period_end_7, t0.period_length AS period_length_8, t0.vatrate AS vatrate_9, t0.price_without_tax AS price_without_tax_10, t0.object AS object_11, t0.path AS path_12, t0.price AS price_13, t0.payment_recurrence AS payment_recurrence_14, t0.new_organization_legal_name AS new_organization_legal_name_15, t0.new_organization_vatid AS new_organization_vatid_16, t0.is_new_organization AS is_new_organization_17, t0.is_prescriber AS is_prescriber_18, t0.total_paid AS total_paid_19, t0.new_organization_user_email AS new_organization_user_email_20, t0.is_sent AS is_sent_21, t0.sent_date AS sent_date_22, t0.sent_to AS sent_to_23, t0.number AS number_24, t0.total_refund AS total_refund_25, t0.is_canceled AS is_canceled_26, t0.discount_without_tax AS discount_without_tax_27, t0.discount_without_tax_percent AS discount_without_tax_percent_28, t0.is_imported AS is_imported_29, t0.is_domiciliation AS is_domiciliation_30, t0.payment_url AS payment_url_31, t0.reference AS reference_32, t0.remaining_to_pay AS remaining_to_pay_33, t0.total_refunded_payment AS total_refunded_payment_34, t0.marge AS marge_35, t0.is_new_organization_prescribed AS is_new_organization_prescribed_36, t0.is_not_in_prescriber AS is_not_in_prescriber_37, t0.new_prescriber_legal_name AS new_prescriber_legal_name_38, t0.new_prescriber_vatid AS new_prescriber_vatid_39, t0.new_prescriber_user_email AS new_prescriber_user_email_40, t0.is_attached_to_prescriber AS is_attached_to_prescriber_41, t0.invoice_type AS invoice_type_42, t0.reference_stripe AS reference_stripe_43, t0.new_organization_phone_number AS new_organization_phone_number_44, t0.payment_deadline AS payment_deadline_45, t0.is_template AS is_template_46, t0.unique_key AS unique_key_47, t0.is_paid_by_stripe AS is_paid_by_stripe_48, t0.is_pack_invoice AS is_pack_invoice_49, t0.sync_billing_report AS sync_billing_report_50, t0.external_id AS external_id_51, t0.organization_id AS organization_id_52, t0.user_id AS user_id_53, t0.new_organization_address_id AS new_organization_address_id_54, t55.id AS id_56, t55.created_at AS created_at_57, t55.updated_at AS updated_at_58, t55.status AS status_59, t55.vatrate AS vatrate_60, t55.price_without_tax AS price_without_tax_61, t55.object AS object_62, t55.path AS path_63, t55.price AS price_64, t55.new_organization_legal_name AS new_organization_legal_name_65, t55.new_organization_vatid AS new_organization_vatid_66, t55.is_new_organization AS is_new_organization_67, t55.is_prescriber AS is_prescriber_68, t55.new_organization_user_email AS new_organization_user_email_69, t55.is_sent AS is_sent_70, t55.sent_date AS sent_date_71, t55.sent_to AS sent_to_72, t55.number AS number_73, t55.is_canceled AS is_canceled_74, t55.discount_without_tax AS discount_without_tax_75, t55.discount_without_tax_percent AS discount_without_tax_percent_76, t55.invoice_is_generated AS invoice_is_generated_77, t55.payment_url AS payment_url_78, t55.is_generate AS is_generate_79, t55.marge AS marge_80, t55.new_organization_phone_number AS new_organization_phone_number_81, t55.is_new_organization_prescribed AS is_new_organization_prescribed_82, t55.is_not_in_prescriber AS is_not_in_prescriber_83, t55.new_prescriber_legal_name AS new_prescriber_legal_name_84, t55.new_prescriber_vatid AS new_prescriber_vatid_85, t55.new_prescriber_user_email AS new_prescriber_user_email_86, t55.is_attached_to_prescriber AS is_attached_to_prescriber_87, t55.is_paid_by_stripe AS is_paid_by_stripe_88, t55.organization_id AS organization_id_89, t55.new_organization_address_id AS new_organization_address_id_90, t55.invoice_id AS invoice_id_91, t55.prescriber_id AS prescriber_id_92, t55.new_prescriber_address_id AS new_prescriber_address_id_93, t55.discount_code_id AS discount_code_id_94, t0.prescriber_id AS prescriber_id_95, t0.new_prescriber_address_id AS new_prescriber_address_id_96, t97.id AS id_98, t97.created_at AS created_at_99, t97.updated_at AS updated_at_100, t97.is_done AS is_done_101, t97.comment AS comment_102, t97.npai AS npai_103, t97.price_without_tax AS price_without_tax_104, t97.tracking_number AS tracking_number_105, t97.price AS price_106, t97.days_keep AS days_keep_107, t97.organization_id AS organization_id_108, t97.invoice_id AS invoice_id_109, t0.invoice_parent_id AS invoice_parent_id_110, t111.id AS id_112, t111.created_at AS created_at_113, t111.updated_at AS updated_at_114, t111.confirmation_number AS confirmation_number_115, t111.status AS status_116, t111.period_start AS period_start_117, t111.period_end AS period_end_118, t111.period_length AS period_length_119, t111.vatrate AS vatrate_120, t111.price_without_tax AS price_without_tax_121, t111.object AS object_122, t111.path AS path_123, t111.price AS price_124, t111.payment_recurrence AS payment_recurrence_125, t111.new_organization_legal_name AS new_organization_legal_name_126, t111.new_organization_vatid AS new_organization_vatid_127, t111.is_new_organization AS is_new_organization_128, t111.is_prescriber AS is_prescriber_129, t111.total_paid AS total_paid_130, t111.new_organization_user_email AS new_organization_user_email_131, t111.is_sent AS is_sent_132, t111.sent_date AS sent_date_133, t111.sent_to AS sent_to_134, t111.number AS number_135, t111.total_refund AS total_refund_136, t111.is_canceled AS is_canceled_137, t111.discount_without_tax AS discount_without_tax_138, t111.discount_without_tax_percent AS discount_without_tax_percent_139, t111.is_imported AS is_imported_140, t111.is_domiciliation AS is_domiciliation_141, t111.payment_url AS payment_url_142, t111.reference AS reference_143, t111.remaining_to_pay AS remaining_to_pay_144, t111.total_refunded_payment AS total_refunded_payment_145, t111.marge AS marge_146, t111.is_new_organization_prescribed AS is_new_organization_prescribed_147, t111.is_not_in_prescriber AS is_not_in_prescriber_148, t111.new_prescriber_legal_name AS new_prescriber_legal_name_149, t111.new_prescriber_vatid AS new_prescriber_vatid_150, t111.new_prescriber_user_email AS new_prescriber_user_email_151, t111.is_attached_to_prescriber AS is_attached_to_prescriber_152, t111.invoice_type AS invoice_type_153, t111.reference_stripe AS reference_stripe_154, t111.new_organization_phone_number AS new_organization_phone_number_155, t111.payment_deadline AS payment_deadline_156, t111.is_template AS is_template_157, t111.unique_key AS unique_key_158, t111.is_paid_by_stripe AS is_paid_by_stripe_159, t111.is_pack_invoice AS is_pack_invoice_160, t111.sync_billing_report AS sync_billing_report_161, t111.external_id AS external_id_162, t111.organization_id AS organization_id_163, t111.user_id AS user_id_164, t111.new_organization_address_id AS new_organization_address_id_165, t111.prescriber_id AS prescriber_id_166, t111.new_prescriber_address_id AS new_prescriber_address_id_167, t111.invoice_parent_id AS invoice_parent_id_168, t111.discount_code_id AS discount_code_id_169, t0.discount_code_id AS discount_code_id_170 FROM invoice t0 LEFT JOIN quote t55 ON t55.invoice_id = t0.id LEFT JOIN letter_forward t97 ON t97.invoice_id = t0.id LEFT JOIN invoice t111 ON t111.invoice_parent_id = t0.id WHERE t0.discount_code_id = ?
SELECT
t0.id AS id_1,
t0.created_at AS created_at_2,
t0.updated_at AS updated_at_3,
t0.confirmation_number AS confirmation_number_4,
t0.status AS status_5,
t0.period_start AS period_start_6,
t0.period_end AS period_end_7,
t0.period_length AS period_length_8,
t0.vatrate AS vatrate_9,
t0.price_without_tax AS price_without_tax_10,
t0.object AS object_11,
t0.path AS path_12,
t0.price AS price_13,
t0.payment_recurrence AS payment_recurrence_14,
t0.new_organization_legal_name AS new_organization_legal_name_15,
t0.new_organization_vatid AS new_organization_vatid_16,
t0.is_new_organization AS is_new_organization_17,
t0.is_prescriber AS is_prescriber_18,
t0.total_paid AS total_paid_19,
t0.new_organization_user_email AS new_organization_user_email_20,
t0.is_sent AS is_sent_21,
t0.sent_date AS sent_date_22,
t0.sent_to AS sent_to_23,
t0.number AS number_24,
t0.total_refund AS total_refund_25,
t0.is_canceled AS is_canceled_26,
t0.discount_without_tax AS discount_without_tax_27,
t0.discount_without_tax_percent AS discount_without_tax_percent_28,
t0.is_imported AS is_imported_29,
t0.is_domiciliation AS is_domiciliation_30,
t0.payment_url AS payment_url_31,
t0.reference AS reference_32,
t0.remaining_to_pay AS remaining_to_pay_33,
t0.total_refunded_payment AS total_refunded_payment_34,
t0.marge AS marge_35,
t0.is_new_organization_prescribed AS is_new_organization_prescribed_36,
t0.is_not_in_prescriber AS is_not_in_prescriber_37,
t0.new_prescriber_legal_name AS new_prescriber_legal_name_38,
t0.new_prescriber_vatid AS new_prescriber_vatid_39,
t0.new_prescriber_user_email AS new_prescriber_user_email_40,
t0.is_attached_to_prescriber AS is_attached_to_prescriber_41,
t0.invoice_type AS invoice_type_42,
t0.reference_stripe AS reference_stripe_43,
t0.new_organization_phone_number AS new_organization_phone_number_44,
t0.payment_deadline AS payment_deadline_45,
t0.is_template AS is_template_46,
t0.unique_key AS unique_key_47,
t0.is_paid_by_stripe AS is_paid_by_stripe_48,
t0.is_pack_invoice AS is_pack_invoice_49,
t0.sync_billing_report AS sync_billing_report_50,
t0.external_id AS external_id_51,
t0.organization_id AS organization_id_52,
t0.user_id AS user_id_53,
t0.new_organization_address_id AS new_organization_address_id_54,
t55.id AS id_56,
t55.created_at AS created_at_57,
t55.updated_at AS updated_at_58,
t55.status AS status_59,
t55.vatrate AS vatrate_60,
t55.price_without_tax AS price_without_tax_61,
t55.object AS object_62,
t55.path AS path_63,
t55.price AS price_64,
t55.new_organization_legal_name AS new_organization_legal_name_65,
t55.new_organization_vatid AS new_organization_vatid_66,
t55.is_new_organization AS is_new_organization_67,
t55.is_prescriber AS is_prescriber_68,
t55.new_organization_user_email AS new_organization_user_email_69,
t55.is_sent AS is_sent_70,
t55.sent_date AS sent_date_71,
t55.sent_to AS sent_to_72,
t55.number AS number_73,
t55.is_canceled AS is_canceled_74,
t55.discount_without_tax AS discount_without_tax_75,
t55.discount_without_tax_percent AS discount_without_tax_percent_76,
t55.invoice_is_generated AS invoice_is_generated_77,
t55.payment_url AS payment_url_78,
t55.is_generate AS is_generate_79,
t55.marge AS marge_80,
t55.new_organization_phone_number AS new_organization_phone_number_81,
t55.is_new_organization_prescribed AS is_new_organization_prescribed_82,
t55.is_not_in_prescriber AS is_not_in_prescriber_83,
t55.new_prescriber_legal_name AS new_prescriber_legal_name_84,
t55.new_prescriber_vatid AS new_prescriber_vatid_85,
t55.new_prescriber_user_email AS new_prescriber_user_email_86,
t55.is_attached_to_prescriber AS is_attached_to_prescriber_87,
t55.is_paid_by_stripe AS is_paid_by_stripe_88,
t55.organization_id AS organization_id_89,
t55.new_organization_address_id AS new_organization_address_id_90,
t55.invoice_id AS invoice_id_91,
t55.prescriber_id AS prescriber_id_92,
t55.new_prescriber_address_id AS new_prescriber_address_id_93,
t55.discount_code_id AS discount_code_id_94,
t0.prescriber_id AS prescriber_id_95,
t0.new_prescriber_address_id AS new_prescriber_address_id_96,
t97.id AS id_98,
t97.created_at AS created_at_99,
t97.updated_at AS updated_at_100,
t97.is_done AS is_done_101,
t97.comment AS comment_102,
t97.npai AS npai_103,
t97.price_without_tax AS price_without_tax_104,
t97.tracking_number AS tracking_number_105,
t97.price AS price_106,
t97.days_keep AS days_keep_107,
t97.organization_id AS organization_id_108,
t97.invoice_id AS invoice_id_109,
t0.invoice_parent_id AS invoice_parent_id_110,
t111.id AS id_112,
t111.created_at AS created_at_113,
t111.updated_at AS updated_at_114,
t111.confirmation_number AS confirmation_number_115,
t111.status AS status_116,
t111.period_start AS period_start_117,
t111.period_end AS period_end_118,
t111.period_length AS period_length_119,
t111.vatrate AS vatrate_120,
t111.price_without_tax AS price_without_tax_121,
t111.object AS object_122,
t111.path AS path_123,
t111.price AS price_124,
t111.payment_recurrence AS payment_recurrence_125,
t111.new_organization_legal_name AS new_organization_legal_name_126,
t111.new_organization_vatid AS new_organization_vatid_127,
t111.is_new_organization AS is_new_organization_128,
t111.is_prescriber AS is_prescriber_129,
t111.total_paid AS total_paid_130,
t111.new_organization_user_email AS new_organization_user_email_131,
t111.is_sent AS is_sent_132,
t111.sent_date AS sent_date_133,
t111.sent_to AS sent_to_134,
t111.number AS number_135,
t111.total_refund AS total_refund_136,
t111.is_canceled AS is_canceled_137,
t111.discount_without_tax AS discount_without_tax_138,
t111.discount_without_tax_percent AS discount_without_tax_percent_139,
t111.is_imported AS is_imported_140,
t111.is_domiciliation AS is_domiciliation_141,
t111.payment_url AS payment_url_142,
t111.reference AS reference_143,
t111.remaining_to_pay AS remaining_to_pay_144,
t111.total_refunded_payment AS total_refunded_payment_145,
t111.marge AS marge_146,
t111.is_new_organization_prescribed AS is_new_organization_prescribed_147,
t111.is_not_in_prescriber AS is_not_in_prescriber_148,
t111.new_prescriber_legal_name AS new_prescriber_legal_name_149,
t111.new_prescriber_vatid AS new_prescriber_vatid_150,
t111.new_prescriber_user_email AS new_prescriber_user_email_151,
t111.is_attached_to_prescriber AS is_attached_to_prescriber_152,
t111.invoice_type AS invoice_type_153,
t111.reference_stripe AS reference_stripe_154,
t111.new_organization_phone_number AS new_organization_phone_number_155,
t111.payment_deadline AS payment_deadline_156,
t111.is_template AS is_template_157,
t111.unique_key AS unique_key_158,
t111.is_paid_by_stripe AS is_paid_by_stripe_159,
t111.is_pack_invoice AS is_pack_invoice_160,
t111.sync_billing_report AS sync_billing_report_161,
t111.external_id AS external_id_162,
t111.organization_id AS organization_id_163,
t111.user_id AS user_id_164,
t111.new_organization_address_id AS new_organization_address_id_165,
t111.prescriber_id AS prescriber_id_166,
t111.new_prescriber_address_id AS new_prescriber_address_id_167,
t111.invoice_parent_id AS invoice_parent_id_168,
t111.discount_code_id AS discount_code_id_169,
t0.discount_code_id AS discount_code_id_170
FROM
invoice t0
LEFT JOIN quote t55 ON t55.invoice_id = t0.id
LEFT JOIN letter_forward t97 ON t97.invoice_id = t0.id
LEFT JOIN invoice t111 ON t111.invoice_parent_id = t0.id
WHERE
t0.discount_code_id = ?
SELECT t0.id AS id_1, t0.created_at AS created_at_2, t0.updated_at AS updated_at_3, t0.confirmation_number AS confirmation_number_4, t0.status AS status_5, t0.period_start AS period_start_6, t0.period_end AS period_end_7, t0.period_length AS period_length_8, t0.vatrate AS vatrate_9, t0.price_without_tax AS price_without_tax_10, t0.object AS object_11, t0.path AS path_12, t0.price AS price_13, t0.payment_recurrence AS payment_recurrence_14, t0.new_organization_legal_name AS new_organization_legal_name_15, t0.new_organization_vatid AS new_organization_vatid_16, t0.is_new_organization AS is_new_organization_17, t0.is_prescriber AS is_prescriber_18, t0.total_paid AS total_paid_19, t0.new_organization_user_email AS new_organization_user_email_20, t0.is_sent AS is_sent_21, t0.sent_date AS sent_date_22, t0.sent_to AS sent_to_23, t0.number AS number_24, t0.total_refund AS total_refund_25, t0.is_canceled AS is_canceled_26, t0.discount_without_tax AS discount_without_tax_27, t0.discount_without_tax_percent AS discount_without_tax_percent_28, t0.is_imported AS is_imported_29, t0.is_domiciliation AS is_domiciliation_30, t0.payment_url AS payment_url_31, t0.reference AS reference_32, t0.remaining_to_pay AS remaining_to_pay_33, t0.total_refunded_payment AS total_refunded_payment_34, t0.marge AS marge_35, t0.is_new_organization_prescribed AS is_new_organization_prescribed_36, t0.is_not_in_prescriber AS is_not_in_prescriber_37, t0.new_prescriber_legal_name AS new_prescriber_legal_name_38, t0.new_prescriber_vatid AS new_prescriber_vatid_39, t0.new_prescriber_user_email AS new_prescriber_user_email_40, t0.is_attached_to_prescriber AS is_attached_to_prescriber_41, t0.invoice_type AS invoice_type_42, t0.reference_stripe AS reference_stripe_43, t0.new_organization_phone_number AS new_organization_phone_number_44, t0.payment_deadline AS payment_deadline_45, t0.is_template AS is_template_46, t0.unique_key AS unique_key_47, t0.is_paid_by_stripe AS is_paid_by_stripe_48, t0.is_pack_invoice AS is_pack_invoice_49, t0.sync_billing_report AS sync_billing_report_50, t0.external_id AS external_id_51, t0.organization_id AS organization_id_52, t0.user_id AS user_id_53, t0.new_organization_address_id AS new_organization_address_id_54, t55.id AS id_56, t55.created_at AS created_at_57, t55.updated_at AS updated_at_58, t55.status AS status_59, t55.vatrate AS vatrate_60, t55.price_without_tax AS price_without_tax_61, t55.object AS object_62, t55.path AS path_63, t55.price AS price_64, t55.new_organization_legal_name AS new_organization_legal_name_65, t55.new_organization_vatid AS new_organization_vatid_66, t55.is_new_organization AS is_new_organization_67, t55.is_prescriber AS is_prescriber_68, t55.new_organization_user_email AS new_organization_user_email_69, t55.is_sent AS is_sent_70, t55.sent_date AS sent_date_71, t55.sent_to AS sent_to_72, t55.number AS number_73, t55.is_canceled AS is_canceled_74, t55.discount_without_tax AS discount_without_tax_75, t55.discount_without_tax_percent AS discount_without_tax_percent_76, t55.invoice_is_generated AS invoice_is_generated_77, t55.payment_url AS payment_url_78, t55.is_generate AS is_generate_79, t55.marge AS marge_80, t55.new_organization_phone_number AS new_organization_phone_number_81, t55.is_new_organization_prescribed AS is_new_organization_prescribed_82, t55.is_not_in_prescriber AS is_not_in_prescriber_83, t55.new_prescriber_legal_name AS new_prescriber_legal_name_84, t55.new_prescriber_vatid AS new_prescriber_vatid_85, t55.new_prescriber_user_email AS new_prescriber_user_email_86, t55.is_attached_to_prescriber AS is_attached_to_prescriber_87, t55.is_paid_by_stripe AS is_paid_by_stripe_88, t55.organization_id AS organization_id_89, t55.new_organization_address_id AS new_organization_address_id_90, t55.invoice_id AS invoice_id_91, t55.prescriber_id AS prescriber_id_92, t55.new_prescriber_address_id AS new_prescriber_address_id_93, t55.discount_code_id AS discount_code_id_94, t0.prescriber_id AS prescriber_id_95, t0.new_prescriber_address_id AS new_prescriber_address_id_96, t97.id AS id_98, t97.created_at AS created_at_99, t97.updated_at AS updated_at_100, t97.is_done AS is_done_101, t97.comment AS comment_102, t97.npai AS npai_103, t97.price_without_tax AS price_without_tax_104, t97.tracking_number AS tracking_number_105, t97.price AS price_106, t97.days_keep AS days_keep_107, t97.organization_id AS organization_id_108, t97.invoice_id AS invoice_id_109, t0.invoice_parent_id AS invoice_parent_id_110, t111.id AS id_112, t111.created_at AS created_at_113, t111.updated_at AS updated_at_114, t111.confirmation_number AS confirmation_number_115, t111.status AS status_116, t111.period_start AS period_start_117, t111.period_end AS period_end_118, t111.period_length AS period_length_119, t111.vatrate AS vatrate_120, t111.price_without_tax AS price_without_tax_121, t111.object AS object_122, t111.path AS path_123, t111.price AS price_124, t111.payment_recurrence AS payment_recurrence_125, t111.new_organization_legal_name AS new_organization_legal_name_126, t111.new_organization_vatid AS new_organization_vatid_127, t111.is_new_organization AS is_new_organization_128, t111.is_prescriber AS is_prescriber_129, t111.total_paid AS total_paid_130, t111.new_organization_user_email AS new_organization_user_email_131, t111.is_sent AS is_sent_132, t111.sent_date AS sent_date_133, t111.sent_to AS sent_to_134, t111.number AS number_135, t111.total_refund AS total_refund_136, t111.is_canceled AS is_canceled_137, t111.discount_without_tax AS discount_without_tax_138, t111.discount_without_tax_percent AS discount_without_tax_percent_139, t111.is_imported AS is_imported_140, t111.is_domiciliation AS is_domiciliation_141, t111.payment_url AS payment_url_142, t111.reference AS reference_143, t111.remaining_to_pay AS remaining_to_pay_144, t111.total_refunded_payment AS total_refunded_payment_145, t111.marge AS marge_146, t111.is_new_organization_prescribed AS is_new_organization_prescribed_147, t111.is_not_in_prescriber AS is_not_in_prescriber_148, t111.new_prescriber_legal_name AS new_prescriber_legal_name_149, t111.new_prescriber_vatid AS new_prescriber_vatid_150, t111.new_prescriber_user_email AS new_prescriber_user_email_151, t111.is_attached_to_prescriber AS is_attached_to_prescriber_152, t111.invoice_type AS invoice_type_153, t111.reference_stripe AS reference_stripe_154, t111.new_organization_phone_number AS new_organization_phone_number_155, t111.payment_deadline AS payment_deadline_156, t111.is_template AS is_template_157, t111.unique_key AS unique_key_158, t111.is_paid_by_stripe AS is_paid_by_stripe_159, t111.is_pack_invoice AS is_pack_invoice_160, t111.sync_billing_report AS sync_billing_report_161, t111.external_id AS external_id_162, t111.organization_id AS organization_id_163, t111.user_id AS user_id_164, t111.new_organization_address_id AS new_organization_address_id_165, t111.prescriber_id AS prescriber_id_166, t111.new_prescriber_address_id AS new_prescriber_address_id_167, t111.invoice_parent_id AS invoice_parent_id_168, t111.discount_code_id AS discount_code_id_169, t0.discount_code_id AS discount_code_id_170 FROM invoice t0 LEFT JOIN quote t55 ON t55.invoice_id = t0.id LEFT JOIN letter_forward t97 ON t97.invoice_id = t0.id LEFT JOIN invoice t111 ON t111.invoice_parent_id = t0.id WHERE t0.discount_code_id = 4;
|
24 |
1.13 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.alternate_name AS alternate_name_3, t0.price_without_tax AS price_without_tax_4, t0.description AS description_5, t0.active AS active_6, t0.meta_description AS meta_description_7, t0.meta_title AS meta_title_8, t0.url AS url_9, t0.created_at AS created_at_10, t0.subscription_type AS subscription_type_11, t0.unique_key AS unique_key_12, t0.is_displayed AS is_displayed_13, t0.is_archived AS is_archived_14, t0.is_subscription_component AS is_subscription_component_15, t0.category_id AS category_id_16, t0.category_for_billing_report_id AS category_for_billing_report_id_17 FROM product t0 INNER JOIN discount_code_product ON t0.id = discount_code_product.product_id WHERE discount_code_product.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.alternate_name AS alternate_name_3, t0.price_without_tax AS price_without_tax_4, t0.description AS description_5, t0.active AS active_6, t0.meta_description AS meta_description_7, t0.meta_title AS meta_title_8, t0.url AS url_9, t0.created_at AS created_at_10, t0.subscription_type AS subscription_type_11, t0.unique_key AS unique_key_12, t0.is_displayed AS is_displayed_13, t0.is_archived AS is_archived_14, t0.is_subscription_component AS is_subscription_component_15, t0.category_id AS category_id_16, t0.category_for_billing_report_id AS category_for_billing_report_id_17 FROM product t0 INNER JOIN discount_code_product ON t0.id = discount_code_product.product_id WHERE discount_code_product.discount_code_id = 4;
|
25 |
1.28 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.price AS price_3, t0.focus AS focus_4, t0.price_without_tax AS price_without_tax_5, t0.vat_rate AS vat_rate_6, t0.discount AS discount_7, t0.unique_key AS unique_key_8, t0.automation AS automation_9, t0.is_published AS is_published_10, t0.is_subscription AS is_subscription_11, t0.published_name AS published_name_12, t0.is_published_pack AS is_published_pack_13, t0.type AS type_14, t0.legal_status AS legal_status_15, t0.created_at AS created_at_16, t0.association_pack_id AS association_pack_id_17, t0.category_id AS category_id_18, t0.recurring_invoice_id AS recurring_invoice_id_19, t0.initial_invoice_id AS initial_invoice_id_20, t0.subscription_id AS subscription_id_21 FROM pack t0 INNER JOIN discount_code_pack ON t0.id = discount_code_pack.pack_id WHERE discount_code_pack.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.price AS price_3, t0.focus AS focus_4, t0.price_without_tax AS price_without_tax_5, t0.vat_rate AS vat_rate_6, t0.discount AS discount_7, t0.unique_key AS unique_key_8, t0.automation AS automation_9, t0.is_published AS is_published_10, t0.is_subscription AS is_subscription_11, t0.published_name AS published_name_12, t0.is_published_pack AS is_published_pack_13, t0.type AS type_14, t0.legal_status AS legal_status_15, t0.created_at AS created_at_16, t0.association_pack_id AS association_pack_id_17, t0.category_id AS category_id_18, t0.recurring_invoice_id AS recurring_invoice_id_19, t0.initial_invoice_id AS initial_invoice_id_20, t0.subscription_id AS subscription_id_21 FROM pack t0 INNER JOIN discount_code_pack ON t0.id = discount_code_pack.pack_id WHERE discount_code_pack.discount_code_id = 5;
|
26 |
1.07 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.unique_key AS unique_key_3, t0.security_deposit AS security_deposit_4, t0.is_active AS is_active_5, t0.authorized_frequency AS authorized_frequency_6, t0.created_at AS created_at_7, t0.update_at AS update_at_8, t0.price_without_tax AS price_without_tax_9, t0.product_id AS product_id_10 FROM subscription_model t0 INNER JOIN discount_code_subscription_model ON t0.id = discount_code_subscription_model.subscription_model_id WHERE discount_code_subscription_model.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.unique_key AS unique_key_3, t0.security_deposit AS security_deposit_4, t0.is_active AS is_active_5, t0.authorized_frequency AS authorized_frequency_6, t0.created_at AS created_at_7, t0.update_at AS update_at_8, t0.price_without_tax AS price_without_tax_9, t0.product_id AS product_id_10 FROM subscription_model t0 INNER JOIN discount_code_subscription_model ON t0.id = discount_code_subscription_model.subscription_model_id WHERE discount_code_subscription_model.discount_code_id = 5;
|
27 |
1.03 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.opening_hours AS opening_hours_3, t0.currencies_accepted AS currencies_accepted_4, t0.payment_accepted_type AS payment_accepted_type_5, t0.price_range AS price_range_6, t0.aggregate_rating AS aggregate_rating_7, t0.created_at AS created_at_8, t0.prefectoral_approval_number AS prefectoral_approval_number_9, t0.status AS status_10, t0.cedex AS cedex_11, t0.is_exportable_ibml AS is_exportable_ibml_12, t0.postal_address_id AS postal_address_id_13, t0.sector_id AS sector_id_14 FROM store t0 INNER JOIN discount_code_store ON t0.id = discount_code_store.store_id WHERE discount_code_store.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.opening_hours AS opening_hours_3, t0.currencies_accepted AS currencies_accepted_4, t0.payment_accepted_type AS payment_accepted_type_5, t0.price_range AS price_range_6, t0.aggregate_rating AS aggregate_rating_7, t0.created_at AS created_at_8, t0.prefectoral_approval_number AS prefectoral_approval_number_9, t0.status AS status_10, t0.cedex AS cedex_11, t0.is_exportable_ibml AS is_exportable_ibml_12, t0.postal_address_id AS postal_address_id_13, t0.sector_id AS sector_id_14 FROM store t0 INNER JOIN discount_code_store ON t0.id = discount_code_store.store_id WHERE discount_code_store.discount_code_id = 5;
|
28 |
4.09 ms |
SELECT t0.id AS id_1, t0.created_at AS created_at_2, t0.updated_at AS updated_at_3, t0.confirmation_number AS confirmation_number_4, t0.status AS status_5, t0.period_start AS period_start_6, t0.period_end AS period_end_7, t0.period_length AS period_length_8, t0.vatrate AS vatrate_9, t0.price_without_tax AS price_without_tax_10, t0.object AS object_11, t0.path AS path_12, t0.price AS price_13, t0.payment_recurrence AS payment_recurrence_14, t0.new_organization_legal_name AS new_organization_legal_name_15, t0.new_organization_vatid AS new_organization_vatid_16, t0.is_new_organization AS is_new_organization_17, t0.is_prescriber AS is_prescriber_18, t0.total_paid AS total_paid_19, t0.new_organization_user_email AS new_organization_user_email_20, t0.is_sent AS is_sent_21, t0.sent_date AS sent_date_22, t0.sent_to AS sent_to_23, t0.number AS number_24, t0.total_refund AS total_refund_25, t0.is_canceled AS is_canceled_26, t0.discount_without_tax AS discount_without_tax_27, t0.discount_without_tax_percent AS discount_without_tax_percent_28, t0.is_imported AS is_imported_29, t0.is_domiciliation AS is_domiciliation_30, t0.payment_url AS payment_url_31, t0.reference AS reference_32, t0.remaining_to_pay AS remaining_to_pay_33, t0.total_refunded_payment AS total_refunded_payment_34, t0.marge AS marge_35, t0.is_new_organization_prescribed AS is_new_organization_prescribed_36, t0.is_not_in_prescriber AS is_not_in_prescriber_37, t0.new_prescriber_legal_name AS new_prescriber_legal_name_38, t0.new_prescriber_vatid AS new_prescriber_vatid_39, t0.new_prescriber_user_email AS new_prescriber_user_email_40, t0.is_attached_to_prescriber AS is_attached_to_prescriber_41, t0.invoice_type AS invoice_type_42, t0.reference_stripe AS reference_stripe_43, t0.new_organization_phone_number AS new_organization_phone_number_44, t0.payment_deadline AS payment_deadline_45, t0.is_template AS is_template_46, t0.unique_key AS unique_key_47, t0.is_paid_by_stripe AS is_paid_by_stripe_48, t0.is_pack_invoice AS is_pack_invoice_49, t0.sync_billing_report AS sync_billing_report_50, t0.external_id AS external_id_51, t0.organization_id AS organization_id_52, t0.user_id AS user_id_53, t0.new_organization_address_id AS new_organization_address_id_54, t55.id AS id_56, t55.created_at AS created_at_57, t55.updated_at AS updated_at_58, t55.status AS status_59, t55.vatrate AS vatrate_60, t55.price_without_tax AS price_without_tax_61, t55.object AS object_62, t55.path AS path_63, t55.price AS price_64, t55.new_organization_legal_name AS new_organization_legal_name_65, t55.new_organization_vatid AS new_organization_vatid_66, t55.is_new_organization AS is_new_organization_67, t55.is_prescriber AS is_prescriber_68, t55.new_organization_user_email AS new_organization_user_email_69, t55.is_sent AS is_sent_70, t55.sent_date AS sent_date_71, t55.sent_to AS sent_to_72, t55.number AS number_73, t55.is_canceled AS is_canceled_74, t55.discount_without_tax AS discount_without_tax_75, t55.discount_without_tax_percent AS discount_without_tax_percent_76, t55.invoice_is_generated AS invoice_is_generated_77, t55.payment_url AS payment_url_78, t55.is_generate AS is_generate_79, t55.marge AS marge_80, t55.new_organization_phone_number AS new_organization_phone_number_81, t55.is_new_organization_prescribed AS is_new_organization_prescribed_82, t55.is_not_in_prescriber AS is_not_in_prescriber_83, t55.new_prescriber_legal_name AS new_prescriber_legal_name_84, t55.new_prescriber_vatid AS new_prescriber_vatid_85, t55.new_prescriber_user_email AS new_prescriber_user_email_86, t55.is_attached_to_prescriber AS is_attached_to_prescriber_87, t55.is_paid_by_stripe AS is_paid_by_stripe_88, t55.organization_id AS organization_id_89, t55.new_organization_address_id AS new_organization_address_id_90, t55.invoice_id AS invoice_id_91, t55.prescriber_id AS prescriber_id_92, t55.new_prescriber_address_id AS new_prescriber_address_id_93, t55.discount_code_id AS discount_code_id_94, t0.prescriber_id AS prescriber_id_95, t0.new_prescriber_address_id AS new_prescriber_address_id_96, t97.id AS id_98, t97.created_at AS created_at_99, t97.updated_at AS updated_at_100, t97.is_done AS is_done_101, t97.comment AS comment_102, t97.npai AS npai_103, t97.price_without_tax AS price_without_tax_104, t97.tracking_number AS tracking_number_105, t97.price AS price_106, t97.days_keep AS days_keep_107, t97.organization_id AS organization_id_108, t97.invoice_id AS invoice_id_109, t0.invoice_parent_id AS invoice_parent_id_110, t111.id AS id_112, t111.created_at AS created_at_113, t111.updated_at AS updated_at_114, t111.confirmation_number AS confirmation_number_115, t111.status AS status_116, t111.period_start AS period_start_117, t111.period_end AS period_end_118, t111.period_length AS period_length_119, t111.vatrate AS vatrate_120, t111.price_without_tax AS price_without_tax_121, t111.object AS object_122, t111.path AS path_123, t111.price AS price_124, t111.payment_recurrence AS payment_recurrence_125, t111.new_organization_legal_name AS new_organization_legal_name_126, t111.new_organization_vatid AS new_organization_vatid_127, t111.is_new_organization AS is_new_organization_128, t111.is_prescriber AS is_prescriber_129, t111.total_paid AS total_paid_130, t111.new_organization_user_email AS new_organization_user_email_131, t111.is_sent AS is_sent_132, t111.sent_date AS sent_date_133, t111.sent_to AS sent_to_134, t111.number AS number_135, t111.total_refund AS total_refund_136, t111.is_canceled AS is_canceled_137, t111.discount_without_tax AS discount_without_tax_138, t111.discount_without_tax_percent AS discount_without_tax_percent_139, t111.is_imported AS is_imported_140, t111.is_domiciliation AS is_domiciliation_141, t111.payment_url AS payment_url_142, t111.reference AS reference_143, t111.remaining_to_pay AS remaining_to_pay_144, t111.total_refunded_payment AS total_refunded_payment_145, t111.marge AS marge_146, t111.is_new_organization_prescribed AS is_new_organization_prescribed_147, t111.is_not_in_prescriber AS is_not_in_prescriber_148, t111.new_prescriber_legal_name AS new_prescriber_legal_name_149, t111.new_prescriber_vatid AS new_prescriber_vatid_150, t111.new_prescriber_user_email AS new_prescriber_user_email_151, t111.is_attached_to_prescriber AS is_attached_to_prescriber_152, t111.invoice_type AS invoice_type_153, t111.reference_stripe AS reference_stripe_154, t111.new_organization_phone_number AS new_organization_phone_number_155, t111.payment_deadline AS payment_deadline_156, t111.is_template AS is_template_157, t111.unique_key AS unique_key_158, t111.is_paid_by_stripe AS is_paid_by_stripe_159, t111.is_pack_invoice AS is_pack_invoice_160, t111.sync_billing_report AS sync_billing_report_161, t111.external_id AS external_id_162, t111.organization_id AS organization_id_163, t111.user_id AS user_id_164, t111.new_organization_address_id AS new_organization_address_id_165, t111.prescriber_id AS prescriber_id_166, t111.new_prescriber_address_id AS new_prescriber_address_id_167, t111.invoice_parent_id AS invoice_parent_id_168, t111.discount_code_id AS discount_code_id_169, t0.discount_code_id AS discount_code_id_170 FROM invoice t0 LEFT JOIN quote t55 ON t55.invoice_id = t0.id LEFT JOIN letter_forward t97 ON t97.invoice_id = t0.id LEFT JOIN invoice t111 ON t111.invoice_parent_id = t0.id WHERE t0.discount_code_id = ?
SELECT
t0.id AS id_1,
t0.created_at AS created_at_2,
t0.updated_at AS updated_at_3,
t0.confirmation_number AS confirmation_number_4,
t0.status AS status_5,
t0.period_start AS period_start_6,
t0.period_end AS period_end_7,
t0.period_length AS period_length_8,
t0.vatrate AS vatrate_9,
t0.price_without_tax AS price_without_tax_10,
t0.object AS object_11,
t0.path AS path_12,
t0.price AS price_13,
t0.payment_recurrence AS payment_recurrence_14,
t0.new_organization_legal_name AS new_organization_legal_name_15,
t0.new_organization_vatid AS new_organization_vatid_16,
t0.is_new_organization AS is_new_organization_17,
t0.is_prescriber AS is_prescriber_18,
t0.total_paid AS total_paid_19,
t0.new_organization_user_email AS new_organization_user_email_20,
t0.is_sent AS is_sent_21,
t0.sent_date AS sent_date_22,
t0.sent_to AS sent_to_23,
t0.number AS number_24,
t0.total_refund AS total_refund_25,
t0.is_canceled AS is_canceled_26,
t0.discount_without_tax AS discount_without_tax_27,
t0.discount_without_tax_percent AS discount_without_tax_percent_28,
t0.is_imported AS is_imported_29,
t0.is_domiciliation AS is_domiciliation_30,
t0.payment_url AS payment_url_31,
t0.reference AS reference_32,
t0.remaining_to_pay AS remaining_to_pay_33,
t0.total_refunded_payment AS total_refunded_payment_34,
t0.marge AS marge_35,
t0.is_new_organization_prescribed AS is_new_organization_prescribed_36,
t0.is_not_in_prescriber AS is_not_in_prescriber_37,
t0.new_prescriber_legal_name AS new_prescriber_legal_name_38,
t0.new_prescriber_vatid AS new_prescriber_vatid_39,
t0.new_prescriber_user_email AS new_prescriber_user_email_40,
t0.is_attached_to_prescriber AS is_attached_to_prescriber_41,
t0.invoice_type AS invoice_type_42,
t0.reference_stripe AS reference_stripe_43,
t0.new_organization_phone_number AS new_organization_phone_number_44,
t0.payment_deadline AS payment_deadline_45,
t0.is_template AS is_template_46,
t0.unique_key AS unique_key_47,
t0.is_paid_by_stripe AS is_paid_by_stripe_48,
t0.is_pack_invoice AS is_pack_invoice_49,
t0.sync_billing_report AS sync_billing_report_50,
t0.external_id AS external_id_51,
t0.organization_id AS organization_id_52,
t0.user_id AS user_id_53,
t0.new_organization_address_id AS new_organization_address_id_54,
t55.id AS id_56,
t55.created_at AS created_at_57,
t55.updated_at AS updated_at_58,
t55.status AS status_59,
t55.vatrate AS vatrate_60,
t55.price_without_tax AS price_without_tax_61,
t55.object AS object_62,
t55.path AS path_63,
t55.price AS price_64,
t55.new_organization_legal_name AS new_organization_legal_name_65,
t55.new_organization_vatid AS new_organization_vatid_66,
t55.is_new_organization AS is_new_organization_67,
t55.is_prescriber AS is_prescriber_68,
t55.new_organization_user_email AS new_organization_user_email_69,
t55.is_sent AS is_sent_70,
t55.sent_date AS sent_date_71,
t55.sent_to AS sent_to_72,
t55.number AS number_73,
t55.is_canceled AS is_canceled_74,
t55.discount_without_tax AS discount_without_tax_75,
t55.discount_without_tax_percent AS discount_without_tax_percent_76,
t55.invoice_is_generated AS invoice_is_generated_77,
t55.payment_url AS payment_url_78,
t55.is_generate AS is_generate_79,
t55.marge AS marge_80,
t55.new_organization_phone_number AS new_organization_phone_number_81,
t55.is_new_organization_prescribed AS is_new_organization_prescribed_82,
t55.is_not_in_prescriber AS is_not_in_prescriber_83,
t55.new_prescriber_legal_name AS new_prescriber_legal_name_84,
t55.new_prescriber_vatid AS new_prescriber_vatid_85,
t55.new_prescriber_user_email AS new_prescriber_user_email_86,
t55.is_attached_to_prescriber AS is_attached_to_prescriber_87,
t55.is_paid_by_stripe AS is_paid_by_stripe_88,
t55.organization_id AS organization_id_89,
t55.new_organization_address_id AS new_organization_address_id_90,
t55.invoice_id AS invoice_id_91,
t55.prescriber_id AS prescriber_id_92,
t55.new_prescriber_address_id AS new_prescriber_address_id_93,
t55.discount_code_id AS discount_code_id_94,
t0.prescriber_id AS prescriber_id_95,
t0.new_prescriber_address_id AS new_prescriber_address_id_96,
t97.id AS id_98,
t97.created_at AS created_at_99,
t97.updated_at AS updated_at_100,
t97.is_done AS is_done_101,
t97.comment AS comment_102,
t97.npai AS npai_103,
t97.price_without_tax AS price_without_tax_104,
t97.tracking_number AS tracking_number_105,
t97.price AS price_106,
t97.days_keep AS days_keep_107,
t97.organization_id AS organization_id_108,
t97.invoice_id AS invoice_id_109,
t0.invoice_parent_id AS invoice_parent_id_110,
t111.id AS id_112,
t111.created_at AS created_at_113,
t111.updated_at AS updated_at_114,
t111.confirmation_number AS confirmation_number_115,
t111.status AS status_116,
t111.period_start AS period_start_117,
t111.period_end AS period_end_118,
t111.period_length AS period_length_119,
t111.vatrate AS vatrate_120,
t111.price_without_tax AS price_without_tax_121,
t111.object AS object_122,
t111.path AS path_123,
t111.price AS price_124,
t111.payment_recurrence AS payment_recurrence_125,
t111.new_organization_legal_name AS new_organization_legal_name_126,
t111.new_organization_vatid AS new_organization_vatid_127,
t111.is_new_organization AS is_new_organization_128,
t111.is_prescriber AS is_prescriber_129,
t111.total_paid AS total_paid_130,
t111.new_organization_user_email AS new_organization_user_email_131,
t111.is_sent AS is_sent_132,
t111.sent_date AS sent_date_133,
t111.sent_to AS sent_to_134,
t111.number AS number_135,
t111.total_refund AS total_refund_136,
t111.is_canceled AS is_canceled_137,
t111.discount_without_tax AS discount_without_tax_138,
t111.discount_without_tax_percent AS discount_without_tax_percent_139,
t111.is_imported AS is_imported_140,
t111.is_domiciliation AS is_domiciliation_141,
t111.payment_url AS payment_url_142,
t111.reference AS reference_143,
t111.remaining_to_pay AS remaining_to_pay_144,
t111.total_refunded_payment AS total_refunded_payment_145,
t111.marge AS marge_146,
t111.is_new_organization_prescribed AS is_new_organization_prescribed_147,
t111.is_not_in_prescriber AS is_not_in_prescriber_148,
t111.new_prescriber_legal_name AS new_prescriber_legal_name_149,
t111.new_prescriber_vatid AS new_prescriber_vatid_150,
t111.new_prescriber_user_email AS new_prescriber_user_email_151,
t111.is_attached_to_prescriber AS is_attached_to_prescriber_152,
t111.invoice_type AS invoice_type_153,
t111.reference_stripe AS reference_stripe_154,
t111.new_organization_phone_number AS new_organization_phone_number_155,
t111.payment_deadline AS payment_deadline_156,
t111.is_template AS is_template_157,
t111.unique_key AS unique_key_158,
t111.is_paid_by_stripe AS is_paid_by_stripe_159,
t111.is_pack_invoice AS is_pack_invoice_160,
t111.sync_billing_report AS sync_billing_report_161,
t111.external_id AS external_id_162,
t111.organization_id AS organization_id_163,
t111.user_id AS user_id_164,
t111.new_organization_address_id AS new_organization_address_id_165,
t111.prescriber_id AS prescriber_id_166,
t111.new_prescriber_address_id AS new_prescriber_address_id_167,
t111.invoice_parent_id AS invoice_parent_id_168,
t111.discount_code_id AS discount_code_id_169,
t0.discount_code_id AS discount_code_id_170
FROM
invoice t0
LEFT JOIN quote t55 ON t55.invoice_id = t0.id
LEFT JOIN letter_forward t97 ON t97.invoice_id = t0.id
LEFT JOIN invoice t111 ON t111.invoice_parent_id = t0.id
WHERE
t0.discount_code_id = ?
SELECT t0.id AS id_1, t0.created_at AS created_at_2, t0.updated_at AS updated_at_3, t0.confirmation_number AS confirmation_number_4, t0.status AS status_5, t0.period_start AS period_start_6, t0.period_end AS period_end_7, t0.period_length AS period_length_8, t0.vatrate AS vatrate_9, t0.price_without_tax AS price_without_tax_10, t0.object AS object_11, t0.path AS path_12, t0.price AS price_13, t0.payment_recurrence AS payment_recurrence_14, t0.new_organization_legal_name AS new_organization_legal_name_15, t0.new_organization_vatid AS new_organization_vatid_16, t0.is_new_organization AS is_new_organization_17, t0.is_prescriber AS is_prescriber_18, t0.total_paid AS total_paid_19, t0.new_organization_user_email AS new_organization_user_email_20, t0.is_sent AS is_sent_21, t0.sent_date AS sent_date_22, t0.sent_to AS sent_to_23, t0.number AS number_24, t0.total_refund AS total_refund_25, t0.is_canceled AS is_canceled_26, t0.discount_without_tax AS discount_without_tax_27, t0.discount_without_tax_percent AS discount_without_tax_percent_28, t0.is_imported AS is_imported_29, t0.is_domiciliation AS is_domiciliation_30, t0.payment_url AS payment_url_31, t0.reference AS reference_32, t0.remaining_to_pay AS remaining_to_pay_33, t0.total_refunded_payment AS total_refunded_payment_34, t0.marge AS marge_35, t0.is_new_organization_prescribed AS is_new_organization_prescribed_36, t0.is_not_in_prescriber AS is_not_in_prescriber_37, t0.new_prescriber_legal_name AS new_prescriber_legal_name_38, t0.new_prescriber_vatid AS new_prescriber_vatid_39, t0.new_prescriber_user_email AS new_prescriber_user_email_40, t0.is_attached_to_prescriber AS is_attached_to_prescriber_41, t0.invoice_type AS invoice_type_42, t0.reference_stripe AS reference_stripe_43, t0.new_organization_phone_number AS new_organization_phone_number_44, t0.payment_deadline AS payment_deadline_45, t0.is_template AS is_template_46, t0.unique_key AS unique_key_47, t0.is_paid_by_stripe AS is_paid_by_stripe_48, t0.is_pack_invoice AS is_pack_invoice_49, t0.sync_billing_report AS sync_billing_report_50, t0.external_id AS external_id_51, t0.organization_id AS organization_id_52, t0.user_id AS user_id_53, t0.new_organization_address_id AS new_organization_address_id_54, t55.id AS id_56, t55.created_at AS created_at_57, t55.updated_at AS updated_at_58, t55.status AS status_59, t55.vatrate AS vatrate_60, t55.price_without_tax AS price_without_tax_61, t55.object AS object_62, t55.path AS path_63, t55.price AS price_64, t55.new_organization_legal_name AS new_organization_legal_name_65, t55.new_organization_vatid AS new_organization_vatid_66, t55.is_new_organization AS is_new_organization_67, t55.is_prescriber AS is_prescriber_68, t55.new_organization_user_email AS new_organization_user_email_69, t55.is_sent AS is_sent_70, t55.sent_date AS sent_date_71, t55.sent_to AS sent_to_72, t55.number AS number_73, t55.is_canceled AS is_canceled_74, t55.discount_without_tax AS discount_without_tax_75, t55.discount_without_tax_percent AS discount_without_tax_percent_76, t55.invoice_is_generated AS invoice_is_generated_77, t55.payment_url AS payment_url_78, t55.is_generate AS is_generate_79, t55.marge AS marge_80, t55.new_organization_phone_number AS new_organization_phone_number_81, t55.is_new_organization_prescribed AS is_new_organization_prescribed_82, t55.is_not_in_prescriber AS is_not_in_prescriber_83, t55.new_prescriber_legal_name AS new_prescriber_legal_name_84, t55.new_prescriber_vatid AS new_prescriber_vatid_85, t55.new_prescriber_user_email AS new_prescriber_user_email_86, t55.is_attached_to_prescriber AS is_attached_to_prescriber_87, t55.is_paid_by_stripe AS is_paid_by_stripe_88, t55.organization_id AS organization_id_89, t55.new_organization_address_id AS new_organization_address_id_90, t55.invoice_id AS invoice_id_91, t55.prescriber_id AS prescriber_id_92, t55.new_prescriber_address_id AS new_prescriber_address_id_93, t55.discount_code_id AS discount_code_id_94, t0.prescriber_id AS prescriber_id_95, t0.new_prescriber_address_id AS new_prescriber_address_id_96, t97.id AS id_98, t97.created_at AS created_at_99, t97.updated_at AS updated_at_100, t97.is_done AS is_done_101, t97.comment AS comment_102, t97.npai AS npai_103, t97.price_without_tax AS price_without_tax_104, t97.tracking_number AS tracking_number_105, t97.price AS price_106, t97.days_keep AS days_keep_107, t97.organization_id AS organization_id_108, t97.invoice_id AS invoice_id_109, t0.invoice_parent_id AS invoice_parent_id_110, t111.id AS id_112, t111.created_at AS created_at_113, t111.updated_at AS updated_at_114, t111.confirmation_number AS confirmation_number_115, t111.status AS status_116, t111.period_start AS period_start_117, t111.period_end AS period_end_118, t111.period_length AS period_length_119, t111.vatrate AS vatrate_120, t111.price_without_tax AS price_without_tax_121, t111.object AS object_122, t111.path AS path_123, t111.price AS price_124, t111.payment_recurrence AS payment_recurrence_125, t111.new_organization_legal_name AS new_organization_legal_name_126, t111.new_organization_vatid AS new_organization_vatid_127, t111.is_new_organization AS is_new_organization_128, t111.is_prescriber AS is_prescriber_129, t111.total_paid AS total_paid_130, t111.new_organization_user_email AS new_organization_user_email_131, t111.is_sent AS is_sent_132, t111.sent_date AS sent_date_133, t111.sent_to AS sent_to_134, t111.number AS number_135, t111.total_refund AS total_refund_136, t111.is_canceled AS is_canceled_137, t111.discount_without_tax AS discount_without_tax_138, t111.discount_without_tax_percent AS discount_without_tax_percent_139, t111.is_imported AS is_imported_140, t111.is_domiciliation AS is_domiciliation_141, t111.payment_url AS payment_url_142, t111.reference AS reference_143, t111.remaining_to_pay AS remaining_to_pay_144, t111.total_refunded_payment AS total_refunded_payment_145, t111.marge AS marge_146, t111.is_new_organization_prescribed AS is_new_organization_prescribed_147, t111.is_not_in_prescriber AS is_not_in_prescriber_148, t111.new_prescriber_legal_name AS new_prescriber_legal_name_149, t111.new_prescriber_vatid AS new_prescriber_vatid_150, t111.new_prescriber_user_email AS new_prescriber_user_email_151, t111.is_attached_to_prescriber AS is_attached_to_prescriber_152, t111.invoice_type AS invoice_type_153, t111.reference_stripe AS reference_stripe_154, t111.new_organization_phone_number AS new_organization_phone_number_155, t111.payment_deadline AS payment_deadline_156, t111.is_template AS is_template_157, t111.unique_key AS unique_key_158, t111.is_paid_by_stripe AS is_paid_by_stripe_159, t111.is_pack_invoice AS is_pack_invoice_160, t111.sync_billing_report AS sync_billing_report_161, t111.external_id AS external_id_162, t111.organization_id AS organization_id_163, t111.user_id AS user_id_164, t111.new_organization_address_id AS new_organization_address_id_165, t111.prescriber_id AS prescriber_id_166, t111.new_prescriber_address_id AS new_prescriber_address_id_167, t111.invoice_parent_id AS invoice_parent_id_168, t111.discount_code_id AS discount_code_id_169, t0.discount_code_id AS discount_code_id_170 FROM invoice t0 LEFT JOIN quote t55 ON t55.invoice_id = t0.id LEFT JOIN letter_forward t97 ON t97.invoice_id = t0.id LEFT JOIN invoice t111 ON t111.invoice_parent_id = t0.id WHERE t0.discount_code_id = 5;
|
29 |
1.26 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.alternate_name AS alternate_name_3, t0.price_without_tax AS price_without_tax_4, t0.description AS description_5, t0.active AS active_6, t0.meta_description AS meta_description_7, t0.meta_title AS meta_title_8, t0.url AS url_9, t0.created_at AS created_at_10, t0.subscription_type AS subscription_type_11, t0.unique_key AS unique_key_12, t0.is_displayed AS is_displayed_13, t0.is_archived AS is_archived_14, t0.is_subscription_component AS is_subscription_component_15, t0.category_id AS category_id_16, t0.category_for_billing_report_id AS category_for_billing_report_id_17 FROM product t0 INNER JOIN discount_code_product ON t0.id = discount_code_product.product_id WHERE discount_code_product.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.alternate_name AS alternate_name_3, t0.price_without_tax AS price_without_tax_4, t0.description AS description_5, t0.active AS active_6, t0.meta_description AS meta_description_7, t0.meta_title AS meta_title_8, t0.url AS url_9, t0.created_at AS created_at_10, t0.subscription_type AS subscription_type_11, t0.unique_key AS unique_key_12, t0.is_displayed AS is_displayed_13, t0.is_archived AS is_archived_14, t0.is_subscription_component AS is_subscription_component_15, t0.category_id AS category_id_16, t0.category_for_billing_report_id AS category_for_billing_report_id_17 FROM product t0 INNER JOIN discount_code_product ON t0.id = discount_code_product.product_id WHERE discount_code_product.discount_code_id = 5;
|
30 |
1.19 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.price AS price_3, t0.focus AS focus_4, t0.price_without_tax AS price_without_tax_5, t0.vat_rate AS vat_rate_6, t0.discount AS discount_7, t0.unique_key AS unique_key_8, t0.automation AS automation_9, t0.is_published AS is_published_10, t0.is_subscription AS is_subscription_11, t0.published_name AS published_name_12, t0.is_published_pack AS is_published_pack_13, t0.type AS type_14, t0.legal_status AS legal_status_15, t0.created_at AS created_at_16, t0.association_pack_id AS association_pack_id_17, t0.category_id AS category_id_18, t0.recurring_invoice_id AS recurring_invoice_id_19, t0.initial_invoice_id AS initial_invoice_id_20, t0.subscription_id AS subscription_id_21 FROM pack t0 INNER JOIN discount_code_pack ON t0.id = discount_code_pack.pack_id WHERE discount_code_pack.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.price AS price_3, t0.focus AS focus_4, t0.price_without_tax AS price_without_tax_5, t0.vat_rate AS vat_rate_6, t0.discount AS discount_7, t0.unique_key AS unique_key_8, t0.automation AS automation_9, t0.is_published AS is_published_10, t0.is_subscription AS is_subscription_11, t0.published_name AS published_name_12, t0.is_published_pack AS is_published_pack_13, t0.type AS type_14, t0.legal_status AS legal_status_15, t0.created_at AS created_at_16, t0.association_pack_id AS association_pack_id_17, t0.category_id AS category_id_18, t0.recurring_invoice_id AS recurring_invoice_id_19, t0.initial_invoice_id AS initial_invoice_id_20, t0.subscription_id AS subscription_id_21 FROM pack t0 INNER JOIN discount_code_pack ON t0.id = discount_code_pack.pack_id WHERE discount_code_pack.discount_code_id = 6;
|
31 |
1.13 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.unique_key AS unique_key_3, t0.security_deposit AS security_deposit_4, t0.is_active AS is_active_5, t0.authorized_frequency AS authorized_frequency_6, t0.created_at AS created_at_7, t0.update_at AS update_at_8, t0.price_without_tax AS price_without_tax_9, t0.product_id AS product_id_10 FROM subscription_model t0 INNER JOIN discount_code_subscription_model ON t0.id = discount_code_subscription_model.subscription_model_id WHERE discount_code_subscription_model.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.unique_key AS unique_key_3, t0.security_deposit AS security_deposit_4, t0.is_active AS is_active_5, t0.authorized_frequency AS authorized_frequency_6, t0.created_at AS created_at_7, t0.update_at AS update_at_8, t0.price_without_tax AS price_without_tax_9, t0.product_id AS product_id_10 FROM subscription_model t0 INNER JOIN discount_code_subscription_model ON t0.id = discount_code_subscription_model.subscription_model_id WHERE discount_code_subscription_model.discount_code_id = 6;
|
32 |
1.08 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.opening_hours AS opening_hours_3, t0.currencies_accepted AS currencies_accepted_4, t0.payment_accepted_type AS payment_accepted_type_5, t0.price_range AS price_range_6, t0.aggregate_rating AS aggregate_rating_7, t0.created_at AS created_at_8, t0.prefectoral_approval_number AS prefectoral_approval_number_9, t0.status AS status_10, t0.cedex AS cedex_11, t0.is_exportable_ibml AS is_exportable_ibml_12, t0.postal_address_id AS postal_address_id_13, t0.sector_id AS sector_id_14 FROM store t0 INNER JOIN discount_code_store ON t0.id = discount_code_store.store_id WHERE discount_code_store.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.opening_hours AS opening_hours_3, t0.currencies_accepted AS currencies_accepted_4, t0.payment_accepted_type AS payment_accepted_type_5, t0.price_range AS price_range_6, t0.aggregate_rating AS aggregate_rating_7, t0.created_at AS created_at_8, t0.prefectoral_approval_number AS prefectoral_approval_number_9, t0.status AS status_10, t0.cedex AS cedex_11, t0.is_exportable_ibml AS is_exportable_ibml_12, t0.postal_address_id AS postal_address_id_13, t0.sector_id AS sector_id_14 FROM store t0 INNER JOIN discount_code_store ON t0.id = discount_code_store.store_id WHERE discount_code_store.discount_code_id = 6;
|
33 |
2.68 ms |
SELECT t0.id AS id_1, t0.created_at AS created_at_2, t0.updated_at AS updated_at_3, t0.confirmation_number AS confirmation_number_4, t0.status AS status_5, t0.period_start AS period_start_6, t0.period_end AS period_end_7, t0.period_length AS period_length_8, t0.vatrate AS vatrate_9, t0.price_without_tax AS price_without_tax_10, t0.object AS object_11, t0.path AS path_12, t0.price AS price_13, t0.payment_recurrence AS payment_recurrence_14, t0.new_organization_legal_name AS new_organization_legal_name_15, t0.new_organization_vatid AS new_organization_vatid_16, t0.is_new_organization AS is_new_organization_17, t0.is_prescriber AS is_prescriber_18, t0.total_paid AS total_paid_19, t0.new_organization_user_email AS new_organization_user_email_20, t0.is_sent AS is_sent_21, t0.sent_date AS sent_date_22, t0.sent_to AS sent_to_23, t0.number AS number_24, t0.total_refund AS total_refund_25, t0.is_canceled AS is_canceled_26, t0.discount_without_tax AS discount_without_tax_27, t0.discount_without_tax_percent AS discount_without_tax_percent_28, t0.is_imported AS is_imported_29, t0.is_domiciliation AS is_domiciliation_30, t0.payment_url AS payment_url_31, t0.reference AS reference_32, t0.remaining_to_pay AS remaining_to_pay_33, t0.total_refunded_payment AS total_refunded_payment_34, t0.marge AS marge_35, t0.is_new_organization_prescribed AS is_new_organization_prescribed_36, t0.is_not_in_prescriber AS is_not_in_prescriber_37, t0.new_prescriber_legal_name AS new_prescriber_legal_name_38, t0.new_prescriber_vatid AS new_prescriber_vatid_39, t0.new_prescriber_user_email AS new_prescriber_user_email_40, t0.is_attached_to_prescriber AS is_attached_to_prescriber_41, t0.invoice_type AS invoice_type_42, t0.reference_stripe AS reference_stripe_43, t0.new_organization_phone_number AS new_organization_phone_number_44, t0.payment_deadline AS payment_deadline_45, t0.is_template AS is_template_46, t0.unique_key AS unique_key_47, t0.is_paid_by_stripe AS is_paid_by_stripe_48, t0.is_pack_invoice AS is_pack_invoice_49, t0.sync_billing_report AS sync_billing_report_50, t0.external_id AS external_id_51, t0.organization_id AS organization_id_52, t0.user_id AS user_id_53, t0.new_organization_address_id AS new_organization_address_id_54, t55.id AS id_56, t55.created_at AS created_at_57, t55.updated_at AS updated_at_58, t55.status AS status_59, t55.vatrate AS vatrate_60, t55.price_without_tax AS price_without_tax_61, t55.object AS object_62, t55.path AS path_63, t55.price AS price_64, t55.new_organization_legal_name AS new_organization_legal_name_65, t55.new_organization_vatid AS new_organization_vatid_66, t55.is_new_organization AS is_new_organization_67, t55.is_prescriber AS is_prescriber_68, t55.new_organization_user_email AS new_organization_user_email_69, t55.is_sent AS is_sent_70, t55.sent_date AS sent_date_71, t55.sent_to AS sent_to_72, t55.number AS number_73, t55.is_canceled AS is_canceled_74, t55.discount_without_tax AS discount_without_tax_75, t55.discount_without_tax_percent AS discount_without_tax_percent_76, t55.invoice_is_generated AS invoice_is_generated_77, t55.payment_url AS payment_url_78, t55.is_generate AS is_generate_79, t55.marge AS marge_80, t55.new_organization_phone_number AS new_organization_phone_number_81, t55.is_new_organization_prescribed AS is_new_organization_prescribed_82, t55.is_not_in_prescriber AS is_not_in_prescriber_83, t55.new_prescriber_legal_name AS new_prescriber_legal_name_84, t55.new_prescriber_vatid AS new_prescriber_vatid_85, t55.new_prescriber_user_email AS new_prescriber_user_email_86, t55.is_attached_to_prescriber AS is_attached_to_prescriber_87, t55.is_paid_by_stripe AS is_paid_by_stripe_88, t55.organization_id AS organization_id_89, t55.new_organization_address_id AS new_organization_address_id_90, t55.invoice_id AS invoice_id_91, t55.prescriber_id AS prescriber_id_92, t55.new_prescriber_address_id AS new_prescriber_address_id_93, t55.discount_code_id AS discount_code_id_94, t0.prescriber_id AS prescriber_id_95, t0.new_prescriber_address_id AS new_prescriber_address_id_96, t97.id AS id_98, t97.created_at AS created_at_99, t97.updated_at AS updated_at_100, t97.is_done AS is_done_101, t97.comment AS comment_102, t97.npai AS npai_103, t97.price_without_tax AS price_without_tax_104, t97.tracking_number AS tracking_number_105, t97.price AS price_106, t97.days_keep AS days_keep_107, t97.organization_id AS organization_id_108, t97.invoice_id AS invoice_id_109, t0.invoice_parent_id AS invoice_parent_id_110, t111.id AS id_112, t111.created_at AS created_at_113, t111.updated_at AS updated_at_114, t111.confirmation_number AS confirmation_number_115, t111.status AS status_116, t111.period_start AS period_start_117, t111.period_end AS period_end_118, t111.period_length AS period_length_119, t111.vatrate AS vatrate_120, t111.price_without_tax AS price_without_tax_121, t111.object AS object_122, t111.path AS path_123, t111.price AS price_124, t111.payment_recurrence AS payment_recurrence_125, t111.new_organization_legal_name AS new_organization_legal_name_126, t111.new_organization_vatid AS new_organization_vatid_127, t111.is_new_organization AS is_new_organization_128, t111.is_prescriber AS is_prescriber_129, t111.total_paid AS total_paid_130, t111.new_organization_user_email AS new_organization_user_email_131, t111.is_sent AS is_sent_132, t111.sent_date AS sent_date_133, t111.sent_to AS sent_to_134, t111.number AS number_135, t111.total_refund AS total_refund_136, t111.is_canceled AS is_canceled_137, t111.discount_without_tax AS discount_without_tax_138, t111.discount_without_tax_percent AS discount_without_tax_percent_139, t111.is_imported AS is_imported_140, t111.is_domiciliation AS is_domiciliation_141, t111.payment_url AS payment_url_142, t111.reference AS reference_143, t111.remaining_to_pay AS remaining_to_pay_144, t111.total_refunded_payment AS total_refunded_payment_145, t111.marge AS marge_146, t111.is_new_organization_prescribed AS is_new_organization_prescribed_147, t111.is_not_in_prescriber AS is_not_in_prescriber_148, t111.new_prescriber_legal_name AS new_prescriber_legal_name_149, t111.new_prescriber_vatid AS new_prescriber_vatid_150, t111.new_prescriber_user_email AS new_prescriber_user_email_151, t111.is_attached_to_prescriber AS is_attached_to_prescriber_152, t111.invoice_type AS invoice_type_153, t111.reference_stripe AS reference_stripe_154, t111.new_organization_phone_number AS new_organization_phone_number_155, t111.payment_deadline AS payment_deadline_156, t111.is_template AS is_template_157, t111.unique_key AS unique_key_158, t111.is_paid_by_stripe AS is_paid_by_stripe_159, t111.is_pack_invoice AS is_pack_invoice_160, t111.sync_billing_report AS sync_billing_report_161, t111.external_id AS external_id_162, t111.organization_id AS organization_id_163, t111.user_id AS user_id_164, t111.new_organization_address_id AS new_organization_address_id_165, t111.prescriber_id AS prescriber_id_166, t111.new_prescriber_address_id AS new_prescriber_address_id_167, t111.invoice_parent_id AS invoice_parent_id_168, t111.discount_code_id AS discount_code_id_169, t0.discount_code_id AS discount_code_id_170 FROM invoice t0 LEFT JOIN quote t55 ON t55.invoice_id = t0.id LEFT JOIN letter_forward t97 ON t97.invoice_id = t0.id LEFT JOIN invoice t111 ON t111.invoice_parent_id = t0.id WHERE t0.discount_code_id = ?
SELECT
t0.id AS id_1,
t0.created_at AS created_at_2,
t0.updated_at AS updated_at_3,
t0.confirmation_number AS confirmation_number_4,
t0.status AS status_5,
t0.period_start AS period_start_6,
t0.period_end AS period_end_7,
t0.period_length AS period_length_8,
t0.vatrate AS vatrate_9,
t0.price_without_tax AS price_without_tax_10,
t0.object AS object_11,
t0.path AS path_12,
t0.price AS price_13,
t0.payment_recurrence AS payment_recurrence_14,
t0.new_organization_legal_name AS new_organization_legal_name_15,
t0.new_organization_vatid AS new_organization_vatid_16,
t0.is_new_organization AS is_new_organization_17,
t0.is_prescriber AS is_prescriber_18,
t0.total_paid AS total_paid_19,
t0.new_organization_user_email AS new_organization_user_email_20,
t0.is_sent AS is_sent_21,
t0.sent_date AS sent_date_22,
t0.sent_to AS sent_to_23,
t0.number AS number_24,
t0.total_refund AS total_refund_25,
t0.is_canceled AS is_canceled_26,
t0.discount_without_tax AS discount_without_tax_27,
t0.discount_without_tax_percent AS discount_without_tax_percent_28,
t0.is_imported AS is_imported_29,
t0.is_domiciliation AS is_domiciliation_30,
t0.payment_url AS payment_url_31,
t0.reference AS reference_32,
t0.remaining_to_pay AS remaining_to_pay_33,
t0.total_refunded_payment AS total_refunded_payment_34,
t0.marge AS marge_35,
t0.is_new_organization_prescribed AS is_new_organization_prescribed_36,
t0.is_not_in_prescriber AS is_not_in_prescriber_37,
t0.new_prescriber_legal_name AS new_prescriber_legal_name_38,
t0.new_prescriber_vatid AS new_prescriber_vatid_39,
t0.new_prescriber_user_email AS new_prescriber_user_email_40,
t0.is_attached_to_prescriber AS is_attached_to_prescriber_41,
t0.invoice_type AS invoice_type_42,
t0.reference_stripe AS reference_stripe_43,
t0.new_organization_phone_number AS new_organization_phone_number_44,
t0.payment_deadline AS payment_deadline_45,
t0.is_template AS is_template_46,
t0.unique_key AS unique_key_47,
t0.is_paid_by_stripe AS is_paid_by_stripe_48,
t0.is_pack_invoice AS is_pack_invoice_49,
t0.sync_billing_report AS sync_billing_report_50,
t0.external_id AS external_id_51,
t0.organization_id AS organization_id_52,
t0.user_id AS user_id_53,
t0.new_organization_address_id AS new_organization_address_id_54,
t55.id AS id_56,
t55.created_at AS created_at_57,
t55.updated_at AS updated_at_58,
t55.status AS status_59,
t55.vatrate AS vatrate_60,
t55.price_without_tax AS price_without_tax_61,
t55.object AS object_62,
t55.path AS path_63,
t55.price AS price_64,
t55.new_organization_legal_name AS new_organization_legal_name_65,
t55.new_organization_vatid AS new_organization_vatid_66,
t55.is_new_organization AS is_new_organization_67,
t55.is_prescriber AS is_prescriber_68,
t55.new_organization_user_email AS new_organization_user_email_69,
t55.is_sent AS is_sent_70,
t55.sent_date AS sent_date_71,
t55.sent_to AS sent_to_72,
t55.number AS number_73,
t55.is_canceled AS is_canceled_74,
t55.discount_without_tax AS discount_without_tax_75,
t55.discount_without_tax_percent AS discount_without_tax_percent_76,
t55.invoice_is_generated AS invoice_is_generated_77,
t55.payment_url AS payment_url_78,
t55.is_generate AS is_generate_79,
t55.marge AS marge_80,
t55.new_organization_phone_number AS new_organization_phone_number_81,
t55.is_new_organization_prescribed AS is_new_organization_prescribed_82,
t55.is_not_in_prescriber AS is_not_in_prescriber_83,
t55.new_prescriber_legal_name AS new_prescriber_legal_name_84,
t55.new_prescriber_vatid AS new_prescriber_vatid_85,
t55.new_prescriber_user_email AS new_prescriber_user_email_86,
t55.is_attached_to_prescriber AS is_attached_to_prescriber_87,
t55.is_paid_by_stripe AS is_paid_by_stripe_88,
t55.organization_id AS organization_id_89,
t55.new_organization_address_id AS new_organization_address_id_90,
t55.invoice_id AS invoice_id_91,
t55.prescriber_id AS prescriber_id_92,
t55.new_prescriber_address_id AS new_prescriber_address_id_93,
t55.discount_code_id AS discount_code_id_94,
t0.prescriber_id AS prescriber_id_95,
t0.new_prescriber_address_id AS new_prescriber_address_id_96,
t97.id AS id_98,
t97.created_at AS created_at_99,
t97.updated_at AS updated_at_100,
t97.is_done AS is_done_101,
t97.comment AS comment_102,
t97.npai AS npai_103,
t97.price_without_tax AS price_without_tax_104,
t97.tracking_number AS tracking_number_105,
t97.price AS price_106,
t97.days_keep AS days_keep_107,
t97.organization_id AS organization_id_108,
t97.invoice_id AS invoice_id_109,
t0.invoice_parent_id AS invoice_parent_id_110,
t111.id AS id_112,
t111.created_at AS created_at_113,
t111.updated_at AS updated_at_114,
t111.confirmation_number AS confirmation_number_115,
t111.status AS status_116,
t111.period_start AS period_start_117,
t111.period_end AS period_end_118,
t111.period_length AS period_length_119,
t111.vatrate AS vatrate_120,
t111.price_without_tax AS price_without_tax_121,
t111.object AS object_122,
t111.path AS path_123,
t111.price AS price_124,
t111.payment_recurrence AS payment_recurrence_125,
t111.new_organization_legal_name AS new_organization_legal_name_126,
t111.new_organization_vatid AS new_organization_vatid_127,
t111.is_new_organization AS is_new_organization_128,
t111.is_prescriber AS is_prescriber_129,
t111.total_paid AS total_paid_130,
t111.new_organization_user_email AS new_organization_user_email_131,
t111.is_sent AS is_sent_132,
t111.sent_date AS sent_date_133,
t111.sent_to AS sent_to_134,
t111.number AS number_135,
t111.total_refund AS total_refund_136,
t111.is_canceled AS is_canceled_137,
t111.discount_without_tax AS discount_without_tax_138,
t111.discount_without_tax_percent AS discount_without_tax_percent_139,
t111.is_imported AS is_imported_140,
t111.is_domiciliation AS is_domiciliation_141,
t111.payment_url AS payment_url_142,
t111.reference AS reference_143,
t111.remaining_to_pay AS remaining_to_pay_144,
t111.total_refunded_payment AS total_refunded_payment_145,
t111.marge AS marge_146,
t111.is_new_organization_prescribed AS is_new_organization_prescribed_147,
t111.is_not_in_prescriber AS is_not_in_prescriber_148,
t111.new_prescriber_legal_name AS new_prescriber_legal_name_149,
t111.new_prescriber_vatid AS new_prescriber_vatid_150,
t111.new_prescriber_user_email AS new_prescriber_user_email_151,
t111.is_attached_to_prescriber AS is_attached_to_prescriber_152,
t111.invoice_type AS invoice_type_153,
t111.reference_stripe AS reference_stripe_154,
t111.new_organization_phone_number AS new_organization_phone_number_155,
t111.payment_deadline AS payment_deadline_156,
t111.is_template AS is_template_157,
t111.unique_key AS unique_key_158,
t111.is_paid_by_stripe AS is_paid_by_stripe_159,
t111.is_pack_invoice AS is_pack_invoice_160,
t111.sync_billing_report AS sync_billing_report_161,
t111.external_id AS external_id_162,
t111.organization_id AS organization_id_163,
t111.user_id AS user_id_164,
t111.new_organization_address_id AS new_organization_address_id_165,
t111.prescriber_id AS prescriber_id_166,
t111.new_prescriber_address_id AS new_prescriber_address_id_167,
t111.invoice_parent_id AS invoice_parent_id_168,
t111.discount_code_id AS discount_code_id_169,
t0.discount_code_id AS discount_code_id_170
FROM
invoice t0
LEFT JOIN quote t55 ON t55.invoice_id = t0.id
LEFT JOIN letter_forward t97 ON t97.invoice_id = t0.id
LEFT JOIN invoice t111 ON t111.invoice_parent_id = t0.id
WHERE
t0.discount_code_id = ?
SELECT t0.id AS id_1, t0.created_at AS created_at_2, t0.updated_at AS updated_at_3, t0.confirmation_number AS confirmation_number_4, t0.status AS status_5, t0.period_start AS period_start_6, t0.period_end AS period_end_7, t0.period_length AS period_length_8, t0.vatrate AS vatrate_9, t0.price_without_tax AS price_without_tax_10, t0.object AS object_11, t0.path AS path_12, t0.price AS price_13, t0.payment_recurrence AS payment_recurrence_14, t0.new_organization_legal_name AS new_organization_legal_name_15, t0.new_organization_vatid AS new_organization_vatid_16, t0.is_new_organization AS is_new_organization_17, t0.is_prescriber AS is_prescriber_18, t0.total_paid AS total_paid_19, t0.new_organization_user_email AS new_organization_user_email_20, t0.is_sent AS is_sent_21, t0.sent_date AS sent_date_22, t0.sent_to AS sent_to_23, t0.number AS number_24, t0.total_refund AS total_refund_25, t0.is_canceled AS is_canceled_26, t0.discount_without_tax AS discount_without_tax_27, t0.discount_without_tax_percent AS discount_without_tax_percent_28, t0.is_imported AS is_imported_29, t0.is_domiciliation AS is_domiciliation_30, t0.payment_url AS payment_url_31, t0.reference AS reference_32, t0.remaining_to_pay AS remaining_to_pay_33, t0.total_refunded_payment AS total_refunded_payment_34, t0.marge AS marge_35, t0.is_new_organization_prescribed AS is_new_organization_prescribed_36, t0.is_not_in_prescriber AS is_not_in_prescriber_37, t0.new_prescriber_legal_name AS new_prescriber_legal_name_38, t0.new_prescriber_vatid AS new_prescriber_vatid_39, t0.new_prescriber_user_email AS new_prescriber_user_email_40, t0.is_attached_to_prescriber AS is_attached_to_prescriber_41, t0.invoice_type AS invoice_type_42, t0.reference_stripe AS reference_stripe_43, t0.new_organization_phone_number AS new_organization_phone_number_44, t0.payment_deadline AS payment_deadline_45, t0.is_template AS is_template_46, t0.unique_key AS unique_key_47, t0.is_paid_by_stripe AS is_paid_by_stripe_48, t0.is_pack_invoice AS is_pack_invoice_49, t0.sync_billing_report AS sync_billing_report_50, t0.external_id AS external_id_51, t0.organization_id AS organization_id_52, t0.user_id AS user_id_53, t0.new_organization_address_id AS new_organization_address_id_54, t55.id AS id_56, t55.created_at AS created_at_57, t55.updated_at AS updated_at_58, t55.status AS status_59, t55.vatrate AS vatrate_60, t55.price_without_tax AS price_without_tax_61, t55.object AS object_62, t55.path AS path_63, t55.price AS price_64, t55.new_organization_legal_name AS new_organization_legal_name_65, t55.new_organization_vatid AS new_organization_vatid_66, t55.is_new_organization AS is_new_organization_67, t55.is_prescriber AS is_prescriber_68, t55.new_organization_user_email AS new_organization_user_email_69, t55.is_sent AS is_sent_70, t55.sent_date AS sent_date_71, t55.sent_to AS sent_to_72, t55.number AS number_73, t55.is_canceled AS is_canceled_74, t55.discount_without_tax AS discount_without_tax_75, t55.discount_without_tax_percent AS discount_without_tax_percent_76, t55.invoice_is_generated AS invoice_is_generated_77, t55.payment_url AS payment_url_78, t55.is_generate AS is_generate_79, t55.marge AS marge_80, t55.new_organization_phone_number AS new_organization_phone_number_81, t55.is_new_organization_prescribed AS is_new_organization_prescribed_82, t55.is_not_in_prescriber AS is_not_in_prescriber_83, t55.new_prescriber_legal_name AS new_prescriber_legal_name_84, t55.new_prescriber_vatid AS new_prescriber_vatid_85, t55.new_prescriber_user_email AS new_prescriber_user_email_86, t55.is_attached_to_prescriber AS is_attached_to_prescriber_87, t55.is_paid_by_stripe AS is_paid_by_stripe_88, t55.organization_id AS organization_id_89, t55.new_organization_address_id AS new_organization_address_id_90, t55.invoice_id AS invoice_id_91, t55.prescriber_id AS prescriber_id_92, t55.new_prescriber_address_id AS new_prescriber_address_id_93, t55.discount_code_id AS discount_code_id_94, t0.prescriber_id AS prescriber_id_95, t0.new_prescriber_address_id AS new_prescriber_address_id_96, t97.id AS id_98, t97.created_at AS created_at_99, t97.updated_at AS updated_at_100, t97.is_done AS is_done_101, t97.comment AS comment_102, t97.npai AS npai_103, t97.price_without_tax AS price_without_tax_104, t97.tracking_number AS tracking_number_105, t97.price AS price_106, t97.days_keep AS days_keep_107, t97.organization_id AS organization_id_108, t97.invoice_id AS invoice_id_109, t0.invoice_parent_id AS invoice_parent_id_110, t111.id AS id_112, t111.created_at AS created_at_113, t111.updated_at AS updated_at_114, t111.confirmation_number AS confirmation_number_115, t111.status AS status_116, t111.period_start AS period_start_117, t111.period_end AS period_end_118, t111.period_length AS period_length_119, t111.vatrate AS vatrate_120, t111.price_without_tax AS price_without_tax_121, t111.object AS object_122, t111.path AS path_123, t111.price AS price_124, t111.payment_recurrence AS payment_recurrence_125, t111.new_organization_legal_name AS new_organization_legal_name_126, t111.new_organization_vatid AS new_organization_vatid_127, t111.is_new_organization AS is_new_organization_128, t111.is_prescriber AS is_prescriber_129, t111.total_paid AS total_paid_130, t111.new_organization_user_email AS new_organization_user_email_131, t111.is_sent AS is_sent_132, t111.sent_date AS sent_date_133, t111.sent_to AS sent_to_134, t111.number AS number_135, t111.total_refund AS total_refund_136, t111.is_canceled AS is_canceled_137, t111.discount_without_tax AS discount_without_tax_138, t111.discount_without_tax_percent AS discount_without_tax_percent_139, t111.is_imported AS is_imported_140, t111.is_domiciliation AS is_domiciliation_141, t111.payment_url AS payment_url_142, t111.reference AS reference_143, t111.remaining_to_pay AS remaining_to_pay_144, t111.total_refunded_payment AS total_refunded_payment_145, t111.marge AS marge_146, t111.is_new_organization_prescribed AS is_new_organization_prescribed_147, t111.is_not_in_prescriber AS is_not_in_prescriber_148, t111.new_prescriber_legal_name AS new_prescriber_legal_name_149, t111.new_prescriber_vatid AS new_prescriber_vatid_150, t111.new_prescriber_user_email AS new_prescriber_user_email_151, t111.is_attached_to_prescriber AS is_attached_to_prescriber_152, t111.invoice_type AS invoice_type_153, t111.reference_stripe AS reference_stripe_154, t111.new_organization_phone_number AS new_organization_phone_number_155, t111.payment_deadline AS payment_deadline_156, t111.is_template AS is_template_157, t111.unique_key AS unique_key_158, t111.is_paid_by_stripe AS is_paid_by_stripe_159, t111.is_pack_invoice AS is_pack_invoice_160, t111.sync_billing_report AS sync_billing_report_161, t111.external_id AS external_id_162, t111.organization_id AS organization_id_163, t111.user_id AS user_id_164, t111.new_organization_address_id AS new_organization_address_id_165, t111.prescriber_id AS prescriber_id_166, t111.new_prescriber_address_id AS new_prescriber_address_id_167, t111.invoice_parent_id AS invoice_parent_id_168, t111.discount_code_id AS discount_code_id_169, t0.discount_code_id AS discount_code_id_170 FROM invoice t0 LEFT JOIN quote t55 ON t55.invoice_id = t0.id LEFT JOIN letter_forward t97 ON t97.invoice_id = t0.id LEFT JOIN invoice t111 ON t111.invoice_parent_id = t0.id WHERE t0.discount_code_id = 6;
|
34 |
1.23 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.alternate_name AS alternate_name_3, t0.price_without_tax AS price_without_tax_4, t0.description AS description_5, t0.active AS active_6, t0.meta_description AS meta_description_7, t0.meta_title AS meta_title_8, t0.url AS url_9, t0.created_at AS created_at_10, t0.subscription_type AS subscription_type_11, t0.unique_key AS unique_key_12, t0.is_displayed AS is_displayed_13, t0.is_archived AS is_archived_14, t0.is_subscription_component AS is_subscription_component_15, t0.category_id AS category_id_16, t0.category_for_billing_report_id AS category_for_billing_report_id_17 FROM product t0 INNER JOIN discount_code_product ON t0.id = discount_code_product.product_id WHERE discount_code_product.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.alternate_name AS alternate_name_3, t0.price_without_tax AS price_without_tax_4, t0.description AS description_5, t0.active AS active_6, t0.meta_description AS meta_description_7, t0.meta_title AS meta_title_8, t0.url AS url_9, t0.created_at AS created_at_10, t0.subscription_type AS subscription_type_11, t0.unique_key AS unique_key_12, t0.is_displayed AS is_displayed_13, t0.is_archived AS is_archived_14, t0.is_subscription_component AS is_subscription_component_15, t0.category_id AS category_id_16, t0.category_for_billing_report_id AS category_for_billing_report_id_17 FROM product t0 INNER JOIN discount_code_product ON t0.id = discount_code_product.product_id WHERE discount_code_product.discount_code_id = 6;
|
35 |
1.16 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.price AS price_3, t0.focus AS focus_4, t0.price_without_tax AS price_without_tax_5, t0.vat_rate AS vat_rate_6, t0.discount AS discount_7, t0.unique_key AS unique_key_8, t0.automation AS automation_9, t0.is_published AS is_published_10, t0.is_subscription AS is_subscription_11, t0.published_name AS published_name_12, t0.is_published_pack AS is_published_pack_13, t0.type AS type_14, t0.legal_status AS legal_status_15, t0.created_at AS created_at_16, t0.association_pack_id AS association_pack_id_17, t0.category_id AS category_id_18, t0.recurring_invoice_id AS recurring_invoice_id_19, t0.initial_invoice_id AS initial_invoice_id_20, t0.subscription_id AS subscription_id_21 FROM pack t0 INNER JOIN discount_code_pack ON t0.id = discount_code_pack.pack_id WHERE discount_code_pack.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.price AS price_3, t0.focus AS focus_4, t0.price_without_tax AS price_without_tax_5, t0.vat_rate AS vat_rate_6, t0.discount AS discount_7, t0.unique_key AS unique_key_8, t0.automation AS automation_9, t0.is_published AS is_published_10, t0.is_subscription AS is_subscription_11, t0.published_name AS published_name_12, t0.is_published_pack AS is_published_pack_13, t0.type AS type_14, t0.legal_status AS legal_status_15, t0.created_at AS created_at_16, t0.association_pack_id AS association_pack_id_17, t0.category_id AS category_id_18, t0.recurring_invoice_id AS recurring_invoice_id_19, t0.initial_invoice_id AS initial_invoice_id_20, t0.subscription_id AS subscription_id_21 FROM pack t0 INNER JOIN discount_code_pack ON t0.id = discount_code_pack.pack_id WHERE discount_code_pack.discount_code_id = 7;
|
36 |
1.03 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.unique_key AS unique_key_3, t0.security_deposit AS security_deposit_4, t0.is_active AS is_active_5, t0.authorized_frequency AS authorized_frequency_6, t0.created_at AS created_at_7, t0.update_at AS update_at_8, t0.price_without_tax AS price_without_tax_9, t0.product_id AS product_id_10 FROM subscription_model t0 INNER JOIN discount_code_subscription_model ON t0.id = discount_code_subscription_model.subscription_model_id WHERE discount_code_subscription_model.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.unique_key AS unique_key_3, t0.security_deposit AS security_deposit_4, t0.is_active AS is_active_5, t0.authorized_frequency AS authorized_frequency_6, t0.created_at AS created_at_7, t0.update_at AS update_at_8, t0.price_without_tax AS price_without_tax_9, t0.product_id AS product_id_10 FROM subscription_model t0 INNER JOIN discount_code_subscription_model ON t0.id = discount_code_subscription_model.subscription_model_id WHERE discount_code_subscription_model.discount_code_id = 7;
|
37 |
1.16 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.opening_hours AS opening_hours_3, t0.currencies_accepted AS currencies_accepted_4, t0.payment_accepted_type AS payment_accepted_type_5, t0.price_range AS price_range_6, t0.aggregate_rating AS aggregate_rating_7, t0.created_at AS created_at_8, t0.prefectoral_approval_number AS prefectoral_approval_number_9, t0.status AS status_10, t0.cedex AS cedex_11, t0.is_exportable_ibml AS is_exportable_ibml_12, t0.postal_address_id AS postal_address_id_13, t0.sector_id AS sector_id_14 FROM store t0 INNER JOIN discount_code_store ON t0.id = discount_code_store.store_id WHERE discount_code_store.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.opening_hours AS opening_hours_3, t0.currencies_accepted AS currencies_accepted_4, t0.payment_accepted_type AS payment_accepted_type_5, t0.price_range AS price_range_6, t0.aggregate_rating AS aggregate_rating_7, t0.created_at AS created_at_8, t0.prefectoral_approval_number AS prefectoral_approval_number_9, t0.status AS status_10, t0.cedex AS cedex_11, t0.is_exportable_ibml AS is_exportable_ibml_12, t0.postal_address_id AS postal_address_id_13, t0.sector_id AS sector_id_14 FROM store t0 INNER JOIN discount_code_store ON t0.id = discount_code_store.store_id WHERE discount_code_store.discount_code_id = 7;
|
38 |
2.94 ms |
SELECT p0_.id AS id_0, p0_.name AS name_1, p0_.alternate_name AS alternate_name_2, p0_.price_without_tax AS price_without_tax_3, p0_.description AS description_4, p0_.active AS active_5, p0_.meta_description AS meta_description_6, p0_.meta_title AS meta_title_7, p0_.url AS url_8, p0_.created_at AS created_at_9, p0_.subscription_type AS subscription_type_10, p0_.unique_key AS unique_key_11, p0_.is_displayed AS is_displayed_12, p0_.is_archived AS is_archived_13, p0_.is_subscription_component AS is_subscription_component_14, p0_.category_id AS category_id_15, p0_.category_for_billing_report_id AS category_for_billing_report_id_16 FROM product p0_ WHERE p0_.name LIKE ? AND p0_.active = 0
Parameters: [
"%75008%"
]
SELECT p0_.id AS id_0, p0_.name AS name_1, p0_.alternate_name AS alternate_name_2, p0_.price_without_tax AS price_without_tax_3, p0_.description AS description_4, p0_.active AS active_5, p0_.meta_description AS meta_description_6, p0_.meta_title AS meta_title_7, p0_.url AS url_8, p0_.created_at AS created_at_9, p0_.subscription_type AS subscription_type_10, p0_.unique_key AS unique_key_11, p0_.is_displayed AS is_displayed_12, p0_.is_archived AS is_archived_13, p0_.is_subscription_component AS is_subscription_component_14, p0_.category_id AS category_id_15, p0_.category_for_billing_report_id AS category_for_billing_report_id_16 FROM product p0_ WHERE p0_.name LIKE '%75008%' AND p0_.active = 0;
|
39 |
1.46 ms |
SELECT p0_.id AS id_0, p0_.name AS name_1, p0_.alternate_name AS alternate_name_2, p0_.price_without_tax AS price_without_tax_3, p0_.description AS description_4, p0_.active AS active_5, p0_.meta_description AS meta_description_6, p0_.meta_title AS meta_title_7, p0_.url AS url_8, p0_.created_at AS created_at_9, p0_.subscription_type AS subscription_type_10, p0_.unique_key AS unique_key_11, p0_.is_displayed AS is_displayed_12, p0_.is_archived AS is_archived_13, p0_.is_subscription_component AS is_subscription_component_14, p0_.category_id AS category_id_15, p0_.category_for_billing_report_id AS category_for_billing_report_id_16 FROM product p0_ WHERE p0_.name LIKE ? AND p0_.active = 0
Parameters: [
"%Strasbourg%"
]
SELECT p0_.id AS id_0, p0_.name AS name_1, p0_.alternate_name AS alternate_name_2, p0_.price_without_tax AS price_without_tax_3, p0_.description AS description_4, p0_.active AS active_5, p0_.meta_description AS meta_description_6, p0_.meta_title AS meta_title_7, p0_.url AS url_8, p0_.created_at AS created_at_9, p0_.subscription_type AS subscription_type_10, p0_.unique_key AS unique_key_11, p0_.is_displayed AS is_displayed_12, p0_.is_archived AS is_archived_13, p0_.is_subscription_component AS is_subscription_component_14, p0_.category_id AS category_id_15, p0_.category_for_billing_report_id AS category_for_billing_report_id_16 FROM product p0_ WHERE p0_.name LIKE '%Strasbourg%' AND p0_.active = 0;
|
40 |
1.72 ms |
SELECT t0.id AS id_1, t0.created_at AS created_at_2, t0.updated_at AS updated_at_3, t0.confirmation_number AS confirmation_number_4, t0.status AS status_5, t0.period_start AS period_start_6, t0.period_end AS period_end_7, t0.period_length AS period_length_8, t0.vatrate AS vatrate_9, t0.price_without_tax AS price_without_tax_10, t0.object AS object_11, t0.path AS path_12, t0.price AS price_13, t0.payment_recurrence AS payment_recurrence_14, t0.new_organization_legal_name AS new_organization_legal_name_15, t0.new_organization_vatid AS new_organization_vatid_16, t0.is_new_organization AS is_new_organization_17, t0.is_prescriber AS is_prescriber_18, t0.total_paid AS total_paid_19, t0.new_organization_user_email AS new_organization_user_email_20, t0.is_sent AS is_sent_21, t0.sent_date AS sent_date_22, t0.sent_to AS sent_to_23, t0.number AS number_24, t0.total_refund AS total_refund_25, t0.is_canceled AS is_canceled_26, t0.discount_without_tax AS discount_without_tax_27, t0.discount_without_tax_percent AS discount_without_tax_percent_28, t0.is_imported AS is_imported_29, t0.is_domiciliation AS is_domiciliation_30, t0.payment_url AS payment_url_31, t0.reference AS reference_32, t0.remaining_to_pay AS remaining_to_pay_33, t0.total_refunded_payment AS total_refunded_payment_34, t0.marge AS marge_35, t0.is_new_organization_prescribed AS is_new_organization_prescribed_36, t0.is_not_in_prescriber AS is_not_in_prescriber_37, t0.new_prescriber_legal_name AS new_prescriber_legal_name_38, t0.new_prescriber_vatid AS new_prescriber_vatid_39, t0.new_prescriber_user_email AS new_prescriber_user_email_40, t0.is_attached_to_prescriber AS is_attached_to_prescriber_41, t0.invoice_type AS invoice_type_42, t0.reference_stripe AS reference_stripe_43, t0.new_organization_phone_number AS new_organization_phone_number_44, t0.payment_deadline AS payment_deadline_45, t0.is_template AS is_template_46, t0.unique_key AS unique_key_47, t0.is_paid_by_stripe AS is_paid_by_stripe_48, t0.is_pack_invoice AS is_pack_invoice_49, t0.sync_billing_report AS sync_billing_report_50, t0.external_id AS external_id_51, t0.organization_id AS organization_id_52, t0.user_id AS user_id_53, t0.new_organization_address_id AS new_organization_address_id_54, t55.id AS id_56, t55.created_at AS created_at_57, t55.updated_at AS updated_at_58, t55.status AS status_59, t55.vatrate AS vatrate_60, t55.price_without_tax AS price_without_tax_61, t55.object AS object_62, t55.path AS path_63, t55.price AS price_64, t55.new_organization_legal_name AS new_organization_legal_name_65, t55.new_organization_vatid AS new_organization_vatid_66, t55.is_new_organization AS is_new_organization_67, t55.is_prescriber AS is_prescriber_68, t55.new_organization_user_email AS new_organization_user_email_69, t55.is_sent AS is_sent_70, t55.sent_date AS sent_date_71, t55.sent_to AS sent_to_72, t55.number AS number_73, t55.is_canceled AS is_canceled_74, t55.discount_without_tax AS discount_without_tax_75, t55.discount_without_tax_percent AS discount_without_tax_percent_76, t55.invoice_is_generated AS invoice_is_generated_77, t55.payment_url AS payment_url_78, t55.is_generate AS is_generate_79, t55.marge AS marge_80, t55.new_organization_phone_number AS new_organization_phone_number_81, t55.is_new_organization_prescribed AS is_new_organization_prescribed_82, t55.is_not_in_prescriber AS is_not_in_prescriber_83, t55.new_prescriber_legal_name AS new_prescriber_legal_name_84, t55.new_prescriber_vatid AS new_prescriber_vatid_85, t55.new_prescriber_user_email AS new_prescriber_user_email_86, t55.is_attached_to_prescriber AS is_attached_to_prescriber_87, t55.is_paid_by_stripe AS is_paid_by_stripe_88, t55.organization_id AS organization_id_89, t55.new_organization_address_id AS new_organization_address_id_90, t55.invoice_id AS invoice_id_91, t55.prescriber_id AS prescriber_id_92, t55.new_prescriber_address_id AS new_prescriber_address_id_93, t55.discount_code_id AS discount_code_id_94, t0.prescriber_id AS prescriber_id_95, t0.new_prescriber_address_id AS new_prescriber_address_id_96, t97.id AS id_98, t97.created_at AS created_at_99, t97.updated_at AS updated_at_100, t97.is_done AS is_done_101, t97.comment AS comment_102, t97.npai AS npai_103, t97.price_without_tax AS price_without_tax_104, t97.tracking_number AS tracking_number_105, t97.price AS price_106, t97.days_keep AS days_keep_107, t97.organization_id AS organization_id_108, t97.invoice_id AS invoice_id_109, t0.invoice_parent_id AS invoice_parent_id_110, t111.id AS id_112, t111.created_at AS created_at_113, t111.updated_at AS updated_at_114, t111.confirmation_number AS confirmation_number_115, t111.status AS status_116, t111.period_start AS period_start_117, t111.period_end AS period_end_118, t111.period_length AS period_length_119, t111.vatrate AS vatrate_120, t111.price_without_tax AS price_without_tax_121, t111.object AS object_122, t111.path AS path_123, t111.price AS price_124, t111.payment_recurrence AS payment_recurrence_125, t111.new_organization_legal_name AS new_organization_legal_name_126, t111.new_organization_vatid AS new_organization_vatid_127, t111.is_new_organization AS is_new_organization_128, t111.is_prescriber AS is_prescriber_129, t111.total_paid AS total_paid_130, t111.new_organization_user_email AS new_organization_user_email_131, t111.is_sent AS is_sent_132, t111.sent_date AS sent_date_133, t111.sent_to AS sent_to_134, t111.number AS number_135, t111.total_refund AS total_refund_136, t111.is_canceled AS is_canceled_137, t111.discount_without_tax AS discount_without_tax_138, t111.discount_without_tax_percent AS discount_without_tax_percent_139, t111.is_imported AS is_imported_140, t111.is_domiciliation AS is_domiciliation_141, t111.payment_url AS payment_url_142, t111.reference AS reference_143, t111.remaining_to_pay AS remaining_to_pay_144, t111.total_refunded_payment AS total_refunded_payment_145, t111.marge AS marge_146, t111.is_new_organization_prescribed AS is_new_organization_prescribed_147, t111.is_not_in_prescriber AS is_not_in_prescriber_148, t111.new_prescriber_legal_name AS new_prescriber_legal_name_149, t111.new_prescriber_vatid AS new_prescriber_vatid_150, t111.new_prescriber_user_email AS new_prescriber_user_email_151, t111.is_attached_to_prescriber AS is_attached_to_prescriber_152, t111.invoice_type AS invoice_type_153, t111.reference_stripe AS reference_stripe_154, t111.new_organization_phone_number AS new_organization_phone_number_155, t111.payment_deadline AS payment_deadline_156, t111.is_template AS is_template_157, t111.unique_key AS unique_key_158, t111.is_paid_by_stripe AS is_paid_by_stripe_159, t111.is_pack_invoice AS is_pack_invoice_160, t111.sync_billing_report AS sync_billing_report_161, t111.external_id AS external_id_162, t111.organization_id AS organization_id_163, t111.user_id AS user_id_164, t111.new_organization_address_id AS new_organization_address_id_165, t111.prescriber_id AS prescriber_id_166, t111.new_prescriber_address_id AS new_prescriber_address_id_167, t111.invoice_parent_id AS invoice_parent_id_168, t111.discount_code_id AS discount_code_id_169, t0.discount_code_id AS discount_code_id_170 FROM invoice t0 LEFT JOIN quote t55 ON t55.invoice_id = t0.id LEFT JOIN letter_forward t97 ON t97.invoice_id = t0.id LEFT JOIN invoice t111 ON t111.invoice_parent_id = t0.id WHERE t0.discount_code_id = ?
SELECT
t0.id AS id_1,
t0.created_at AS created_at_2,
t0.updated_at AS updated_at_3,
t0.confirmation_number AS confirmation_number_4,
t0.status AS status_5,
t0.period_start AS period_start_6,
t0.period_end AS period_end_7,
t0.period_length AS period_length_8,
t0.vatrate AS vatrate_9,
t0.price_without_tax AS price_without_tax_10,
t0.object AS object_11,
t0.path AS path_12,
t0.price AS price_13,
t0.payment_recurrence AS payment_recurrence_14,
t0.new_organization_legal_name AS new_organization_legal_name_15,
t0.new_organization_vatid AS new_organization_vatid_16,
t0.is_new_organization AS is_new_organization_17,
t0.is_prescriber AS is_prescriber_18,
t0.total_paid AS total_paid_19,
t0.new_organization_user_email AS new_organization_user_email_20,
t0.is_sent AS is_sent_21,
t0.sent_date AS sent_date_22,
t0.sent_to AS sent_to_23,
t0.number AS number_24,
t0.total_refund AS total_refund_25,
t0.is_canceled AS is_canceled_26,
t0.discount_without_tax AS discount_without_tax_27,
t0.discount_without_tax_percent AS discount_without_tax_percent_28,
t0.is_imported AS is_imported_29,
t0.is_domiciliation AS is_domiciliation_30,
t0.payment_url AS payment_url_31,
t0.reference AS reference_32,
t0.remaining_to_pay AS remaining_to_pay_33,
t0.total_refunded_payment AS total_refunded_payment_34,
t0.marge AS marge_35,
t0.is_new_organization_prescribed AS is_new_organization_prescribed_36,
t0.is_not_in_prescriber AS is_not_in_prescriber_37,
t0.new_prescriber_legal_name AS new_prescriber_legal_name_38,
t0.new_prescriber_vatid AS new_prescriber_vatid_39,
t0.new_prescriber_user_email AS new_prescriber_user_email_40,
t0.is_attached_to_prescriber AS is_attached_to_prescriber_41,
t0.invoice_type AS invoice_type_42,
t0.reference_stripe AS reference_stripe_43,
t0.new_organization_phone_number AS new_organization_phone_number_44,
t0.payment_deadline AS payment_deadline_45,
t0.is_template AS is_template_46,
t0.unique_key AS unique_key_47,
t0.is_paid_by_stripe AS is_paid_by_stripe_48,
t0.is_pack_invoice AS is_pack_invoice_49,
t0.sync_billing_report AS sync_billing_report_50,
t0.external_id AS external_id_51,
t0.organization_id AS organization_id_52,
t0.user_id AS user_id_53,
t0.new_organization_address_id AS new_organization_address_id_54,
t55.id AS id_56,
t55.created_at AS created_at_57,
t55.updated_at AS updated_at_58,
t55.status AS status_59,
t55.vatrate AS vatrate_60,
t55.price_without_tax AS price_without_tax_61,
t55.object AS object_62,
t55.path AS path_63,
t55.price AS price_64,
t55.new_organization_legal_name AS new_organization_legal_name_65,
t55.new_organization_vatid AS new_organization_vatid_66,
t55.is_new_organization AS is_new_organization_67,
t55.is_prescriber AS is_prescriber_68,
t55.new_organization_user_email AS new_organization_user_email_69,
t55.is_sent AS is_sent_70,
t55.sent_date AS sent_date_71,
t55.sent_to AS sent_to_72,
t55.number AS number_73,
t55.is_canceled AS is_canceled_74,
t55.discount_without_tax AS discount_without_tax_75,
t55.discount_without_tax_percent AS discount_without_tax_percent_76,
t55.invoice_is_generated AS invoice_is_generated_77,
t55.payment_url AS payment_url_78,
t55.is_generate AS is_generate_79,
t55.marge AS marge_80,
t55.new_organization_phone_number AS new_organization_phone_number_81,
t55.is_new_organization_prescribed AS is_new_organization_prescribed_82,
t55.is_not_in_prescriber AS is_not_in_prescriber_83,
t55.new_prescriber_legal_name AS new_prescriber_legal_name_84,
t55.new_prescriber_vatid AS new_prescriber_vatid_85,
t55.new_prescriber_user_email AS new_prescriber_user_email_86,
t55.is_attached_to_prescriber AS is_attached_to_prescriber_87,
t55.is_paid_by_stripe AS is_paid_by_stripe_88,
t55.organization_id AS organization_id_89,
t55.new_organization_address_id AS new_organization_address_id_90,
t55.invoice_id AS invoice_id_91,
t55.prescriber_id AS prescriber_id_92,
t55.new_prescriber_address_id AS new_prescriber_address_id_93,
t55.discount_code_id AS discount_code_id_94,
t0.prescriber_id AS prescriber_id_95,
t0.new_prescriber_address_id AS new_prescriber_address_id_96,
t97.id AS id_98,
t97.created_at AS created_at_99,
t97.updated_at AS updated_at_100,
t97.is_done AS is_done_101,
t97.comment AS comment_102,
t97.npai AS npai_103,
t97.price_without_tax AS price_without_tax_104,
t97.tracking_number AS tracking_number_105,
t97.price AS price_106,
t97.days_keep AS days_keep_107,
t97.organization_id AS organization_id_108,
t97.invoice_id AS invoice_id_109,
t0.invoice_parent_id AS invoice_parent_id_110,
t111.id AS id_112,
t111.created_at AS created_at_113,
t111.updated_at AS updated_at_114,
t111.confirmation_number AS confirmation_number_115,
t111.status AS status_116,
t111.period_start AS period_start_117,
t111.period_end AS period_end_118,
t111.period_length AS period_length_119,
t111.vatrate AS vatrate_120,
t111.price_without_tax AS price_without_tax_121,
t111.object AS object_122,
t111.path AS path_123,
t111.price AS price_124,
t111.payment_recurrence AS payment_recurrence_125,
t111.new_organization_legal_name AS new_organization_legal_name_126,
t111.new_organization_vatid AS new_organization_vatid_127,
t111.is_new_organization AS is_new_organization_128,
t111.is_prescriber AS is_prescriber_129,
t111.total_paid AS total_paid_130,
t111.new_organization_user_email AS new_organization_user_email_131,
t111.is_sent AS is_sent_132,
t111.sent_date AS sent_date_133,
t111.sent_to AS sent_to_134,
t111.number AS number_135,
t111.total_refund AS total_refund_136,
t111.is_canceled AS is_canceled_137,
t111.discount_without_tax AS discount_without_tax_138,
t111.discount_without_tax_percent AS discount_without_tax_percent_139,
t111.is_imported AS is_imported_140,
t111.is_domiciliation AS is_domiciliation_141,
t111.payment_url AS payment_url_142,
t111.reference AS reference_143,
t111.remaining_to_pay AS remaining_to_pay_144,
t111.total_refunded_payment AS total_refunded_payment_145,
t111.marge AS marge_146,
t111.is_new_organization_prescribed AS is_new_organization_prescribed_147,
t111.is_not_in_prescriber AS is_not_in_prescriber_148,
t111.new_prescriber_legal_name AS new_prescriber_legal_name_149,
t111.new_prescriber_vatid AS new_prescriber_vatid_150,
t111.new_prescriber_user_email AS new_prescriber_user_email_151,
t111.is_attached_to_prescriber AS is_attached_to_prescriber_152,
t111.invoice_type AS invoice_type_153,
t111.reference_stripe AS reference_stripe_154,
t111.new_organization_phone_number AS new_organization_phone_number_155,
t111.payment_deadline AS payment_deadline_156,
t111.is_template AS is_template_157,
t111.unique_key AS unique_key_158,
t111.is_paid_by_stripe AS is_paid_by_stripe_159,
t111.is_pack_invoice AS is_pack_invoice_160,
t111.sync_billing_report AS sync_billing_report_161,
t111.external_id AS external_id_162,
t111.organization_id AS organization_id_163,
t111.user_id AS user_id_164,
t111.new_organization_address_id AS new_organization_address_id_165,
t111.prescriber_id AS prescriber_id_166,
t111.new_prescriber_address_id AS new_prescriber_address_id_167,
t111.invoice_parent_id AS invoice_parent_id_168,
t111.discount_code_id AS discount_code_id_169,
t0.discount_code_id AS discount_code_id_170
FROM
invoice t0
LEFT JOIN quote t55 ON t55.invoice_id = t0.id
LEFT JOIN letter_forward t97 ON t97.invoice_id = t0.id
LEFT JOIN invoice t111 ON t111.invoice_parent_id = t0.id
WHERE
t0.discount_code_id = ?
SELECT t0.id AS id_1, t0.created_at AS created_at_2, t0.updated_at AS updated_at_3, t0.confirmation_number AS confirmation_number_4, t0.status AS status_5, t0.period_start AS period_start_6, t0.period_end AS period_end_7, t0.period_length AS period_length_8, t0.vatrate AS vatrate_9, t0.price_without_tax AS price_without_tax_10, t0.object AS object_11, t0.path AS path_12, t0.price AS price_13, t0.payment_recurrence AS payment_recurrence_14, t0.new_organization_legal_name AS new_organization_legal_name_15, t0.new_organization_vatid AS new_organization_vatid_16, t0.is_new_organization AS is_new_organization_17, t0.is_prescriber AS is_prescriber_18, t0.total_paid AS total_paid_19, t0.new_organization_user_email AS new_organization_user_email_20, t0.is_sent AS is_sent_21, t0.sent_date AS sent_date_22, t0.sent_to AS sent_to_23, t0.number AS number_24, t0.total_refund AS total_refund_25, t0.is_canceled AS is_canceled_26, t0.discount_without_tax AS discount_without_tax_27, t0.discount_without_tax_percent AS discount_without_tax_percent_28, t0.is_imported AS is_imported_29, t0.is_domiciliation AS is_domiciliation_30, t0.payment_url AS payment_url_31, t0.reference AS reference_32, t0.remaining_to_pay AS remaining_to_pay_33, t0.total_refunded_payment AS total_refunded_payment_34, t0.marge AS marge_35, t0.is_new_organization_prescribed AS is_new_organization_prescribed_36, t0.is_not_in_prescriber AS is_not_in_prescriber_37, t0.new_prescriber_legal_name AS new_prescriber_legal_name_38, t0.new_prescriber_vatid AS new_prescriber_vatid_39, t0.new_prescriber_user_email AS new_prescriber_user_email_40, t0.is_attached_to_prescriber AS is_attached_to_prescriber_41, t0.invoice_type AS invoice_type_42, t0.reference_stripe AS reference_stripe_43, t0.new_organization_phone_number AS new_organization_phone_number_44, t0.payment_deadline AS payment_deadline_45, t0.is_template AS is_template_46, t0.unique_key AS unique_key_47, t0.is_paid_by_stripe AS is_paid_by_stripe_48, t0.is_pack_invoice AS is_pack_invoice_49, t0.sync_billing_report AS sync_billing_report_50, t0.external_id AS external_id_51, t0.organization_id AS organization_id_52, t0.user_id AS user_id_53, t0.new_organization_address_id AS new_organization_address_id_54, t55.id AS id_56, t55.created_at AS created_at_57, t55.updated_at AS updated_at_58, t55.status AS status_59, t55.vatrate AS vatrate_60, t55.price_without_tax AS price_without_tax_61, t55.object AS object_62, t55.path AS path_63, t55.price AS price_64, t55.new_organization_legal_name AS new_organization_legal_name_65, t55.new_organization_vatid AS new_organization_vatid_66, t55.is_new_organization AS is_new_organization_67, t55.is_prescriber AS is_prescriber_68, t55.new_organization_user_email AS new_organization_user_email_69, t55.is_sent AS is_sent_70, t55.sent_date AS sent_date_71, t55.sent_to AS sent_to_72, t55.number AS number_73, t55.is_canceled AS is_canceled_74, t55.discount_without_tax AS discount_without_tax_75, t55.discount_without_tax_percent AS discount_without_tax_percent_76, t55.invoice_is_generated AS invoice_is_generated_77, t55.payment_url AS payment_url_78, t55.is_generate AS is_generate_79, t55.marge AS marge_80, t55.new_organization_phone_number AS new_organization_phone_number_81, t55.is_new_organization_prescribed AS is_new_organization_prescribed_82, t55.is_not_in_prescriber AS is_not_in_prescriber_83, t55.new_prescriber_legal_name AS new_prescriber_legal_name_84, t55.new_prescriber_vatid AS new_prescriber_vatid_85, t55.new_prescriber_user_email AS new_prescriber_user_email_86, t55.is_attached_to_prescriber AS is_attached_to_prescriber_87, t55.is_paid_by_stripe AS is_paid_by_stripe_88, t55.organization_id AS organization_id_89, t55.new_organization_address_id AS new_organization_address_id_90, t55.invoice_id AS invoice_id_91, t55.prescriber_id AS prescriber_id_92, t55.new_prescriber_address_id AS new_prescriber_address_id_93, t55.discount_code_id AS discount_code_id_94, t0.prescriber_id AS prescriber_id_95, t0.new_prescriber_address_id AS new_prescriber_address_id_96, t97.id AS id_98, t97.created_at AS created_at_99, t97.updated_at AS updated_at_100, t97.is_done AS is_done_101, t97.comment AS comment_102, t97.npai AS npai_103, t97.price_without_tax AS price_without_tax_104, t97.tracking_number AS tracking_number_105, t97.price AS price_106, t97.days_keep AS days_keep_107, t97.organization_id AS organization_id_108, t97.invoice_id AS invoice_id_109, t0.invoice_parent_id AS invoice_parent_id_110, t111.id AS id_112, t111.created_at AS created_at_113, t111.updated_at AS updated_at_114, t111.confirmation_number AS confirmation_number_115, t111.status AS status_116, t111.period_start AS period_start_117, t111.period_end AS period_end_118, t111.period_length AS period_length_119, t111.vatrate AS vatrate_120, t111.price_without_tax AS price_without_tax_121, t111.object AS object_122, t111.path AS path_123, t111.price AS price_124, t111.payment_recurrence AS payment_recurrence_125, t111.new_organization_legal_name AS new_organization_legal_name_126, t111.new_organization_vatid AS new_organization_vatid_127, t111.is_new_organization AS is_new_organization_128, t111.is_prescriber AS is_prescriber_129, t111.total_paid AS total_paid_130, t111.new_organization_user_email AS new_organization_user_email_131, t111.is_sent AS is_sent_132, t111.sent_date AS sent_date_133, t111.sent_to AS sent_to_134, t111.number AS number_135, t111.total_refund AS total_refund_136, t111.is_canceled AS is_canceled_137, t111.discount_without_tax AS discount_without_tax_138, t111.discount_without_tax_percent AS discount_without_tax_percent_139, t111.is_imported AS is_imported_140, t111.is_domiciliation AS is_domiciliation_141, t111.payment_url AS payment_url_142, t111.reference AS reference_143, t111.remaining_to_pay AS remaining_to_pay_144, t111.total_refunded_payment AS total_refunded_payment_145, t111.marge AS marge_146, t111.is_new_organization_prescribed AS is_new_organization_prescribed_147, t111.is_not_in_prescriber AS is_not_in_prescriber_148, t111.new_prescriber_legal_name AS new_prescriber_legal_name_149, t111.new_prescriber_vatid AS new_prescriber_vatid_150, t111.new_prescriber_user_email AS new_prescriber_user_email_151, t111.is_attached_to_prescriber AS is_attached_to_prescriber_152, t111.invoice_type AS invoice_type_153, t111.reference_stripe AS reference_stripe_154, t111.new_organization_phone_number AS new_organization_phone_number_155, t111.payment_deadline AS payment_deadline_156, t111.is_template AS is_template_157, t111.unique_key AS unique_key_158, t111.is_paid_by_stripe AS is_paid_by_stripe_159, t111.is_pack_invoice AS is_pack_invoice_160, t111.sync_billing_report AS sync_billing_report_161, t111.external_id AS external_id_162, t111.organization_id AS organization_id_163, t111.user_id AS user_id_164, t111.new_organization_address_id AS new_organization_address_id_165, t111.prescriber_id AS prescriber_id_166, t111.new_prescriber_address_id AS new_prescriber_address_id_167, t111.invoice_parent_id AS invoice_parent_id_168, t111.discount_code_id AS discount_code_id_169, t0.discount_code_id AS discount_code_id_170 FROM invoice t0 LEFT JOIN quote t55 ON t55.invoice_id = t0.id LEFT JOIN letter_forward t97 ON t97.invoice_id = t0.id LEFT JOIN invoice t111 ON t111.invoice_parent_id = t0.id WHERE t0.discount_code_id = 7;
|
41 |
1.03 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.alternate_name AS alternate_name_3, t0.price_without_tax AS price_without_tax_4, t0.description AS description_5, t0.active AS active_6, t0.meta_description AS meta_description_7, t0.meta_title AS meta_title_8, t0.url AS url_9, t0.created_at AS created_at_10, t0.subscription_type AS subscription_type_11, t0.unique_key AS unique_key_12, t0.is_displayed AS is_displayed_13, t0.is_archived AS is_archived_14, t0.is_subscription_component AS is_subscription_component_15, t0.category_id AS category_id_16, t0.category_for_billing_report_id AS category_for_billing_report_id_17 FROM product t0 INNER JOIN discount_code_product ON t0.id = discount_code_product.product_id WHERE discount_code_product.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.alternate_name AS alternate_name_3, t0.price_without_tax AS price_without_tax_4, t0.description AS description_5, t0.active AS active_6, t0.meta_description AS meta_description_7, t0.meta_title AS meta_title_8, t0.url AS url_9, t0.created_at AS created_at_10, t0.subscription_type AS subscription_type_11, t0.unique_key AS unique_key_12, t0.is_displayed AS is_displayed_13, t0.is_archived AS is_archived_14, t0.is_subscription_component AS is_subscription_component_15, t0.category_id AS category_id_16, t0.category_for_billing_report_id AS category_for_billing_report_id_17 FROM product t0 INNER JOIN discount_code_product ON t0.id = discount_code_product.product_id WHERE discount_code_product.discount_code_id = 7;
|
42 |
4.90 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.price AS price_3, t0.focus AS focus_4, t0.price_without_tax AS price_without_tax_5, t0.vat_rate AS vat_rate_6, t0.discount AS discount_7, t0.unique_key AS unique_key_8, t0.automation AS automation_9, t0.is_published AS is_published_10, t0.is_subscription AS is_subscription_11, t0.published_name AS published_name_12, t0.is_published_pack AS is_published_pack_13, t0.type AS type_14, t0.legal_status AS legal_status_15, t0.created_at AS created_at_16, t0.association_pack_id AS association_pack_id_17, t0.category_id AS category_id_18, t0.recurring_invoice_id AS recurring_invoice_id_19, t0.initial_invoice_id AS initial_invoice_id_20, t0.subscription_id AS subscription_id_21 FROM pack t0 INNER JOIN discount_code_pack ON t0.id = discount_code_pack.pack_id WHERE discount_code_pack.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.price AS price_3, t0.focus AS focus_4, t0.price_without_tax AS price_without_tax_5, t0.vat_rate AS vat_rate_6, t0.discount AS discount_7, t0.unique_key AS unique_key_8, t0.automation AS automation_9, t0.is_published AS is_published_10, t0.is_subscription AS is_subscription_11, t0.published_name AS published_name_12, t0.is_published_pack AS is_published_pack_13, t0.type AS type_14, t0.legal_status AS legal_status_15, t0.created_at AS created_at_16, t0.association_pack_id AS association_pack_id_17, t0.category_id AS category_id_18, t0.recurring_invoice_id AS recurring_invoice_id_19, t0.initial_invoice_id AS initial_invoice_id_20, t0.subscription_id AS subscription_id_21 FROM pack t0 INNER JOIN discount_code_pack ON t0.id = discount_code_pack.pack_id WHERE discount_code_pack.discount_code_id = 8;
|
43 |
1.13 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.unique_key AS unique_key_3, t0.security_deposit AS security_deposit_4, t0.is_active AS is_active_5, t0.authorized_frequency AS authorized_frequency_6, t0.created_at AS created_at_7, t0.update_at AS update_at_8, t0.price_without_tax AS price_without_tax_9, t0.product_id AS product_id_10 FROM subscription_model t0 INNER JOIN discount_code_subscription_model ON t0.id = discount_code_subscription_model.subscription_model_id WHERE discount_code_subscription_model.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.unique_key AS unique_key_3, t0.security_deposit AS security_deposit_4, t0.is_active AS is_active_5, t0.authorized_frequency AS authorized_frequency_6, t0.created_at AS created_at_7, t0.update_at AS update_at_8, t0.price_without_tax AS price_without_tax_9, t0.product_id AS product_id_10 FROM subscription_model t0 INNER JOIN discount_code_subscription_model ON t0.id = discount_code_subscription_model.subscription_model_id WHERE discount_code_subscription_model.discount_code_id = 8;
|
44 |
1.33 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.opening_hours AS opening_hours_3, t0.currencies_accepted AS currencies_accepted_4, t0.payment_accepted_type AS payment_accepted_type_5, t0.price_range AS price_range_6, t0.aggregate_rating AS aggregate_rating_7, t0.created_at AS created_at_8, t0.prefectoral_approval_number AS prefectoral_approval_number_9, t0.status AS status_10, t0.cedex AS cedex_11, t0.is_exportable_ibml AS is_exportable_ibml_12, t0.postal_address_id AS postal_address_id_13, t0.sector_id AS sector_id_14 FROM store t0 INNER JOIN discount_code_store ON t0.id = discount_code_store.store_id WHERE discount_code_store.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.opening_hours AS opening_hours_3, t0.currencies_accepted AS currencies_accepted_4, t0.payment_accepted_type AS payment_accepted_type_5, t0.price_range AS price_range_6, t0.aggregate_rating AS aggregate_rating_7, t0.created_at AS created_at_8, t0.prefectoral_approval_number AS prefectoral_approval_number_9, t0.status AS status_10, t0.cedex AS cedex_11, t0.is_exportable_ibml AS is_exportable_ibml_12, t0.postal_address_id AS postal_address_id_13, t0.sector_id AS sector_id_14 FROM store t0 INNER JOIN discount_code_store ON t0.id = discount_code_store.store_id WHERE discount_code_store.discount_code_id = 8;
|
45 |
1.95 ms |
SELECT t0.id AS id_1, t0.created_at AS created_at_2, t0.updated_at AS updated_at_3, t0.confirmation_number AS confirmation_number_4, t0.status AS status_5, t0.period_start AS period_start_6, t0.period_end AS period_end_7, t0.period_length AS period_length_8, t0.vatrate AS vatrate_9, t0.price_without_tax AS price_without_tax_10, t0.object AS object_11, t0.path AS path_12, t0.price AS price_13, t0.payment_recurrence AS payment_recurrence_14, t0.new_organization_legal_name AS new_organization_legal_name_15, t0.new_organization_vatid AS new_organization_vatid_16, t0.is_new_organization AS is_new_organization_17, t0.is_prescriber AS is_prescriber_18, t0.total_paid AS total_paid_19, t0.new_organization_user_email AS new_organization_user_email_20, t0.is_sent AS is_sent_21, t0.sent_date AS sent_date_22, t0.sent_to AS sent_to_23, t0.number AS number_24, t0.total_refund AS total_refund_25, t0.is_canceled AS is_canceled_26, t0.discount_without_tax AS discount_without_tax_27, t0.discount_without_tax_percent AS discount_without_tax_percent_28, t0.is_imported AS is_imported_29, t0.is_domiciliation AS is_domiciliation_30, t0.payment_url AS payment_url_31, t0.reference AS reference_32, t0.remaining_to_pay AS remaining_to_pay_33, t0.total_refunded_payment AS total_refunded_payment_34, t0.marge AS marge_35, t0.is_new_organization_prescribed AS is_new_organization_prescribed_36, t0.is_not_in_prescriber AS is_not_in_prescriber_37, t0.new_prescriber_legal_name AS new_prescriber_legal_name_38, t0.new_prescriber_vatid AS new_prescriber_vatid_39, t0.new_prescriber_user_email AS new_prescriber_user_email_40, t0.is_attached_to_prescriber AS is_attached_to_prescriber_41, t0.invoice_type AS invoice_type_42, t0.reference_stripe AS reference_stripe_43, t0.new_organization_phone_number AS new_organization_phone_number_44, t0.payment_deadline AS payment_deadline_45, t0.is_template AS is_template_46, t0.unique_key AS unique_key_47, t0.is_paid_by_stripe AS is_paid_by_stripe_48, t0.is_pack_invoice AS is_pack_invoice_49, t0.sync_billing_report AS sync_billing_report_50, t0.external_id AS external_id_51, t0.organization_id AS organization_id_52, t0.user_id AS user_id_53, t0.new_organization_address_id AS new_organization_address_id_54, t55.id AS id_56, t55.created_at AS created_at_57, t55.updated_at AS updated_at_58, t55.status AS status_59, t55.vatrate AS vatrate_60, t55.price_without_tax AS price_without_tax_61, t55.object AS object_62, t55.path AS path_63, t55.price AS price_64, t55.new_organization_legal_name AS new_organization_legal_name_65, t55.new_organization_vatid AS new_organization_vatid_66, t55.is_new_organization AS is_new_organization_67, t55.is_prescriber AS is_prescriber_68, t55.new_organization_user_email AS new_organization_user_email_69, t55.is_sent AS is_sent_70, t55.sent_date AS sent_date_71, t55.sent_to AS sent_to_72, t55.number AS number_73, t55.is_canceled AS is_canceled_74, t55.discount_without_tax AS discount_without_tax_75, t55.discount_without_tax_percent AS discount_without_tax_percent_76, t55.invoice_is_generated AS invoice_is_generated_77, t55.payment_url AS payment_url_78, t55.is_generate AS is_generate_79, t55.marge AS marge_80, t55.new_organization_phone_number AS new_organization_phone_number_81, t55.is_new_organization_prescribed AS is_new_organization_prescribed_82, t55.is_not_in_prescriber AS is_not_in_prescriber_83, t55.new_prescriber_legal_name AS new_prescriber_legal_name_84, t55.new_prescriber_vatid AS new_prescriber_vatid_85, t55.new_prescriber_user_email AS new_prescriber_user_email_86, t55.is_attached_to_prescriber AS is_attached_to_prescriber_87, t55.is_paid_by_stripe AS is_paid_by_stripe_88, t55.organization_id AS organization_id_89, t55.new_organization_address_id AS new_organization_address_id_90, t55.invoice_id AS invoice_id_91, t55.prescriber_id AS prescriber_id_92, t55.new_prescriber_address_id AS new_prescriber_address_id_93, t55.discount_code_id AS discount_code_id_94, t0.prescriber_id AS prescriber_id_95, t0.new_prescriber_address_id AS new_prescriber_address_id_96, t97.id AS id_98, t97.created_at AS created_at_99, t97.updated_at AS updated_at_100, t97.is_done AS is_done_101, t97.comment AS comment_102, t97.npai AS npai_103, t97.price_without_tax AS price_without_tax_104, t97.tracking_number AS tracking_number_105, t97.price AS price_106, t97.days_keep AS days_keep_107, t97.organization_id AS organization_id_108, t97.invoice_id AS invoice_id_109, t0.invoice_parent_id AS invoice_parent_id_110, t111.id AS id_112, t111.created_at AS created_at_113, t111.updated_at AS updated_at_114, t111.confirmation_number AS confirmation_number_115, t111.status AS status_116, t111.period_start AS period_start_117, t111.period_end AS period_end_118, t111.period_length AS period_length_119, t111.vatrate AS vatrate_120, t111.price_without_tax AS price_without_tax_121, t111.object AS object_122, t111.path AS path_123, t111.price AS price_124, t111.payment_recurrence AS payment_recurrence_125, t111.new_organization_legal_name AS new_organization_legal_name_126, t111.new_organization_vatid AS new_organization_vatid_127, t111.is_new_organization AS is_new_organization_128, t111.is_prescriber AS is_prescriber_129, t111.total_paid AS total_paid_130, t111.new_organization_user_email AS new_organization_user_email_131, t111.is_sent AS is_sent_132, t111.sent_date AS sent_date_133, t111.sent_to AS sent_to_134, t111.number AS number_135, t111.total_refund AS total_refund_136, t111.is_canceled AS is_canceled_137, t111.discount_without_tax AS discount_without_tax_138, t111.discount_without_tax_percent AS discount_without_tax_percent_139, t111.is_imported AS is_imported_140, t111.is_domiciliation AS is_domiciliation_141, t111.payment_url AS payment_url_142, t111.reference AS reference_143, t111.remaining_to_pay AS remaining_to_pay_144, t111.total_refunded_payment AS total_refunded_payment_145, t111.marge AS marge_146, t111.is_new_organization_prescribed AS is_new_organization_prescribed_147, t111.is_not_in_prescriber AS is_not_in_prescriber_148, t111.new_prescriber_legal_name AS new_prescriber_legal_name_149, t111.new_prescriber_vatid AS new_prescriber_vatid_150, t111.new_prescriber_user_email AS new_prescriber_user_email_151, t111.is_attached_to_prescriber AS is_attached_to_prescriber_152, t111.invoice_type AS invoice_type_153, t111.reference_stripe AS reference_stripe_154, t111.new_organization_phone_number AS new_organization_phone_number_155, t111.payment_deadline AS payment_deadline_156, t111.is_template AS is_template_157, t111.unique_key AS unique_key_158, t111.is_paid_by_stripe AS is_paid_by_stripe_159, t111.is_pack_invoice AS is_pack_invoice_160, t111.sync_billing_report AS sync_billing_report_161, t111.external_id AS external_id_162, t111.organization_id AS organization_id_163, t111.user_id AS user_id_164, t111.new_organization_address_id AS new_organization_address_id_165, t111.prescriber_id AS prescriber_id_166, t111.new_prescriber_address_id AS new_prescriber_address_id_167, t111.invoice_parent_id AS invoice_parent_id_168, t111.discount_code_id AS discount_code_id_169, t0.discount_code_id AS discount_code_id_170 FROM invoice t0 LEFT JOIN quote t55 ON t55.invoice_id = t0.id LEFT JOIN letter_forward t97 ON t97.invoice_id = t0.id LEFT JOIN invoice t111 ON t111.invoice_parent_id = t0.id WHERE t0.discount_code_id = ?
SELECT
t0.id AS id_1,
t0.created_at AS created_at_2,
t0.updated_at AS updated_at_3,
t0.confirmation_number AS confirmation_number_4,
t0.status AS status_5,
t0.period_start AS period_start_6,
t0.period_end AS period_end_7,
t0.period_length AS period_length_8,
t0.vatrate AS vatrate_9,
t0.price_without_tax AS price_without_tax_10,
t0.object AS object_11,
t0.path AS path_12,
t0.price AS price_13,
t0.payment_recurrence AS payment_recurrence_14,
t0.new_organization_legal_name AS new_organization_legal_name_15,
t0.new_organization_vatid AS new_organization_vatid_16,
t0.is_new_organization AS is_new_organization_17,
t0.is_prescriber AS is_prescriber_18,
t0.total_paid AS total_paid_19,
t0.new_organization_user_email AS new_organization_user_email_20,
t0.is_sent AS is_sent_21,
t0.sent_date AS sent_date_22,
t0.sent_to AS sent_to_23,
t0.number AS number_24,
t0.total_refund AS total_refund_25,
t0.is_canceled AS is_canceled_26,
t0.discount_without_tax AS discount_without_tax_27,
t0.discount_without_tax_percent AS discount_without_tax_percent_28,
t0.is_imported AS is_imported_29,
t0.is_domiciliation AS is_domiciliation_30,
t0.payment_url AS payment_url_31,
t0.reference AS reference_32,
t0.remaining_to_pay AS remaining_to_pay_33,
t0.total_refunded_payment AS total_refunded_payment_34,
t0.marge AS marge_35,
t0.is_new_organization_prescribed AS is_new_organization_prescribed_36,
t0.is_not_in_prescriber AS is_not_in_prescriber_37,
t0.new_prescriber_legal_name AS new_prescriber_legal_name_38,
t0.new_prescriber_vatid AS new_prescriber_vatid_39,
t0.new_prescriber_user_email AS new_prescriber_user_email_40,
t0.is_attached_to_prescriber AS is_attached_to_prescriber_41,
t0.invoice_type AS invoice_type_42,
t0.reference_stripe AS reference_stripe_43,
t0.new_organization_phone_number AS new_organization_phone_number_44,
t0.payment_deadline AS payment_deadline_45,
t0.is_template AS is_template_46,
t0.unique_key AS unique_key_47,
t0.is_paid_by_stripe AS is_paid_by_stripe_48,
t0.is_pack_invoice AS is_pack_invoice_49,
t0.sync_billing_report AS sync_billing_report_50,
t0.external_id AS external_id_51,
t0.organization_id AS organization_id_52,
t0.user_id AS user_id_53,
t0.new_organization_address_id AS new_organization_address_id_54,
t55.id AS id_56,
t55.created_at AS created_at_57,
t55.updated_at AS updated_at_58,
t55.status AS status_59,
t55.vatrate AS vatrate_60,
t55.price_without_tax AS price_without_tax_61,
t55.object AS object_62,
t55.path AS path_63,
t55.price AS price_64,
t55.new_organization_legal_name AS new_organization_legal_name_65,
t55.new_organization_vatid AS new_organization_vatid_66,
t55.is_new_organization AS is_new_organization_67,
t55.is_prescriber AS is_prescriber_68,
t55.new_organization_user_email AS new_organization_user_email_69,
t55.is_sent AS is_sent_70,
t55.sent_date AS sent_date_71,
t55.sent_to AS sent_to_72,
t55.number AS number_73,
t55.is_canceled AS is_canceled_74,
t55.discount_without_tax AS discount_without_tax_75,
t55.discount_without_tax_percent AS discount_without_tax_percent_76,
t55.invoice_is_generated AS invoice_is_generated_77,
t55.payment_url AS payment_url_78,
t55.is_generate AS is_generate_79,
t55.marge AS marge_80,
t55.new_organization_phone_number AS new_organization_phone_number_81,
t55.is_new_organization_prescribed AS is_new_organization_prescribed_82,
t55.is_not_in_prescriber AS is_not_in_prescriber_83,
t55.new_prescriber_legal_name AS new_prescriber_legal_name_84,
t55.new_prescriber_vatid AS new_prescriber_vatid_85,
t55.new_prescriber_user_email AS new_prescriber_user_email_86,
t55.is_attached_to_prescriber AS is_attached_to_prescriber_87,
t55.is_paid_by_stripe AS is_paid_by_stripe_88,
t55.organization_id AS organization_id_89,
t55.new_organization_address_id AS new_organization_address_id_90,
t55.invoice_id AS invoice_id_91,
t55.prescriber_id AS prescriber_id_92,
t55.new_prescriber_address_id AS new_prescriber_address_id_93,
t55.discount_code_id AS discount_code_id_94,
t0.prescriber_id AS prescriber_id_95,
t0.new_prescriber_address_id AS new_prescriber_address_id_96,
t97.id AS id_98,
t97.created_at AS created_at_99,
t97.updated_at AS updated_at_100,
t97.is_done AS is_done_101,
t97.comment AS comment_102,
t97.npai AS npai_103,
t97.price_without_tax AS price_without_tax_104,
t97.tracking_number AS tracking_number_105,
t97.price AS price_106,
t97.days_keep AS days_keep_107,
t97.organization_id AS organization_id_108,
t97.invoice_id AS invoice_id_109,
t0.invoice_parent_id AS invoice_parent_id_110,
t111.id AS id_112,
t111.created_at AS created_at_113,
t111.updated_at AS updated_at_114,
t111.confirmation_number AS confirmation_number_115,
t111.status AS status_116,
t111.period_start AS period_start_117,
t111.period_end AS period_end_118,
t111.period_length AS period_length_119,
t111.vatrate AS vatrate_120,
t111.price_without_tax AS price_without_tax_121,
t111.object AS object_122,
t111.path AS path_123,
t111.price AS price_124,
t111.payment_recurrence AS payment_recurrence_125,
t111.new_organization_legal_name AS new_organization_legal_name_126,
t111.new_organization_vatid AS new_organization_vatid_127,
t111.is_new_organization AS is_new_organization_128,
t111.is_prescriber AS is_prescriber_129,
t111.total_paid AS total_paid_130,
t111.new_organization_user_email AS new_organization_user_email_131,
t111.is_sent AS is_sent_132,
t111.sent_date AS sent_date_133,
t111.sent_to AS sent_to_134,
t111.number AS number_135,
t111.total_refund AS total_refund_136,
t111.is_canceled AS is_canceled_137,
t111.discount_without_tax AS discount_without_tax_138,
t111.discount_without_tax_percent AS discount_without_tax_percent_139,
t111.is_imported AS is_imported_140,
t111.is_domiciliation AS is_domiciliation_141,
t111.payment_url AS payment_url_142,
t111.reference AS reference_143,
t111.remaining_to_pay AS remaining_to_pay_144,
t111.total_refunded_payment AS total_refunded_payment_145,
t111.marge AS marge_146,
t111.is_new_organization_prescribed AS is_new_organization_prescribed_147,
t111.is_not_in_prescriber AS is_not_in_prescriber_148,
t111.new_prescriber_legal_name AS new_prescriber_legal_name_149,
t111.new_prescriber_vatid AS new_prescriber_vatid_150,
t111.new_prescriber_user_email AS new_prescriber_user_email_151,
t111.is_attached_to_prescriber AS is_attached_to_prescriber_152,
t111.invoice_type AS invoice_type_153,
t111.reference_stripe AS reference_stripe_154,
t111.new_organization_phone_number AS new_organization_phone_number_155,
t111.payment_deadline AS payment_deadline_156,
t111.is_template AS is_template_157,
t111.unique_key AS unique_key_158,
t111.is_paid_by_stripe AS is_paid_by_stripe_159,
t111.is_pack_invoice AS is_pack_invoice_160,
t111.sync_billing_report AS sync_billing_report_161,
t111.external_id AS external_id_162,
t111.organization_id AS organization_id_163,
t111.user_id AS user_id_164,
t111.new_organization_address_id AS new_organization_address_id_165,
t111.prescriber_id AS prescriber_id_166,
t111.new_prescriber_address_id AS new_prescriber_address_id_167,
t111.invoice_parent_id AS invoice_parent_id_168,
t111.discount_code_id AS discount_code_id_169,
t0.discount_code_id AS discount_code_id_170
FROM
invoice t0
LEFT JOIN quote t55 ON t55.invoice_id = t0.id
LEFT JOIN letter_forward t97 ON t97.invoice_id = t0.id
LEFT JOIN invoice t111 ON t111.invoice_parent_id = t0.id
WHERE
t0.discount_code_id = ?
SELECT t0.id AS id_1, t0.created_at AS created_at_2, t0.updated_at AS updated_at_3, t0.confirmation_number AS confirmation_number_4, t0.status AS status_5, t0.period_start AS period_start_6, t0.period_end AS period_end_7, t0.period_length AS period_length_8, t0.vatrate AS vatrate_9, t0.price_without_tax AS price_without_tax_10, t0.object AS object_11, t0.path AS path_12, t0.price AS price_13, t0.payment_recurrence AS payment_recurrence_14, t0.new_organization_legal_name AS new_organization_legal_name_15, t0.new_organization_vatid AS new_organization_vatid_16, t0.is_new_organization AS is_new_organization_17, t0.is_prescriber AS is_prescriber_18, t0.total_paid AS total_paid_19, t0.new_organization_user_email AS new_organization_user_email_20, t0.is_sent AS is_sent_21, t0.sent_date AS sent_date_22, t0.sent_to AS sent_to_23, t0.number AS number_24, t0.total_refund AS total_refund_25, t0.is_canceled AS is_canceled_26, t0.discount_without_tax AS discount_without_tax_27, t0.discount_without_tax_percent AS discount_without_tax_percent_28, t0.is_imported AS is_imported_29, t0.is_domiciliation AS is_domiciliation_30, t0.payment_url AS payment_url_31, t0.reference AS reference_32, t0.remaining_to_pay AS remaining_to_pay_33, t0.total_refunded_payment AS total_refunded_payment_34, t0.marge AS marge_35, t0.is_new_organization_prescribed AS is_new_organization_prescribed_36, t0.is_not_in_prescriber AS is_not_in_prescriber_37, t0.new_prescriber_legal_name AS new_prescriber_legal_name_38, t0.new_prescriber_vatid AS new_prescriber_vatid_39, t0.new_prescriber_user_email AS new_prescriber_user_email_40, t0.is_attached_to_prescriber AS is_attached_to_prescriber_41, t0.invoice_type AS invoice_type_42, t0.reference_stripe AS reference_stripe_43, t0.new_organization_phone_number AS new_organization_phone_number_44, t0.payment_deadline AS payment_deadline_45, t0.is_template AS is_template_46, t0.unique_key AS unique_key_47, t0.is_paid_by_stripe AS is_paid_by_stripe_48, t0.is_pack_invoice AS is_pack_invoice_49, t0.sync_billing_report AS sync_billing_report_50, t0.external_id AS external_id_51, t0.organization_id AS organization_id_52, t0.user_id AS user_id_53, t0.new_organization_address_id AS new_organization_address_id_54, t55.id AS id_56, t55.created_at AS created_at_57, t55.updated_at AS updated_at_58, t55.status AS status_59, t55.vatrate AS vatrate_60, t55.price_without_tax AS price_without_tax_61, t55.object AS object_62, t55.path AS path_63, t55.price AS price_64, t55.new_organization_legal_name AS new_organization_legal_name_65, t55.new_organization_vatid AS new_organization_vatid_66, t55.is_new_organization AS is_new_organization_67, t55.is_prescriber AS is_prescriber_68, t55.new_organization_user_email AS new_organization_user_email_69, t55.is_sent AS is_sent_70, t55.sent_date AS sent_date_71, t55.sent_to AS sent_to_72, t55.number AS number_73, t55.is_canceled AS is_canceled_74, t55.discount_without_tax AS discount_without_tax_75, t55.discount_without_tax_percent AS discount_without_tax_percent_76, t55.invoice_is_generated AS invoice_is_generated_77, t55.payment_url AS payment_url_78, t55.is_generate AS is_generate_79, t55.marge AS marge_80, t55.new_organization_phone_number AS new_organization_phone_number_81, t55.is_new_organization_prescribed AS is_new_organization_prescribed_82, t55.is_not_in_prescriber AS is_not_in_prescriber_83, t55.new_prescriber_legal_name AS new_prescriber_legal_name_84, t55.new_prescriber_vatid AS new_prescriber_vatid_85, t55.new_prescriber_user_email AS new_prescriber_user_email_86, t55.is_attached_to_prescriber AS is_attached_to_prescriber_87, t55.is_paid_by_stripe AS is_paid_by_stripe_88, t55.organization_id AS organization_id_89, t55.new_organization_address_id AS new_organization_address_id_90, t55.invoice_id AS invoice_id_91, t55.prescriber_id AS prescriber_id_92, t55.new_prescriber_address_id AS new_prescriber_address_id_93, t55.discount_code_id AS discount_code_id_94, t0.prescriber_id AS prescriber_id_95, t0.new_prescriber_address_id AS new_prescriber_address_id_96, t97.id AS id_98, t97.created_at AS created_at_99, t97.updated_at AS updated_at_100, t97.is_done AS is_done_101, t97.comment AS comment_102, t97.npai AS npai_103, t97.price_without_tax AS price_without_tax_104, t97.tracking_number AS tracking_number_105, t97.price AS price_106, t97.days_keep AS days_keep_107, t97.organization_id AS organization_id_108, t97.invoice_id AS invoice_id_109, t0.invoice_parent_id AS invoice_parent_id_110, t111.id AS id_112, t111.created_at AS created_at_113, t111.updated_at AS updated_at_114, t111.confirmation_number AS confirmation_number_115, t111.status AS status_116, t111.period_start AS period_start_117, t111.period_end AS period_end_118, t111.period_length AS period_length_119, t111.vatrate AS vatrate_120, t111.price_without_tax AS price_without_tax_121, t111.object AS object_122, t111.path AS path_123, t111.price AS price_124, t111.payment_recurrence AS payment_recurrence_125, t111.new_organization_legal_name AS new_organization_legal_name_126, t111.new_organization_vatid AS new_organization_vatid_127, t111.is_new_organization AS is_new_organization_128, t111.is_prescriber AS is_prescriber_129, t111.total_paid AS total_paid_130, t111.new_organization_user_email AS new_organization_user_email_131, t111.is_sent AS is_sent_132, t111.sent_date AS sent_date_133, t111.sent_to AS sent_to_134, t111.number AS number_135, t111.total_refund AS total_refund_136, t111.is_canceled AS is_canceled_137, t111.discount_without_tax AS discount_without_tax_138, t111.discount_without_tax_percent AS discount_without_tax_percent_139, t111.is_imported AS is_imported_140, t111.is_domiciliation AS is_domiciliation_141, t111.payment_url AS payment_url_142, t111.reference AS reference_143, t111.remaining_to_pay AS remaining_to_pay_144, t111.total_refunded_payment AS total_refunded_payment_145, t111.marge AS marge_146, t111.is_new_organization_prescribed AS is_new_organization_prescribed_147, t111.is_not_in_prescriber AS is_not_in_prescriber_148, t111.new_prescriber_legal_name AS new_prescriber_legal_name_149, t111.new_prescriber_vatid AS new_prescriber_vatid_150, t111.new_prescriber_user_email AS new_prescriber_user_email_151, t111.is_attached_to_prescriber AS is_attached_to_prescriber_152, t111.invoice_type AS invoice_type_153, t111.reference_stripe AS reference_stripe_154, t111.new_organization_phone_number AS new_organization_phone_number_155, t111.payment_deadline AS payment_deadline_156, t111.is_template AS is_template_157, t111.unique_key AS unique_key_158, t111.is_paid_by_stripe AS is_paid_by_stripe_159, t111.is_pack_invoice AS is_pack_invoice_160, t111.sync_billing_report AS sync_billing_report_161, t111.external_id AS external_id_162, t111.organization_id AS organization_id_163, t111.user_id AS user_id_164, t111.new_organization_address_id AS new_organization_address_id_165, t111.prescriber_id AS prescriber_id_166, t111.new_prescriber_address_id AS new_prescriber_address_id_167, t111.invoice_parent_id AS invoice_parent_id_168, t111.discount_code_id AS discount_code_id_169, t0.discount_code_id AS discount_code_id_170 FROM invoice t0 LEFT JOIN quote t55 ON t55.invoice_id = t0.id LEFT JOIN letter_forward t97 ON t97.invoice_id = t0.id LEFT JOIN invoice t111 ON t111.invoice_parent_id = t0.id WHERE t0.discount_code_id = 8;
|
46 |
1.52 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.alternate_name AS alternate_name_3, t0.price_without_tax AS price_without_tax_4, t0.description AS description_5, t0.active AS active_6, t0.meta_description AS meta_description_7, t0.meta_title AS meta_title_8, t0.url AS url_9, t0.created_at AS created_at_10, t0.subscription_type AS subscription_type_11, t0.unique_key AS unique_key_12, t0.is_displayed AS is_displayed_13, t0.is_archived AS is_archived_14, t0.is_subscription_component AS is_subscription_component_15, t0.category_id AS category_id_16, t0.category_for_billing_report_id AS category_for_billing_report_id_17 FROM product t0 INNER JOIN discount_code_product ON t0.id = discount_code_product.product_id WHERE discount_code_product.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.alternate_name AS alternate_name_3, t0.price_without_tax AS price_without_tax_4, t0.description AS description_5, t0.active AS active_6, t0.meta_description AS meta_description_7, t0.meta_title AS meta_title_8, t0.url AS url_9, t0.created_at AS created_at_10, t0.subscription_type AS subscription_type_11, t0.unique_key AS unique_key_12, t0.is_displayed AS is_displayed_13, t0.is_archived AS is_archived_14, t0.is_subscription_component AS is_subscription_component_15, t0.category_id AS category_id_16, t0.category_for_billing_report_id AS category_for_billing_report_id_17 FROM product t0 INNER JOIN discount_code_product ON t0.id = discount_code_product.product_id WHERE discount_code_product.discount_code_id = 8;
|
47 |
2.43 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.price AS price_3, t0.focus AS focus_4, t0.price_without_tax AS price_without_tax_5, t0.vat_rate AS vat_rate_6, t0.discount AS discount_7, t0.unique_key AS unique_key_8, t0.automation AS automation_9, t0.is_published AS is_published_10, t0.is_subscription AS is_subscription_11, t0.published_name AS published_name_12, t0.is_published_pack AS is_published_pack_13, t0.type AS type_14, t0.legal_status AS legal_status_15, t0.created_at AS created_at_16, t0.association_pack_id AS association_pack_id_17, t0.category_id AS category_id_18, t0.recurring_invoice_id AS recurring_invoice_id_19, t0.initial_invoice_id AS initial_invoice_id_20, t0.subscription_id AS subscription_id_21 FROM pack t0 INNER JOIN discount_code_pack ON t0.id = discount_code_pack.pack_id WHERE discount_code_pack.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.price AS price_3, t0.focus AS focus_4, t0.price_without_tax AS price_without_tax_5, t0.vat_rate AS vat_rate_6, t0.discount AS discount_7, t0.unique_key AS unique_key_8, t0.automation AS automation_9, t0.is_published AS is_published_10, t0.is_subscription AS is_subscription_11, t0.published_name AS published_name_12, t0.is_published_pack AS is_published_pack_13, t0.type AS type_14, t0.legal_status AS legal_status_15, t0.created_at AS created_at_16, t0.association_pack_id AS association_pack_id_17, t0.category_id AS category_id_18, t0.recurring_invoice_id AS recurring_invoice_id_19, t0.initial_invoice_id AS initial_invoice_id_20, t0.subscription_id AS subscription_id_21 FROM pack t0 INNER JOIN discount_code_pack ON t0.id = discount_code_pack.pack_id WHERE discount_code_pack.discount_code_id = 10;
|
48 |
1.38 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.unique_key AS unique_key_3, t0.security_deposit AS security_deposit_4, t0.is_active AS is_active_5, t0.authorized_frequency AS authorized_frequency_6, t0.created_at AS created_at_7, t0.update_at AS update_at_8, t0.price_without_tax AS price_without_tax_9, t0.product_id AS product_id_10 FROM subscription_model t0 INNER JOIN discount_code_subscription_model ON t0.id = discount_code_subscription_model.subscription_model_id WHERE discount_code_subscription_model.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.unique_key AS unique_key_3, t0.security_deposit AS security_deposit_4, t0.is_active AS is_active_5, t0.authorized_frequency AS authorized_frequency_6, t0.created_at AS created_at_7, t0.update_at AS update_at_8, t0.price_without_tax AS price_without_tax_9, t0.product_id AS product_id_10 FROM subscription_model t0 INNER JOIN discount_code_subscription_model ON t0.id = discount_code_subscription_model.subscription_model_id WHERE discount_code_subscription_model.discount_code_id = 10;
|
49 |
1.17 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.opening_hours AS opening_hours_3, t0.currencies_accepted AS currencies_accepted_4, t0.payment_accepted_type AS payment_accepted_type_5, t0.price_range AS price_range_6, t0.aggregate_rating AS aggregate_rating_7, t0.created_at AS created_at_8, t0.prefectoral_approval_number AS prefectoral_approval_number_9, t0.status AS status_10, t0.cedex AS cedex_11, t0.is_exportable_ibml AS is_exportable_ibml_12, t0.postal_address_id AS postal_address_id_13, t0.sector_id AS sector_id_14 FROM store t0 INNER JOIN discount_code_store ON t0.id = discount_code_store.store_id WHERE discount_code_store.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.opening_hours AS opening_hours_3, t0.currencies_accepted AS currencies_accepted_4, t0.payment_accepted_type AS payment_accepted_type_5, t0.price_range AS price_range_6, t0.aggregate_rating AS aggregate_rating_7, t0.created_at AS created_at_8, t0.prefectoral_approval_number AS prefectoral_approval_number_9, t0.status AS status_10, t0.cedex AS cedex_11, t0.is_exportable_ibml AS is_exportable_ibml_12, t0.postal_address_id AS postal_address_id_13, t0.sector_id AS sector_id_14 FROM store t0 INNER JOIN discount_code_store ON t0.id = discount_code_store.store_id WHERE discount_code_store.discount_code_id = 10;
|
50 |
1.68 ms |
SELECT p0_.id AS id_0, p0_.name AS name_1, p0_.alternate_name AS alternate_name_2, p0_.price_without_tax AS price_without_tax_3, p0_.description AS description_4, p0_.active AS active_5, p0_.meta_description AS meta_description_6, p0_.meta_title AS meta_title_7, p0_.url AS url_8, p0_.created_at AS created_at_9, p0_.subscription_type AS subscription_type_10, p0_.unique_key AS unique_key_11, p0_.is_displayed AS is_displayed_12, p0_.is_archived AS is_archived_13, p0_.is_subscription_component AS is_subscription_component_14, p0_.category_id AS category_id_15, p0_.category_for_billing_report_id AS category_for_billing_report_id_16 FROM product p0_ WHERE p0_.name LIKE ? AND p0_.active = 0
Parameters: [
"%75011%"
]
SELECT p0_.id AS id_0, p0_.name AS name_1, p0_.alternate_name AS alternate_name_2, p0_.price_without_tax AS price_without_tax_3, p0_.description AS description_4, p0_.active AS active_5, p0_.meta_description AS meta_description_6, p0_.meta_title AS meta_title_7, p0_.url AS url_8, p0_.created_at AS created_at_9, p0_.subscription_type AS subscription_type_10, p0_.unique_key AS unique_key_11, p0_.is_displayed AS is_displayed_12, p0_.is_archived AS is_archived_13, p0_.is_subscription_component AS is_subscription_component_14, p0_.category_id AS category_id_15, p0_.category_for_billing_report_id AS category_for_billing_report_id_16 FROM product p0_ WHERE p0_.name LIKE '%75011%' AND p0_.active = 0;
|
51 |
3.18 ms |
SELECT t0.id AS id_1, t0.created_at AS created_at_2, t0.updated_at AS updated_at_3, t0.confirmation_number AS confirmation_number_4, t0.status AS status_5, t0.period_start AS period_start_6, t0.period_end AS period_end_7, t0.period_length AS period_length_8, t0.vatrate AS vatrate_9, t0.price_without_tax AS price_without_tax_10, t0.object AS object_11, t0.path AS path_12, t0.price AS price_13, t0.payment_recurrence AS payment_recurrence_14, t0.new_organization_legal_name AS new_organization_legal_name_15, t0.new_organization_vatid AS new_organization_vatid_16, t0.is_new_organization AS is_new_organization_17, t0.is_prescriber AS is_prescriber_18, t0.total_paid AS total_paid_19, t0.new_organization_user_email AS new_organization_user_email_20, t0.is_sent AS is_sent_21, t0.sent_date AS sent_date_22, t0.sent_to AS sent_to_23, t0.number AS number_24, t0.total_refund AS total_refund_25, t0.is_canceled AS is_canceled_26, t0.discount_without_tax AS discount_without_tax_27, t0.discount_without_tax_percent AS discount_without_tax_percent_28, t0.is_imported AS is_imported_29, t0.is_domiciliation AS is_domiciliation_30, t0.payment_url AS payment_url_31, t0.reference AS reference_32, t0.remaining_to_pay AS remaining_to_pay_33, t0.total_refunded_payment AS total_refunded_payment_34, t0.marge AS marge_35, t0.is_new_organization_prescribed AS is_new_organization_prescribed_36, t0.is_not_in_prescriber AS is_not_in_prescriber_37, t0.new_prescriber_legal_name AS new_prescriber_legal_name_38, t0.new_prescriber_vatid AS new_prescriber_vatid_39, t0.new_prescriber_user_email AS new_prescriber_user_email_40, t0.is_attached_to_prescriber AS is_attached_to_prescriber_41, t0.invoice_type AS invoice_type_42, t0.reference_stripe AS reference_stripe_43, t0.new_organization_phone_number AS new_organization_phone_number_44, t0.payment_deadline AS payment_deadline_45, t0.is_template AS is_template_46, t0.unique_key AS unique_key_47, t0.is_paid_by_stripe AS is_paid_by_stripe_48, t0.is_pack_invoice AS is_pack_invoice_49, t0.sync_billing_report AS sync_billing_report_50, t0.external_id AS external_id_51, t0.organization_id AS organization_id_52, t0.user_id AS user_id_53, t0.new_organization_address_id AS new_organization_address_id_54, t55.id AS id_56, t55.created_at AS created_at_57, t55.updated_at AS updated_at_58, t55.status AS status_59, t55.vatrate AS vatrate_60, t55.price_without_tax AS price_without_tax_61, t55.object AS object_62, t55.path AS path_63, t55.price AS price_64, t55.new_organization_legal_name AS new_organization_legal_name_65, t55.new_organization_vatid AS new_organization_vatid_66, t55.is_new_organization AS is_new_organization_67, t55.is_prescriber AS is_prescriber_68, t55.new_organization_user_email AS new_organization_user_email_69, t55.is_sent AS is_sent_70, t55.sent_date AS sent_date_71, t55.sent_to AS sent_to_72, t55.number AS number_73, t55.is_canceled AS is_canceled_74, t55.discount_without_tax AS discount_without_tax_75, t55.discount_without_tax_percent AS discount_without_tax_percent_76, t55.invoice_is_generated AS invoice_is_generated_77, t55.payment_url AS payment_url_78, t55.is_generate AS is_generate_79, t55.marge AS marge_80, t55.new_organization_phone_number AS new_organization_phone_number_81, t55.is_new_organization_prescribed AS is_new_organization_prescribed_82, t55.is_not_in_prescriber AS is_not_in_prescriber_83, t55.new_prescriber_legal_name AS new_prescriber_legal_name_84, t55.new_prescriber_vatid AS new_prescriber_vatid_85, t55.new_prescriber_user_email AS new_prescriber_user_email_86, t55.is_attached_to_prescriber AS is_attached_to_prescriber_87, t55.is_paid_by_stripe AS is_paid_by_stripe_88, t55.organization_id AS organization_id_89, t55.new_organization_address_id AS new_organization_address_id_90, t55.invoice_id AS invoice_id_91, t55.prescriber_id AS prescriber_id_92, t55.new_prescriber_address_id AS new_prescriber_address_id_93, t55.discount_code_id AS discount_code_id_94, t0.prescriber_id AS prescriber_id_95, t0.new_prescriber_address_id AS new_prescriber_address_id_96, t97.id AS id_98, t97.created_at AS created_at_99, t97.updated_at AS updated_at_100, t97.is_done AS is_done_101, t97.comment AS comment_102, t97.npai AS npai_103, t97.price_without_tax AS price_without_tax_104, t97.tracking_number AS tracking_number_105, t97.price AS price_106, t97.days_keep AS days_keep_107, t97.organization_id AS organization_id_108, t97.invoice_id AS invoice_id_109, t0.invoice_parent_id AS invoice_parent_id_110, t111.id AS id_112, t111.created_at AS created_at_113, t111.updated_at AS updated_at_114, t111.confirmation_number AS confirmation_number_115, t111.status AS status_116, t111.period_start AS period_start_117, t111.period_end AS period_end_118, t111.period_length AS period_length_119, t111.vatrate AS vatrate_120, t111.price_without_tax AS price_without_tax_121, t111.object AS object_122, t111.path AS path_123, t111.price AS price_124, t111.payment_recurrence AS payment_recurrence_125, t111.new_organization_legal_name AS new_organization_legal_name_126, t111.new_organization_vatid AS new_organization_vatid_127, t111.is_new_organization AS is_new_organization_128, t111.is_prescriber AS is_prescriber_129, t111.total_paid AS total_paid_130, t111.new_organization_user_email AS new_organization_user_email_131, t111.is_sent AS is_sent_132, t111.sent_date AS sent_date_133, t111.sent_to AS sent_to_134, t111.number AS number_135, t111.total_refund AS total_refund_136, t111.is_canceled AS is_canceled_137, t111.discount_without_tax AS discount_without_tax_138, t111.discount_without_tax_percent AS discount_without_tax_percent_139, t111.is_imported AS is_imported_140, t111.is_domiciliation AS is_domiciliation_141, t111.payment_url AS payment_url_142, t111.reference AS reference_143, t111.remaining_to_pay AS remaining_to_pay_144, t111.total_refunded_payment AS total_refunded_payment_145, t111.marge AS marge_146, t111.is_new_organization_prescribed AS is_new_organization_prescribed_147, t111.is_not_in_prescriber AS is_not_in_prescriber_148, t111.new_prescriber_legal_name AS new_prescriber_legal_name_149, t111.new_prescriber_vatid AS new_prescriber_vatid_150, t111.new_prescriber_user_email AS new_prescriber_user_email_151, t111.is_attached_to_prescriber AS is_attached_to_prescriber_152, t111.invoice_type AS invoice_type_153, t111.reference_stripe AS reference_stripe_154, t111.new_organization_phone_number AS new_organization_phone_number_155, t111.payment_deadline AS payment_deadline_156, t111.is_template AS is_template_157, t111.unique_key AS unique_key_158, t111.is_paid_by_stripe AS is_paid_by_stripe_159, t111.is_pack_invoice AS is_pack_invoice_160, t111.sync_billing_report AS sync_billing_report_161, t111.external_id AS external_id_162, t111.organization_id AS organization_id_163, t111.user_id AS user_id_164, t111.new_organization_address_id AS new_organization_address_id_165, t111.prescriber_id AS prescriber_id_166, t111.new_prescriber_address_id AS new_prescriber_address_id_167, t111.invoice_parent_id AS invoice_parent_id_168, t111.discount_code_id AS discount_code_id_169, t0.discount_code_id AS discount_code_id_170 FROM invoice t0 LEFT JOIN quote t55 ON t55.invoice_id = t0.id LEFT JOIN letter_forward t97 ON t97.invoice_id = t0.id LEFT JOIN invoice t111 ON t111.invoice_parent_id = t0.id WHERE t0.discount_code_id = ?
SELECT
t0.id AS id_1,
t0.created_at AS created_at_2,
t0.updated_at AS updated_at_3,
t0.confirmation_number AS confirmation_number_4,
t0.status AS status_5,
t0.period_start AS period_start_6,
t0.period_end AS period_end_7,
t0.period_length AS period_length_8,
t0.vatrate AS vatrate_9,
t0.price_without_tax AS price_without_tax_10,
t0.object AS object_11,
t0.path AS path_12,
t0.price AS price_13,
t0.payment_recurrence AS payment_recurrence_14,
t0.new_organization_legal_name AS new_organization_legal_name_15,
t0.new_organization_vatid AS new_organization_vatid_16,
t0.is_new_organization AS is_new_organization_17,
t0.is_prescriber AS is_prescriber_18,
t0.total_paid AS total_paid_19,
t0.new_organization_user_email AS new_organization_user_email_20,
t0.is_sent AS is_sent_21,
t0.sent_date AS sent_date_22,
t0.sent_to AS sent_to_23,
t0.number AS number_24,
t0.total_refund AS total_refund_25,
t0.is_canceled AS is_canceled_26,
t0.discount_without_tax AS discount_without_tax_27,
t0.discount_without_tax_percent AS discount_without_tax_percent_28,
t0.is_imported AS is_imported_29,
t0.is_domiciliation AS is_domiciliation_30,
t0.payment_url AS payment_url_31,
t0.reference AS reference_32,
t0.remaining_to_pay AS remaining_to_pay_33,
t0.total_refunded_payment AS total_refunded_payment_34,
t0.marge AS marge_35,
t0.is_new_organization_prescribed AS is_new_organization_prescribed_36,
t0.is_not_in_prescriber AS is_not_in_prescriber_37,
t0.new_prescriber_legal_name AS new_prescriber_legal_name_38,
t0.new_prescriber_vatid AS new_prescriber_vatid_39,
t0.new_prescriber_user_email AS new_prescriber_user_email_40,
t0.is_attached_to_prescriber AS is_attached_to_prescriber_41,
t0.invoice_type AS invoice_type_42,
t0.reference_stripe AS reference_stripe_43,
t0.new_organization_phone_number AS new_organization_phone_number_44,
t0.payment_deadline AS payment_deadline_45,
t0.is_template AS is_template_46,
t0.unique_key AS unique_key_47,
t0.is_paid_by_stripe AS is_paid_by_stripe_48,
t0.is_pack_invoice AS is_pack_invoice_49,
t0.sync_billing_report AS sync_billing_report_50,
t0.external_id AS external_id_51,
t0.organization_id AS organization_id_52,
t0.user_id AS user_id_53,
t0.new_organization_address_id AS new_organization_address_id_54,
t55.id AS id_56,
t55.created_at AS created_at_57,
t55.updated_at AS updated_at_58,
t55.status AS status_59,
t55.vatrate AS vatrate_60,
t55.price_without_tax AS price_without_tax_61,
t55.object AS object_62,
t55.path AS path_63,
t55.price AS price_64,
t55.new_organization_legal_name AS new_organization_legal_name_65,
t55.new_organization_vatid AS new_organization_vatid_66,
t55.is_new_organization AS is_new_organization_67,
t55.is_prescriber AS is_prescriber_68,
t55.new_organization_user_email AS new_organization_user_email_69,
t55.is_sent AS is_sent_70,
t55.sent_date AS sent_date_71,
t55.sent_to AS sent_to_72,
t55.number AS number_73,
t55.is_canceled AS is_canceled_74,
t55.discount_without_tax AS discount_without_tax_75,
t55.discount_without_tax_percent AS discount_without_tax_percent_76,
t55.invoice_is_generated AS invoice_is_generated_77,
t55.payment_url AS payment_url_78,
t55.is_generate AS is_generate_79,
t55.marge AS marge_80,
t55.new_organization_phone_number AS new_organization_phone_number_81,
t55.is_new_organization_prescribed AS is_new_organization_prescribed_82,
t55.is_not_in_prescriber AS is_not_in_prescriber_83,
t55.new_prescriber_legal_name AS new_prescriber_legal_name_84,
t55.new_prescriber_vatid AS new_prescriber_vatid_85,
t55.new_prescriber_user_email AS new_prescriber_user_email_86,
t55.is_attached_to_prescriber AS is_attached_to_prescriber_87,
t55.is_paid_by_stripe AS is_paid_by_stripe_88,
t55.organization_id AS organization_id_89,
t55.new_organization_address_id AS new_organization_address_id_90,
t55.invoice_id AS invoice_id_91,
t55.prescriber_id AS prescriber_id_92,
t55.new_prescriber_address_id AS new_prescriber_address_id_93,
t55.discount_code_id AS discount_code_id_94,
t0.prescriber_id AS prescriber_id_95,
t0.new_prescriber_address_id AS new_prescriber_address_id_96,
t97.id AS id_98,
t97.created_at AS created_at_99,
t97.updated_at AS updated_at_100,
t97.is_done AS is_done_101,
t97.comment AS comment_102,
t97.npai AS npai_103,
t97.price_without_tax AS price_without_tax_104,
t97.tracking_number AS tracking_number_105,
t97.price AS price_106,
t97.days_keep AS days_keep_107,
t97.organization_id AS organization_id_108,
t97.invoice_id AS invoice_id_109,
t0.invoice_parent_id AS invoice_parent_id_110,
t111.id AS id_112,
t111.created_at AS created_at_113,
t111.updated_at AS updated_at_114,
t111.confirmation_number AS confirmation_number_115,
t111.status AS status_116,
t111.period_start AS period_start_117,
t111.period_end AS period_end_118,
t111.period_length AS period_length_119,
t111.vatrate AS vatrate_120,
t111.price_without_tax AS price_without_tax_121,
t111.object AS object_122,
t111.path AS path_123,
t111.price AS price_124,
t111.payment_recurrence AS payment_recurrence_125,
t111.new_organization_legal_name AS new_organization_legal_name_126,
t111.new_organization_vatid AS new_organization_vatid_127,
t111.is_new_organization AS is_new_organization_128,
t111.is_prescriber AS is_prescriber_129,
t111.total_paid AS total_paid_130,
t111.new_organization_user_email AS new_organization_user_email_131,
t111.is_sent AS is_sent_132,
t111.sent_date AS sent_date_133,
t111.sent_to AS sent_to_134,
t111.number AS number_135,
t111.total_refund AS total_refund_136,
t111.is_canceled AS is_canceled_137,
t111.discount_without_tax AS discount_without_tax_138,
t111.discount_without_tax_percent AS discount_without_tax_percent_139,
t111.is_imported AS is_imported_140,
t111.is_domiciliation AS is_domiciliation_141,
t111.payment_url AS payment_url_142,
t111.reference AS reference_143,
t111.remaining_to_pay AS remaining_to_pay_144,
t111.total_refunded_payment AS total_refunded_payment_145,
t111.marge AS marge_146,
t111.is_new_organization_prescribed AS is_new_organization_prescribed_147,
t111.is_not_in_prescriber AS is_not_in_prescriber_148,
t111.new_prescriber_legal_name AS new_prescriber_legal_name_149,
t111.new_prescriber_vatid AS new_prescriber_vatid_150,
t111.new_prescriber_user_email AS new_prescriber_user_email_151,
t111.is_attached_to_prescriber AS is_attached_to_prescriber_152,
t111.invoice_type AS invoice_type_153,
t111.reference_stripe AS reference_stripe_154,
t111.new_organization_phone_number AS new_organization_phone_number_155,
t111.payment_deadline AS payment_deadline_156,
t111.is_template AS is_template_157,
t111.unique_key AS unique_key_158,
t111.is_paid_by_stripe AS is_paid_by_stripe_159,
t111.is_pack_invoice AS is_pack_invoice_160,
t111.sync_billing_report AS sync_billing_report_161,
t111.external_id AS external_id_162,
t111.organization_id AS organization_id_163,
t111.user_id AS user_id_164,
t111.new_organization_address_id AS new_organization_address_id_165,
t111.prescriber_id AS prescriber_id_166,
t111.new_prescriber_address_id AS new_prescriber_address_id_167,
t111.invoice_parent_id AS invoice_parent_id_168,
t111.discount_code_id AS discount_code_id_169,
t0.discount_code_id AS discount_code_id_170
FROM
invoice t0
LEFT JOIN quote t55 ON t55.invoice_id = t0.id
LEFT JOIN letter_forward t97 ON t97.invoice_id = t0.id
LEFT JOIN invoice t111 ON t111.invoice_parent_id = t0.id
WHERE
t0.discount_code_id = ?
SELECT t0.id AS id_1, t0.created_at AS created_at_2, t0.updated_at AS updated_at_3, t0.confirmation_number AS confirmation_number_4, t0.status AS status_5, t0.period_start AS period_start_6, t0.period_end AS period_end_7, t0.period_length AS period_length_8, t0.vatrate AS vatrate_9, t0.price_without_tax AS price_without_tax_10, t0.object AS object_11, t0.path AS path_12, t0.price AS price_13, t0.payment_recurrence AS payment_recurrence_14, t0.new_organization_legal_name AS new_organization_legal_name_15, t0.new_organization_vatid AS new_organization_vatid_16, t0.is_new_organization AS is_new_organization_17, t0.is_prescriber AS is_prescriber_18, t0.total_paid AS total_paid_19, t0.new_organization_user_email AS new_organization_user_email_20, t0.is_sent AS is_sent_21, t0.sent_date AS sent_date_22, t0.sent_to AS sent_to_23, t0.number AS number_24, t0.total_refund AS total_refund_25, t0.is_canceled AS is_canceled_26, t0.discount_without_tax AS discount_without_tax_27, t0.discount_without_tax_percent AS discount_without_tax_percent_28, t0.is_imported AS is_imported_29, t0.is_domiciliation AS is_domiciliation_30, t0.payment_url AS payment_url_31, t0.reference AS reference_32, t0.remaining_to_pay AS remaining_to_pay_33, t0.total_refunded_payment AS total_refunded_payment_34, t0.marge AS marge_35, t0.is_new_organization_prescribed AS is_new_organization_prescribed_36, t0.is_not_in_prescriber AS is_not_in_prescriber_37, t0.new_prescriber_legal_name AS new_prescriber_legal_name_38, t0.new_prescriber_vatid AS new_prescriber_vatid_39, t0.new_prescriber_user_email AS new_prescriber_user_email_40, t0.is_attached_to_prescriber AS is_attached_to_prescriber_41, t0.invoice_type AS invoice_type_42, t0.reference_stripe AS reference_stripe_43, t0.new_organization_phone_number AS new_organization_phone_number_44, t0.payment_deadline AS payment_deadline_45, t0.is_template AS is_template_46, t0.unique_key AS unique_key_47, t0.is_paid_by_stripe AS is_paid_by_stripe_48, t0.is_pack_invoice AS is_pack_invoice_49, t0.sync_billing_report AS sync_billing_report_50, t0.external_id AS external_id_51, t0.organization_id AS organization_id_52, t0.user_id AS user_id_53, t0.new_organization_address_id AS new_organization_address_id_54, t55.id AS id_56, t55.created_at AS created_at_57, t55.updated_at AS updated_at_58, t55.status AS status_59, t55.vatrate AS vatrate_60, t55.price_without_tax AS price_without_tax_61, t55.object AS object_62, t55.path AS path_63, t55.price AS price_64, t55.new_organization_legal_name AS new_organization_legal_name_65, t55.new_organization_vatid AS new_organization_vatid_66, t55.is_new_organization AS is_new_organization_67, t55.is_prescriber AS is_prescriber_68, t55.new_organization_user_email AS new_organization_user_email_69, t55.is_sent AS is_sent_70, t55.sent_date AS sent_date_71, t55.sent_to AS sent_to_72, t55.number AS number_73, t55.is_canceled AS is_canceled_74, t55.discount_without_tax AS discount_without_tax_75, t55.discount_without_tax_percent AS discount_without_tax_percent_76, t55.invoice_is_generated AS invoice_is_generated_77, t55.payment_url AS payment_url_78, t55.is_generate AS is_generate_79, t55.marge AS marge_80, t55.new_organization_phone_number AS new_organization_phone_number_81, t55.is_new_organization_prescribed AS is_new_organization_prescribed_82, t55.is_not_in_prescriber AS is_not_in_prescriber_83, t55.new_prescriber_legal_name AS new_prescriber_legal_name_84, t55.new_prescriber_vatid AS new_prescriber_vatid_85, t55.new_prescriber_user_email AS new_prescriber_user_email_86, t55.is_attached_to_prescriber AS is_attached_to_prescriber_87, t55.is_paid_by_stripe AS is_paid_by_stripe_88, t55.organization_id AS organization_id_89, t55.new_organization_address_id AS new_organization_address_id_90, t55.invoice_id AS invoice_id_91, t55.prescriber_id AS prescriber_id_92, t55.new_prescriber_address_id AS new_prescriber_address_id_93, t55.discount_code_id AS discount_code_id_94, t0.prescriber_id AS prescriber_id_95, t0.new_prescriber_address_id AS new_prescriber_address_id_96, t97.id AS id_98, t97.created_at AS created_at_99, t97.updated_at AS updated_at_100, t97.is_done AS is_done_101, t97.comment AS comment_102, t97.npai AS npai_103, t97.price_without_tax AS price_without_tax_104, t97.tracking_number AS tracking_number_105, t97.price AS price_106, t97.days_keep AS days_keep_107, t97.organization_id AS organization_id_108, t97.invoice_id AS invoice_id_109, t0.invoice_parent_id AS invoice_parent_id_110, t111.id AS id_112, t111.created_at AS created_at_113, t111.updated_at AS updated_at_114, t111.confirmation_number AS confirmation_number_115, t111.status AS status_116, t111.period_start AS period_start_117, t111.period_end AS period_end_118, t111.period_length AS period_length_119, t111.vatrate AS vatrate_120, t111.price_without_tax AS price_without_tax_121, t111.object AS object_122, t111.path AS path_123, t111.price AS price_124, t111.payment_recurrence AS payment_recurrence_125, t111.new_organization_legal_name AS new_organization_legal_name_126, t111.new_organization_vatid AS new_organization_vatid_127, t111.is_new_organization AS is_new_organization_128, t111.is_prescriber AS is_prescriber_129, t111.total_paid AS total_paid_130, t111.new_organization_user_email AS new_organization_user_email_131, t111.is_sent AS is_sent_132, t111.sent_date AS sent_date_133, t111.sent_to AS sent_to_134, t111.number AS number_135, t111.total_refund AS total_refund_136, t111.is_canceled AS is_canceled_137, t111.discount_without_tax AS discount_without_tax_138, t111.discount_without_tax_percent AS discount_without_tax_percent_139, t111.is_imported AS is_imported_140, t111.is_domiciliation AS is_domiciliation_141, t111.payment_url AS payment_url_142, t111.reference AS reference_143, t111.remaining_to_pay AS remaining_to_pay_144, t111.total_refunded_payment AS total_refunded_payment_145, t111.marge AS marge_146, t111.is_new_organization_prescribed AS is_new_organization_prescribed_147, t111.is_not_in_prescriber AS is_not_in_prescriber_148, t111.new_prescriber_legal_name AS new_prescriber_legal_name_149, t111.new_prescriber_vatid AS new_prescriber_vatid_150, t111.new_prescriber_user_email AS new_prescriber_user_email_151, t111.is_attached_to_prescriber AS is_attached_to_prescriber_152, t111.invoice_type AS invoice_type_153, t111.reference_stripe AS reference_stripe_154, t111.new_organization_phone_number AS new_organization_phone_number_155, t111.payment_deadline AS payment_deadline_156, t111.is_template AS is_template_157, t111.unique_key AS unique_key_158, t111.is_paid_by_stripe AS is_paid_by_stripe_159, t111.is_pack_invoice AS is_pack_invoice_160, t111.sync_billing_report AS sync_billing_report_161, t111.external_id AS external_id_162, t111.organization_id AS organization_id_163, t111.user_id AS user_id_164, t111.new_organization_address_id AS new_organization_address_id_165, t111.prescriber_id AS prescriber_id_166, t111.new_prescriber_address_id AS new_prescriber_address_id_167, t111.invoice_parent_id AS invoice_parent_id_168, t111.discount_code_id AS discount_code_id_169, t0.discount_code_id AS discount_code_id_170 FROM invoice t0 LEFT JOIN quote t55 ON t55.invoice_id = t0.id LEFT JOIN letter_forward t97 ON t97.invoice_id = t0.id LEFT JOIN invoice t111 ON t111.invoice_parent_id = t0.id WHERE t0.discount_code_id = 10;
|
52 |
1.43 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.alternate_name AS alternate_name_3, t0.price_without_tax AS price_without_tax_4, t0.description AS description_5, t0.active AS active_6, t0.meta_description AS meta_description_7, t0.meta_title AS meta_title_8, t0.url AS url_9, t0.created_at AS created_at_10, t0.subscription_type AS subscription_type_11, t0.unique_key AS unique_key_12, t0.is_displayed AS is_displayed_13, t0.is_archived AS is_archived_14, t0.is_subscription_component AS is_subscription_component_15, t0.category_id AS category_id_16, t0.category_for_billing_report_id AS category_for_billing_report_id_17 FROM product t0 INNER JOIN discount_code_product ON t0.id = discount_code_product.product_id WHERE discount_code_product.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.alternate_name AS alternate_name_3, t0.price_without_tax AS price_without_tax_4, t0.description AS description_5, t0.active AS active_6, t0.meta_description AS meta_description_7, t0.meta_title AS meta_title_8, t0.url AS url_9, t0.created_at AS created_at_10, t0.subscription_type AS subscription_type_11, t0.unique_key AS unique_key_12, t0.is_displayed AS is_displayed_13, t0.is_archived AS is_archived_14, t0.is_subscription_component AS is_subscription_component_15, t0.category_id AS category_id_16, t0.category_for_billing_report_id AS category_for_billing_report_id_17 FROM product t0 INNER JOIN discount_code_product ON t0.id = discount_code_product.product_id WHERE discount_code_product.discount_code_id = 10;
|
53 |
2.01 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.price AS price_3, t0.focus AS focus_4, t0.price_without_tax AS price_without_tax_5, t0.vat_rate AS vat_rate_6, t0.discount AS discount_7, t0.unique_key AS unique_key_8, t0.automation AS automation_9, t0.is_published AS is_published_10, t0.is_subscription AS is_subscription_11, t0.published_name AS published_name_12, t0.is_published_pack AS is_published_pack_13, t0.type AS type_14, t0.legal_status AS legal_status_15, t0.created_at AS created_at_16, t0.association_pack_id AS association_pack_id_17, t0.category_id AS category_id_18, t0.recurring_invoice_id AS recurring_invoice_id_19, t0.initial_invoice_id AS initial_invoice_id_20, t0.subscription_id AS subscription_id_21 FROM pack t0 INNER JOIN discount_code_pack ON t0.id = discount_code_pack.pack_id WHERE discount_code_pack.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.price AS price_3, t0.focus AS focus_4, t0.price_without_tax AS price_without_tax_5, t0.vat_rate AS vat_rate_6, t0.discount AS discount_7, t0.unique_key AS unique_key_8, t0.automation AS automation_9, t0.is_published AS is_published_10, t0.is_subscription AS is_subscription_11, t0.published_name AS published_name_12, t0.is_published_pack AS is_published_pack_13, t0.type AS type_14, t0.legal_status AS legal_status_15, t0.created_at AS created_at_16, t0.association_pack_id AS association_pack_id_17, t0.category_id AS category_id_18, t0.recurring_invoice_id AS recurring_invoice_id_19, t0.initial_invoice_id AS initial_invoice_id_20, t0.subscription_id AS subscription_id_21 FROM pack t0 INNER JOIN discount_code_pack ON t0.id = discount_code_pack.pack_id WHERE discount_code_pack.discount_code_id = 11;
|
54 |
1.37 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.unique_key AS unique_key_3, t0.security_deposit AS security_deposit_4, t0.is_active AS is_active_5, t0.authorized_frequency AS authorized_frequency_6, t0.created_at AS created_at_7, t0.update_at AS update_at_8, t0.price_without_tax AS price_without_tax_9, t0.product_id AS product_id_10 FROM subscription_model t0 INNER JOIN discount_code_subscription_model ON t0.id = discount_code_subscription_model.subscription_model_id WHERE discount_code_subscription_model.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.unique_key AS unique_key_3, t0.security_deposit AS security_deposit_4, t0.is_active AS is_active_5, t0.authorized_frequency AS authorized_frequency_6, t0.created_at AS created_at_7, t0.update_at AS update_at_8, t0.price_without_tax AS price_without_tax_9, t0.product_id AS product_id_10 FROM subscription_model t0 INNER JOIN discount_code_subscription_model ON t0.id = discount_code_subscription_model.subscription_model_id WHERE discount_code_subscription_model.discount_code_id = 11;
|
55 |
2.15 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.opening_hours AS opening_hours_3, t0.currencies_accepted AS currencies_accepted_4, t0.payment_accepted_type AS payment_accepted_type_5, t0.price_range AS price_range_6, t0.aggregate_rating AS aggregate_rating_7, t0.created_at AS created_at_8, t0.prefectoral_approval_number AS prefectoral_approval_number_9, t0.status AS status_10, t0.cedex AS cedex_11, t0.is_exportable_ibml AS is_exportable_ibml_12, t0.postal_address_id AS postal_address_id_13, t0.sector_id AS sector_id_14 FROM store t0 INNER JOIN discount_code_store ON t0.id = discount_code_store.store_id WHERE discount_code_store.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.opening_hours AS opening_hours_3, t0.currencies_accepted AS currencies_accepted_4, t0.payment_accepted_type AS payment_accepted_type_5, t0.price_range AS price_range_6, t0.aggregate_rating AS aggregate_rating_7, t0.created_at AS created_at_8, t0.prefectoral_approval_number AS prefectoral_approval_number_9, t0.status AS status_10, t0.cedex AS cedex_11, t0.is_exportable_ibml AS is_exportable_ibml_12, t0.postal_address_id AS postal_address_id_13, t0.sector_id AS sector_id_14 FROM store t0 INNER JOIN discount_code_store ON t0.id = discount_code_store.store_id WHERE discount_code_store.discount_code_id = 11;
|
56 |
1.38 ms |
SELECT p0_.id AS id_0, p0_.name AS name_1, p0_.alternate_name AS alternate_name_2, p0_.price_without_tax AS price_without_tax_3, p0_.description AS description_4, p0_.active AS active_5, p0_.meta_description AS meta_description_6, p0_.meta_title AS meta_title_7, p0_.url AS url_8, p0_.created_at AS created_at_9, p0_.subscription_type AS subscription_type_10, p0_.unique_key AS unique_key_11, p0_.is_displayed AS is_displayed_12, p0_.is_archived AS is_archived_13, p0_.is_subscription_component AS is_subscription_component_14, p0_.category_id AS category_id_15, p0_.category_for_billing_report_id AS category_for_billing_report_id_16 FROM product p0_ WHERE p0_.name LIKE ? AND p0_.active = 0
Parameters: [
"%75008%"
]
SELECT p0_.id AS id_0, p0_.name AS name_1, p0_.alternate_name AS alternate_name_2, p0_.price_without_tax AS price_without_tax_3, p0_.description AS description_4, p0_.active AS active_5, p0_.meta_description AS meta_description_6, p0_.meta_title AS meta_title_7, p0_.url AS url_8, p0_.created_at AS created_at_9, p0_.subscription_type AS subscription_type_10, p0_.unique_key AS unique_key_11, p0_.is_displayed AS is_displayed_12, p0_.is_archived AS is_archived_13, p0_.is_subscription_component AS is_subscription_component_14, p0_.category_id AS category_id_15, p0_.category_for_billing_report_id AS category_for_billing_report_id_16 FROM product p0_ WHERE p0_.name LIKE '%75008%' AND p0_.active = 0;
|
57 |
2.44 ms |
SELECT t0.id AS id_1, t0.created_at AS created_at_2, t0.updated_at AS updated_at_3, t0.confirmation_number AS confirmation_number_4, t0.status AS status_5, t0.period_start AS period_start_6, t0.period_end AS period_end_7, t0.period_length AS period_length_8, t0.vatrate AS vatrate_9, t0.price_without_tax AS price_without_tax_10, t0.object AS object_11, t0.path AS path_12, t0.price AS price_13, t0.payment_recurrence AS payment_recurrence_14, t0.new_organization_legal_name AS new_organization_legal_name_15, t0.new_organization_vatid AS new_organization_vatid_16, t0.is_new_organization AS is_new_organization_17, t0.is_prescriber AS is_prescriber_18, t0.total_paid AS total_paid_19, t0.new_organization_user_email AS new_organization_user_email_20, t0.is_sent AS is_sent_21, t0.sent_date AS sent_date_22, t0.sent_to AS sent_to_23, t0.number AS number_24, t0.total_refund AS total_refund_25, t0.is_canceled AS is_canceled_26, t0.discount_without_tax AS discount_without_tax_27, t0.discount_without_tax_percent AS discount_without_tax_percent_28, t0.is_imported AS is_imported_29, t0.is_domiciliation AS is_domiciliation_30, t0.payment_url AS payment_url_31, t0.reference AS reference_32, t0.remaining_to_pay AS remaining_to_pay_33, t0.total_refunded_payment AS total_refunded_payment_34, t0.marge AS marge_35, t0.is_new_organization_prescribed AS is_new_organization_prescribed_36, t0.is_not_in_prescriber AS is_not_in_prescriber_37, t0.new_prescriber_legal_name AS new_prescriber_legal_name_38, t0.new_prescriber_vatid AS new_prescriber_vatid_39, t0.new_prescriber_user_email AS new_prescriber_user_email_40, t0.is_attached_to_prescriber AS is_attached_to_prescriber_41, t0.invoice_type AS invoice_type_42, t0.reference_stripe AS reference_stripe_43, t0.new_organization_phone_number AS new_organization_phone_number_44, t0.payment_deadline AS payment_deadline_45, t0.is_template AS is_template_46, t0.unique_key AS unique_key_47, t0.is_paid_by_stripe AS is_paid_by_stripe_48, t0.is_pack_invoice AS is_pack_invoice_49, t0.sync_billing_report AS sync_billing_report_50, t0.external_id AS external_id_51, t0.organization_id AS organization_id_52, t0.user_id AS user_id_53, t0.new_organization_address_id AS new_organization_address_id_54, t55.id AS id_56, t55.created_at AS created_at_57, t55.updated_at AS updated_at_58, t55.status AS status_59, t55.vatrate AS vatrate_60, t55.price_without_tax AS price_without_tax_61, t55.object AS object_62, t55.path AS path_63, t55.price AS price_64, t55.new_organization_legal_name AS new_organization_legal_name_65, t55.new_organization_vatid AS new_organization_vatid_66, t55.is_new_organization AS is_new_organization_67, t55.is_prescriber AS is_prescriber_68, t55.new_organization_user_email AS new_organization_user_email_69, t55.is_sent AS is_sent_70, t55.sent_date AS sent_date_71, t55.sent_to AS sent_to_72, t55.number AS number_73, t55.is_canceled AS is_canceled_74, t55.discount_without_tax AS discount_without_tax_75, t55.discount_without_tax_percent AS discount_without_tax_percent_76, t55.invoice_is_generated AS invoice_is_generated_77, t55.payment_url AS payment_url_78, t55.is_generate AS is_generate_79, t55.marge AS marge_80, t55.new_organization_phone_number AS new_organization_phone_number_81, t55.is_new_organization_prescribed AS is_new_organization_prescribed_82, t55.is_not_in_prescriber AS is_not_in_prescriber_83, t55.new_prescriber_legal_name AS new_prescriber_legal_name_84, t55.new_prescriber_vatid AS new_prescriber_vatid_85, t55.new_prescriber_user_email AS new_prescriber_user_email_86, t55.is_attached_to_prescriber AS is_attached_to_prescriber_87, t55.is_paid_by_stripe AS is_paid_by_stripe_88, t55.organization_id AS organization_id_89, t55.new_organization_address_id AS new_organization_address_id_90, t55.invoice_id AS invoice_id_91, t55.prescriber_id AS prescriber_id_92, t55.new_prescriber_address_id AS new_prescriber_address_id_93, t55.discount_code_id AS discount_code_id_94, t0.prescriber_id AS prescriber_id_95, t0.new_prescriber_address_id AS new_prescriber_address_id_96, t97.id AS id_98, t97.created_at AS created_at_99, t97.updated_at AS updated_at_100, t97.is_done AS is_done_101, t97.comment AS comment_102, t97.npai AS npai_103, t97.price_without_tax AS price_without_tax_104, t97.tracking_number AS tracking_number_105, t97.price AS price_106, t97.days_keep AS days_keep_107, t97.organization_id AS organization_id_108, t97.invoice_id AS invoice_id_109, t0.invoice_parent_id AS invoice_parent_id_110, t111.id AS id_112, t111.created_at AS created_at_113, t111.updated_at AS updated_at_114, t111.confirmation_number AS confirmation_number_115, t111.status AS status_116, t111.period_start AS period_start_117, t111.period_end AS period_end_118, t111.period_length AS period_length_119, t111.vatrate AS vatrate_120, t111.price_without_tax AS price_without_tax_121, t111.object AS object_122, t111.path AS path_123, t111.price AS price_124, t111.payment_recurrence AS payment_recurrence_125, t111.new_organization_legal_name AS new_organization_legal_name_126, t111.new_organization_vatid AS new_organization_vatid_127, t111.is_new_organization AS is_new_organization_128, t111.is_prescriber AS is_prescriber_129, t111.total_paid AS total_paid_130, t111.new_organization_user_email AS new_organization_user_email_131, t111.is_sent AS is_sent_132, t111.sent_date AS sent_date_133, t111.sent_to AS sent_to_134, t111.number AS number_135, t111.total_refund AS total_refund_136, t111.is_canceled AS is_canceled_137, t111.discount_without_tax AS discount_without_tax_138, t111.discount_without_tax_percent AS discount_without_tax_percent_139, t111.is_imported AS is_imported_140, t111.is_domiciliation AS is_domiciliation_141, t111.payment_url AS payment_url_142, t111.reference AS reference_143, t111.remaining_to_pay AS remaining_to_pay_144, t111.total_refunded_payment AS total_refunded_payment_145, t111.marge AS marge_146, t111.is_new_organization_prescribed AS is_new_organization_prescribed_147, t111.is_not_in_prescriber AS is_not_in_prescriber_148, t111.new_prescriber_legal_name AS new_prescriber_legal_name_149, t111.new_prescriber_vatid AS new_prescriber_vatid_150, t111.new_prescriber_user_email AS new_prescriber_user_email_151, t111.is_attached_to_prescriber AS is_attached_to_prescriber_152, t111.invoice_type AS invoice_type_153, t111.reference_stripe AS reference_stripe_154, t111.new_organization_phone_number AS new_organization_phone_number_155, t111.payment_deadline AS payment_deadline_156, t111.is_template AS is_template_157, t111.unique_key AS unique_key_158, t111.is_paid_by_stripe AS is_paid_by_stripe_159, t111.is_pack_invoice AS is_pack_invoice_160, t111.sync_billing_report AS sync_billing_report_161, t111.external_id AS external_id_162, t111.organization_id AS organization_id_163, t111.user_id AS user_id_164, t111.new_organization_address_id AS new_organization_address_id_165, t111.prescriber_id AS prescriber_id_166, t111.new_prescriber_address_id AS new_prescriber_address_id_167, t111.invoice_parent_id AS invoice_parent_id_168, t111.discount_code_id AS discount_code_id_169, t0.discount_code_id AS discount_code_id_170 FROM invoice t0 LEFT JOIN quote t55 ON t55.invoice_id = t0.id LEFT JOIN letter_forward t97 ON t97.invoice_id = t0.id LEFT JOIN invoice t111 ON t111.invoice_parent_id = t0.id WHERE t0.discount_code_id = ?
SELECT
t0.id AS id_1,
t0.created_at AS created_at_2,
t0.updated_at AS updated_at_3,
t0.confirmation_number AS confirmation_number_4,
t0.status AS status_5,
t0.period_start AS period_start_6,
t0.period_end AS period_end_7,
t0.period_length AS period_length_8,
t0.vatrate AS vatrate_9,
t0.price_without_tax AS price_without_tax_10,
t0.object AS object_11,
t0.path AS path_12,
t0.price AS price_13,
t0.payment_recurrence AS payment_recurrence_14,
t0.new_organization_legal_name AS new_organization_legal_name_15,
t0.new_organization_vatid AS new_organization_vatid_16,
t0.is_new_organization AS is_new_organization_17,
t0.is_prescriber AS is_prescriber_18,
t0.total_paid AS total_paid_19,
t0.new_organization_user_email AS new_organization_user_email_20,
t0.is_sent AS is_sent_21,
t0.sent_date AS sent_date_22,
t0.sent_to AS sent_to_23,
t0.number AS number_24,
t0.total_refund AS total_refund_25,
t0.is_canceled AS is_canceled_26,
t0.discount_without_tax AS discount_without_tax_27,
t0.discount_without_tax_percent AS discount_without_tax_percent_28,
t0.is_imported AS is_imported_29,
t0.is_domiciliation AS is_domiciliation_30,
t0.payment_url AS payment_url_31,
t0.reference AS reference_32,
t0.remaining_to_pay AS remaining_to_pay_33,
t0.total_refunded_payment AS total_refunded_payment_34,
t0.marge AS marge_35,
t0.is_new_organization_prescribed AS is_new_organization_prescribed_36,
t0.is_not_in_prescriber AS is_not_in_prescriber_37,
t0.new_prescriber_legal_name AS new_prescriber_legal_name_38,
t0.new_prescriber_vatid AS new_prescriber_vatid_39,
t0.new_prescriber_user_email AS new_prescriber_user_email_40,
t0.is_attached_to_prescriber AS is_attached_to_prescriber_41,
t0.invoice_type AS invoice_type_42,
t0.reference_stripe AS reference_stripe_43,
t0.new_organization_phone_number AS new_organization_phone_number_44,
t0.payment_deadline AS payment_deadline_45,
t0.is_template AS is_template_46,
t0.unique_key AS unique_key_47,
t0.is_paid_by_stripe AS is_paid_by_stripe_48,
t0.is_pack_invoice AS is_pack_invoice_49,
t0.sync_billing_report AS sync_billing_report_50,
t0.external_id AS external_id_51,
t0.organization_id AS organization_id_52,
t0.user_id AS user_id_53,
t0.new_organization_address_id AS new_organization_address_id_54,
t55.id AS id_56,
t55.created_at AS created_at_57,
t55.updated_at AS updated_at_58,
t55.status AS status_59,
t55.vatrate AS vatrate_60,
t55.price_without_tax AS price_without_tax_61,
t55.object AS object_62,
t55.path AS path_63,
t55.price AS price_64,
t55.new_organization_legal_name AS new_organization_legal_name_65,
t55.new_organization_vatid AS new_organization_vatid_66,
t55.is_new_organization AS is_new_organization_67,
t55.is_prescriber AS is_prescriber_68,
t55.new_organization_user_email AS new_organization_user_email_69,
t55.is_sent AS is_sent_70,
t55.sent_date AS sent_date_71,
t55.sent_to AS sent_to_72,
t55.number AS number_73,
t55.is_canceled AS is_canceled_74,
t55.discount_without_tax AS discount_without_tax_75,
t55.discount_without_tax_percent AS discount_without_tax_percent_76,
t55.invoice_is_generated AS invoice_is_generated_77,
t55.payment_url AS payment_url_78,
t55.is_generate AS is_generate_79,
t55.marge AS marge_80,
t55.new_organization_phone_number AS new_organization_phone_number_81,
t55.is_new_organization_prescribed AS is_new_organization_prescribed_82,
t55.is_not_in_prescriber AS is_not_in_prescriber_83,
t55.new_prescriber_legal_name AS new_prescriber_legal_name_84,
t55.new_prescriber_vatid AS new_prescriber_vatid_85,
t55.new_prescriber_user_email AS new_prescriber_user_email_86,
t55.is_attached_to_prescriber AS is_attached_to_prescriber_87,
t55.is_paid_by_stripe AS is_paid_by_stripe_88,
t55.organization_id AS organization_id_89,
t55.new_organization_address_id AS new_organization_address_id_90,
t55.invoice_id AS invoice_id_91,
t55.prescriber_id AS prescriber_id_92,
t55.new_prescriber_address_id AS new_prescriber_address_id_93,
t55.discount_code_id AS discount_code_id_94,
t0.prescriber_id AS prescriber_id_95,
t0.new_prescriber_address_id AS new_prescriber_address_id_96,
t97.id AS id_98,
t97.created_at AS created_at_99,
t97.updated_at AS updated_at_100,
t97.is_done AS is_done_101,
t97.comment AS comment_102,
t97.npai AS npai_103,
t97.price_without_tax AS price_without_tax_104,
t97.tracking_number AS tracking_number_105,
t97.price AS price_106,
t97.days_keep AS days_keep_107,
t97.organization_id AS organization_id_108,
t97.invoice_id AS invoice_id_109,
t0.invoice_parent_id AS invoice_parent_id_110,
t111.id AS id_112,
t111.created_at AS created_at_113,
t111.updated_at AS updated_at_114,
t111.confirmation_number AS confirmation_number_115,
t111.status AS status_116,
t111.period_start AS period_start_117,
t111.period_end AS period_end_118,
t111.period_length AS period_length_119,
t111.vatrate AS vatrate_120,
t111.price_without_tax AS price_without_tax_121,
t111.object AS object_122,
t111.path AS path_123,
t111.price AS price_124,
t111.payment_recurrence AS payment_recurrence_125,
t111.new_organization_legal_name AS new_organization_legal_name_126,
t111.new_organization_vatid AS new_organization_vatid_127,
t111.is_new_organization AS is_new_organization_128,
t111.is_prescriber AS is_prescriber_129,
t111.total_paid AS total_paid_130,
t111.new_organization_user_email AS new_organization_user_email_131,
t111.is_sent AS is_sent_132,
t111.sent_date AS sent_date_133,
t111.sent_to AS sent_to_134,
t111.number AS number_135,
t111.total_refund AS total_refund_136,
t111.is_canceled AS is_canceled_137,
t111.discount_without_tax AS discount_without_tax_138,
t111.discount_without_tax_percent AS discount_without_tax_percent_139,
t111.is_imported AS is_imported_140,
t111.is_domiciliation AS is_domiciliation_141,
t111.payment_url AS payment_url_142,
t111.reference AS reference_143,
t111.remaining_to_pay AS remaining_to_pay_144,
t111.total_refunded_payment AS total_refunded_payment_145,
t111.marge AS marge_146,
t111.is_new_organization_prescribed AS is_new_organization_prescribed_147,
t111.is_not_in_prescriber AS is_not_in_prescriber_148,
t111.new_prescriber_legal_name AS new_prescriber_legal_name_149,
t111.new_prescriber_vatid AS new_prescriber_vatid_150,
t111.new_prescriber_user_email AS new_prescriber_user_email_151,
t111.is_attached_to_prescriber AS is_attached_to_prescriber_152,
t111.invoice_type AS invoice_type_153,
t111.reference_stripe AS reference_stripe_154,
t111.new_organization_phone_number AS new_organization_phone_number_155,
t111.payment_deadline AS payment_deadline_156,
t111.is_template AS is_template_157,
t111.unique_key AS unique_key_158,
t111.is_paid_by_stripe AS is_paid_by_stripe_159,
t111.is_pack_invoice AS is_pack_invoice_160,
t111.sync_billing_report AS sync_billing_report_161,
t111.external_id AS external_id_162,
t111.organization_id AS organization_id_163,
t111.user_id AS user_id_164,
t111.new_organization_address_id AS new_organization_address_id_165,
t111.prescriber_id AS prescriber_id_166,
t111.new_prescriber_address_id AS new_prescriber_address_id_167,
t111.invoice_parent_id AS invoice_parent_id_168,
t111.discount_code_id AS discount_code_id_169,
t0.discount_code_id AS discount_code_id_170
FROM
invoice t0
LEFT JOIN quote t55 ON t55.invoice_id = t0.id
LEFT JOIN letter_forward t97 ON t97.invoice_id = t0.id
LEFT JOIN invoice t111 ON t111.invoice_parent_id = t0.id
WHERE
t0.discount_code_id = ?
SELECT t0.id AS id_1, t0.created_at AS created_at_2, t0.updated_at AS updated_at_3, t0.confirmation_number AS confirmation_number_4, t0.status AS status_5, t0.period_start AS period_start_6, t0.period_end AS period_end_7, t0.period_length AS period_length_8, t0.vatrate AS vatrate_9, t0.price_without_tax AS price_without_tax_10, t0.object AS object_11, t0.path AS path_12, t0.price AS price_13, t0.payment_recurrence AS payment_recurrence_14, t0.new_organization_legal_name AS new_organization_legal_name_15, t0.new_organization_vatid AS new_organization_vatid_16, t0.is_new_organization AS is_new_organization_17, t0.is_prescriber AS is_prescriber_18, t0.total_paid AS total_paid_19, t0.new_organization_user_email AS new_organization_user_email_20, t0.is_sent AS is_sent_21, t0.sent_date AS sent_date_22, t0.sent_to AS sent_to_23, t0.number AS number_24, t0.total_refund AS total_refund_25, t0.is_canceled AS is_canceled_26, t0.discount_without_tax AS discount_without_tax_27, t0.discount_without_tax_percent AS discount_without_tax_percent_28, t0.is_imported AS is_imported_29, t0.is_domiciliation AS is_domiciliation_30, t0.payment_url AS payment_url_31, t0.reference AS reference_32, t0.remaining_to_pay AS remaining_to_pay_33, t0.total_refunded_payment AS total_refunded_payment_34, t0.marge AS marge_35, t0.is_new_organization_prescribed AS is_new_organization_prescribed_36, t0.is_not_in_prescriber AS is_not_in_prescriber_37, t0.new_prescriber_legal_name AS new_prescriber_legal_name_38, t0.new_prescriber_vatid AS new_prescriber_vatid_39, t0.new_prescriber_user_email AS new_prescriber_user_email_40, t0.is_attached_to_prescriber AS is_attached_to_prescriber_41, t0.invoice_type AS invoice_type_42, t0.reference_stripe AS reference_stripe_43, t0.new_organization_phone_number AS new_organization_phone_number_44, t0.payment_deadline AS payment_deadline_45, t0.is_template AS is_template_46, t0.unique_key AS unique_key_47, t0.is_paid_by_stripe AS is_paid_by_stripe_48, t0.is_pack_invoice AS is_pack_invoice_49, t0.sync_billing_report AS sync_billing_report_50, t0.external_id AS external_id_51, t0.organization_id AS organization_id_52, t0.user_id AS user_id_53, t0.new_organization_address_id AS new_organization_address_id_54, t55.id AS id_56, t55.created_at AS created_at_57, t55.updated_at AS updated_at_58, t55.status AS status_59, t55.vatrate AS vatrate_60, t55.price_without_tax AS price_without_tax_61, t55.object AS object_62, t55.path AS path_63, t55.price AS price_64, t55.new_organization_legal_name AS new_organization_legal_name_65, t55.new_organization_vatid AS new_organization_vatid_66, t55.is_new_organization AS is_new_organization_67, t55.is_prescriber AS is_prescriber_68, t55.new_organization_user_email AS new_organization_user_email_69, t55.is_sent AS is_sent_70, t55.sent_date AS sent_date_71, t55.sent_to AS sent_to_72, t55.number AS number_73, t55.is_canceled AS is_canceled_74, t55.discount_without_tax AS discount_without_tax_75, t55.discount_without_tax_percent AS discount_without_tax_percent_76, t55.invoice_is_generated AS invoice_is_generated_77, t55.payment_url AS payment_url_78, t55.is_generate AS is_generate_79, t55.marge AS marge_80, t55.new_organization_phone_number AS new_organization_phone_number_81, t55.is_new_organization_prescribed AS is_new_organization_prescribed_82, t55.is_not_in_prescriber AS is_not_in_prescriber_83, t55.new_prescriber_legal_name AS new_prescriber_legal_name_84, t55.new_prescriber_vatid AS new_prescriber_vatid_85, t55.new_prescriber_user_email AS new_prescriber_user_email_86, t55.is_attached_to_prescriber AS is_attached_to_prescriber_87, t55.is_paid_by_stripe AS is_paid_by_stripe_88, t55.organization_id AS organization_id_89, t55.new_organization_address_id AS new_organization_address_id_90, t55.invoice_id AS invoice_id_91, t55.prescriber_id AS prescriber_id_92, t55.new_prescriber_address_id AS new_prescriber_address_id_93, t55.discount_code_id AS discount_code_id_94, t0.prescriber_id AS prescriber_id_95, t0.new_prescriber_address_id AS new_prescriber_address_id_96, t97.id AS id_98, t97.created_at AS created_at_99, t97.updated_at AS updated_at_100, t97.is_done AS is_done_101, t97.comment AS comment_102, t97.npai AS npai_103, t97.price_without_tax AS price_without_tax_104, t97.tracking_number AS tracking_number_105, t97.price AS price_106, t97.days_keep AS days_keep_107, t97.organization_id AS organization_id_108, t97.invoice_id AS invoice_id_109, t0.invoice_parent_id AS invoice_parent_id_110, t111.id AS id_112, t111.created_at AS created_at_113, t111.updated_at AS updated_at_114, t111.confirmation_number AS confirmation_number_115, t111.status AS status_116, t111.period_start AS period_start_117, t111.period_end AS period_end_118, t111.period_length AS period_length_119, t111.vatrate AS vatrate_120, t111.price_without_tax AS price_without_tax_121, t111.object AS object_122, t111.path AS path_123, t111.price AS price_124, t111.payment_recurrence AS payment_recurrence_125, t111.new_organization_legal_name AS new_organization_legal_name_126, t111.new_organization_vatid AS new_organization_vatid_127, t111.is_new_organization AS is_new_organization_128, t111.is_prescriber AS is_prescriber_129, t111.total_paid AS total_paid_130, t111.new_organization_user_email AS new_organization_user_email_131, t111.is_sent AS is_sent_132, t111.sent_date AS sent_date_133, t111.sent_to AS sent_to_134, t111.number AS number_135, t111.total_refund AS total_refund_136, t111.is_canceled AS is_canceled_137, t111.discount_without_tax AS discount_without_tax_138, t111.discount_without_tax_percent AS discount_without_tax_percent_139, t111.is_imported AS is_imported_140, t111.is_domiciliation AS is_domiciliation_141, t111.payment_url AS payment_url_142, t111.reference AS reference_143, t111.remaining_to_pay AS remaining_to_pay_144, t111.total_refunded_payment AS total_refunded_payment_145, t111.marge AS marge_146, t111.is_new_organization_prescribed AS is_new_organization_prescribed_147, t111.is_not_in_prescriber AS is_not_in_prescriber_148, t111.new_prescriber_legal_name AS new_prescriber_legal_name_149, t111.new_prescriber_vatid AS new_prescriber_vatid_150, t111.new_prescriber_user_email AS new_prescriber_user_email_151, t111.is_attached_to_prescriber AS is_attached_to_prescriber_152, t111.invoice_type AS invoice_type_153, t111.reference_stripe AS reference_stripe_154, t111.new_organization_phone_number AS new_organization_phone_number_155, t111.payment_deadline AS payment_deadline_156, t111.is_template AS is_template_157, t111.unique_key AS unique_key_158, t111.is_paid_by_stripe AS is_paid_by_stripe_159, t111.is_pack_invoice AS is_pack_invoice_160, t111.sync_billing_report AS sync_billing_report_161, t111.external_id AS external_id_162, t111.organization_id AS organization_id_163, t111.user_id AS user_id_164, t111.new_organization_address_id AS new_organization_address_id_165, t111.prescriber_id AS prescriber_id_166, t111.new_prescriber_address_id AS new_prescriber_address_id_167, t111.invoice_parent_id AS invoice_parent_id_168, t111.discount_code_id AS discount_code_id_169, t0.discount_code_id AS discount_code_id_170 FROM invoice t0 LEFT JOIN quote t55 ON t55.invoice_id = t0.id LEFT JOIN letter_forward t97 ON t97.invoice_id = t0.id LEFT JOIN invoice t111 ON t111.invoice_parent_id = t0.id WHERE t0.discount_code_id = 11;
|
58 |
1.21 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.alternate_name AS alternate_name_3, t0.price_without_tax AS price_without_tax_4, t0.description AS description_5, t0.active AS active_6, t0.meta_description AS meta_description_7, t0.meta_title AS meta_title_8, t0.url AS url_9, t0.created_at AS created_at_10, t0.subscription_type AS subscription_type_11, t0.unique_key AS unique_key_12, t0.is_displayed AS is_displayed_13, t0.is_archived AS is_archived_14, t0.is_subscription_component AS is_subscription_component_15, t0.category_id AS category_id_16, t0.category_for_billing_report_id AS category_for_billing_report_id_17 FROM product t0 INNER JOIN discount_code_product ON t0.id = discount_code_product.product_id WHERE discount_code_product.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.alternate_name AS alternate_name_3, t0.price_without_tax AS price_without_tax_4, t0.description AS description_5, t0.active AS active_6, t0.meta_description AS meta_description_7, t0.meta_title AS meta_title_8, t0.url AS url_9, t0.created_at AS created_at_10, t0.subscription_type AS subscription_type_11, t0.unique_key AS unique_key_12, t0.is_displayed AS is_displayed_13, t0.is_archived AS is_archived_14, t0.is_subscription_component AS is_subscription_component_15, t0.category_id AS category_id_16, t0.category_for_billing_report_id AS category_for_billing_report_id_17 FROM product t0 INNER JOIN discount_code_product ON t0.id = discount_code_product.product_id WHERE discount_code_product.discount_code_id = 11;
|
59 |
1.30 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.price AS price_3, t0.focus AS focus_4, t0.price_without_tax AS price_without_tax_5, t0.vat_rate AS vat_rate_6, t0.discount AS discount_7, t0.unique_key AS unique_key_8, t0.automation AS automation_9, t0.is_published AS is_published_10, t0.is_subscription AS is_subscription_11, t0.published_name AS published_name_12, t0.is_published_pack AS is_published_pack_13, t0.type AS type_14, t0.legal_status AS legal_status_15, t0.created_at AS created_at_16, t0.association_pack_id AS association_pack_id_17, t0.category_id AS category_id_18, t0.recurring_invoice_id AS recurring_invoice_id_19, t0.initial_invoice_id AS initial_invoice_id_20, t0.subscription_id AS subscription_id_21 FROM pack t0 INNER JOIN discount_code_pack ON t0.id = discount_code_pack.pack_id WHERE discount_code_pack.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.price AS price_3, t0.focus AS focus_4, t0.price_without_tax AS price_without_tax_5, t0.vat_rate AS vat_rate_6, t0.discount AS discount_7, t0.unique_key AS unique_key_8, t0.automation AS automation_9, t0.is_published AS is_published_10, t0.is_subscription AS is_subscription_11, t0.published_name AS published_name_12, t0.is_published_pack AS is_published_pack_13, t0.type AS type_14, t0.legal_status AS legal_status_15, t0.created_at AS created_at_16, t0.association_pack_id AS association_pack_id_17, t0.category_id AS category_id_18, t0.recurring_invoice_id AS recurring_invoice_id_19, t0.initial_invoice_id AS initial_invoice_id_20, t0.subscription_id AS subscription_id_21 FROM pack t0 INNER JOIN discount_code_pack ON t0.id = discount_code_pack.pack_id WHERE discount_code_pack.discount_code_id = 12;
|
60 |
1.11 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.unique_key AS unique_key_3, t0.security_deposit AS security_deposit_4, t0.is_active AS is_active_5, t0.authorized_frequency AS authorized_frequency_6, t0.created_at AS created_at_7, t0.update_at AS update_at_8, t0.price_without_tax AS price_without_tax_9, t0.product_id AS product_id_10 FROM subscription_model t0 INNER JOIN discount_code_subscription_model ON t0.id = discount_code_subscription_model.subscription_model_id WHERE discount_code_subscription_model.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.unique_key AS unique_key_3, t0.security_deposit AS security_deposit_4, t0.is_active AS is_active_5, t0.authorized_frequency AS authorized_frequency_6, t0.created_at AS created_at_7, t0.update_at AS update_at_8, t0.price_without_tax AS price_without_tax_9, t0.product_id AS product_id_10 FROM subscription_model t0 INNER JOIN discount_code_subscription_model ON t0.id = discount_code_subscription_model.subscription_model_id WHERE discount_code_subscription_model.discount_code_id = 12;
|
61 |
1.03 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.opening_hours AS opening_hours_3, t0.currencies_accepted AS currencies_accepted_4, t0.payment_accepted_type AS payment_accepted_type_5, t0.price_range AS price_range_6, t0.aggregate_rating AS aggregate_rating_7, t0.created_at AS created_at_8, t0.prefectoral_approval_number AS prefectoral_approval_number_9, t0.status AS status_10, t0.cedex AS cedex_11, t0.is_exportable_ibml AS is_exportable_ibml_12, t0.postal_address_id AS postal_address_id_13, t0.sector_id AS sector_id_14 FROM store t0 INNER JOIN discount_code_store ON t0.id = discount_code_store.store_id WHERE discount_code_store.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.opening_hours AS opening_hours_3, t0.currencies_accepted AS currencies_accepted_4, t0.payment_accepted_type AS payment_accepted_type_5, t0.price_range AS price_range_6, t0.aggregate_rating AS aggregate_rating_7, t0.created_at AS created_at_8, t0.prefectoral_approval_number AS prefectoral_approval_number_9, t0.status AS status_10, t0.cedex AS cedex_11, t0.is_exportable_ibml AS is_exportable_ibml_12, t0.postal_address_id AS postal_address_id_13, t0.sector_id AS sector_id_14 FROM store t0 INNER JOIN discount_code_store ON t0.id = discount_code_store.store_id WHERE discount_code_store.discount_code_id = 12;
|
62 |
3.75 ms |
SELECT t0.id AS id_1, t0.created_at AS created_at_2, t0.updated_at AS updated_at_3, t0.confirmation_number AS confirmation_number_4, t0.status AS status_5, t0.period_start AS period_start_6, t0.period_end AS period_end_7, t0.period_length AS period_length_8, t0.vatrate AS vatrate_9, t0.price_without_tax AS price_without_tax_10, t0.object AS object_11, t0.path AS path_12, t0.price AS price_13, t0.payment_recurrence AS payment_recurrence_14, t0.new_organization_legal_name AS new_organization_legal_name_15, t0.new_organization_vatid AS new_organization_vatid_16, t0.is_new_organization AS is_new_organization_17, t0.is_prescriber AS is_prescriber_18, t0.total_paid AS total_paid_19, t0.new_organization_user_email AS new_organization_user_email_20, t0.is_sent AS is_sent_21, t0.sent_date AS sent_date_22, t0.sent_to AS sent_to_23, t0.number AS number_24, t0.total_refund AS total_refund_25, t0.is_canceled AS is_canceled_26, t0.discount_without_tax AS discount_without_tax_27, t0.discount_without_tax_percent AS discount_without_tax_percent_28, t0.is_imported AS is_imported_29, t0.is_domiciliation AS is_domiciliation_30, t0.payment_url AS payment_url_31, t0.reference AS reference_32, t0.remaining_to_pay AS remaining_to_pay_33, t0.total_refunded_payment AS total_refunded_payment_34, t0.marge AS marge_35, t0.is_new_organization_prescribed AS is_new_organization_prescribed_36, t0.is_not_in_prescriber AS is_not_in_prescriber_37, t0.new_prescriber_legal_name AS new_prescriber_legal_name_38, t0.new_prescriber_vatid AS new_prescriber_vatid_39, t0.new_prescriber_user_email AS new_prescriber_user_email_40, t0.is_attached_to_prescriber AS is_attached_to_prescriber_41, t0.invoice_type AS invoice_type_42, t0.reference_stripe AS reference_stripe_43, t0.new_organization_phone_number AS new_organization_phone_number_44, t0.payment_deadline AS payment_deadline_45, t0.is_template AS is_template_46, t0.unique_key AS unique_key_47, t0.is_paid_by_stripe AS is_paid_by_stripe_48, t0.is_pack_invoice AS is_pack_invoice_49, t0.sync_billing_report AS sync_billing_report_50, t0.external_id AS external_id_51, t0.organization_id AS organization_id_52, t0.user_id AS user_id_53, t0.new_organization_address_id AS new_organization_address_id_54, t55.id AS id_56, t55.created_at AS created_at_57, t55.updated_at AS updated_at_58, t55.status AS status_59, t55.vatrate AS vatrate_60, t55.price_without_tax AS price_without_tax_61, t55.object AS object_62, t55.path AS path_63, t55.price AS price_64, t55.new_organization_legal_name AS new_organization_legal_name_65, t55.new_organization_vatid AS new_organization_vatid_66, t55.is_new_organization AS is_new_organization_67, t55.is_prescriber AS is_prescriber_68, t55.new_organization_user_email AS new_organization_user_email_69, t55.is_sent AS is_sent_70, t55.sent_date AS sent_date_71, t55.sent_to AS sent_to_72, t55.number AS number_73, t55.is_canceled AS is_canceled_74, t55.discount_without_tax AS discount_without_tax_75, t55.discount_without_tax_percent AS discount_without_tax_percent_76, t55.invoice_is_generated AS invoice_is_generated_77, t55.payment_url AS payment_url_78, t55.is_generate AS is_generate_79, t55.marge AS marge_80, t55.new_organization_phone_number AS new_organization_phone_number_81, t55.is_new_organization_prescribed AS is_new_organization_prescribed_82, t55.is_not_in_prescriber AS is_not_in_prescriber_83, t55.new_prescriber_legal_name AS new_prescriber_legal_name_84, t55.new_prescriber_vatid AS new_prescriber_vatid_85, t55.new_prescriber_user_email AS new_prescriber_user_email_86, t55.is_attached_to_prescriber AS is_attached_to_prescriber_87, t55.is_paid_by_stripe AS is_paid_by_stripe_88, t55.organization_id AS organization_id_89, t55.new_organization_address_id AS new_organization_address_id_90, t55.invoice_id AS invoice_id_91, t55.prescriber_id AS prescriber_id_92, t55.new_prescriber_address_id AS new_prescriber_address_id_93, t55.discount_code_id AS discount_code_id_94, t0.prescriber_id AS prescriber_id_95, t0.new_prescriber_address_id AS new_prescriber_address_id_96, t97.id AS id_98, t97.created_at AS created_at_99, t97.updated_at AS updated_at_100, t97.is_done AS is_done_101, t97.comment AS comment_102, t97.npai AS npai_103, t97.price_without_tax AS price_without_tax_104, t97.tracking_number AS tracking_number_105, t97.price AS price_106, t97.days_keep AS days_keep_107, t97.organization_id AS organization_id_108, t97.invoice_id AS invoice_id_109, t0.invoice_parent_id AS invoice_parent_id_110, t111.id AS id_112, t111.created_at AS created_at_113, t111.updated_at AS updated_at_114, t111.confirmation_number AS confirmation_number_115, t111.status AS status_116, t111.period_start AS period_start_117, t111.period_end AS period_end_118, t111.period_length AS period_length_119, t111.vatrate AS vatrate_120, t111.price_without_tax AS price_without_tax_121, t111.object AS object_122, t111.path AS path_123, t111.price AS price_124, t111.payment_recurrence AS payment_recurrence_125, t111.new_organization_legal_name AS new_organization_legal_name_126, t111.new_organization_vatid AS new_organization_vatid_127, t111.is_new_organization AS is_new_organization_128, t111.is_prescriber AS is_prescriber_129, t111.total_paid AS total_paid_130, t111.new_organization_user_email AS new_organization_user_email_131, t111.is_sent AS is_sent_132, t111.sent_date AS sent_date_133, t111.sent_to AS sent_to_134, t111.number AS number_135, t111.total_refund AS total_refund_136, t111.is_canceled AS is_canceled_137, t111.discount_without_tax AS discount_without_tax_138, t111.discount_without_tax_percent AS discount_without_tax_percent_139, t111.is_imported AS is_imported_140, t111.is_domiciliation AS is_domiciliation_141, t111.payment_url AS payment_url_142, t111.reference AS reference_143, t111.remaining_to_pay AS remaining_to_pay_144, t111.total_refunded_payment AS total_refunded_payment_145, t111.marge AS marge_146, t111.is_new_organization_prescribed AS is_new_organization_prescribed_147, t111.is_not_in_prescriber AS is_not_in_prescriber_148, t111.new_prescriber_legal_name AS new_prescriber_legal_name_149, t111.new_prescriber_vatid AS new_prescriber_vatid_150, t111.new_prescriber_user_email AS new_prescriber_user_email_151, t111.is_attached_to_prescriber AS is_attached_to_prescriber_152, t111.invoice_type AS invoice_type_153, t111.reference_stripe AS reference_stripe_154, t111.new_organization_phone_number AS new_organization_phone_number_155, t111.payment_deadline AS payment_deadline_156, t111.is_template AS is_template_157, t111.unique_key AS unique_key_158, t111.is_paid_by_stripe AS is_paid_by_stripe_159, t111.is_pack_invoice AS is_pack_invoice_160, t111.sync_billing_report AS sync_billing_report_161, t111.external_id AS external_id_162, t111.organization_id AS organization_id_163, t111.user_id AS user_id_164, t111.new_organization_address_id AS new_organization_address_id_165, t111.prescriber_id AS prescriber_id_166, t111.new_prescriber_address_id AS new_prescriber_address_id_167, t111.invoice_parent_id AS invoice_parent_id_168, t111.discount_code_id AS discount_code_id_169, t0.discount_code_id AS discount_code_id_170 FROM invoice t0 LEFT JOIN quote t55 ON t55.invoice_id = t0.id LEFT JOIN letter_forward t97 ON t97.invoice_id = t0.id LEFT JOIN invoice t111 ON t111.invoice_parent_id = t0.id WHERE t0.discount_code_id = ?
SELECT
t0.id AS id_1,
t0.created_at AS created_at_2,
t0.updated_at AS updated_at_3,
t0.confirmation_number AS confirmation_number_4,
t0.status AS status_5,
t0.period_start AS period_start_6,
t0.period_end AS period_end_7,
t0.period_length AS period_length_8,
t0.vatrate AS vatrate_9,
t0.price_without_tax AS price_without_tax_10,
t0.object AS object_11,
t0.path AS path_12,
t0.price AS price_13,
t0.payment_recurrence AS payment_recurrence_14,
t0.new_organization_legal_name AS new_organization_legal_name_15,
t0.new_organization_vatid AS new_organization_vatid_16,
t0.is_new_organization AS is_new_organization_17,
t0.is_prescriber AS is_prescriber_18,
t0.total_paid AS total_paid_19,
t0.new_organization_user_email AS new_organization_user_email_20,
t0.is_sent AS is_sent_21,
t0.sent_date AS sent_date_22,
t0.sent_to AS sent_to_23,
t0.number AS number_24,
t0.total_refund AS total_refund_25,
t0.is_canceled AS is_canceled_26,
t0.discount_without_tax AS discount_without_tax_27,
t0.discount_without_tax_percent AS discount_without_tax_percent_28,
t0.is_imported AS is_imported_29,
t0.is_domiciliation AS is_domiciliation_30,
t0.payment_url AS payment_url_31,
t0.reference AS reference_32,
t0.remaining_to_pay AS remaining_to_pay_33,
t0.total_refunded_payment AS total_refunded_payment_34,
t0.marge AS marge_35,
t0.is_new_organization_prescribed AS is_new_organization_prescribed_36,
t0.is_not_in_prescriber AS is_not_in_prescriber_37,
t0.new_prescriber_legal_name AS new_prescriber_legal_name_38,
t0.new_prescriber_vatid AS new_prescriber_vatid_39,
t0.new_prescriber_user_email AS new_prescriber_user_email_40,
t0.is_attached_to_prescriber AS is_attached_to_prescriber_41,
t0.invoice_type AS invoice_type_42,
t0.reference_stripe AS reference_stripe_43,
t0.new_organization_phone_number AS new_organization_phone_number_44,
t0.payment_deadline AS payment_deadline_45,
t0.is_template AS is_template_46,
t0.unique_key AS unique_key_47,
t0.is_paid_by_stripe AS is_paid_by_stripe_48,
t0.is_pack_invoice AS is_pack_invoice_49,
t0.sync_billing_report AS sync_billing_report_50,
t0.external_id AS external_id_51,
t0.organization_id AS organization_id_52,
t0.user_id AS user_id_53,
t0.new_organization_address_id AS new_organization_address_id_54,
t55.id AS id_56,
t55.created_at AS created_at_57,
t55.updated_at AS updated_at_58,
t55.status AS status_59,
t55.vatrate AS vatrate_60,
t55.price_without_tax AS price_without_tax_61,
t55.object AS object_62,
t55.path AS path_63,
t55.price AS price_64,
t55.new_organization_legal_name AS new_organization_legal_name_65,
t55.new_organization_vatid AS new_organization_vatid_66,
t55.is_new_organization AS is_new_organization_67,
t55.is_prescriber AS is_prescriber_68,
t55.new_organization_user_email AS new_organization_user_email_69,
t55.is_sent AS is_sent_70,
t55.sent_date AS sent_date_71,
t55.sent_to AS sent_to_72,
t55.number AS number_73,
t55.is_canceled AS is_canceled_74,
t55.discount_without_tax AS discount_without_tax_75,
t55.discount_without_tax_percent AS discount_without_tax_percent_76,
t55.invoice_is_generated AS invoice_is_generated_77,
t55.payment_url AS payment_url_78,
t55.is_generate AS is_generate_79,
t55.marge AS marge_80,
t55.new_organization_phone_number AS new_organization_phone_number_81,
t55.is_new_organization_prescribed AS is_new_organization_prescribed_82,
t55.is_not_in_prescriber AS is_not_in_prescriber_83,
t55.new_prescriber_legal_name AS new_prescriber_legal_name_84,
t55.new_prescriber_vatid AS new_prescriber_vatid_85,
t55.new_prescriber_user_email AS new_prescriber_user_email_86,
t55.is_attached_to_prescriber AS is_attached_to_prescriber_87,
t55.is_paid_by_stripe AS is_paid_by_stripe_88,
t55.organization_id AS organization_id_89,
t55.new_organization_address_id AS new_organization_address_id_90,
t55.invoice_id AS invoice_id_91,
t55.prescriber_id AS prescriber_id_92,
t55.new_prescriber_address_id AS new_prescriber_address_id_93,
t55.discount_code_id AS discount_code_id_94,
t0.prescriber_id AS prescriber_id_95,
t0.new_prescriber_address_id AS new_prescriber_address_id_96,
t97.id AS id_98,
t97.created_at AS created_at_99,
t97.updated_at AS updated_at_100,
t97.is_done AS is_done_101,
t97.comment AS comment_102,
t97.npai AS npai_103,
t97.price_without_tax AS price_without_tax_104,
t97.tracking_number AS tracking_number_105,
t97.price AS price_106,
t97.days_keep AS days_keep_107,
t97.organization_id AS organization_id_108,
t97.invoice_id AS invoice_id_109,
t0.invoice_parent_id AS invoice_parent_id_110,
t111.id AS id_112,
t111.created_at AS created_at_113,
t111.updated_at AS updated_at_114,
t111.confirmation_number AS confirmation_number_115,
t111.status AS status_116,
t111.period_start AS period_start_117,
t111.period_end AS period_end_118,
t111.period_length AS period_length_119,
t111.vatrate AS vatrate_120,
t111.price_without_tax AS price_without_tax_121,
t111.object AS object_122,
t111.path AS path_123,
t111.price AS price_124,
t111.payment_recurrence AS payment_recurrence_125,
t111.new_organization_legal_name AS new_organization_legal_name_126,
t111.new_organization_vatid AS new_organization_vatid_127,
t111.is_new_organization AS is_new_organization_128,
t111.is_prescriber AS is_prescriber_129,
t111.total_paid AS total_paid_130,
t111.new_organization_user_email AS new_organization_user_email_131,
t111.is_sent AS is_sent_132,
t111.sent_date AS sent_date_133,
t111.sent_to AS sent_to_134,
t111.number AS number_135,
t111.total_refund AS total_refund_136,
t111.is_canceled AS is_canceled_137,
t111.discount_without_tax AS discount_without_tax_138,
t111.discount_without_tax_percent AS discount_without_tax_percent_139,
t111.is_imported AS is_imported_140,
t111.is_domiciliation AS is_domiciliation_141,
t111.payment_url AS payment_url_142,
t111.reference AS reference_143,
t111.remaining_to_pay AS remaining_to_pay_144,
t111.total_refunded_payment AS total_refunded_payment_145,
t111.marge AS marge_146,
t111.is_new_organization_prescribed AS is_new_organization_prescribed_147,
t111.is_not_in_prescriber AS is_not_in_prescriber_148,
t111.new_prescriber_legal_name AS new_prescriber_legal_name_149,
t111.new_prescriber_vatid AS new_prescriber_vatid_150,
t111.new_prescriber_user_email AS new_prescriber_user_email_151,
t111.is_attached_to_prescriber AS is_attached_to_prescriber_152,
t111.invoice_type AS invoice_type_153,
t111.reference_stripe AS reference_stripe_154,
t111.new_organization_phone_number AS new_organization_phone_number_155,
t111.payment_deadline AS payment_deadline_156,
t111.is_template AS is_template_157,
t111.unique_key AS unique_key_158,
t111.is_paid_by_stripe AS is_paid_by_stripe_159,
t111.is_pack_invoice AS is_pack_invoice_160,
t111.sync_billing_report AS sync_billing_report_161,
t111.external_id AS external_id_162,
t111.organization_id AS organization_id_163,
t111.user_id AS user_id_164,
t111.new_organization_address_id AS new_organization_address_id_165,
t111.prescriber_id AS prescriber_id_166,
t111.new_prescriber_address_id AS new_prescriber_address_id_167,
t111.invoice_parent_id AS invoice_parent_id_168,
t111.discount_code_id AS discount_code_id_169,
t0.discount_code_id AS discount_code_id_170
FROM
invoice t0
LEFT JOIN quote t55 ON t55.invoice_id = t0.id
LEFT JOIN letter_forward t97 ON t97.invoice_id = t0.id
LEFT JOIN invoice t111 ON t111.invoice_parent_id = t0.id
WHERE
t0.discount_code_id = ?
SELECT t0.id AS id_1, t0.created_at AS created_at_2, t0.updated_at AS updated_at_3, t0.confirmation_number AS confirmation_number_4, t0.status AS status_5, t0.period_start AS period_start_6, t0.period_end AS period_end_7, t0.period_length AS period_length_8, t0.vatrate AS vatrate_9, t0.price_without_tax AS price_without_tax_10, t0.object AS object_11, t0.path AS path_12, t0.price AS price_13, t0.payment_recurrence AS payment_recurrence_14, t0.new_organization_legal_name AS new_organization_legal_name_15, t0.new_organization_vatid AS new_organization_vatid_16, t0.is_new_organization AS is_new_organization_17, t0.is_prescriber AS is_prescriber_18, t0.total_paid AS total_paid_19, t0.new_organization_user_email AS new_organization_user_email_20, t0.is_sent AS is_sent_21, t0.sent_date AS sent_date_22, t0.sent_to AS sent_to_23, t0.number AS number_24, t0.total_refund AS total_refund_25, t0.is_canceled AS is_canceled_26, t0.discount_without_tax AS discount_without_tax_27, t0.discount_without_tax_percent AS discount_without_tax_percent_28, t0.is_imported AS is_imported_29, t0.is_domiciliation AS is_domiciliation_30, t0.payment_url AS payment_url_31, t0.reference AS reference_32, t0.remaining_to_pay AS remaining_to_pay_33, t0.total_refunded_payment AS total_refunded_payment_34, t0.marge AS marge_35, t0.is_new_organization_prescribed AS is_new_organization_prescribed_36, t0.is_not_in_prescriber AS is_not_in_prescriber_37, t0.new_prescriber_legal_name AS new_prescriber_legal_name_38, t0.new_prescriber_vatid AS new_prescriber_vatid_39, t0.new_prescriber_user_email AS new_prescriber_user_email_40, t0.is_attached_to_prescriber AS is_attached_to_prescriber_41, t0.invoice_type AS invoice_type_42, t0.reference_stripe AS reference_stripe_43, t0.new_organization_phone_number AS new_organization_phone_number_44, t0.payment_deadline AS payment_deadline_45, t0.is_template AS is_template_46, t0.unique_key AS unique_key_47, t0.is_paid_by_stripe AS is_paid_by_stripe_48, t0.is_pack_invoice AS is_pack_invoice_49, t0.sync_billing_report AS sync_billing_report_50, t0.external_id AS external_id_51, t0.organization_id AS organization_id_52, t0.user_id AS user_id_53, t0.new_organization_address_id AS new_organization_address_id_54, t55.id AS id_56, t55.created_at AS created_at_57, t55.updated_at AS updated_at_58, t55.status AS status_59, t55.vatrate AS vatrate_60, t55.price_without_tax AS price_without_tax_61, t55.object AS object_62, t55.path AS path_63, t55.price AS price_64, t55.new_organization_legal_name AS new_organization_legal_name_65, t55.new_organization_vatid AS new_organization_vatid_66, t55.is_new_organization AS is_new_organization_67, t55.is_prescriber AS is_prescriber_68, t55.new_organization_user_email AS new_organization_user_email_69, t55.is_sent AS is_sent_70, t55.sent_date AS sent_date_71, t55.sent_to AS sent_to_72, t55.number AS number_73, t55.is_canceled AS is_canceled_74, t55.discount_without_tax AS discount_without_tax_75, t55.discount_without_tax_percent AS discount_without_tax_percent_76, t55.invoice_is_generated AS invoice_is_generated_77, t55.payment_url AS payment_url_78, t55.is_generate AS is_generate_79, t55.marge AS marge_80, t55.new_organization_phone_number AS new_organization_phone_number_81, t55.is_new_organization_prescribed AS is_new_organization_prescribed_82, t55.is_not_in_prescriber AS is_not_in_prescriber_83, t55.new_prescriber_legal_name AS new_prescriber_legal_name_84, t55.new_prescriber_vatid AS new_prescriber_vatid_85, t55.new_prescriber_user_email AS new_prescriber_user_email_86, t55.is_attached_to_prescriber AS is_attached_to_prescriber_87, t55.is_paid_by_stripe AS is_paid_by_stripe_88, t55.organization_id AS organization_id_89, t55.new_organization_address_id AS new_organization_address_id_90, t55.invoice_id AS invoice_id_91, t55.prescriber_id AS prescriber_id_92, t55.new_prescriber_address_id AS new_prescriber_address_id_93, t55.discount_code_id AS discount_code_id_94, t0.prescriber_id AS prescriber_id_95, t0.new_prescriber_address_id AS new_prescriber_address_id_96, t97.id AS id_98, t97.created_at AS created_at_99, t97.updated_at AS updated_at_100, t97.is_done AS is_done_101, t97.comment AS comment_102, t97.npai AS npai_103, t97.price_without_tax AS price_without_tax_104, t97.tracking_number AS tracking_number_105, t97.price AS price_106, t97.days_keep AS days_keep_107, t97.organization_id AS organization_id_108, t97.invoice_id AS invoice_id_109, t0.invoice_parent_id AS invoice_parent_id_110, t111.id AS id_112, t111.created_at AS created_at_113, t111.updated_at AS updated_at_114, t111.confirmation_number AS confirmation_number_115, t111.status AS status_116, t111.period_start AS period_start_117, t111.period_end AS period_end_118, t111.period_length AS period_length_119, t111.vatrate AS vatrate_120, t111.price_without_tax AS price_without_tax_121, t111.object AS object_122, t111.path AS path_123, t111.price AS price_124, t111.payment_recurrence AS payment_recurrence_125, t111.new_organization_legal_name AS new_organization_legal_name_126, t111.new_organization_vatid AS new_organization_vatid_127, t111.is_new_organization AS is_new_organization_128, t111.is_prescriber AS is_prescriber_129, t111.total_paid AS total_paid_130, t111.new_organization_user_email AS new_organization_user_email_131, t111.is_sent AS is_sent_132, t111.sent_date AS sent_date_133, t111.sent_to AS sent_to_134, t111.number AS number_135, t111.total_refund AS total_refund_136, t111.is_canceled AS is_canceled_137, t111.discount_without_tax AS discount_without_tax_138, t111.discount_without_tax_percent AS discount_without_tax_percent_139, t111.is_imported AS is_imported_140, t111.is_domiciliation AS is_domiciliation_141, t111.payment_url AS payment_url_142, t111.reference AS reference_143, t111.remaining_to_pay AS remaining_to_pay_144, t111.total_refunded_payment AS total_refunded_payment_145, t111.marge AS marge_146, t111.is_new_organization_prescribed AS is_new_organization_prescribed_147, t111.is_not_in_prescriber AS is_not_in_prescriber_148, t111.new_prescriber_legal_name AS new_prescriber_legal_name_149, t111.new_prescriber_vatid AS new_prescriber_vatid_150, t111.new_prescriber_user_email AS new_prescriber_user_email_151, t111.is_attached_to_prescriber AS is_attached_to_prescriber_152, t111.invoice_type AS invoice_type_153, t111.reference_stripe AS reference_stripe_154, t111.new_organization_phone_number AS new_organization_phone_number_155, t111.payment_deadline AS payment_deadline_156, t111.is_template AS is_template_157, t111.unique_key AS unique_key_158, t111.is_paid_by_stripe AS is_paid_by_stripe_159, t111.is_pack_invoice AS is_pack_invoice_160, t111.sync_billing_report AS sync_billing_report_161, t111.external_id AS external_id_162, t111.organization_id AS organization_id_163, t111.user_id AS user_id_164, t111.new_organization_address_id AS new_organization_address_id_165, t111.prescriber_id AS prescriber_id_166, t111.new_prescriber_address_id AS new_prescriber_address_id_167, t111.invoice_parent_id AS invoice_parent_id_168, t111.discount_code_id AS discount_code_id_169, t0.discount_code_id AS discount_code_id_170 FROM invoice t0 LEFT JOIN quote t55 ON t55.invoice_id = t0.id LEFT JOIN letter_forward t97 ON t97.invoice_id = t0.id LEFT JOIN invoice t111 ON t111.invoice_parent_id = t0.id WHERE t0.discount_code_id = 12;
|
63 |
1.45 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.alternate_name AS alternate_name_3, t0.price_without_tax AS price_without_tax_4, t0.description AS description_5, t0.active AS active_6, t0.meta_description AS meta_description_7, t0.meta_title AS meta_title_8, t0.url AS url_9, t0.created_at AS created_at_10, t0.subscription_type AS subscription_type_11, t0.unique_key AS unique_key_12, t0.is_displayed AS is_displayed_13, t0.is_archived AS is_archived_14, t0.is_subscription_component AS is_subscription_component_15, t0.category_id AS category_id_16, t0.category_for_billing_report_id AS category_for_billing_report_id_17 FROM product t0 INNER JOIN discount_code_product ON t0.id = discount_code_product.product_id WHERE discount_code_product.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.alternate_name AS alternate_name_3, t0.price_without_tax AS price_without_tax_4, t0.description AS description_5, t0.active AS active_6, t0.meta_description AS meta_description_7, t0.meta_title AS meta_title_8, t0.url AS url_9, t0.created_at AS created_at_10, t0.subscription_type AS subscription_type_11, t0.unique_key AS unique_key_12, t0.is_displayed AS is_displayed_13, t0.is_archived AS is_archived_14, t0.is_subscription_component AS is_subscription_component_15, t0.category_id AS category_id_16, t0.category_for_billing_report_id AS category_for_billing_report_id_17 FROM product t0 INNER JOIN discount_code_product ON t0.id = discount_code_product.product_id WHERE discount_code_product.discount_code_id = 12;
|
64 |
1.38 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.price AS price_3, t0.focus AS focus_4, t0.price_without_tax AS price_without_tax_5, t0.vat_rate AS vat_rate_6, t0.discount AS discount_7, t0.unique_key AS unique_key_8, t0.automation AS automation_9, t0.is_published AS is_published_10, t0.is_subscription AS is_subscription_11, t0.published_name AS published_name_12, t0.is_published_pack AS is_published_pack_13, t0.type AS type_14, t0.legal_status AS legal_status_15, t0.created_at AS created_at_16, t0.association_pack_id AS association_pack_id_17, t0.category_id AS category_id_18, t0.recurring_invoice_id AS recurring_invoice_id_19, t0.initial_invoice_id AS initial_invoice_id_20, t0.subscription_id AS subscription_id_21 FROM pack t0 INNER JOIN discount_code_pack ON t0.id = discount_code_pack.pack_id WHERE discount_code_pack.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.price AS price_3, t0.focus AS focus_4, t0.price_without_tax AS price_without_tax_5, t0.vat_rate AS vat_rate_6, t0.discount AS discount_7, t0.unique_key AS unique_key_8, t0.automation AS automation_9, t0.is_published AS is_published_10, t0.is_subscription AS is_subscription_11, t0.published_name AS published_name_12, t0.is_published_pack AS is_published_pack_13, t0.type AS type_14, t0.legal_status AS legal_status_15, t0.created_at AS created_at_16, t0.association_pack_id AS association_pack_id_17, t0.category_id AS category_id_18, t0.recurring_invoice_id AS recurring_invoice_id_19, t0.initial_invoice_id AS initial_invoice_id_20, t0.subscription_id AS subscription_id_21 FROM pack t0 INNER JOIN discount_code_pack ON t0.id = discount_code_pack.pack_id WHERE discount_code_pack.discount_code_id = 13;
|
65 |
1.36 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.unique_key AS unique_key_3, t0.security_deposit AS security_deposit_4, t0.is_active AS is_active_5, t0.authorized_frequency AS authorized_frequency_6, t0.created_at AS created_at_7, t0.update_at AS update_at_8, t0.price_without_tax AS price_without_tax_9, t0.product_id AS product_id_10 FROM subscription_model t0 INNER JOIN discount_code_subscription_model ON t0.id = discount_code_subscription_model.subscription_model_id WHERE discount_code_subscription_model.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.unique_key AS unique_key_3, t0.security_deposit AS security_deposit_4, t0.is_active AS is_active_5, t0.authorized_frequency AS authorized_frequency_6, t0.created_at AS created_at_7, t0.update_at AS update_at_8, t0.price_without_tax AS price_without_tax_9, t0.product_id AS product_id_10 FROM subscription_model t0 INNER JOIN discount_code_subscription_model ON t0.id = discount_code_subscription_model.subscription_model_id WHERE discount_code_subscription_model.discount_code_id = 13;
|
66 |
1.17 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.opening_hours AS opening_hours_3, t0.currencies_accepted AS currencies_accepted_4, t0.payment_accepted_type AS payment_accepted_type_5, t0.price_range AS price_range_6, t0.aggregate_rating AS aggregate_rating_7, t0.created_at AS created_at_8, t0.prefectoral_approval_number AS prefectoral_approval_number_9, t0.status AS status_10, t0.cedex AS cedex_11, t0.is_exportable_ibml AS is_exportable_ibml_12, t0.postal_address_id AS postal_address_id_13, t0.sector_id AS sector_id_14 FROM store t0 INNER JOIN discount_code_store ON t0.id = discount_code_store.store_id WHERE discount_code_store.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.opening_hours AS opening_hours_3, t0.currencies_accepted AS currencies_accepted_4, t0.payment_accepted_type AS payment_accepted_type_5, t0.price_range AS price_range_6, t0.aggregate_rating AS aggregate_rating_7, t0.created_at AS created_at_8, t0.prefectoral_approval_number AS prefectoral_approval_number_9, t0.status AS status_10, t0.cedex AS cedex_11, t0.is_exportable_ibml AS is_exportable_ibml_12, t0.postal_address_id AS postal_address_id_13, t0.sector_id AS sector_id_14 FROM store t0 INNER JOIN discount_code_store ON t0.id = discount_code_store.store_id WHERE discount_code_store.discount_code_id = 13;
|
67 |
1.70 ms |
SELECT t0.id AS id_1, t0.created_at AS created_at_2, t0.updated_at AS updated_at_3, t0.confirmation_number AS confirmation_number_4, t0.status AS status_5, t0.period_start AS period_start_6, t0.period_end AS period_end_7, t0.period_length AS period_length_8, t0.vatrate AS vatrate_9, t0.price_without_tax AS price_without_tax_10, t0.object AS object_11, t0.path AS path_12, t0.price AS price_13, t0.payment_recurrence AS payment_recurrence_14, t0.new_organization_legal_name AS new_organization_legal_name_15, t0.new_organization_vatid AS new_organization_vatid_16, t0.is_new_organization AS is_new_organization_17, t0.is_prescriber AS is_prescriber_18, t0.total_paid AS total_paid_19, t0.new_organization_user_email AS new_organization_user_email_20, t0.is_sent AS is_sent_21, t0.sent_date AS sent_date_22, t0.sent_to AS sent_to_23, t0.number AS number_24, t0.total_refund AS total_refund_25, t0.is_canceled AS is_canceled_26, t0.discount_without_tax AS discount_without_tax_27, t0.discount_without_tax_percent AS discount_without_tax_percent_28, t0.is_imported AS is_imported_29, t0.is_domiciliation AS is_domiciliation_30, t0.payment_url AS payment_url_31, t0.reference AS reference_32, t0.remaining_to_pay AS remaining_to_pay_33, t0.total_refunded_payment AS total_refunded_payment_34, t0.marge AS marge_35, t0.is_new_organization_prescribed AS is_new_organization_prescribed_36, t0.is_not_in_prescriber AS is_not_in_prescriber_37, t0.new_prescriber_legal_name AS new_prescriber_legal_name_38, t0.new_prescriber_vatid AS new_prescriber_vatid_39, t0.new_prescriber_user_email AS new_prescriber_user_email_40, t0.is_attached_to_prescriber AS is_attached_to_prescriber_41, t0.invoice_type AS invoice_type_42, t0.reference_stripe AS reference_stripe_43, t0.new_organization_phone_number AS new_organization_phone_number_44, t0.payment_deadline AS payment_deadline_45, t0.is_template AS is_template_46, t0.unique_key AS unique_key_47, t0.is_paid_by_stripe AS is_paid_by_stripe_48, t0.is_pack_invoice AS is_pack_invoice_49, t0.sync_billing_report AS sync_billing_report_50, t0.external_id AS external_id_51, t0.organization_id AS organization_id_52, t0.user_id AS user_id_53, t0.new_organization_address_id AS new_organization_address_id_54, t55.id AS id_56, t55.created_at AS created_at_57, t55.updated_at AS updated_at_58, t55.status AS status_59, t55.vatrate AS vatrate_60, t55.price_without_tax AS price_without_tax_61, t55.object AS object_62, t55.path AS path_63, t55.price AS price_64, t55.new_organization_legal_name AS new_organization_legal_name_65, t55.new_organization_vatid AS new_organization_vatid_66, t55.is_new_organization AS is_new_organization_67, t55.is_prescriber AS is_prescriber_68, t55.new_organization_user_email AS new_organization_user_email_69, t55.is_sent AS is_sent_70, t55.sent_date AS sent_date_71, t55.sent_to AS sent_to_72, t55.number AS number_73, t55.is_canceled AS is_canceled_74, t55.discount_without_tax AS discount_without_tax_75, t55.discount_without_tax_percent AS discount_without_tax_percent_76, t55.invoice_is_generated AS invoice_is_generated_77, t55.payment_url AS payment_url_78, t55.is_generate AS is_generate_79, t55.marge AS marge_80, t55.new_organization_phone_number AS new_organization_phone_number_81, t55.is_new_organization_prescribed AS is_new_organization_prescribed_82, t55.is_not_in_prescriber AS is_not_in_prescriber_83, t55.new_prescriber_legal_name AS new_prescriber_legal_name_84, t55.new_prescriber_vatid AS new_prescriber_vatid_85, t55.new_prescriber_user_email AS new_prescriber_user_email_86, t55.is_attached_to_prescriber AS is_attached_to_prescriber_87, t55.is_paid_by_stripe AS is_paid_by_stripe_88, t55.organization_id AS organization_id_89, t55.new_organization_address_id AS new_organization_address_id_90, t55.invoice_id AS invoice_id_91, t55.prescriber_id AS prescriber_id_92, t55.new_prescriber_address_id AS new_prescriber_address_id_93, t55.discount_code_id AS discount_code_id_94, t0.prescriber_id AS prescriber_id_95, t0.new_prescriber_address_id AS new_prescriber_address_id_96, t97.id AS id_98, t97.created_at AS created_at_99, t97.updated_at AS updated_at_100, t97.is_done AS is_done_101, t97.comment AS comment_102, t97.npai AS npai_103, t97.price_without_tax AS price_without_tax_104, t97.tracking_number AS tracking_number_105, t97.price AS price_106, t97.days_keep AS days_keep_107, t97.organization_id AS organization_id_108, t97.invoice_id AS invoice_id_109, t0.invoice_parent_id AS invoice_parent_id_110, t111.id AS id_112, t111.created_at AS created_at_113, t111.updated_at AS updated_at_114, t111.confirmation_number AS confirmation_number_115, t111.status AS status_116, t111.period_start AS period_start_117, t111.period_end AS period_end_118, t111.period_length AS period_length_119, t111.vatrate AS vatrate_120, t111.price_without_tax AS price_without_tax_121, t111.object AS object_122, t111.path AS path_123, t111.price AS price_124, t111.payment_recurrence AS payment_recurrence_125, t111.new_organization_legal_name AS new_organization_legal_name_126, t111.new_organization_vatid AS new_organization_vatid_127, t111.is_new_organization AS is_new_organization_128, t111.is_prescriber AS is_prescriber_129, t111.total_paid AS total_paid_130, t111.new_organization_user_email AS new_organization_user_email_131, t111.is_sent AS is_sent_132, t111.sent_date AS sent_date_133, t111.sent_to AS sent_to_134, t111.number AS number_135, t111.total_refund AS total_refund_136, t111.is_canceled AS is_canceled_137, t111.discount_without_tax AS discount_without_tax_138, t111.discount_without_tax_percent AS discount_without_tax_percent_139, t111.is_imported AS is_imported_140, t111.is_domiciliation AS is_domiciliation_141, t111.payment_url AS payment_url_142, t111.reference AS reference_143, t111.remaining_to_pay AS remaining_to_pay_144, t111.total_refunded_payment AS total_refunded_payment_145, t111.marge AS marge_146, t111.is_new_organization_prescribed AS is_new_organization_prescribed_147, t111.is_not_in_prescriber AS is_not_in_prescriber_148, t111.new_prescriber_legal_name AS new_prescriber_legal_name_149, t111.new_prescriber_vatid AS new_prescriber_vatid_150, t111.new_prescriber_user_email AS new_prescriber_user_email_151, t111.is_attached_to_prescriber AS is_attached_to_prescriber_152, t111.invoice_type AS invoice_type_153, t111.reference_stripe AS reference_stripe_154, t111.new_organization_phone_number AS new_organization_phone_number_155, t111.payment_deadline AS payment_deadline_156, t111.is_template AS is_template_157, t111.unique_key AS unique_key_158, t111.is_paid_by_stripe AS is_paid_by_stripe_159, t111.is_pack_invoice AS is_pack_invoice_160, t111.sync_billing_report AS sync_billing_report_161, t111.external_id AS external_id_162, t111.organization_id AS organization_id_163, t111.user_id AS user_id_164, t111.new_organization_address_id AS new_organization_address_id_165, t111.prescriber_id AS prescriber_id_166, t111.new_prescriber_address_id AS new_prescriber_address_id_167, t111.invoice_parent_id AS invoice_parent_id_168, t111.discount_code_id AS discount_code_id_169, t0.discount_code_id AS discount_code_id_170 FROM invoice t0 LEFT JOIN quote t55 ON t55.invoice_id = t0.id LEFT JOIN letter_forward t97 ON t97.invoice_id = t0.id LEFT JOIN invoice t111 ON t111.invoice_parent_id = t0.id WHERE t0.discount_code_id = ?
SELECT
t0.id AS id_1,
t0.created_at AS created_at_2,
t0.updated_at AS updated_at_3,
t0.confirmation_number AS confirmation_number_4,
t0.status AS status_5,
t0.period_start AS period_start_6,
t0.period_end AS period_end_7,
t0.period_length AS period_length_8,
t0.vatrate AS vatrate_9,
t0.price_without_tax AS price_without_tax_10,
t0.object AS object_11,
t0.path AS path_12,
t0.price AS price_13,
t0.payment_recurrence AS payment_recurrence_14,
t0.new_organization_legal_name AS new_organization_legal_name_15,
t0.new_organization_vatid AS new_organization_vatid_16,
t0.is_new_organization AS is_new_organization_17,
t0.is_prescriber AS is_prescriber_18,
t0.total_paid AS total_paid_19,
t0.new_organization_user_email AS new_organization_user_email_20,
t0.is_sent AS is_sent_21,
t0.sent_date AS sent_date_22,
t0.sent_to AS sent_to_23,
t0.number AS number_24,
t0.total_refund AS total_refund_25,
t0.is_canceled AS is_canceled_26,
t0.discount_without_tax AS discount_without_tax_27,
t0.discount_without_tax_percent AS discount_without_tax_percent_28,
t0.is_imported AS is_imported_29,
t0.is_domiciliation AS is_domiciliation_30,
t0.payment_url AS payment_url_31,
t0.reference AS reference_32,
t0.remaining_to_pay AS remaining_to_pay_33,
t0.total_refunded_payment AS total_refunded_payment_34,
t0.marge AS marge_35,
t0.is_new_organization_prescribed AS is_new_organization_prescribed_36,
t0.is_not_in_prescriber AS is_not_in_prescriber_37,
t0.new_prescriber_legal_name AS new_prescriber_legal_name_38,
t0.new_prescriber_vatid AS new_prescriber_vatid_39,
t0.new_prescriber_user_email AS new_prescriber_user_email_40,
t0.is_attached_to_prescriber AS is_attached_to_prescriber_41,
t0.invoice_type AS invoice_type_42,
t0.reference_stripe AS reference_stripe_43,
t0.new_organization_phone_number AS new_organization_phone_number_44,
t0.payment_deadline AS payment_deadline_45,
t0.is_template AS is_template_46,
t0.unique_key AS unique_key_47,
t0.is_paid_by_stripe AS is_paid_by_stripe_48,
t0.is_pack_invoice AS is_pack_invoice_49,
t0.sync_billing_report AS sync_billing_report_50,
t0.external_id AS external_id_51,
t0.organization_id AS organization_id_52,
t0.user_id AS user_id_53,
t0.new_organization_address_id AS new_organization_address_id_54,
t55.id AS id_56,
t55.created_at AS created_at_57,
t55.updated_at AS updated_at_58,
t55.status AS status_59,
t55.vatrate AS vatrate_60,
t55.price_without_tax AS price_without_tax_61,
t55.object AS object_62,
t55.path AS path_63,
t55.price AS price_64,
t55.new_organization_legal_name AS new_organization_legal_name_65,
t55.new_organization_vatid AS new_organization_vatid_66,
t55.is_new_organization AS is_new_organization_67,
t55.is_prescriber AS is_prescriber_68,
t55.new_organization_user_email AS new_organization_user_email_69,
t55.is_sent AS is_sent_70,
t55.sent_date AS sent_date_71,
t55.sent_to AS sent_to_72,
t55.number AS number_73,
t55.is_canceled AS is_canceled_74,
t55.discount_without_tax AS discount_without_tax_75,
t55.discount_without_tax_percent AS discount_without_tax_percent_76,
t55.invoice_is_generated AS invoice_is_generated_77,
t55.payment_url AS payment_url_78,
t55.is_generate AS is_generate_79,
t55.marge AS marge_80,
t55.new_organization_phone_number AS new_organization_phone_number_81,
t55.is_new_organization_prescribed AS is_new_organization_prescribed_82,
t55.is_not_in_prescriber AS is_not_in_prescriber_83,
t55.new_prescriber_legal_name AS new_prescriber_legal_name_84,
t55.new_prescriber_vatid AS new_prescriber_vatid_85,
t55.new_prescriber_user_email AS new_prescriber_user_email_86,
t55.is_attached_to_prescriber AS is_attached_to_prescriber_87,
t55.is_paid_by_stripe AS is_paid_by_stripe_88,
t55.organization_id AS organization_id_89,
t55.new_organization_address_id AS new_organization_address_id_90,
t55.invoice_id AS invoice_id_91,
t55.prescriber_id AS prescriber_id_92,
t55.new_prescriber_address_id AS new_prescriber_address_id_93,
t55.discount_code_id AS discount_code_id_94,
t0.prescriber_id AS prescriber_id_95,
t0.new_prescriber_address_id AS new_prescriber_address_id_96,
t97.id AS id_98,
t97.created_at AS created_at_99,
t97.updated_at AS updated_at_100,
t97.is_done AS is_done_101,
t97.comment AS comment_102,
t97.npai AS npai_103,
t97.price_without_tax AS price_without_tax_104,
t97.tracking_number AS tracking_number_105,
t97.price AS price_106,
t97.days_keep AS days_keep_107,
t97.organization_id AS organization_id_108,
t97.invoice_id AS invoice_id_109,
t0.invoice_parent_id AS invoice_parent_id_110,
t111.id AS id_112,
t111.created_at AS created_at_113,
t111.updated_at AS updated_at_114,
t111.confirmation_number AS confirmation_number_115,
t111.status AS status_116,
t111.period_start AS period_start_117,
t111.period_end AS period_end_118,
t111.period_length AS period_length_119,
t111.vatrate AS vatrate_120,
t111.price_without_tax AS price_without_tax_121,
t111.object AS object_122,
t111.path AS path_123,
t111.price AS price_124,
t111.payment_recurrence AS payment_recurrence_125,
t111.new_organization_legal_name AS new_organization_legal_name_126,
t111.new_organization_vatid AS new_organization_vatid_127,
t111.is_new_organization AS is_new_organization_128,
t111.is_prescriber AS is_prescriber_129,
t111.total_paid AS total_paid_130,
t111.new_organization_user_email AS new_organization_user_email_131,
t111.is_sent AS is_sent_132,
t111.sent_date AS sent_date_133,
t111.sent_to AS sent_to_134,
t111.number AS number_135,
t111.total_refund AS total_refund_136,
t111.is_canceled AS is_canceled_137,
t111.discount_without_tax AS discount_without_tax_138,
t111.discount_without_tax_percent AS discount_without_tax_percent_139,
t111.is_imported AS is_imported_140,
t111.is_domiciliation AS is_domiciliation_141,
t111.payment_url AS payment_url_142,
t111.reference AS reference_143,
t111.remaining_to_pay AS remaining_to_pay_144,
t111.total_refunded_payment AS total_refunded_payment_145,
t111.marge AS marge_146,
t111.is_new_organization_prescribed AS is_new_organization_prescribed_147,
t111.is_not_in_prescriber AS is_not_in_prescriber_148,
t111.new_prescriber_legal_name AS new_prescriber_legal_name_149,
t111.new_prescriber_vatid AS new_prescriber_vatid_150,
t111.new_prescriber_user_email AS new_prescriber_user_email_151,
t111.is_attached_to_prescriber AS is_attached_to_prescriber_152,
t111.invoice_type AS invoice_type_153,
t111.reference_stripe AS reference_stripe_154,
t111.new_organization_phone_number AS new_organization_phone_number_155,
t111.payment_deadline AS payment_deadline_156,
t111.is_template AS is_template_157,
t111.unique_key AS unique_key_158,
t111.is_paid_by_stripe AS is_paid_by_stripe_159,
t111.is_pack_invoice AS is_pack_invoice_160,
t111.sync_billing_report AS sync_billing_report_161,
t111.external_id AS external_id_162,
t111.organization_id AS organization_id_163,
t111.user_id AS user_id_164,
t111.new_organization_address_id AS new_organization_address_id_165,
t111.prescriber_id AS prescriber_id_166,
t111.new_prescriber_address_id AS new_prescriber_address_id_167,
t111.invoice_parent_id AS invoice_parent_id_168,
t111.discount_code_id AS discount_code_id_169,
t0.discount_code_id AS discount_code_id_170
FROM
invoice t0
LEFT JOIN quote t55 ON t55.invoice_id = t0.id
LEFT JOIN letter_forward t97 ON t97.invoice_id = t0.id
LEFT JOIN invoice t111 ON t111.invoice_parent_id = t0.id
WHERE
t0.discount_code_id = ?
SELECT t0.id AS id_1, t0.created_at AS created_at_2, t0.updated_at AS updated_at_3, t0.confirmation_number AS confirmation_number_4, t0.status AS status_5, t0.period_start AS period_start_6, t0.period_end AS period_end_7, t0.period_length AS period_length_8, t0.vatrate AS vatrate_9, t0.price_without_tax AS price_without_tax_10, t0.object AS object_11, t0.path AS path_12, t0.price AS price_13, t0.payment_recurrence AS payment_recurrence_14, t0.new_organization_legal_name AS new_organization_legal_name_15, t0.new_organization_vatid AS new_organization_vatid_16, t0.is_new_organization AS is_new_organization_17, t0.is_prescriber AS is_prescriber_18, t0.total_paid AS total_paid_19, t0.new_organization_user_email AS new_organization_user_email_20, t0.is_sent AS is_sent_21, t0.sent_date AS sent_date_22, t0.sent_to AS sent_to_23, t0.number AS number_24, t0.total_refund AS total_refund_25, t0.is_canceled AS is_canceled_26, t0.discount_without_tax AS discount_without_tax_27, t0.discount_without_tax_percent AS discount_without_tax_percent_28, t0.is_imported AS is_imported_29, t0.is_domiciliation AS is_domiciliation_30, t0.payment_url AS payment_url_31, t0.reference AS reference_32, t0.remaining_to_pay AS remaining_to_pay_33, t0.total_refunded_payment AS total_refunded_payment_34, t0.marge AS marge_35, t0.is_new_organization_prescribed AS is_new_organization_prescribed_36, t0.is_not_in_prescriber AS is_not_in_prescriber_37, t0.new_prescriber_legal_name AS new_prescriber_legal_name_38, t0.new_prescriber_vatid AS new_prescriber_vatid_39, t0.new_prescriber_user_email AS new_prescriber_user_email_40, t0.is_attached_to_prescriber AS is_attached_to_prescriber_41, t0.invoice_type AS invoice_type_42, t0.reference_stripe AS reference_stripe_43, t0.new_organization_phone_number AS new_organization_phone_number_44, t0.payment_deadline AS payment_deadline_45, t0.is_template AS is_template_46, t0.unique_key AS unique_key_47, t0.is_paid_by_stripe AS is_paid_by_stripe_48, t0.is_pack_invoice AS is_pack_invoice_49, t0.sync_billing_report AS sync_billing_report_50, t0.external_id AS external_id_51, t0.organization_id AS organization_id_52, t0.user_id AS user_id_53, t0.new_organization_address_id AS new_organization_address_id_54, t55.id AS id_56, t55.created_at AS created_at_57, t55.updated_at AS updated_at_58, t55.status AS status_59, t55.vatrate AS vatrate_60, t55.price_without_tax AS price_without_tax_61, t55.object AS object_62, t55.path AS path_63, t55.price AS price_64, t55.new_organization_legal_name AS new_organization_legal_name_65, t55.new_organization_vatid AS new_organization_vatid_66, t55.is_new_organization AS is_new_organization_67, t55.is_prescriber AS is_prescriber_68, t55.new_organization_user_email AS new_organization_user_email_69, t55.is_sent AS is_sent_70, t55.sent_date AS sent_date_71, t55.sent_to AS sent_to_72, t55.number AS number_73, t55.is_canceled AS is_canceled_74, t55.discount_without_tax AS discount_without_tax_75, t55.discount_without_tax_percent AS discount_without_tax_percent_76, t55.invoice_is_generated AS invoice_is_generated_77, t55.payment_url AS payment_url_78, t55.is_generate AS is_generate_79, t55.marge AS marge_80, t55.new_organization_phone_number AS new_organization_phone_number_81, t55.is_new_organization_prescribed AS is_new_organization_prescribed_82, t55.is_not_in_prescriber AS is_not_in_prescriber_83, t55.new_prescriber_legal_name AS new_prescriber_legal_name_84, t55.new_prescriber_vatid AS new_prescriber_vatid_85, t55.new_prescriber_user_email AS new_prescriber_user_email_86, t55.is_attached_to_prescriber AS is_attached_to_prescriber_87, t55.is_paid_by_stripe AS is_paid_by_stripe_88, t55.organization_id AS organization_id_89, t55.new_organization_address_id AS new_organization_address_id_90, t55.invoice_id AS invoice_id_91, t55.prescriber_id AS prescriber_id_92, t55.new_prescriber_address_id AS new_prescriber_address_id_93, t55.discount_code_id AS discount_code_id_94, t0.prescriber_id AS prescriber_id_95, t0.new_prescriber_address_id AS new_prescriber_address_id_96, t97.id AS id_98, t97.created_at AS created_at_99, t97.updated_at AS updated_at_100, t97.is_done AS is_done_101, t97.comment AS comment_102, t97.npai AS npai_103, t97.price_without_tax AS price_without_tax_104, t97.tracking_number AS tracking_number_105, t97.price AS price_106, t97.days_keep AS days_keep_107, t97.organization_id AS organization_id_108, t97.invoice_id AS invoice_id_109, t0.invoice_parent_id AS invoice_parent_id_110, t111.id AS id_112, t111.created_at AS created_at_113, t111.updated_at AS updated_at_114, t111.confirmation_number AS confirmation_number_115, t111.status AS status_116, t111.period_start AS period_start_117, t111.period_end AS period_end_118, t111.period_length AS period_length_119, t111.vatrate AS vatrate_120, t111.price_without_tax AS price_without_tax_121, t111.object AS object_122, t111.path AS path_123, t111.price AS price_124, t111.payment_recurrence AS payment_recurrence_125, t111.new_organization_legal_name AS new_organization_legal_name_126, t111.new_organization_vatid AS new_organization_vatid_127, t111.is_new_organization AS is_new_organization_128, t111.is_prescriber AS is_prescriber_129, t111.total_paid AS total_paid_130, t111.new_organization_user_email AS new_organization_user_email_131, t111.is_sent AS is_sent_132, t111.sent_date AS sent_date_133, t111.sent_to AS sent_to_134, t111.number AS number_135, t111.total_refund AS total_refund_136, t111.is_canceled AS is_canceled_137, t111.discount_without_tax AS discount_without_tax_138, t111.discount_without_tax_percent AS discount_without_tax_percent_139, t111.is_imported AS is_imported_140, t111.is_domiciliation AS is_domiciliation_141, t111.payment_url AS payment_url_142, t111.reference AS reference_143, t111.remaining_to_pay AS remaining_to_pay_144, t111.total_refunded_payment AS total_refunded_payment_145, t111.marge AS marge_146, t111.is_new_organization_prescribed AS is_new_organization_prescribed_147, t111.is_not_in_prescriber AS is_not_in_prescriber_148, t111.new_prescriber_legal_name AS new_prescriber_legal_name_149, t111.new_prescriber_vatid AS new_prescriber_vatid_150, t111.new_prescriber_user_email AS new_prescriber_user_email_151, t111.is_attached_to_prescriber AS is_attached_to_prescriber_152, t111.invoice_type AS invoice_type_153, t111.reference_stripe AS reference_stripe_154, t111.new_organization_phone_number AS new_organization_phone_number_155, t111.payment_deadline AS payment_deadline_156, t111.is_template AS is_template_157, t111.unique_key AS unique_key_158, t111.is_paid_by_stripe AS is_paid_by_stripe_159, t111.is_pack_invoice AS is_pack_invoice_160, t111.sync_billing_report AS sync_billing_report_161, t111.external_id AS external_id_162, t111.organization_id AS organization_id_163, t111.user_id AS user_id_164, t111.new_organization_address_id AS new_organization_address_id_165, t111.prescriber_id AS prescriber_id_166, t111.new_prescriber_address_id AS new_prescriber_address_id_167, t111.invoice_parent_id AS invoice_parent_id_168, t111.discount_code_id AS discount_code_id_169, t0.discount_code_id AS discount_code_id_170 FROM invoice t0 LEFT JOIN quote t55 ON t55.invoice_id = t0.id LEFT JOIN letter_forward t97 ON t97.invoice_id = t0.id LEFT JOIN invoice t111 ON t111.invoice_parent_id = t0.id WHERE t0.discount_code_id = 13;
|
68 |
1.17 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.alternate_name AS alternate_name_3, t0.price_without_tax AS price_without_tax_4, t0.description AS description_5, t0.active AS active_6, t0.meta_description AS meta_description_7, t0.meta_title AS meta_title_8, t0.url AS url_9, t0.created_at AS created_at_10, t0.subscription_type AS subscription_type_11, t0.unique_key AS unique_key_12, t0.is_displayed AS is_displayed_13, t0.is_archived AS is_archived_14, t0.is_subscription_component AS is_subscription_component_15, t0.category_id AS category_id_16, t0.category_for_billing_report_id AS category_for_billing_report_id_17 FROM product t0 INNER JOIN discount_code_product ON t0.id = discount_code_product.product_id WHERE discount_code_product.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.alternate_name AS alternate_name_3, t0.price_without_tax AS price_without_tax_4, t0.description AS description_5, t0.active AS active_6, t0.meta_description AS meta_description_7, t0.meta_title AS meta_title_8, t0.url AS url_9, t0.created_at AS created_at_10, t0.subscription_type AS subscription_type_11, t0.unique_key AS unique_key_12, t0.is_displayed AS is_displayed_13, t0.is_archived AS is_archived_14, t0.is_subscription_component AS is_subscription_component_15, t0.category_id AS category_id_16, t0.category_for_billing_report_id AS category_for_billing_report_id_17 FROM product t0 INNER JOIN discount_code_product ON t0.id = discount_code_product.product_id WHERE discount_code_product.discount_code_id = 13;
|
69 |
1.15 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.price AS price_3, t0.focus AS focus_4, t0.price_without_tax AS price_without_tax_5, t0.vat_rate AS vat_rate_6, t0.discount AS discount_7, t0.unique_key AS unique_key_8, t0.automation AS automation_9, t0.is_published AS is_published_10, t0.is_subscription AS is_subscription_11, t0.published_name AS published_name_12, t0.is_published_pack AS is_published_pack_13, t0.type AS type_14, t0.legal_status AS legal_status_15, t0.created_at AS created_at_16, t0.association_pack_id AS association_pack_id_17, t0.category_id AS category_id_18, t0.recurring_invoice_id AS recurring_invoice_id_19, t0.initial_invoice_id AS initial_invoice_id_20, t0.subscription_id AS subscription_id_21 FROM pack t0 INNER JOIN discount_code_pack ON t0.id = discount_code_pack.pack_id WHERE discount_code_pack.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.price AS price_3, t0.focus AS focus_4, t0.price_without_tax AS price_without_tax_5, t0.vat_rate AS vat_rate_6, t0.discount AS discount_7, t0.unique_key AS unique_key_8, t0.automation AS automation_9, t0.is_published AS is_published_10, t0.is_subscription AS is_subscription_11, t0.published_name AS published_name_12, t0.is_published_pack AS is_published_pack_13, t0.type AS type_14, t0.legal_status AS legal_status_15, t0.created_at AS created_at_16, t0.association_pack_id AS association_pack_id_17, t0.category_id AS category_id_18, t0.recurring_invoice_id AS recurring_invoice_id_19, t0.initial_invoice_id AS initial_invoice_id_20, t0.subscription_id AS subscription_id_21 FROM pack t0 INNER JOIN discount_code_pack ON t0.id = discount_code_pack.pack_id WHERE discount_code_pack.discount_code_id = 14;
|
70 |
1.10 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.unique_key AS unique_key_3, t0.security_deposit AS security_deposit_4, t0.is_active AS is_active_5, t0.authorized_frequency AS authorized_frequency_6, t0.created_at AS created_at_7, t0.update_at AS update_at_8, t0.price_without_tax AS price_without_tax_9, t0.product_id AS product_id_10 FROM subscription_model t0 INNER JOIN discount_code_subscription_model ON t0.id = discount_code_subscription_model.subscription_model_id WHERE discount_code_subscription_model.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.unique_key AS unique_key_3, t0.security_deposit AS security_deposit_4, t0.is_active AS is_active_5, t0.authorized_frequency AS authorized_frequency_6, t0.created_at AS created_at_7, t0.update_at AS update_at_8, t0.price_without_tax AS price_without_tax_9, t0.product_id AS product_id_10 FROM subscription_model t0 INNER JOIN discount_code_subscription_model ON t0.id = discount_code_subscription_model.subscription_model_id WHERE discount_code_subscription_model.discount_code_id = 14;
|
71 |
1.09 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.opening_hours AS opening_hours_3, t0.currencies_accepted AS currencies_accepted_4, t0.payment_accepted_type AS payment_accepted_type_5, t0.price_range AS price_range_6, t0.aggregate_rating AS aggregate_rating_7, t0.created_at AS created_at_8, t0.prefectoral_approval_number AS prefectoral_approval_number_9, t0.status AS status_10, t0.cedex AS cedex_11, t0.is_exportable_ibml AS is_exportable_ibml_12, t0.postal_address_id AS postal_address_id_13, t0.sector_id AS sector_id_14 FROM store t0 INNER JOIN discount_code_store ON t0.id = discount_code_store.store_id WHERE discount_code_store.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.opening_hours AS opening_hours_3, t0.currencies_accepted AS currencies_accepted_4, t0.payment_accepted_type AS payment_accepted_type_5, t0.price_range AS price_range_6, t0.aggregate_rating AS aggregate_rating_7, t0.created_at AS created_at_8, t0.prefectoral_approval_number AS prefectoral_approval_number_9, t0.status AS status_10, t0.cedex AS cedex_11, t0.is_exportable_ibml AS is_exportable_ibml_12, t0.postal_address_id AS postal_address_id_13, t0.sector_id AS sector_id_14 FROM store t0 INNER JOIN discount_code_store ON t0.id = discount_code_store.store_id WHERE discount_code_store.discount_code_id = 14;
|
72 |
1.59 ms |
SELECT t0.id AS id_1, t0.created_at AS created_at_2, t0.updated_at AS updated_at_3, t0.confirmation_number AS confirmation_number_4, t0.status AS status_5, t0.period_start AS period_start_6, t0.period_end AS period_end_7, t0.period_length AS period_length_8, t0.vatrate AS vatrate_9, t0.price_without_tax AS price_without_tax_10, t0.object AS object_11, t0.path AS path_12, t0.price AS price_13, t0.payment_recurrence AS payment_recurrence_14, t0.new_organization_legal_name AS new_organization_legal_name_15, t0.new_organization_vatid AS new_organization_vatid_16, t0.is_new_organization AS is_new_organization_17, t0.is_prescriber AS is_prescriber_18, t0.total_paid AS total_paid_19, t0.new_organization_user_email AS new_organization_user_email_20, t0.is_sent AS is_sent_21, t0.sent_date AS sent_date_22, t0.sent_to AS sent_to_23, t0.number AS number_24, t0.total_refund AS total_refund_25, t0.is_canceled AS is_canceled_26, t0.discount_without_tax AS discount_without_tax_27, t0.discount_without_tax_percent AS discount_without_tax_percent_28, t0.is_imported AS is_imported_29, t0.is_domiciliation AS is_domiciliation_30, t0.payment_url AS payment_url_31, t0.reference AS reference_32, t0.remaining_to_pay AS remaining_to_pay_33, t0.total_refunded_payment AS total_refunded_payment_34, t0.marge AS marge_35, t0.is_new_organization_prescribed AS is_new_organization_prescribed_36, t0.is_not_in_prescriber AS is_not_in_prescriber_37, t0.new_prescriber_legal_name AS new_prescriber_legal_name_38, t0.new_prescriber_vatid AS new_prescriber_vatid_39, t0.new_prescriber_user_email AS new_prescriber_user_email_40, t0.is_attached_to_prescriber AS is_attached_to_prescriber_41, t0.invoice_type AS invoice_type_42, t0.reference_stripe AS reference_stripe_43, t0.new_organization_phone_number AS new_organization_phone_number_44, t0.payment_deadline AS payment_deadline_45, t0.is_template AS is_template_46, t0.unique_key AS unique_key_47, t0.is_paid_by_stripe AS is_paid_by_stripe_48, t0.is_pack_invoice AS is_pack_invoice_49, t0.sync_billing_report AS sync_billing_report_50, t0.external_id AS external_id_51, t0.organization_id AS organization_id_52, t0.user_id AS user_id_53, t0.new_organization_address_id AS new_organization_address_id_54, t55.id AS id_56, t55.created_at AS created_at_57, t55.updated_at AS updated_at_58, t55.status AS status_59, t55.vatrate AS vatrate_60, t55.price_without_tax AS price_without_tax_61, t55.object AS object_62, t55.path AS path_63, t55.price AS price_64, t55.new_organization_legal_name AS new_organization_legal_name_65, t55.new_organization_vatid AS new_organization_vatid_66, t55.is_new_organization AS is_new_organization_67, t55.is_prescriber AS is_prescriber_68, t55.new_organization_user_email AS new_organization_user_email_69, t55.is_sent AS is_sent_70, t55.sent_date AS sent_date_71, t55.sent_to AS sent_to_72, t55.number AS number_73, t55.is_canceled AS is_canceled_74, t55.discount_without_tax AS discount_without_tax_75, t55.discount_without_tax_percent AS discount_without_tax_percent_76, t55.invoice_is_generated AS invoice_is_generated_77, t55.payment_url AS payment_url_78, t55.is_generate AS is_generate_79, t55.marge AS marge_80, t55.new_organization_phone_number AS new_organization_phone_number_81, t55.is_new_organization_prescribed AS is_new_organization_prescribed_82, t55.is_not_in_prescriber AS is_not_in_prescriber_83, t55.new_prescriber_legal_name AS new_prescriber_legal_name_84, t55.new_prescriber_vatid AS new_prescriber_vatid_85, t55.new_prescriber_user_email AS new_prescriber_user_email_86, t55.is_attached_to_prescriber AS is_attached_to_prescriber_87, t55.is_paid_by_stripe AS is_paid_by_stripe_88, t55.organization_id AS organization_id_89, t55.new_organization_address_id AS new_organization_address_id_90, t55.invoice_id AS invoice_id_91, t55.prescriber_id AS prescriber_id_92, t55.new_prescriber_address_id AS new_prescriber_address_id_93, t55.discount_code_id AS discount_code_id_94, t0.prescriber_id AS prescriber_id_95, t0.new_prescriber_address_id AS new_prescriber_address_id_96, t97.id AS id_98, t97.created_at AS created_at_99, t97.updated_at AS updated_at_100, t97.is_done AS is_done_101, t97.comment AS comment_102, t97.npai AS npai_103, t97.price_without_tax AS price_without_tax_104, t97.tracking_number AS tracking_number_105, t97.price AS price_106, t97.days_keep AS days_keep_107, t97.organization_id AS organization_id_108, t97.invoice_id AS invoice_id_109, t0.invoice_parent_id AS invoice_parent_id_110, t111.id AS id_112, t111.created_at AS created_at_113, t111.updated_at AS updated_at_114, t111.confirmation_number AS confirmation_number_115, t111.status AS status_116, t111.period_start AS period_start_117, t111.period_end AS period_end_118, t111.period_length AS period_length_119, t111.vatrate AS vatrate_120, t111.price_without_tax AS price_without_tax_121, t111.object AS object_122, t111.path AS path_123, t111.price AS price_124, t111.payment_recurrence AS payment_recurrence_125, t111.new_organization_legal_name AS new_organization_legal_name_126, t111.new_organization_vatid AS new_organization_vatid_127, t111.is_new_organization AS is_new_organization_128, t111.is_prescriber AS is_prescriber_129, t111.total_paid AS total_paid_130, t111.new_organization_user_email AS new_organization_user_email_131, t111.is_sent AS is_sent_132, t111.sent_date AS sent_date_133, t111.sent_to AS sent_to_134, t111.number AS number_135, t111.total_refund AS total_refund_136, t111.is_canceled AS is_canceled_137, t111.discount_without_tax AS discount_without_tax_138, t111.discount_without_tax_percent AS discount_without_tax_percent_139, t111.is_imported AS is_imported_140, t111.is_domiciliation AS is_domiciliation_141, t111.payment_url AS payment_url_142, t111.reference AS reference_143, t111.remaining_to_pay AS remaining_to_pay_144, t111.total_refunded_payment AS total_refunded_payment_145, t111.marge AS marge_146, t111.is_new_organization_prescribed AS is_new_organization_prescribed_147, t111.is_not_in_prescriber AS is_not_in_prescriber_148, t111.new_prescriber_legal_name AS new_prescriber_legal_name_149, t111.new_prescriber_vatid AS new_prescriber_vatid_150, t111.new_prescriber_user_email AS new_prescriber_user_email_151, t111.is_attached_to_prescriber AS is_attached_to_prescriber_152, t111.invoice_type AS invoice_type_153, t111.reference_stripe AS reference_stripe_154, t111.new_organization_phone_number AS new_organization_phone_number_155, t111.payment_deadline AS payment_deadline_156, t111.is_template AS is_template_157, t111.unique_key AS unique_key_158, t111.is_paid_by_stripe AS is_paid_by_stripe_159, t111.is_pack_invoice AS is_pack_invoice_160, t111.sync_billing_report AS sync_billing_report_161, t111.external_id AS external_id_162, t111.organization_id AS organization_id_163, t111.user_id AS user_id_164, t111.new_organization_address_id AS new_organization_address_id_165, t111.prescriber_id AS prescriber_id_166, t111.new_prescriber_address_id AS new_prescriber_address_id_167, t111.invoice_parent_id AS invoice_parent_id_168, t111.discount_code_id AS discount_code_id_169, t0.discount_code_id AS discount_code_id_170 FROM invoice t0 LEFT JOIN quote t55 ON t55.invoice_id = t0.id LEFT JOIN letter_forward t97 ON t97.invoice_id = t0.id LEFT JOIN invoice t111 ON t111.invoice_parent_id = t0.id WHERE t0.discount_code_id = ?
SELECT
t0.id AS id_1,
t0.created_at AS created_at_2,
t0.updated_at AS updated_at_3,
t0.confirmation_number AS confirmation_number_4,
t0.status AS status_5,
t0.period_start AS period_start_6,
t0.period_end AS period_end_7,
t0.period_length AS period_length_8,
t0.vatrate AS vatrate_9,
t0.price_without_tax AS price_without_tax_10,
t0.object AS object_11,
t0.path AS path_12,
t0.price AS price_13,
t0.payment_recurrence AS payment_recurrence_14,
t0.new_organization_legal_name AS new_organization_legal_name_15,
t0.new_organization_vatid AS new_organization_vatid_16,
t0.is_new_organization AS is_new_organization_17,
t0.is_prescriber AS is_prescriber_18,
t0.total_paid AS total_paid_19,
t0.new_organization_user_email AS new_organization_user_email_20,
t0.is_sent AS is_sent_21,
t0.sent_date AS sent_date_22,
t0.sent_to AS sent_to_23,
t0.number AS number_24,
t0.total_refund AS total_refund_25,
t0.is_canceled AS is_canceled_26,
t0.discount_without_tax AS discount_without_tax_27,
t0.discount_without_tax_percent AS discount_without_tax_percent_28,
t0.is_imported AS is_imported_29,
t0.is_domiciliation AS is_domiciliation_30,
t0.payment_url AS payment_url_31,
t0.reference AS reference_32,
t0.remaining_to_pay AS remaining_to_pay_33,
t0.total_refunded_payment AS total_refunded_payment_34,
t0.marge AS marge_35,
t0.is_new_organization_prescribed AS is_new_organization_prescribed_36,
t0.is_not_in_prescriber AS is_not_in_prescriber_37,
t0.new_prescriber_legal_name AS new_prescriber_legal_name_38,
t0.new_prescriber_vatid AS new_prescriber_vatid_39,
t0.new_prescriber_user_email AS new_prescriber_user_email_40,
t0.is_attached_to_prescriber AS is_attached_to_prescriber_41,
t0.invoice_type AS invoice_type_42,
t0.reference_stripe AS reference_stripe_43,
t0.new_organization_phone_number AS new_organization_phone_number_44,
t0.payment_deadline AS payment_deadline_45,
t0.is_template AS is_template_46,
t0.unique_key AS unique_key_47,
t0.is_paid_by_stripe AS is_paid_by_stripe_48,
t0.is_pack_invoice AS is_pack_invoice_49,
t0.sync_billing_report AS sync_billing_report_50,
t0.external_id AS external_id_51,
t0.organization_id AS organization_id_52,
t0.user_id AS user_id_53,
t0.new_organization_address_id AS new_organization_address_id_54,
t55.id AS id_56,
t55.created_at AS created_at_57,
t55.updated_at AS updated_at_58,
t55.status AS status_59,
t55.vatrate AS vatrate_60,
t55.price_without_tax AS price_without_tax_61,
t55.object AS object_62,
t55.path AS path_63,
t55.price AS price_64,
t55.new_organization_legal_name AS new_organization_legal_name_65,
t55.new_organization_vatid AS new_organization_vatid_66,
t55.is_new_organization AS is_new_organization_67,
t55.is_prescriber AS is_prescriber_68,
t55.new_organization_user_email AS new_organization_user_email_69,
t55.is_sent AS is_sent_70,
t55.sent_date AS sent_date_71,
t55.sent_to AS sent_to_72,
t55.number AS number_73,
t55.is_canceled AS is_canceled_74,
t55.discount_without_tax AS discount_without_tax_75,
t55.discount_without_tax_percent AS discount_without_tax_percent_76,
t55.invoice_is_generated AS invoice_is_generated_77,
t55.payment_url AS payment_url_78,
t55.is_generate AS is_generate_79,
t55.marge AS marge_80,
t55.new_organization_phone_number AS new_organization_phone_number_81,
t55.is_new_organization_prescribed AS is_new_organization_prescribed_82,
t55.is_not_in_prescriber AS is_not_in_prescriber_83,
t55.new_prescriber_legal_name AS new_prescriber_legal_name_84,
t55.new_prescriber_vatid AS new_prescriber_vatid_85,
t55.new_prescriber_user_email AS new_prescriber_user_email_86,
t55.is_attached_to_prescriber AS is_attached_to_prescriber_87,
t55.is_paid_by_stripe AS is_paid_by_stripe_88,
t55.organization_id AS organization_id_89,
t55.new_organization_address_id AS new_organization_address_id_90,
t55.invoice_id AS invoice_id_91,
t55.prescriber_id AS prescriber_id_92,
t55.new_prescriber_address_id AS new_prescriber_address_id_93,
t55.discount_code_id AS discount_code_id_94,
t0.prescriber_id AS prescriber_id_95,
t0.new_prescriber_address_id AS new_prescriber_address_id_96,
t97.id AS id_98,
t97.created_at AS created_at_99,
t97.updated_at AS updated_at_100,
t97.is_done AS is_done_101,
t97.comment AS comment_102,
t97.npai AS npai_103,
t97.price_without_tax AS price_without_tax_104,
t97.tracking_number AS tracking_number_105,
t97.price AS price_106,
t97.days_keep AS days_keep_107,
t97.organization_id AS organization_id_108,
t97.invoice_id AS invoice_id_109,
t0.invoice_parent_id AS invoice_parent_id_110,
t111.id AS id_112,
t111.created_at AS created_at_113,
t111.updated_at AS updated_at_114,
t111.confirmation_number AS confirmation_number_115,
t111.status AS status_116,
t111.period_start AS period_start_117,
t111.period_end AS period_end_118,
t111.period_length AS period_length_119,
t111.vatrate AS vatrate_120,
t111.price_without_tax AS price_without_tax_121,
t111.object AS object_122,
t111.path AS path_123,
t111.price AS price_124,
t111.payment_recurrence AS payment_recurrence_125,
t111.new_organization_legal_name AS new_organization_legal_name_126,
t111.new_organization_vatid AS new_organization_vatid_127,
t111.is_new_organization AS is_new_organization_128,
t111.is_prescriber AS is_prescriber_129,
t111.total_paid AS total_paid_130,
t111.new_organization_user_email AS new_organization_user_email_131,
t111.is_sent AS is_sent_132,
t111.sent_date AS sent_date_133,
t111.sent_to AS sent_to_134,
t111.number AS number_135,
t111.total_refund AS total_refund_136,
t111.is_canceled AS is_canceled_137,
t111.discount_without_tax AS discount_without_tax_138,
t111.discount_without_tax_percent AS discount_without_tax_percent_139,
t111.is_imported AS is_imported_140,
t111.is_domiciliation AS is_domiciliation_141,
t111.payment_url AS payment_url_142,
t111.reference AS reference_143,
t111.remaining_to_pay AS remaining_to_pay_144,
t111.total_refunded_payment AS total_refunded_payment_145,
t111.marge AS marge_146,
t111.is_new_organization_prescribed AS is_new_organization_prescribed_147,
t111.is_not_in_prescriber AS is_not_in_prescriber_148,
t111.new_prescriber_legal_name AS new_prescriber_legal_name_149,
t111.new_prescriber_vatid AS new_prescriber_vatid_150,
t111.new_prescriber_user_email AS new_prescriber_user_email_151,
t111.is_attached_to_prescriber AS is_attached_to_prescriber_152,
t111.invoice_type AS invoice_type_153,
t111.reference_stripe AS reference_stripe_154,
t111.new_organization_phone_number AS new_organization_phone_number_155,
t111.payment_deadline AS payment_deadline_156,
t111.is_template AS is_template_157,
t111.unique_key AS unique_key_158,
t111.is_paid_by_stripe AS is_paid_by_stripe_159,
t111.is_pack_invoice AS is_pack_invoice_160,
t111.sync_billing_report AS sync_billing_report_161,
t111.external_id AS external_id_162,
t111.organization_id AS organization_id_163,
t111.user_id AS user_id_164,
t111.new_organization_address_id AS new_organization_address_id_165,
t111.prescriber_id AS prescriber_id_166,
t111.new_prescriber_address_id AS new_prescriber_address_id_167,
t111.invoice_parent_id AS invoice_parent_id_168,
t111.discount_code_id AS discount_code_id_169,
t0.discount_code_id AS discount_code_id_170
FROM
invoice t0
LEFT JOIN quote t55 ON t55.invoice_id = t0.id
LEFT JOIN letter_forward t97 ON t97.invoice_id = t0.id
LEFT JOIN invoice t111 ON t111.invoice_parent_id = t0.id
WHERE
t0.discount_code_id = ?
SELECT t0.id AS id_1, t0.created_at AS created_at_2, t0.updated_at AS updated_at_3, t0.confirmation_number AS confirmation_number_4, t0.status AS status_5, t0.period_start AS period_start_6, t0.period_end AS period_end_7, t0.period_length AS period_length_8, t0.vatrate AS vatrate_9, t0.price_without_tax AS price_without_tax_10, t0.object AS object_11, t0.path AS path_12, t0.price AS price_13, t0.payment_recurrence AS payment_recurrence_14, t0.new_organization_legal_name AS new_organization_legal_name_15, t0.new_organization_vatid AS new_organization_vatid_16, t0.is_new_organization AS is_new_organization_17, t0.is_prescriber AS is_prescriber_18, t0.total_paid AS total_paid_19, t0.new_organization_user_email AS new_organization_user_email_20, t0.is_sent AS is_sent_21, t0.sent_date AS sent_date_22, t0.sent_to AS sent_to_23, t0.number AS number_24, t0.total_refund AS total_refund_25, t0.is_canceled AS is_canceled_26, t0.discount_without_tax AS discount_without_tax_27, t0.discount_without_tax_percent AS discount_without_tax_percent_28, t0.is_imported AS is_imported_29, t0.is_domiciliation AS is_domiciliation_30, t0.payment_url AS payment_url_31, t0.reference AS reference_32, t0.remaining_to_pay AS remaining_to_pay_33, t0.total_refunded_payment AS total_refunded_payment_34, t0.marge AS marge_35, t0.is_new_organization_prescribed AS is_new_organization_prescribed_36, t0.is_not_in_prescriber AS is_not_in_prescriber_37, t0.new_prescriber_legal_name AS new_prescriber_legal_name_38, t0.new_prescriber_vatid AS new_prescriber_vatid_39, t0.new_prescriber_user_email AS new_prescriber_user_email_40, t0.is_attached_to_prescriber AS is_attached_to_prescriber_41, t0.invoice_type AS invoice_type_42, t0.reference_stripe AS reference_stripe_43, t0.new_organization_phone_number AS new_organization_phone_number_44, t0.payment_deadline AS payment_deadline_45, t0.is_template AS is_template_46, t0.unique_key AS unique_key_47, t0.is_paid_by_stripe AS is_paid_by_stripe_48, t0.is_pack_invoice AS is_pack_invoice_49, t0.sync_billing_report AS sync_billing_report_50, t0.external_id AS external_id_51, t0.organization_id AS organization_id_52, t0.user_id AS user_id_53, t0.new_organization_address_id AS new_organization_address_id_54, t55.id AS id_56, t55.created_at AS created_at_57, t55.updated_at AS updated_at_58, t55.status AS status_59, t55.vatrate AS vatrate_60, t55.price_without_tax AS price_without_tax_61, t55.object AS object_62, t55.path AS path_63, t55.price AS price_64, t55.new_organization_legal_name AS new_organization_legal_name_65, t55.new_organization_vatid AS new_organization_vatid_66, t55.is_new_organization AS is_new_organization_67, t55.is_prescriber AS is_prescriber_68, t55.new_organization_user_email AS new_organization_user_email_69, t55.is_sent AS is_sent_70, t55.sent_date AS sent_date_71, t55.sent_to AS sent_to_72, t55.number AS number_73, t55.is_canceled AS is_canceled_74, t55.discount_without_tax AS discount_without_tax_75, t55.discount_without_tax_percent AS discount_without_tax_percent_76, t55.invoice_is_generated AS invoice_is_generated_77, t55.payment_url AS payment_url_78, t55.is_generate AS is_generate_79, t55.marge AS marge_80, t55.new_organization_phone_number AS new_organization_phone_number_81, t55.is_new_organization_prescribed AS is_new_organization_prescribed_82, t55.is_not_in_prescriber AS is_not_in_prescriber_83, t55.new_prescriber_legal_name AS new_prescriber_legal_name_84, t55.new_prescriber_vatid AS new_prescriber_vatid_85, t55.new_prescriber_user_email AS new_prescriber_user_email_86, t55.is_attached_to_prescriber AS is_attached_to_prescriber_87, t55.is_paid_by_stripe AS is_paid_by_stripe_88, t55.organization_id AS organization_id_89, t55.new_organization_address_id AS new_organization_address_id_90, t55.invoice_id AS invoice_id_91, t55.prescriber_id AS prescriber_id_92, t55.new_prescriber_address_id AS new_prescriber_address_id_93, t55.discount_code_id AS discount_code_id_94, t0.prescriber_id AS prescriber_id_95, t0.new_prescriber_address_id AS new_prescriber_address_id_96, t97.id AS id_98, t97.created_at AS created_at_99, t97.updated_at AS updated_at_100, t97.is_done AS is_done_101, t97.comment AS comment_102, t97.npai AS npai_103, t97.price_without_tax AS price_without_tax_104, t97.tracking_number AS tracking_number_105, t97.price AS price_106, t97.days_keep AS days_keep_107, t97.organization_id AS organization_id_108, t97.invoice_id AS invoice_id_109, t0.invoice_parent_id AS invoice_parent_id_110, t111.id AS id_112, t111.created_at AS created_at_113, t111.updated_at AS updated_at_114, t111.confirmation_number AS confirmation_number_115, t111.status AS status_116, t111.period_start AS period_start_117, t111.period_end AS period_end_118, t111.period_length AS period_length_119, t111.vatrate AS vatrate_120, t111.price_without_tax AS price_without_tax_121, t111.object AS object_122, t111.path AS path_123, t111.price AS price_124, t111.payment_recurrence AS payment_recurrence_125, t111.new_organization_legal_name AS new_organization_legal_name_126, t111.new_organization_vatid AS new_organization_vatid_127, t111.is_new_organization AS is_new_organization_128, t111.is_prescriber AS is_prescriber_129, t111.total_paid AS total_paid_130, t111.new_organization_user_email AS new_organization_user_email_131, t111.is_sent AS is_sent_132, t111.sent_date AS sent_date_133, t111.sent_to AS sent_to_134, t111.number AS number_135, t111.total_refund AS total_refund_136, t111.is_canceled AS is_canceled_137, t111.discount_without_tax AS discount_without_tax_138, t111.discount_without_tax_percent AS discount_without_tax_percent_139, t111.is_imported AS is_imported_140, t111.is_domiciliation AS is_domiciliation_141, t111.payment_url AS payment_url_142, t111.reference AS reference_143, t111.remaining_to_pay AS remaining_to_pay_144, t111.total_refunded_payment AS total_refunded_payment_145, t111.marge AS marge_146, t111.is_new_organization_prescribed AS is_new_organization_prescribed_147, t111.is_not_in_prescriber AS is_not_in_prescriber_148, t111.new_prescriber_legal_name AS new_prescriber_legal_name_149, t111.new_prescriber_vatid AS new_prescriber_vatid_150, t111.new_prescriber_user_email AS new_prescriber_user_email_151, t111.is_attached_to_prescriber AS is_attached_to_prescriber_152, t111.invoice_type AS invoice_type_153, t111.reference_stripe AS reference_stripe_154, t111.new_organization_phone_number AS new_organization_phone_number_155, t111.payment_deadline AS payment_deadline_156, t111.is_template AS is_template_157, t111.unique_key AS unique_key_158, t111.is_paid_by_stripe AS is_paid_by_stripe_159, t111.is_pack_invoice AS is_pack_invoice_160, t111.sync_billing_report AS sync_billing_report_161, t111.external_id AS external_id_162, t111.organization_id AS organization_id_163, t111.user_id AS user_id_164, t111.new_organization_address_id AS new_organization_address_id_165, t111.prescriber_id AS prescriber_id_166, t111.new_prescriber_address_id AS new_prescriber_address_id_167, t111.invoice_parent_id AS invoice_parent_id_168, t111.discount_code_id AS discount_code_id_169, t0.discount_code_id AS discount_code_id_170 FROM invoice t0 LEFT JOIN quote t55 ON t55.invoice_id = t0.id LEFT JOIN letter_forward t97 ON t97.invoice_id = t0.id LEFT JOIN invoice t111 ON t111.invoice_parent_id = t0.id WHERE t0.discount_code_id = 14;
|
73 |
3.27 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.alternate_name AS alternate_name_3, t0.price_without_tax AS price_without_tax_4, t0.description AS description_5, t0.active AS active_6, t0.meta_description AS meta_description_7, t0.meta_title AS meta_title_8, t0.url AS url_9, t0.created_at AS created_at_10, t0.subscription_type AS subscription_type_11, t0.unique_key AS unique_key_12, t0.is_displayed AS is_displayed_13, t0.is_archived AS is_archived_14, t0.is_subscription_component AS is_subscription_component_15, t0.category_id AS category_id_16, t0.category_for_billing_report_id AS category_for_billing_report_id_17 FROM product t0 INNER JOIN discount_code_product ON t0.id = discount_code_product.product_id WHERE discount_code_product.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.alternate_name AS alternate_name_3, t0.price_without_tax AS price_without_tax_4, t0.description AS description_5, t0.active AS active_6, t0.meta_description AS meta_description_7, t0.meta_title AS meta_title_8, t0.url AS url_9, t0.created_at AS created_at_10, t0.subscription_type AS subscription_type_11, t0.unique_key AS unique_key_12, t0.is_displayed AS is_displayed_13, t0.is_archived AS is_archived_14, t0.is_subscription_component AS is_subscription_component_15, t0.category_id AS category_id_16, t0.category_for_billing_report_id AS category_for_billing_report_id_17 FROM product t0 INNER JOIN discount_code_product ON t0.id = discount_code_product.product_id WHERE discount_code_product.discount_code_id = 14;
|
74 |
1.18 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.price AS price_3, t0.focus AS focus_4, t0.price_without_tax AS price_without_tax_5, t0.vat_rate AS vat_rate_6, t0.discount AS discount_7, t0.unique_key AS unique_key_8, t0.automation AS automation_9, t0.is_published AS is_published_10, t0.is_subscription AS is_subscription_11, t0.published_name AS published_name_12, t0.is_published_pack AS is_published_pack_13, t0.type AS type_14, t0.legal_status AS legal_status_15, t0.created_at AS created_at_16, t0.association_pack_id AS association_pack_id_17, t0.category_id AS category_id_18, t0.recurring_invoice_id AS recurring_invoice_id_19, t0.initial_invoice_id AS initial_invoice_id_20, t0.subscription_id AS subscription_id_21 FROM pack t0 INNER JOIN discount_code_pack ON t0.id = discount_code_pack.pack_id WHERE discount_code_pack.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.price AS price_3, t0.focus AS focus_4, t0.price_without_tax AS price_without_tax_5, t0.vat_rate AS vat_rate_6, t0.discount AS discount_7, t0.unique_key AS unique_key_8, t0.automation AS automation_9, t0.is_published AS is_published_10, t0.is_subscription AS is_subscription_11, t0.published_name AS published_name_12, t0.is_published_pack AS is_published_pack_13, t0.type AS type_14, t0.legal_status AS legal_status_15, t0.created_at AS created_at_16, t0.association_pack_id AS association_pack_id_17, t0.category_id AS category_id_18, t0.recurring_invoice_id AS recurring_invoice_id_19, t0.initial_invoice_id AS initial_invoice_id_20, t0.subscription_id AS subscription_id_21 FROM pack t0 INNER JOIN discount_code_pack ON t0.id = discount_code_pack.pack_id WHERE discount_code_pack.discount_code_id = 15;
|
75 |
1.09 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.unique_key AS unique_key_3, t0.security_deposit AS security_deposit_4, t0.is_active AS is_active_5, t0.authorized_frequency AS authorized_frequency_6, t0.created_at AS created_at_7, t0.update_at AS update_at_8, t0.price_without_tax AS price_without_tax_9, t0.product_id AS product_id_10 FROM subscription_model t0 INNER JOIN discount_code_subscription_model ON t0.id = discount_code_subscription_model.subscription_model_id WHERE discount_code_subscription_model.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.unique_key AS unique_key_3, t0.security_deposit AS security_deposit_4, t0.is_active AS is_active_5, t0.authorized_frequency AS authorized_frequency_6, t0.created_at AS created_at_7, t0.update_at AS update_at_8, t0.price_without_tax AS price_without_tax_9, t0.product_id AS product_id_10 FROM subscription_model t0 INNER JOIN discount_code_subscription_model ON t0.id = discount_code_subscription_model.subscription_model_id WHERE discount_code_subscription_model.discount_code_id = 15;
|
76 |
1.29 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.opening_hours AS opening_hours_3, t0.currencies_accepted AS currencies_accepted_4, t0.payment_accepted_type AS payment_accepted_type_5, t0.price_range AS price_range_6, t0.aggregate_rating AS aggregate_rating_7, t0.created_at AS created_at_8, t0.prefectoral_approval_number AS prefectoral_approval_number_9, t0.status AS status_10, t0.cedex AS cedex_11, t0.is_exportable_ibml AS is_exportable_ibml_12, t0.postal_address_id AS postal_address_id_13, t0.sector_id AS sector_id_14 FROM store t0 INNER JOIN discount_code_store ON t0.id = discount_code_store.store_id WHERE discount_code_store.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.opening_hours AS opening_hours_3, t0.currencies_accepted AS currencies_accepted_4, t0.payment_accepted_type AS payment_accepted_type_5, t0.price_range AS price_range_6, t0.aggregate_rating AS aggregate_rating_7, t0.created_at AS created_at_8, t0.prefectoral_approval_number AS prefectoral_approval_number_9, t0.status AS status_10, t0.cedex AS cedex_11, t0.is_exportable_ibml AS is_exportable_ibml_12, t0.postal_address_id AS postal_address_id_13, t0.sector_id AS sector_id_14 FROM store t0 INNER JOIN discount_code_store ON t0.id = discount_code_store.store_id WHERE discount_code_store.discount_code_id = 15;
|
77 |
2.03 ms |
SELECT t0.id AS id_1, t0.created_at AS created_at_2, t0.updated_at AS updated_at_3, t0.confirmation_number AS confirmation_number_4, t0.status AS status_5, t0.period_start AS period_start_6, t0.period_end AS period_end_7, t0.period_length AS period_length_8, t0.vatrate AS vatrate_9, t0.price_without_tax AS price_without_tax_10, t0.object AS object_11, t0.path AS path_12, t0.price AS price_13, t0.payment_recurrence AS payment_recurrence_14, t0.new_organization_legal_name AS new_organization_legal_name_15, t0.new_organization_vatid AS new_organization_vatid_16, t0.is_new_organization AS is_new_organization_17, t0.is_prescriber AS is_prescriber_18, t0.total_paid AS total_paid_19, t0.new_organization_user_email AS new_organization_user_email_20, t0.is_sent AS is_sent_21, t0.sent_date AS sent_date_22, t0.sent_to AS sent_to_23, t0.number AS number_24, t0.total_refund AS total_refund_25, t0.is_canceled AS is_canceled_26, t0.discount_without_tax AS discount_without_tax_27, t0.discount_without_tax_percent AS discount_without_tax_percent_28, t0.is_imported AS is_imported_29, t0.is_domiciliation AS is_domiciliation_30, t0.payment_url AS payment_url_31, t0.reference AS reference_32, t0.remaining_to_pay AS remaining_to_pay_33, t0.total_refunded_payment AS total_refunded_payment_34, t0.marge AS marge_35, t0.is_new_organization_prescribed AS is_new_organization_prescribed_36, t0.is_not_in_prescriber AS is_not_in_prescriber_37, t0.new_prescriber_legal_name AS new_prescriber_legal_name_38, t0.new_prescriber_vatid AS new_prescriber_vatid_39, t0.new_prescriber_user_email AS new_prescriber_user_email_40, t0.is_attached_to_prescriber AS is_attached_to_prescriber_41, t0.invoice_type AS invoice_type_42, t0.reference_stripe AS reference_stripe_43, t0.new_organization_phone_number AS new_organization_phone_number_44, t0.payment_deadline AS payment_deadline_45, t0.is_template AS is_template_46, t0.unique_key AS unique_key_47, t0.is_paid_by_stripe AS is_paid_by_stripe_48, t0.is_pack_invoice AS is_pack_invoice_49, t0.sync_billing_report AS sync_billing_report_50, t0.external_id AS external_id_51, t0.organization_id AS organization_id_52, t0.user_id AS user_id_53, t0.new_organization_address_id AS new_organization_address_id_54, t55.id AS id_56, t55.created_at AS created_at_57, t55.updated_at AS updated_at_58, t55.status AS status_59, t55.vatrate AS vatrate_60, t55.price_without_tax AS price_without_tax_61, t55.object AS object_62, t55.path AS path_63, t55.price AS price_64, t55.new_organization_legal_name AS new_organization_legal_name_65, t55.new_organization_vatid AS new_organization_vatid_66, t55.is_new_organization AS is_new_organization_67, t55.is_prescriber AS is_prescriber_68, t55.new_organization_user_email AS new_organization_user_email_69, t55.is_sent AS is_sent_70, t55.sent_date AS sent_date_71, t55.sent_to AS sent_to_72, t55.number AS number_73, t55.is_canceled AS is_canceled_74, t55.discount_without_tax AS discount_without_tax_75, t55.discount_without_tax_percent AS discount_without_tax_percent_76, t55.invoice_is_generated AS invoice_is_generated_77, t55.payment_url AS payment_url_78, t55.is_generate AS is_generate_79, t55.marge AS marge_80, t55.new_organization_phone_number AS new_organization_phone_number_81, t55.is_new_organization_prescribed AS is_new_organization_prescribed_82, t55.is_not_in_prescriber AS is_not_in_prescriber_83, t55.new_prescriber_legal_name AS new_prescriber_legal_name_84, t55.new_prescriber_vatid AS new_prescriber_vatid_85, t55.new_prescriber_user_email AS new_prescriber_user_email_86, t55.is_attached_to_prescriber AS is_attached_to_prescriber_87, t55.is_paid_by_stripe AS is_paid_by_stripe_88, t55.organization_id AS organization_id_89, t55.new_organization_address_id AS new_organization_address_id_90, t55.invoice_id AS invoice_id_91, t55.prescriber_id AS prescriber_id_92, t55.new_prescriber_address_id AS new_prescriber_address_id_93, t55.discount_code_id AS discount_code_id_94, t0.prescriber_id AS prescriber_id_95, t0.new_prescriber_address_id AS new_prescriber_address_id_96, t97.id AS id_98, t97.created_at AS created_at_99, t97.updated_at AS updated_at_100, t97.is_done AS is_done_101, t97.comment AS comment_102, t97.npai AS npai_103, t97.price_without_tax AS price_without_tax_104, t97.tracking_number AS tracking_number_105, t97.price AS price_106, t97.days_keep AS days_keep_107, t97.organization_id AS organization_id_108, t97.invoice_id AS invoice_id_109, t0.invoice_parent_id AS invoice_parent_id_110, t111.id AS id_112, t111.created_at AS created_at_113, t111.updated_at AS updated_at_114, t111.confirmation_number AS confirmation_number_115, t111.status AS status_116, t111.period_start AS period_start_117, t111.period_end AS period_end_118, t111.period_length AS period_length_119, t111.vatrate AS vatrate_120, t111.price_without_tax AS price_without_tax_121, t111.object AS object_122, t111.path AS path_123, t111.price AS price_124, t111.payment_recurrence AS payment_recurrence_125, t111.new_organization_legal_name AS new_organization_legal_name_126, t111.new_organization_vatid AS new_organization_vatid_127, t111.is_new_organization AS is_new_organization_128, t111.is_prescriber AS is_prescriber_129, t111.total_paid AS total_paid_130, t111.new_organization_user_email AS new_organization_user_email_131, t111.is_sent AS is_sent_132, t111.sent_date AS sent_date_133, t111.sent_to AS sent_to_134, t111.number AS number_135, t111.total_refund AS total_refund_136, t111.is_canceled AS is_canceled_137, t111.discount_without_tax AS discount_without_tax_138, t111.discount_without_tax_percent AS discount_without_tax_percent_139, t111.is_imported AS is_imported_140, t111.is_domiciliation AS is_domiciliation_141, t111.payment_url AS payment_url_142, t111.reference AS reference_143, t111.remaining_to_pay AS remaining_to_pay_144, t111.total_refunded_payment AS total_refunded_payment_145, t111.marge AS marge_146, t111.is_new_organization_prescribed AS is_new_organization_prescribed_147, t111.is_not_in_prescriber AS is_not_in_prescriber_148, t111.new_prescriber_legal_name AS new_prescriber_legal_name_149, t111.new_prescriber_vatid AS new_prescriber_vatid_150, t111.new_prescriber_user_email AS new_prescriber_user_email_151, t111.is_attached_to_prescriber AS is_attached_to_prescriber_152, t111.invoice_type AS invoice_type_153, t111.reference_stripe AS reference_stripe_154, t111.new_organization_phone_number AS new_organization_phone_number_155, t111.payment_deadline AS payment_deadline_156, t111.is_template AS is_template_157, t111.unique_key AS unique_key_158, t111.is_paid_by_stripe AS is_paid_by_stripe_159, t111.is_pack_invoice AS is_pack_invoice_160, t111.sync_billing_report AS sync_billing_report_161, t111.external_id AS external_id_162, t111.organization_id AS organization_id_163, t111.user_id AS user_id_164, t111.new_organization_address_id AS new_organization_address_id_165, t111.prescriber_id AS prescriber_id_166, t111.new_prescriber_address_id AS new_prescriber_address_id_167, t111.invoice_parent_id AS invoice_parent_id_168, t111.discount_code_id AS discount_code_id_169, t0.discount_code_id AS discount_code_id_170 FROM invoice t0 LEFT JOIN quote t55 ON t55.invoice_id = t0.id LEFT JOIN letter_forward t97 ON t97.invoice_id = t0.id LEFT JOIN invoice t111 ON t111.invoice_parent_id = t0.id WHERE t0.discount_code_id = ?
SELECT
t0.id AS id_1,
t0.created_at AS created_at_2,
t0.updated_at AS updated_at_3,
t0.confirmation_number AS confirmation_number_4,
t0.status AS status_5,
t0.period_start AS period_start_6,
t0.period_end AS period_end_7,
t0.period_length AS period_length_8,
t0.vatrate AS vatrate_9,
t0.price_without_tax AS price_without_tax_10,
t0.object AS object_11,
t0.path AS path_12,
t0.price AS price_13,
t0.payment_recurrence AS payment_recurrence_14,
t0.new_organization_legal_name AS new_organization_legal_name_15,
t0.new_organization_vatid AS new_organization_vatid_16,
t0.is_new_organization AS is_new_organization_17,
t0.is_prescriber AS is_prescriber_18,
t0.total_paid AS total_paid_19,
t0.new_organization_user_email AS new_organization_user_email_20,
t0.is_sent AS is_sent_21,
t0.sent_date AS sent_date_22,
t0.sent_to AS sent_to_23,
t0.number AS number_24,
t0.total_refund AS total_refund_25,
t0.is_canceled AS is_canceled_26,
t0.discount_without_tax AS discount_without_tax_27,
t0.discount_without_tax_percent AS discount_without_tax_percent_28,
t0.is_imported AS is_imported_29,
t0.is_domiciliation AS is_domiciliation_30,
t0.payment_url AS payment_url_31,
t0.reference AS reference_32,
t0.remaining_to_pay AS remaining_to_pay_33,
t0.total_refunded_payment AS total_refunded_payment_34,
t0.marge AS marge_35,
t0.is_new_organization_prescribed AS is_new_organization_prescribed_36,
t0.is_not_in_prescriber AS is_not_in_prescriber_37,
t0.new_prescriber_legal_name AS new_prescriber_legal_name_38,
t0.new_prescriber_vatid AS new_prescriber_vatid_39,
t0.new_prescriber_user_email AS new_prescriber_user_email_40,
t0.is_attached_to_prescriber AS is_attached_to_prescriber_41,
t0.invoice_type AS invoice_type_42,
t0.reference_stripe AS reference_stripe_43,
t0.new_organization_phone_number AS new_organization_phone_number_44,
t0.payment_deadline AS payment_deadline_45,
t0.is_template AS is_template_46,
t0.unique_key AS unique_key_47,
t0.is_paid_by_stripe AS is_paid_by_stripe_48,
t0.is_pack_invoice AS is_pack_invoice_49,
t0.sync_billing_report AS sync_billing_report_50,
t0.external_id AS external_id_51,
t0.organization_id AS organization_id_52,
t0.user_id AS user_id_53,
t0.new_organization_address_id AS new_organization_address_id_54,
t55.id AS id_56,
t55.created_at AS created_at_57,
t55.updated_at AS updated_at_58,
t55.status AS status_59,
t55.vatrate AS vatrate_60,
t55.price_without_tax AS price_without_tax_61,
t55.object AS object_62,
t55.path AS path_63,
t55.price AS price_64,
t55.new_organization_legal_name AS new_organization_legal_name_65,
t55.new_organization_vatid AS new_organization_vatid_66,
t55.is_new_organization AS is_new_organization_67,
t55.is_prescriber AS is_prescriber_68,
t55.new_organization_user_email AS new_organization_user_email_69,
t55.is_sent AS is_sent_70,
t55.sent_date AS sent_date_71,
t55.sent_to AS sent_to_72,
t55.number AS number_73,
t55.is_canceled AS is_canceled_74,
t55.discount_without_tax AS discount_without_tax_75,
t55.discount_without_tax_percent AS discount_without_tax_percent_76,
t55.invoice_is_generated AS invoice_is_generated_77,
t55.payment_url AS payment_url_78,
t55.is_generate AS is_generate_79,
t55.marge AS marge_80,
t55.new_organization_phone_number AS new_organization_phone_number_81,
t55.is_new_organization_prescribed AS is_new_organization_prescribed_82,
t55.is_not_in_prescriber AS is_not_in_prescriber_83,
t55.new_prescriber_legal_name AS new_prescriber_legal_name_84,
t55.new_prescriber_vatid AS new_prescriber_vatid_85,
t55.new_prescriber_user_email AS new_prescriber_user_email_86,
t55.is_attached_to_prescriber AS is_attached_to_prescriber_87,
t55.is_paid_by_stripe AS is_paid_by_stripe_88,
t55.organization_id AS organization_id_89,
t55.new_organization_address_id AS new_organization_address_id_90,
t55.invoice_id AS invoice_id_91,
t55.prescriber_id AS prescriber_id_92,
t55.new_prescriber_address_id AS new_prescriber_address_id_93,
t55.discount_code_id AS discount_code_id_94,
t0.prescriber_id AS prescriber_id_95,
t0.new_prescriber_address_id AS new_prescriber_address_id_96,
t97.id AS id_98,
t97.created_at AS created_at_99,
t97.updated_at AS updated_at_100,
t97.is_done AS is_done_101,
t97.comment AS comment_102,
t97.npai AS npai_103,
t97.price_without_tax AS price_without_tax_104,
t97.tracking_number AS tracking_number_105,
t97.price AS price_106,
t97.days_keep AS days_keep_107,
t97.organization_id AS organization_id_108,
t97.invoice_id AS invoice_id_109,
t0.invoice_parent_id AS invoice_parent_id_110,
t111.id AS id_112,
t111.created_at AS created_at_113,
t111.updated_at AS updated_at_114,
t111.confirmation_number AS confirmation_number_115,
t111.status AS status_116,
t111.period_start AS period_start_117,
t111.period_end AS period_end_118,
t111.period_length AS period_length_119,
t111.vatrate AS vatrate_120,
t111.price_without_tax AS price_without_tax_121,
t111.object AS object_122,
t111.path AS path_123,
t111.price AS price_124,
t111.payment_recurrence AS payment_recurrence_125,
t111.new_organization_legal_name AS new_organization_legal_name_126,
t111.new_organization_vatid AS new_organization_vatid_127,
t111.is_new_organization AS is_new_organization_128,
t111.is_prescriber AS is_prescriber_129,
t111.total_paid AS total_paid_130,
t111.new_organization_user_email AS new_organization_user_email_131,
t111.is_sent AS is_sent_132,
t111.sent_date AS sent_date_133,
t111.sent_to AS sent_to_134,
t111.number AS number_135,
t111.total_refund AS total_refund_136,
t111.is_canceled AS is_canceled_137,
t111.discount_without_tax AS discount_without_tax_138,
t111.discount_without_tax_percent AS discount_without_tax_percent_139,
t111.is_imported AS is_imported_140,
t111.is_domiciliation AS is_domiciliation_141,
t111.payment_url AS payment_url_142,
t111.reference AS reference_143,
t111.remaining_to_pay AS remaining_to_pay_144,
t111.total_refunded_payment AS total_refunded_payment_145,
t111.marge AS marge_146,
t111.is_new_organization_prescribed AS is_new_organization_prescribed_147,
t111.is_not_in_prescriber AS is_not_in_prescriber_148,
t111.new_prescriber_legal_name AS new_prescriber_legal_name_149,
t111.new_prescriber_vatid AS new_prescriber_vatid_150,
t111.new_prescriber_user_email AS new_prescriber_user_email_151,
t111.is_attached_to_prescriber AS is_attached_to_prescriber_152,
t111.invoice_type AS invoice_type_153,
t111.reference_stripe AS reference_stripe_154,
t111.new_organization_phone_number AS new_organization_phone_number_155,
t111.payment_deadline AS payment_deadline_156,
t111.is_template AS is_template_157,
t111.unique_key AS unique_key_158,
t111.is_paid_by_stripe AS is_paid_by_stripe_159,
t111.is_pack_invoice AS is_pack_invoice_160,
t111.sync_billing_report AS sync_billing_report_161,
t111.external_id AS external_id_162,
t111.organization_id AS organization_id_163,
t111.user_id AS user_id_164,
t111.new_organization_address_id AS new_organization_address_id_165,
t111.prescriber_id AS prescriber_id_166,
t111.new_prescriber_address_id AS new_prescriber_address_id_167,
t111.invoice_parent_id AS invoice_parent_id_168,
t111.discount_code_id AS discount_code_id_169,
t0.discount_code_id AS discount_code_id_170
FROM
invoice t0
LEFT JOIN quote t55 ON t55.invoice_id = t0.id
LEFT JOIN letter_forward t97 ON t97.invoice_id = t0.id
LEFT JOIN invoice t111 ON t111.invoice_parent_id = t0.id
WHERE
t0.discount_code_id = ?
SELECT t0.id AS id_1, t0.created_at AS created_at_2, t0.updated_at AS updated_at_3, t0.confirmation_number AS confirmation_number_4, t0.status AS status_5, t0.period_start AS period_start_6, t0.period_end AS period_end_7, t0.period_length AS period_length_8, t0.vatrate AS vatrate_9, t0.price_without_tax AS price_without_tax_10, t0.object AS object_11, t0.path AS path_12, t0.price AS price_13, t0.payment_recurrence AS payment_recurrence_14, t0.new_organization_legal_name AS new_organization_legal_name_15, t0.new_organization_vatid AS new_organization_vatid_16, t0.is_new_organization AS is_new_organization_17, t0.is_prescriber AS is_prescriber_18, t0.total_paid AS total_paid_19, t0.new_organization_user_email AS new_organization_user_email_20, t0.is_sent AS is_sent_21, t0.sent_date AS sent_date_22, t0.sent_to AS sent_to_23, t0.number AS number_24, t0.total_refund AS total_refund_25, t0.is_canceled AS is_canceled_26, t0.discount_without_tax AS discount_without_tax_27, t0.discount_without_tax_percent AS discount_without_tax_percent_28, t0.is_imported AS is_imported_29, t0.is_domiciliation AS is_domiciliation_30, t0.payment_url AS payment_url_31, t0.reference AS reference_32, t0.remaining_to_pay AS remaining_to_pay_33, t0.total_refunded_payment AS total_refunded_payment_34, t0.marge AS marge_35, t0.is_new_organization_prescribed AS is_new_organization_prescribed_36, t0.is_not_in_prescriber AS is_not_in_prescriber_37, t0.new_prescriber_legal_name AS new_prescriber_legal_name_38, t0.new_prescriber_vatid AS new_prescriber_vatid_39, t0.new_prescriber_user_email AS new_prescriber_user_email_40, t0.is_attached_to_prescriber AS is_attached_to_prescriber_41, t0.invoice_type AS invoice_type_42, t0.reference_stripe AS reference_stripe_43, t0.new_organization_phone_number AS new_organization_phone_number_44, t0.payment_deadline AS payment_deadline_45, t0.is_template AS is_template_46, t0.unique_key AS unique_key_47, t0.is_paid_by_stripe AS is_paid_by_stripe_48, t0.is_pack_invoice AS is_pack_invoice_49, t0.sync_billing_report AS sync_billing_report_50, t0.external_id AS external_id_51, t0.organization_id AS organization_id_52, t0.user_id AS user_id_53, t0.new_organization_address_id AS new_organization_address_id_54, t55.id AS id_56, t55.created_at AS created_at_57, t55.updated_at AS updated_at_58, t55.status AS status_59, t55.vatrate AS vatrate_60, t55.price_without_tax AS price_without_tax_61, t55.object AS object_62, t55.path AS path_63, t55.price AS price_64, t55.new_organization_legal_name AS new_organization_legal_name_65, t55.new_organization_vatid AS new_organization_vatid_66, t55.is_new_organization AS is_new_organization_67, t55.is_prescriber AS is_prescriber_68, t55.new_organization_user_email AS new_organization_user_email_69, t55.is_sent AS is_sent_70, t55.sent_date AS sent_date_71, t55.sent_to AS sent_to_72, t55.number AS number_73, t55.is_canceled AS is_canceled_74, t55.discount_without_tax AS discount_without_tax_75, t55.discount_without_tax_percent AS discount_without_tax_percent_76, t55.invoice_is_generated AS invoice_is_generated_77, t55.payment_url AS payment_url_78, t55.is_generate AS is_generate_79, t55.marge AS marge_80, t55.new_organization_phone_number AS new_organization_phone_number_81, t55.is_new_organization_prescribed AS is_new_organization_prescribed_82, t55.is_not_in_prescriber AS is_not_in_prescriber_83, t55.new_prescriber_legal_name AS new_prescriber_legal_name_84, t55.new_prescriber_vatid AS new_prescriber_vatid_85, t55.new_prescriber_user_email AS new_prescriber_user_email_86, t55.is_attached_to_prescriber AS is_attached_to_prescriber_87, t55.is_paid_by_stripe AS is_paid_by_stripe_88, t55.organization_id AS organization_id_89, t55.new_organization_address_id AS new_organization_address_id_90, t55.invoice_id AS invoice_id_91, t55.prescriber_id AS prescriber_id_92, t55.new_prescriber_address_id AS new_prescriber_address_id_93, t55.discount_code_id AS discount_code_id_94, t0.prescriber_id AS prescriber_id_95, t0.new_prescriber_address_id AS new_prescriber_address_id_96, t97.id AS id_98, t97.created_at AS created_at_99, t97.updated_at AS updated_at_100, t97.is_done AS is_done_101, t97.comment AS comment_102, t97.npai AS npai_103, t97.price_without_tax AS price_without_tax_104, t97.tracking_number AS tracking_number_105, t97.price AS price_106, t97.days_keep AS days_keep_107, t97.organization_id AS organization_id_108, t97.invoice_id AS invoice_id_109, t0.invoice_parent_id AS invoice_parent_id_110, t111.id AS id_112, t111.created_at AS created_at_113, t111.updated_at AS updated_at_114, t111.confirmation_number AS confirmation_number_115, t111.status AS status_116, t111.period_start AS period_start_117, t111.period_end AS period_end_118, t111.period_length AS period_length_119, t111.vatrate AS vatrate_120, t111.price_without_tax AS price_without_tax_121, t111.object AS object_122, t111.path AS path_123, t111.price AS price_124, t111.payment_recurrence AS payment_recurrence_125, t111.new_organization_legal_name AS new_organization_legal_name_126, t111.new_organization_vatid AS new_organization_vatid_127, t111.is_new_organization AS is_new_organization_128, t111.is_prescriber AS is_prescriber_129, t111.total_paid AS total_paid_130, t111.new_organization_user_email AS new_organization_user_email_131, t111.is_sent AS is_sent_132, t111.sent_date AS sent_date_133, t111.sent_to AS sent_to_134, t111.number AS number_135, t111.total_refund AS total_refund_136, t111.is_canceled AS is_canceled_137, t111.discount_without_tax AS discount_without_tax_138, t111.discount_without_tax_percent AS discount_without_tax_percent_139, t111.is_imported AS is_imported_140, t111.is_domiciliation AS is_domiciliation_141, t111.payment_url AS payment_url_142, t111.reference AS reference_143, t111.remaining_to_pay AS remaining_to_pay_144, t111.total_refunded_payment AS total_refunded_payment_145, t111.marge AS marge_146, t111.is_new_organization_prescribed AS is_new_organization_prescribed_147, t111.is_not_in_prescriber AS is_not_in_prescriber_148, t111.new_prescriber_legal_name AS new_prescriber_legal_name_149, t111.new_prescriber_vatid AS new_prescriber_vatid_150, t111.new_prescriber_user_email AS new_prescriber_user_email_151, t111.is_attached_to_prescriber AS is_attached_to_prescriber_152, t111.invoice_type AS invoice_type_153, t111.reference_stripe AS reference_stripe_154, t111.new_organization_phone_number AS new_organization_phone_number_155, t111.payment_deadline AS payment_deadline_156, t111.is_template AS is_template_157, t111.unique_key AS unique_key_158, t111.is_paid_by_stripe AS is_paid_by_stripe_159, t111.is_pack_invoice AS is_pack_invoice_160, t111.sync_billing_report AS sync_billing_report_161, t111.external_id AS external_id_162, t111.organization_id AS organization_id_163, t111.user_id AS user_id_164, t111.new_organization_address_id AS new_organization_address_id_165, t111.prescriber_id AS prescriber_id_166, t111.new_prescriber_address_id AS new_prescriber_address_id_167, t111.invoice_parent_id AS invoice_parent_id_168, t111.discount_code_id AS discount_code_id_169, t0.discount_code_id AS discount_code_id_170 FROM invoice t0 LEFT JOIN quote t55 ON t55.invoice_id = t0.id LEFT JOIN letter_forward t97 ON t97.invoice_id = t0.id LEFT JOIN invoice t111 ON t111.invoice_parent_id = t0.id WHERE t0.discount_code_id = 15;
|
78 |
1.34 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.alternate_name AS alternate_name_3, t0.price_without_tax AS price_without_tax_4, t0.description AS description_5, t0.active AS active_6, t0.meta_description AS meta_description_7, t0.meta_title AS meta_title_8, t0.url AS url_9, t0.created_at AS created_at_10, t0.subscription_type AS subscription_type_11, t0.unique_key AS unique_key_12, t0.is_displayed AS is_displayed_13, t0.is_archived AS is_archived_14, t0.is_subscription_component AS is_subscription_component_15, t0.category_id AS category_id_16, t0.category_for_billing_report_id AS category_for_billing_report_id_17 FROM product t0 INNER JOIN discount_code_product ON t0.id = discount_code_product.product_id WHERE discount_code_product.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.alternate_name AS alternate_name_3, t0.price_without_tax AS price_without_tax_4, t0.description AS description_5, t0.active AS active_6, t0.meta_description AS meta_description_7, t0.meta_title AS meta_title_8, t0.url AS url_9, t0.created_at AS created_at_10, t0.subscription_type AS subscription_type_11, t0.unique_key AS unique_key_12, t0.is_displayed AS is_displayed_13, t0.is_archived AS is_archived_14, t0.is_subscription_component AS is_subscription_component_15, t0.category_id AS category_id_16, t0.category_for_billing_report_id AS category_for_billing_report_id_17 FROM product t0 INNER JOIN discount_code_product ON t0.id = discount_code_product.product_id WHERE discount_code_product.discount_code_id = 15;
|
79 |
1.62 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.price AS price_3, t0.focus AS focus_4, t0.price_without_tax AS price_without_tax_5, t0.vat_rate AS vat_rate_6, t0.discount AS discount_7, t0.unique_key AS unique_key_8, t0.automation AS automation_9, t0.is_published AS is_published_10, t0.is_subscription AS is_subscription_11, t0.published_name AS published_name_12, t0.is_published_pack AS is_published_pack_13, t0.type AS type_14, t0.legal_status AS legal_status_15, t0.created_at AS created_at_16, t0.association_pack_id AS association_pack_id_17, t0.category_id AS category_id_18, t0.recurring_invoice_id AS recurring_invoice_id_19, t0.initial_invoice_id AS initial_invoice_id_20, t0.subscription_id AS subscription_id_21 FROM pack t0 INNER JOIN discount_code_pack ON t0.id = discount_code_pack.pack_id WHERE discount_code_pack.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.price AS price_3, t0.focus AS focus_4, t0.price_without_tax AS price_without_tax_5, t0.vat_rate AS vat_rate_6, t0.discount AS discount_7, t0.unique_key AS unique_key_8, t0.automation AS automation_9, t0.is_published AS is_published_10, t0.is_subscription AS is_subscription_11, t0.published_name AS published_name_12, t0.is_published_pack AS is_published_pack_13, t0.type AS type_14, t0.legal_status AS legal_status_15, t0.created_at AS created_at_16, t0.association_pack_id AS association_pack_id_17, t0.category_id AS category_id_18, t0.recurring_invoice_id AS recurring_invoice_id_19, t0.initial_invoice_id AS initial_invoice_id_20, t0.subscription_id AS subscription_id_21 FROM pack t0 INNER JOIN discount_code_pack ON t0.id = discount_code_pack.pack_id WHERE discount_code_pack.discount_code_id = 17;
|
80 |
1.03 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.unique_key AS unique_key_3, t0.security_deposit AS security_deposit_4, t0.is_active AS is_active_5, t0.authorized_frequency AS authorized_frequency_6, t0.created_at AS created_at_7, t0.update_at AS update_at_8, t0.price_without_tax AS price_without_tax_9, t0.product_id AS product_id_10 FROM subscription_model t0 INNER JOIN discount_code_subscription_model ON t0.id = discount_code_subscription_model.subscription_model_id WHERE discount_code_subscription_model.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.unique_key AS unique_key_3, t0.security_deposit AS security_deposit_4, t0.is_active AS is_active_5, t0.authorized_frequency AS authorized_frequency_6, t0.created_at AS created_at_7, t0.update_at AS update_at_8, t0.price_without_tax AS price_without_tax_9, t0.product_id AS product_id_10 FROM subscription_model t0 INNER JOIN discount_code_subscription_model ON t0.id = discount_code_subscription_model.subscription_model_id WHERE discount_code_subscription_model.discount_code_id = 17;
|
81 |
1.16 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.opening_hours AS opening_hours_3, t0.currencies_accepted AS currencies_accepted_4, t0.payment_accepted_type AS payment_accepted_type_5, t0.price_range AS price_range_6, t0.aggregate_rating AS aggregate_rating_7, t0.created_at AS created_at_8, t0.prefectoral_approval_number AS prefectoral_approval_number_9, t0.status AS status_10, t0.cedex AS cedex_11, t0.is_exportable_ibml AS is_exportable_ibml_12, t0.postal_address_id AS postal_address_id_13, t0.sector_id AS sector_id_14 FROM store t0 INNER JOIN discount_code_store ON t0.id = discount_code_store.store_id WHERE discount_code_store.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.opening_hours AS opening_hours_3, t0.currencies_accepted AS currencies_accepted_4, t0.payment_accepted_type AS payment_accepted_type_5, t0.price_range AS price_range_6, t0.aggregate_rating AS aggregate_rating_7, t0.created_at AS created_at_8, t0.prefectoral_approval_number AS prefectoral_approval_number_9, t0.status AS status_10, t0.cedex AS cedex_11, t0.is_exportable_ibml AS is_exportable_ibml_12, t0.postal_address_id AS postal_address_id_13, t0.sector_id AS sector_id_14 FROM store t0 INNER JOIN discount_code_store ON t0.id = discount_code_store.store_id WHERE discount_code_store.discount_code_id = 17;
|
82 |
1.76 ms |
SELECT t0.id AS id_1, t0.created_at AS created_at_2, t0.updated_at AS updated_at_3, t0.confirmation_number AS confirmation_number_4, t0.status AS status_5, t0.period_start AS period_start_6, t0.period_end AS period_end_7, t0.period_length AS period_length_8, t0.vatrate AS vatrate_9, t0.price_without_tax AS price_without_tax_10, t0.object AS object_11, t0.path AS path_12, t0.price AS price_13, t0.payment_recurrence AS payment_recurrence_14, t0.new_organization_legal_name AS new_organization_legal_name_15, t0.new_organization_vatid AS new_organization_vatid_16, t0.is_new_organization AS is_new_organization_17, t0.is_prescriber AS is_prescriber_18, t0.total_paid AS total_paid_19, t0.new_organization_user_email AS new_organization_user_email_20, t0.is_sent AS is_sent_21, t0.sent_date AS sent_date_22, t0.sent_to AS sent_to_23, t0.number AS number_24, t0.total_refund AS total_refund_25, t0.is_canceled AS is_canceled_26, t0.discount_without_tax AS discount_without_tax_27, t0.discount_without_tax_percent AS discount_without_tax_percent_28, t0.is_imported AS is_imported_29, t0.is_domiciliation AS is_domiciliation_30, t0.payment_url AS payment_url_31, t0.reference AS reference_32, t0.remaining_to_pay AS remaining_to_pay_33, t0.total_refunded_payment AS total_refunded_payment_34, t0.marge AS marge_35, t0.is_new_organization_prescribed AS is_new_organization_prescribed_36, t0.is_not_in_prescriber AS is_not_in_prescriber_37, t0.new_prescriber_legal_name AS new_prescriber_legal_name_38, t0.new_prescriber_vatid AS new_prescriber_vatid_39, t0.new_prescriber_user_email AS new_prescriber_user_email_40, t0.is_attached_to_prescriber AS is_attached_to_prescriber_41, t0.invoice_type AS invoice_type_42, t0.reference_stripe AS reference_stripe_43, t0.new_organization_phone_number AS new_organization_phone_number_44, t0.payment_deadline AS payment_deadline_45, t0.is_template AS is_template_46, t0.unique_key AS unique_key_47, t0.is_paid_by_stripe AS is_paid_by_stripe_48, t0.is_pack_invoice AS is_pack_invoice_49, t0.sync_billing_report AS sync_billing_report_50, t0.external_id AS external_id_51, t0.organization_id AS organization_id_52, t0.user_id AS user_id_53, t0.new_organization_address_id AS new_organization_address_id_54, t55.id AS id_56, t55.created_at AS created_at_57, t55.updated_at AS updated_at_58, t55.status AS status_59, t55.vatrate AS vatrate_60, t55.price_without_tax AS price_without_tax_61, t55.object AS object_62, t55.path AS path_63, t55.price AS price_64, t55.new_organization_legal_name AS new_organization_legal_name_65, t55.new_organization_vatid AS new_organization_vatid_66, t55.is_new_organization AS is_new_organization_67, t55.is_prescriber AS is_prescriber_68, t55.new_organization_user_email AS new_organization_user_email_69, t55.is_sent AS is_sent_70, t55.sent_date AS sent_date_71, t55.sent_to AS sent_to_72, t55.number AS number_73, t55.is_canceled AS is_canceled_74, t55.discount_without_tax AS discount_without_tax_75, t55.discount_without_tax_percent AS discount_without_tax_percent_76, t55.invoice_is_generated AS invoice_is_generated_77, t55.payment_url AS payment_url_78, t55.is_generate AS is_generate_79, t55.marge AS marge_80, t55.new_organization_phone_number AS new_organization_phone_number_81, t55.is_new_organization_prescribed AS is_new_organization_prescribed_82, t55.is_not_in_prescriber AS is_not_in_prescriber_83, t55.new_prescriber_legal_name AS new_prescriber_legal_name_84, t55.new_prescriber_vatid AS new_prescriber_vatid_85, t55.new_prescriber_user_email AS new_prescriber_user_email_86, t55.is_attached_to_prescriber AS is_attached_to_prescriber_87, t55.is_paid_by_stripe AS is_paid_by_stripe_88, t55.organization_id AS organization_id_89, t55.new_organization_address_id AS new_organization_address_id_90, t55.invoice_id AS invoice_id_91, t55.prescriber_id AS prescriber_id_92, t55.new_prescriber_address_id AS new_prescriber_address_id_93, t55.discount_code_id AS discount_code_id_94, t0.prescriber_id AS prescriber_id_95, t0.new_prescriber_address_id AS new_prescriber_address_id_96, t97.id AS id_98, t97.created_at AS created_at_99, t97.updated_at AS updated_at_100, t97.is_done AS is_done_101, t97.comment AS comment_102, t97.npai AS npai_103, t97.price_without_tax AS price_without_tax_104, t97.tracking_number AS tracking_number_105, t97.price AS price_106, t97.days_keep AS days_keep_107, t97.organization_id AS organization_id_108, t97.invoice_id AS invoice_id_109, t0.invoice_parent_id AS invoice_parent_id_110, t111.id AS id_112, t111.created_at AS created_at_113, t111.updated_at AS updated_at_114, t111.confirmation_number AS confirmation_number_115, t111.status AS status_116, t111.period_start AS period_start_117, t111.period_end AS period_end_118, t111.period_length AS period_length_119, t111.vatrate AS vatrate_120, t111.price_without_tax AS price_without_tax_121, t111.object AS object_122, t111.path AS path_123, t111.price AS price_124, t111.payment_recurrence AS payment_recurrence_125, t111.new_organization_legal_name AS new_organization_legal_name_126, t111.new_organization_vatid AS new_organization_vatid_127, t111.is_new_organization AS is_new_organization_128, t111.is_prescriber AS is_prescriber_129, t111.total_paid AS total_paid_130, t111.new_organization_user_email AS new_organization_user_email_131, t111.is_sent AS is_sent_132, t111.sent_date AS sent_date_133, t111.sent_to AS sent_to_134, t111.number AS number_135, t111.total_refund AS total_refund_136, t111.is_canceled AS is_canceled_137, t111.discount_without_tax AS discount_without_tax_138, t111.discount_without_tax_percent AS discount_without_tax_percent_139, t111.is_imported AS is_imported_140, t111.is_domiciliation AS is_domiciliation_141, t111.payment_url AS payment_url_142, t111.reference AS reference_143, t111.remaining_to_pay AS remaining_to_pay_144, t111.total_refunded_payment AS total_refunded_payment_145, t111.marge AS marge_146, t111.is_new_organization_prescribed AS is_new_organization_prescribed_147, t111.is_not_in_prescriber AS is_not_in_prescriber_148, t111.new_prescriber_legal_name AS new_prescriber_legal_name_149, t111.new_prescriber_vatid AS new_prescriber_vatid_150, t111.new_prescriber_user_email AS new_prescriber_user_email_151, t111.is_attached_to_prescriber AS is_attached_to_prescriber_152, t111.invoice_type AS invoice_type_153, t111.reference_stripe AS reference_stripe_154, t111.new_organization_phone_number AS new_organization_phone_number_155, t111.payment_deadline AS payment_deadline_156, t111.is_template AS is_template_157, t111.unique_key AS unique_key_158, t111.is_paid_by_stripe AS is_paid_by_stripe_159, t111.is_pack_invoice AS is_pack_invoice_160, t111.sync_billing_report AS sync_billing_report_161, t111.external_id AS external_id_162, t111.organization_id AS organization_id_163, t111.user_id AS user_id_164, t111.new_organization_address_id AS new_organization_address_id_165, t111.prescriber_id AS prescriber_id_166, t111.new_prescriber_address_id AS new_prescriber_address_id_167, t111.invoice_parent_id AS invoice_parent_id_168, t111.discount_code_id AS discount_code_id_169, t0.discount_code_id AS discount_code_id_170 FROM invoice t0 LEFT JOIN quote t55 ON t55.invoice_id = t0.id LEFT JOIN letter_forward t97 ON t97.invoice_id = t0.id LEFT JOIN invoice t111 ON t111.invoice_parent_id = t0.id WHERE t0.discount_code_id = ?
SELECT
t0.id AS id_1,
t0.created_at AS created_at_2,
t0.updated_at AS updated_at_3,
t0.confirmation_number AS confirmation_number_4,
t0.status AS status_5,
t0.period_start AS period_start_6,
t0.period_end AS period_end_7,
t0.period_length AS period_length_8,
t0.vatrate AS vatrate_9,
t0.price_without_tax AS price_without_tax_10,
t0.object AS object_11,
t0.path AS path_12,
t0.price AS price_13,
t0.payment_recurrence AS payment_recurrence_14,
t0.new_organization_legal_name AS new_organization_legal_name_15,
t0.new_organization_vatid AS new_organization_vatid_16,
t0.is_new_organization AS is_new_organization_17,
t0.is_prescriber AS is_prescriber_18,
t0.total_paid AS total_paid_19,
t0.new_organization_user_email AS new_organization_user_email_20,
t0.is_sent AS is_sent_21,
t0.sent_date AS sent_date_22,
t0.sent_to AS sent_to_23,
t0.number AS number_24,
t0.total_refund AS total_refund_25,
t0.is_canceled AS is_canceled_26,
t0.discount_without_tax AS discount_without_tax_27,
t0.discount_without_tax_percent AS discount_without_tax_percent_28,
t0.is_imported AS is_imported_29,
t0.is_domiciliation AS is_domiciliation_30,
t0.payment_url AS payment_url_31,
t0.reference AS reference_32,
t0.remaining_to_pay AS remaining_to_pay_33,
t0.total_refunded_payment AS total_refunded_payment_34,
t0.marge AS marge_35,
t0.is_new_organization_prescribed AS is_new_organization_prescribed_36,
t0.is_not_in_prescriber AS is_not_in_prescriber_37,
t0.new_prescriber_legal_name AS new_prescriber_legal_name_38,
t0.new_prescriber_vatid AS new_prescriber_vatid_39,
t0.new_prescriber_user_email AS new_prescriber_user_email_40,
t0.is_attached_to_prescriber AS is_attached_to_prescriber_41,
t0.invoice_type AS invoice_type_42,
t0.reference_stripe AS reference_stripe_43,
t0.new_organization_phone_number AS new_organization_phone_number_44,
t0.payment_deadline AS payment_deadline_45,
t0.is_template AS is_template_46,
t0.unique_key AS unique_key_47,
t0.is_paid_by_stripe AS is_paid_by_stripe_48,
t0.is_pack_invoice AS is_pack_invoice_49,
t0.sync_billing_report AS sync_billing_report_50,
t0.external_id AS external_id_51,
t0.organization_id AS organization_id_52,
t0.user_id AS user_id_53,
t0.new_organization_address_id AS new_organization_address_id_54,
t55.id AS id_56,
t55.created_at AS created_at_57,
t55.updated_at AS updated_at_58,
t55.status AS status_59,
t55.vatrate AS vatrate_60,
t55.price_without_tax AS price_without_tax_61,
t55.object AS object_62,
t55.path AS path_63,
t55.price AS price_64,
t55.new_organization_legal_name AS new_organization_legal_name_65,
t55.new_organization_vatid AS new_organization_vatid_66,
t55.is_new_organization AS is_new_organization_67,
t55.is_prescriber AS is_prescriber_68,
t55.new_organization_user_email AS new_organization_user_email_69,
t55.is_sent AS is_sent_70,
t55.sent_date AS sent_date_71,
t55.sent_to AS sent_to_72,
t55.number AS number_73,
t55.is_canceled AS is_canceled_74,
t55.discount_without_tax AS discount_without_tax_75,
t55.discount_without_tax_percent AS discount_without_tax_percent_76,
t55.invoice_is_generated AS invoice_is_generated_77,
t55.payment_url AS payment_url_78,
t55.is_generate AS is_generate_79,
t55.marge AS marge_80,
t55.new_organization_phone_number AS new_organization_phone_number_81,
t55.is_new_organization_prescribed AS is_new_organization_prescribed_82,
t55.is_not_in_prescriber AS is_not_in_prescriber_83,
t55.new_prescriber_legal_name AS new_prescriber_legal_name_84,
t55.new_prescriber_vatid AS new_prescriber_vatid_85,
t55.new_prescriber_user_email AS new_prescriber_user_email_86,
t55.is_attached_to_prescriber AS is_attached_to_prescriber_87,
t55.is_paid_by_stripe AS is_paid_by_stripe_88,
t55.organization_id AS organization_id_89,
t55.new_organization_address_id AS new_organization_address_id_90,
t55.invoice_id AS invoice_id_91,
t55.prescriber_id AS prescriber_id_92,
t55.new_prescriber_address_id AS new_prescriber_address_id_93,
t55.discount_code_id AS discount_code_id_94,
t0.prescriber_id AS prescriber_id_95,
t0.new_prescriber_address_id AS new_prescriber_address_id_96,
t97.id AS id_98,
t97.created_at AS created_at_99,
t97.updated_at AS updated_at_100,
t97.is_done AS is_done_101,
t97.comment AS comment_102,
t97.npai AS npai_103,
t97.price_without_tax AS price_without_tax_104,
t97.tracking_number AS tracking_number_105,
t97.price AS price_106,
t97.days_keep AS days_keep_107,
t97.organization_id AS organization_id_108,
t97.invoice_id AS invoice_id_109,
t0.invoice_parent_id AS invoice_parent_id_110,
t111.id AS id_112,
t111.created_at AS created_at_113,
t111.updated_at AS updated_at_114,
t111.confirmation_number AS confirmation_number_115,
t111.status AS status_116,
t111.period_start AS period_start_117,
t111.period_end AS period_end_118,
t111.period_length AS period_length_119,
t111.vatrate AS vatrate_120,
t111.price_without_tax AS price_without_tax_121,
t111.object AS object_122,
t111.path AS path_123,
t111.price AS price_124,
t111.payment_recurrence AS payment_recurrence_125,
t111.new_organization_legal_name AS new_organization_legal_name_126,
t111.new_organization_vatid AS new_organization_vatid_127,
t111.is_new_organization AS is_new_organization_128,
t111.is_prescriber AS is_prescriber_129,
t111.total_paid AS total_paid_130,
t111.new_organization_user_email AS new_organization_user_email_131,
t111.is_sent AS is_sent_132,
t111.sent_date AS sent_date_133,
t111.sent_to AS sent_to_134,
t111.number AS number_135,
t111.total_refund AS total_refund_136,
t111.is_canceled AS is_canceled_137,
t111.discount_without_tax AS discount_without_tax_138,
t111.discount_without_tax_percent AS discount_without_tax_percent_139,
t111.is_imported AS is_imported_140,
t111.is_domiciliation AS is_domiciliation_141,
t111.payment_url AS payment_url_142,
t111.reference AS reference_143,
t111.remaining_to_pay AS remaining_to_pay_144,
t111.total_refunded_payment AS total_refunded_payment_145,
t111.marge AS marge_146,
t111.is_new_organization_prescribed AS is_new_organization_prescribed_147,
t111.is_not_in_prescriber AS is_not_in_prescriber_148,
t111.new_prescriber_legal_name AS new_prescriber_legal_name_149,
t111.new_prescriber_vatid AS new_prescriber_vatid_150,
t111.new_prescriber_user_email AS new_prescriber_user_email_151,
t111.is_attached_to_prescriber AS is_attached_to_prescriber_152,
t111.invoice_type AS invoice_type_153,
t111.reference_stripe AS reference_stripe_154,
t111.new_organization_phone_number AS new_organization_phone_number_155,
t111.payment_deadline AS payment_deadline_156,
t111.is_template AS is_template_157,
t111.unique_key AS unique_key_158,
t111.is_paid_by_stripe AS is_paid_by_stripe_159,
t111.is_pack_invoice AS is_pack_invoice_160,
t111.sync_billing_report AS sync_billing_report_161,
t111.external_id AS external_id_162,
t111.organization_id AS organization_id_163,
t111.user_id AS user_id_164,
t111.new_organization_address_id AS new_organization_address_id_165,
t111.prescriber_id AS prescriber_id_166,
t111.new_prescriber_address_id AS new_prescriber_address_id_167,
t111.invoice_parent_id AS invoice_parent_id_168,
t111.discount_code_id AS discount_code_id_169,
t0.discount_code_id AS discount_code_id_170
FROM
invoice t0
LEFT JOIN quote t55 ON t55.invoice_id = t0.id
LEFT JOIN letter_forward t97 ON t97.invoice_id = t0.id
LEFT JOIN invoice t111 ON t111.invoice_parent_id = t0.id
WHERE
t0.discount_code_id = ?
SELECT t0.id AS id_1, t0.created_at AS created_at_2, t0.updated_at AS updated_at_3, t0.confirmation_number AS confirmation_number_4, t0.status AS status_5, t0.period_start AS period_start_6, t0.period_end AS period_end_7, t0.period_length AS period_length_8, t0.vatrate AS vatrate_9, t0.price_without_tax AS price_without_tax_10, t0.object AS object_11, t0.path AS path_12, t0.price AS price_13, t0.payment_recurrence AS payment_recurrence_14, t0.new_organization_legal_name AS new_organization_legal_name_15, t0.new_organization_vatid AS new_organization_vatid_16, t0.is_new_organization AS is_new_organization_17, t0.is_prescriber AS is_prescriber_18, t0.total_paid AS total_paid_19, t0.new_organization_user_email AS new_organization_user_email_20, t0.is_sent AS is_sent_21, t0.sent_date AS sent_date_22, t0.sent_to AS sent_to_23, t0.number AS number_24, t0.total_refund AS total_refund_25, t0.is_canceled AS is_canceled_26, t0.discount_without_tax AS discount_without_tax_27, t0.discount_without_tax_percent AS discount_without_tax_percent_28, t0.is_imported AS is_imported_29, t0.is_domiciliation AS is_domiciliation_30, t0.payment_url AS payment_url_31, t0.reference AS reference_32, t0.remaining_to_pay AS remaining_to_pay_33, t0.total_refunded_payment AS total_refunded_payment_34, t0.marge AS marge_35, t0.is_new_organization_prescribed AS is_new_organization_prescribed_36, t0.is_not_in_prescriber AS is_not_in_prescriber_37, t0.new_prescriber_legal_name AS new_prescriber_legal_name_38, t0.new_prescriber_vatid AS new_prescriber_vatid_39, t0.new_prescriber_user_email AS new_prescriber_user_email_40, t0.is_attached_to_prescriber AS is_attached_to_prescriber_41, t0.invoice_type AS invoice_type_42, t0.reference_stripe AS reference_stripe_43, t0.new_organization_phone_number AS new_organization_phone_number_44, t0.payment_deadline AS payment_deadline_45, t0.is_template AS is_template_46, t0.unique_key AS unique_key_47, t0.is_paid_by_stripe AS is_paid_by_stripe_48, t0.is_pack_invoice AS is_pack_invoice_49, t0.sync_billing_report AS sync_billing_report_50, t0.external_id AS external_id_51, t0.organization_id AS organization_id_52, t0.user_id AS user_id_53, t0.new_organization_address_id AS new_organization_address_id_54, t55.id AS id_56, t55.created_at AS created_at_57, t55.updated_at AS updated_at_58, t55.status AS status_59, t55.vatrate AS vatrate_60, t55.price_without_tax AS price_without_tax_61, t55.object AS object_62, t55.path AS path_63, t55.price AS price_64, t55.new_organization_legal_name AS new_organization_legal_name_65, t55.new_organization_vatid AS new_organization_vatid_66, t55.is_new_organization AS is_new_organization_67, t55.is_prescriber AS is_prescriber_68, t55.new_organization_user_email AS new_organization_user_email_69, t55.is_sent AS is_sent_70, t55.sent_date AS sent_date_71, t55.sent_to AS sent_to_72, t55.number AS number_73, t55.is_canceled AS is_canceled_74, t55.discount_without_tax AS discount_without_tax_75, t55.discount_without_tax_percent AS discount_without_tax_percent_76, t55.invoice_is_generated AS invoice_is_generated_77, t55.payment_url AS payment_url_78, t55.is_generate AS is_generate_79, t55.marge AS marge_80, t55.new_organization_phone_number AS new_organization_phone_number_81, t55.is_new_organization_prescribed AS is_new_organization_prescribed_82, t55.is_not_in_prescriber AS is_not_in_prescriber_83, t55.new_prescriber_legal_name AS new_prescriber_legal_name_84, t55.new_prescriber_vatid AS new_prescriber_vatid_85, t55.new_prescriber_user_email AS new_prescriber_user_email_86, t55.is_attached_to_prescriber AS is_attached_to_prescriber_87, t55.is_paid_by_stripe AS is_paid_by_stripe_88, t55.organization_id AS organization_id_89, t55.new_organization_address_id AS new_organization_address_id_90, t55.invoice_id AS invoice_id_91, t55.prescriber_id AS prescriber_id_92, t55.new_prescriber_address_id AS new_prescriber_address_id_93, t55.discount_code_id AS discount_code_id_94, t0.prescriber_id AS prescriber_id_95, t0.new_prescriber_address_id AS new_prescriber_address_id_96, t97.id AS id_98, t97.created_at AS created_at_99, t97.updated_at AS updated_at_100, t97.is_done AS is_done_101, t97.comment AS comment_102, t97.npai AS npai_103, t97.price_without_tax AS price_without_tax_104, t97.tracking_number AS tracking_number_105, t97.price AS price_106, t97.days_keep AS days_keep_107, t97.organization_id AS organization_id_108, t97.invoice_id AS invoice_id_109, t0.invoice_parent_id AS invoice_parent_id_110, t111.id AS id_112, t111.created_at AS created_at_113, t111.updated_at AS updated_at_114, t111.confirmation_number AS confirmation_number_115, t111.status AS status_116, t111.period_start AS period_start_117, t111.period_end AS period_end_118, t111.period_length AS period_length_119, t111.vatrate AS vatrate_120, t111.price_without_tax AS price_without_tax_121, t111.object AS object_122, t111.path AS path_123, t111.price AS price_124, t111.payment_recurrence AS payment_recurrence_125, t111.new_organization_legal_name AS new_organization_legal_name_126, t111.new_organization_vatid AS new_organization_vatid_127, t111.is_new_organization AS is_new_organization_128, t111.is_prescriber AS is_prescriber_129, t111.total_paid AS total_paid_130, t111.new_organization_user_email AS new_organization_user_email_131, t111.is_sent AS is_sent_132, t111.sent_date AS sent_date_133, t111.sent_to AS sent_to_134, t111.number AS number_135, t111.total_refund AS total_refund_136, t111.is_canceled AS is_canceled_137, t111.discount_without_tax AS discount_without_tax_138, t111.discount_without_tax_percent AS discount_without_tax_percent_139, t111.is_imported AS is_imported_140, t111.is_domiciliation AS is_domiciliation_141, t111.payment_url AS payment_url_142, t111.reference AS reference_143, t111.remaining_to_pay AS remaining_to_pay_144, t111.total_refunded_payment AS total_refunded_payment_145, t111.marge AS marge_146, t111.is_new_organization_prescribed AS is_new_organization_prescribed_147, t111.is_not_in_prescriber AS is_not_in_prescriber_148, t111.new_prescriber_legal_name AS new_prescriber_legal_name_149, t111.new_prescriber_vatid AS new_prescriber_vatid_150, t111.new_prescriber_user_email AS new_prescriber_user_email_151, t111.is_attached_to_prescriber AS is_attached_to_prescriber_152, t111.invoice_type AS invoice_type_153, t111.reference_stripe AS reference_stripe_154, t111.new_organization_phone_number AS new_organization_phone_number_155, t111.payment_deadline AS payment_deadline_156, t111.is_template AS is_template_157, t111.unique_key AS unique_key_158, t111.is_paid_by_stripe AS is_paid_by_stripe_159, t111.is_pack_invoice AS is_pack_invoice_160, t111.sync_billing_report AS sync_billing_report_161, t111.external_id AS external_id_162, t111.organization_id AS organization_id_163, t111.user_id AS user_id_164, t111.new_organization_address_id AS new_organization_address_id_165, t111.prescriber_id AS prescriber_id_166, t111.new_prescriber_address_id AS new_prescriber_address_id_167, t111.invoice_parent_id AS invoice_parent_id_168, t111.discount_code_id AS discount_code_id_169, t0.discount_code_id AS discount_code_id_170 FROM invoice t0 LEFT JOIN quote t55 ON t55.invoice_id = t0.id LEFT JOIN letter_forward t97 ON t97.invoice_id = t0.id LEFT JOIN invoice t111 ON t111.invoice_parent_id = t0.id WHERE t0.discount_code_id = 17;
|
83 |
1.27 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.alternate_name AS alternate_name_3, t0.price_without_tax AS price_without_tax_4, t0.description AS description_5, t0.active AS active_6, t0.meta_description AS meta_description_7, t0.meta_title AS meta_title_8, t0.url AS url_9, t0.created_at AS created_at_10, t0.subscription_type AS subscription_type_11, t0.unique_key AS unique_key_12, t0.is_displayed AS is_displayed_13, t0.is_archived AS is_archived_14, t0.is_subscription_component AS is_subscription_component_15, t0.category_id AS category_id_16, t0.category_for_billing_report_id AS category_for_billing_report_id_17 FROM product t0 INNER JOIN discount_code_product ON t0.id = discount_code_product.product_id WHERE discount_code_product.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.alternate_name AS alternate_name_3, t0.price_without_tax AS price_without_tax_4, t0.description AS description_5, t0.active AS active_6, t0.meta_description AS meta_description_7, t0.meta_title AS meta_title_8, t0.url AS url_9, t0.created_at AS created_at_10, t0.subscription_type AS subscription_type_11, t0.unique_key AS unique_key_12, t0.is_displayed AS is_displayed_13, t0.is_archived AS is_archived_14, t0.is_subscription_component AS is_subscription_component_15, t0.category_id AS category_id_16, t0.category_for_billing_report_id AS category_for_billing_report_id_17 FROM product t0 INNER JOIN discount_code_product ON t0.id = discount_code_product.product_id WHERE discount_code_product.discount_code_id = 17;
|
84 |
1.15 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.price AS price_3, t0.focus AS focus_4, t0.price_without_tax AS price_without_tax_5, t0.vat_rate AS vat_rate_6, t0.discount AS discount_7, t0.unique_key AS unique_key_8, t0.automation AS automation_9, t0.is_published AS is_published_10, t0.is_subscription AS is_subscription_11, t0.published_name AS published_name_12, t0.is_published_pack AS is_published_pack_13, t0.type AS type_14, t0.legal_status AS legal_status_15, t0.created_at AS created_at_16, t0.association_pack_id AS association_pack_id_17, t0.category_id AS category_id_18, t0.recurring_invoice_id AS recurring_invoice_id_19, t0.initial_invoice_id AS initial_invoice_id_20, t0.subscription_id AS subscription_id_21 FROM pack t0 INNER JOIN discount_code_pack ON t0.id = discount_code_pack.pack_id WHERE discount_code_pack.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.price AS price_3, t0.focus AS focus_4, t0.price_without_tax AS price_without_tax_5, t0.vat_rate AS vat_rate_6, t0.discount AS discount_7, t0.unique_key AS unique_key_8, t0.automation AS automation_9, t0.is_published AS is_published_10, t0.is_subscription AS is_subscription_11, t0.published_name AS published_name_12, t0.is_published_pack AS is_published_pack_13, t0.type AS type_14, t0.legal_status AS legal_status_15, t0.created_at AS created_at_16, t0.association_pack_id AS association_pack_id_17, t0.category_id AS category_id_18, t0.recurring_invoice_id AS recurring_invoice_id_19, t0.initial_invoice_id AS initial_invoice_id_20, t0.subscription_id AS subscription_id_21 FROM pack t0 INNER JOIN discount_code_pack ON t0.id = discount_code_pack.pack_id WHERE discount_code_pack.discount_code_id = 18;
|
85 |
1.13 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.unique_key AS unique_key_3, t0.security_deposit AS security_deposit_4, t0.is_active AS is_active_5, t0.authorized_frequency AS authorized_frequency_6, t0.created_at AS created_at_7, t0.update_at AS update_at_8, t0.price_without_tax AS price_without_tax_9, t0.product_id AS product_id_10 FROM subscription_model t0 INNER JOIN discount_code_subscription_model ON t0.id = discount_code_subscription_model.subscription_model_id WHERE discount_code_subscription_model.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.unique_key AS unique_key_3, t0.security_deposit AS security_deposit_4, t0.is_active AS is_active_5, t0.authorized_frequency AS authorized_frequency_6, t0.created_at AS created_at_7, t0.update_at AS update_at_8, t0.price_without_tax AS price_without_tax_9, t0.product_id AS product_id_10 FROM subscription_model t0 INNER JOIN discount_code_subscription_model ON t0.id = discount_code_subscription_model.subscription_model_id WHERE discount_code_subscription_model.discount_code_id = 18;
|
86 |
1.22 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.opening_hours AS opening_hours_3, t0.currencies_accepted AS currencies_accepted_4, t0.payment_accepted_type AS payment_accepted_type_5, t0.price_range AS price_range_6, t0.aggregate_rating AS aggregate_rating_7, t0.created_at AS created_at_8, t0.prefectoral_approval_number AS prefectoral_approval_number_9, t0.status AS status_10, t0.cedex AS cedex_11, t0.is_exportable_ibml AS is_exportable_ibml_12, t0.postal_address_id AS postal_address_id_13, t0.sector_id AS sector_id_14 FROM store t0 INNER JOIN discount_code_store ON t0.id = discount_code_store.store_id WHERE discount_code_store.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.opening_hours AS opening_hours_3, t0.currencies_accepted AS currencies_accepted_4, t0.payment_accepted_type AS payment_accepted_type_5, t0.price_range AS price_range_6, t0.aggregate_rating AS aggregate_rating_7, t0.created_at AS created_at_8, t0.prefectoral_approval_number AS prefectoral_approval_number_9, t0.status AS status_10, t0.cedex AS cedex_11, t0.is_exportable_ibml AS is_exportable_ibml_12, t0.postal_address_id AS postal_address_id_13, t0.sector_id AS sector_id_14 FROM store t0 INNER JOIN discount_code_store ON t0.id = discount_code_store.store_id WHERE discount_code_store.discount_code_id = 18;
|
87 |
1.83 ms |
SELECT t0.id AS id_1, t0.created_at AS created_at_2, t0.updated_at AS updated_at_3, t0.confirmation_number AS confirmation_number_4, t0.status AS status_5, t0.period_start AS period_start_6, t0.period_end AS period_end_7, t0.period_length AS period_length_8, t0.vatrate AS vatrate_9, t0.price_without_tax AS price_without_tax_10, t0.object AS object_11, t0.path AS path_12, t0.price AS price_13, t0.payment_recurrence AS payment_recurrence_14, t0.new_organization_legal_name AS new_organization_legal_name_15, t0.new_organization_vatid AS new_organization_vatid_16, t0.is_new_organization AS is_new_organization_17, t0.is_prescriber AS is_prescriber_18, t0.total_paid AS total_paid_19, t0.new_organization_user_email AS new_organization_user_email_20, t0.is_sent AS is_sent_21, t0.sent_date AS sent_date_22, t0.sent_to AS sent_to_23, t0.number AS number_24, t0.total_refund AS total_refund_25, t0.is_canceled AS is_canceled_26, t0.discount_without_tax AS discount_without_tax_27, t0.discount_without_tax_percent AS discount_without_tax_percent_28, t0.is_imported AS is_imported_29, t0.is_domiciliation AS is_domiciliation_30, t0.payment_url AS payment_url_31, t0.reference AS reference_32, t0.remaining_to_pay AS remaining_to_pay_33, t0.total_refunded_payment AS total_refunded_payment_34, t0.marge AS marge_35, t0.is_new_organization_prescribed AS is_new_organization_prescribed_36, t0.is_not_in_prescriber AS is_not_in_prescriber_37, t0.new_prescriber_legal_name AS new_prescriber_legal_name_38, t0.new_prescriber_vatid AS new_prescriber_vatid_39, t0.new_prescriber_user_email AS new_prescriber_user_email_40, t0.is_attached_to_prescriber AS is_attached_to_prescriber_41, t0.invoice_type AS invoice_type_42, t0.reference_stripe AS reference_stripe_43, t0.new_organization_phone_number AS new_organization_phone_number_44, t0.payment_deadline AS payment_deadline_45, t0.is_template AS is_template_46, t0.unique_key AS unique_key_47, t0.is_paid_by_stripe AS is_paid_by_stripe_48, t0.is_pack_invoice AS is_pack_invoice_49, t0.sync_billing_report AS sync_billing_report_50, t0.external_id AS external_id_51, t0.organization_id AS organization_id_52, t0.user_id AS user_id_53, t0.new_organization_address_id AS new_organization_address_id_54, t55.id AS id_56, t55.created_at AS created_at_57, t55.updated_at AS updated_at_58, t55.status AS status_59, t55.vatrate AS vatrate_60, t55.price_without_tax AS price_without_tax_61, t55.object AS object_62, t55.path AS path_63, t55.price AS price_64, t55.new_organization_legal_name AS new_organization_legal_name_65, t55.new_organization_vatid AS new_organization_vatid_66, t55.is_new_organization AS is_new_organization_67, t55.is_prescriber AS is_prescriber_68, t55.new_organization_user_email AS new_organization_user_email_69, t55.is_sent AS is_sent_70, t55.sent_date AS sent_date_71, t55.sent_to AS sent_to_72, t55.number AS number_73, t55.is_canceled AS is_canceled_74, t55.discount_without_tax AS discount_without_tax_75, t55.discount_without_tax_percent AS discount_without_tax_percent_76, t55.invoice_is_generated AS invoice_is_generated_77, t55.payment_url AS payment_url_78, t55.is_generate AS is_generate_79, t55.marge AS marge_80, t55.new_organization_phone_number AS new_organization_phone_number_81, t55.is_new_organization_prescribed AS is_new_organization_prescribed_82, t55.is_not_in_prescriber AS is_not_in_prescriber_83, t55.new_prescriber_legal_name AS new_prescriber_legal_name_84, t55.new_prescriber_vatid AS new_prescriber_vatid_85, t55.new_prescriber_user_email AS new_prescriber_user_email_86, t55.is_attached_to_prescriber AS is_attached_to_prescriber_87, t55.is_paid_by_stripe AS is_paid_by_stripe_88, t55.organization_id AS organization_id_89, t55.new_organization_address_id AS new_organization_address_id_90, t55.invoice_id AS invoice_id_91, t55.prescriber_id AS prescriber_id_92, t55.new_prescriber_address_id AS new_prescriber_address_id_93, t55.discount_code_id AS discount_code_id_94, t0.prescriber_id AS prescriber_id_95, t0.new_prescriber_address_id AS new_prescriber_address_id_96, t97.id AS id_98, t97.created_at AS created_at_99, t97.updated_at AS updated_at_100, t97.is_done AS is_done_101, t97.comment AS comment_102, t97.npai AS npai_103, t97.price_without_tax AS price_without_tax_104, t97.tracking_number AS tracking_number_105, t97.price AS price_106, t97.days_keep AS days_keep_107, t97.organization_id AS organization_id_108, t97.invoice_id AS invoice_id_109, t0.invoice_parent_id AS invoice_parent_id_110, t111.id AS id_112, t111.created_at AS created_at_113, t111.updated_at AS updated_at_114, t111.confirmation_number AS confirmation_number_115, t111.status AS status_116, t111.period_start AS period_start_117, t111.period_end AS period_end_118, t111.period_length AS period_length_119, t111.vatrate AS vatrate_120, t111.price_without_tax AS price_without_tax_121, t111.object AS object_122, t111.path AS path_123, t111.price AS price_124, t111.payment_recurrence AS payment_recurrence_125, t111.new_organization_legal_name AS new_organization_legal_name_126, t111.new_organization_vatid AS new_organization_vatid_127, t111.is_new_organization AS is_new_organization_128, t111.is_prescriber AS is_prescriber_129, t111.total_paid AS total_paid_130, t111.new_organization_user_email AS new_organization_user_email_131, t111.is_sent AS is_sent_132, t111.sent_date AS sent_date_133, t111.sent_to AS sent_to_134, t111.number AS number_135, t111.total_refund AS total_refund_136, t111.is_canceled AS is_canceled_137, t111.discount_without_tax AS discount_without_tax_138, t111.discount_without_tax_percent AS discount_without_tax_percent_139, t111.is_imported AS is_imported_140, t111.is_domiciliation AS is_domiciliation_141, t111.payment_url AS payment_url_142, t111.reference AS reference_143, t111.remaining_to_pay AS remaining_to_pay_144, t111.total_refunded_payment AS total_refunded_payment_145, t111.marge AS marge_146, t111.is_new_organization_prescribed AS is_new_organization_prescribed_147, t111.is_not_in_prescriber AS is_not_in_prescriber_148, t111.new_prescriber_legal_name AS new_prescriber_legal_name_149, t111.new_prescriber_vatid AS new_prescriber_vatid_150, t111.new_prescriber_user_email AS new_prescriber_user_email_151, t111.is_attached_to_prescriber AS is_attached_to_prescriber_152, t111.invoice_type AS invoice_type_153, t111.reference_stripe AS reference_stripe_154, t111.new_organization_phone_number AS new_organization_phone_number_155, t111.payment_deadline AS payment_deadline_156, t111.is_template AS is_template_157, t111.unique_key AS unique_key_158, t111.is_paid_by_stripe AS is_paid_by_stripe_159, t111.is_pack_invoice AS is_pack_invoice_160, t111.sync_billing_report AS sync_billing_report_161, t111.external_id AS external_id_162, t111.organization_id AS organization_id_163, t111.user_id AS user_id_164, t111.new_organization_address_id AS new_organization_address_id_165, t111.prescriber_id AS prescriber_id_166, t111.new_prescriber_address_id AS new_prescriber_address_id_167, t111.invoice_parent_id AS invoice_parent_id_168, t111.discount_code_id AS discount_code_id_169, t0.discount_code_id AS discount_code_id_170 FROM invoice t0 LEFT JOIN quote t55 ON t55.invoice_id = t0.id LEFT JOIN letter_forward t97 ON t97.invoice_id = t0.id LEFT JOIN invoice t111 ON t111.invoice_parent_id = t0.id WHERE t0.discount_code_id = ?
SELECT
t0.id AS id_1,
t0.created_at AS created_at_2,
t0.updated_at AS updated_at_3,
t0.confirmation_number AS confirmation_number_4,
t0.status AS status_5,
t0.period_start AS period_start_6,
t0.period_end AS period_end_7,
t0.period_length AS period_length_8,
t0.vatrate AS vatrate_9,
t0.price_without_tax AS price_without_tax_10,
t0.object AS object_11,
t0.path AS path_12,
t0.price AS price_13,
t0.payment_recurrence AS payment_recurrence_14,
t0.new_organization_legal_name AS new_organization_legal_name_15,
t0.new_organization_vatid AS new_organization_vatid_16,
t0.is_new_organization AS is_new_organization_17,
t0.is_prescriber AS is_prescriber_18,
t0.total_paid AS total_paid_19,
t0.new_organization_user_email AS new_organization_user_email_20,
t0.is_sent AS is_sent_21,
t0.sent_date AS sent_date_22,
t0.sent_to AS sent_to_23,
t0.number AS number_24,
t0.total_refund AS total_refund_25,
t0.is_canceled AS is_canceled_26,
t0.discount_without_tax AS discount_without_tax_27,
t0.discount_without_tax_percent AS discount_without_tax_percent_28,
t0.is_imported AS is_imported_29,
t0.is_domiciliation AS is_domiciliation_30,
t0.payment_url AS payment_url_31,
t0.reference AS reference_32,
t0.remaining_to_pay AS remaining_to_pay_33,
t0.total_refunded_payment AS total_refunded_payment_34,
t0.marge AS marge_35,
t0.is_new_organization_prescribed AS is_new_organization_prescribed_36,
t0.is_not_in_prescriber AS is_not_in_prescriber_37,
t0.new_prescriber_legal_name AS new_prescriber_legal_name_38,
t0.new_prescriber_vatid AS new_prescriber_vatid_39,
t0.new_prescriber_user_email AS new_prescriber_user_email_40,
t0.is_attached_to_prescriber AS is_attached_to_prescriber_41,
t0.invoice_type AS invoice_type_42,
t0.reference_stripe AS reference_stripe_43,
t0.new_organization_phone_number AS new_organization_phone_number_44,
t0.payment_deadline AS payment_deadline_45,
t0.is_template AS is_template_46,
t0.unique_key AS unique_key_47,
t0.is_paid_by_stripe AS is_paid_by_stripe_48,
t0.is_pack_invoice AS is_pack_invoice_49,
t0.sync_billing_report AS sync_billing_report_50,
t0.external_id AS external_id_51,
t0.organization_id AS organization_id_52,
t0.user_id AS user_id_53,
t0.new_organization_address_id AS new_organization_address_id_54,
t55.id AS id_56,
t55.created_at AS created_at_57,
t55.updated_at AS updated_at_58,
t55.status AS status_59,
t55.vatrate AS vatrate_60,
t55.price_without_tax AS price_without_tax_61,
t55.object AS object_62,
t55.path AS path_63,
t55.price AS price_64,
t55.new_organization_legal_name AS new_organization_legal_name_65,
t55.new_organization_vatid AS new_organization_vatid_66,
t55.is_new_organization AS is_new_organization_67,
t55.is_prescriber AS is_prescriber_68,
t55.new_organization_user_email AS new_organization_user_email_69,
t55.is_sent AS is_sent_70,
t55.sent_date AS sent_date_71,
t55.sent_to AS sent_to_72,
t55.number AS number_73,
t55.is_canceled AS is_canceled_74,
t55.discount_without_tax AS discount_without_tax_75,
t55.discount_without_tax_percent AS discount_without_tax_percent_76,
t55.invoice_is_generated AS invoice_is_generated_77,
t55.payment_url AS payment_url_78,
t55.is_generate AS is_generate_79,
t55.marge AS marge_80,
t55.new_organization_phone_number AS new_organization_phone_number_81,
t55.is_new_organization_prescribed AS is_new_organization_prescribed_82,
t55.is_not_in_prescriber AS is_not_in_prescriber_83,
t55.new_prescriber_legal_name AS new_prescriber_legal_name_84,
t55.new_prescriber_vatid AS new_prescriber_vatid_85,
t55.new_prescriber_user_email AS new_prescriber_user_email_86,
t55.is_attached_to_prescriber AS is_attached_to_prescriber_87,
t55.is_paid_by_stripe AS is_paid_by_stripe_88,
t55.organization_id AS organization_id_89,
t55.new_organization_address_id AS new_organization_address_id_90,
t55.invoice_id AS invoice_id_91,
t55.prescriber_id AS prescriber_id_92,
t55.new_prescriber_address_id AS new_prescriber_address_id_93,
t55.discount_code_id AS discount_code_id_94,
t0.prescriber_id AS prescriber_id_95,
t0.new_prescriber_address_id AS new_prescriber_address_id_96,
t97.id AS id_98,
t97.created_at AS created_at_99,
t97.updated_at AS updated_at_100,
t97.is_done AS is_done_101,
t97.comment AS comment_102,
t97.npai AS npai_103,
t97.price_without_tax AS price_without_tax_104,
t97.tracking_number AS tracking_number_105,
t97.price AS price_106,
t97.days_keep AS days_keep_107,
t97.organization_id AS organization_id_108,
t97.invoice_id AS invoice_id_109,
t0.invoice_parent_id AS invoice_parent_id_110,
t111.id AS id_112,
t111.created_at AS created_at_113,
t111.updated_at AS updated_at_114,
t111.confirmation_number AS confirmation_number_115,
t111.status AS status_116,
t111.period_start AS period_start_117,
t111.period_end AS period_end_118,
t111.period_length AS period_length_119,
t111.vatrate AS vatrate_120,
t111.price_without_tax AS price_without_tax_121,
t111.object AS object_122,
t111.path AS path_123,
t111.price AS price_124,
t111.payment_recurrence AS payment_recurrence_125,
t111.new_organization_legal_name AS new_organization_legal_name_126,
t111.new_organization_vatid AS new_organization_vatid_127,
t111.is_new_organization AS is_new_organization_128,
t111.is_prescriber AS is_prescriber_129,
t111.total_paid AS total_paid_130,
t111.new_organization_user_email AS new_organization_user_email_131,
t111.is_sent AS is_sent_132,
t111.sent_date AS sent_date_133,
t111.sent_to AS sent_to_134,
t111.number AS number_135,
t111.total_refund AS total_refund_136,
t111.is_canceled AS is_canceled_137,
t111.discount_without_tax AS discount_without_tax_138,
t111.discount_without_tax_percent AS discount_without_tax_percent_139,
t111.is_imported AS is_imported_140,
t111.is_domiciliation AS is_domiciliation_141,
t111.payment_url AS payment_url_142,
t111.reference AS reference_143,
t111.remaining_to_pay AS remaining_to_pay_144,
t111.total_refunded_payment AS total_refunded_payment_145,
t111.marge AS marge_146,
t111.is_new_organization_prescribed AS is_new_organization_prescribed_147,
t111.is_not_in_prescriber AS is_not_in_prescriber_148,
t111.new_prescriber_legal_name AS new_prescriber_legal_name_149,
t111.new_prescriber_vatid AS new_prescriber_vatid_150,
t111.new_prescriber_user_email AS new_prescriber_user_email_151,
t111.is_attached_to_prescriber AS is_attached_to_prescriber_152,
t111.invoice_type AS invoice_type_153,
t111.reference_stripe AS reference_stripe_154,
t111.new_organization_phone_number AS new_organization_phone_number_155,
t111.payment_deadline AS payment_deadline_156,
t111.is_template AS is_template_157,
t111.unique_key AS unique_key_158,
t111.is_paid_by_stripe AS is_paid_by_stripe_159,
t111.is_pack_invoice AS is_pack_invoice_160,
t111.sync_billing_report AS sync_billing_report_161,
t111.external_id AS external_id_162,
t111.organization_id AS organization_id_163,
t111.user_id AS user_id_164,
t111.new_organization_address_id AS new_organization_address_id_165,
t111.prescriber_id AS prescriber_id_166,
t111.new_prescriber_address_id AS new_prescriber_address_id_167,
t111.invoice_parent_id AS invoice_parent_id_168,
t111.discount_code_id AS discount_code_id_169,
t0.discount_code_id AS discount_code_id_170
FROM
invoice t0
LEFT JOIN quote t55 ON t55.invoice_id = t0.id
LEFT JOIN letter_forward t97 ON t97.invoice_id = t0.id
LEFT JOIN invoice t111 ON t111.invoice_parent_id = t0.id
WHERE
t0.discount_code_id = ?
SELECT t0.id AS id_1, t0.created_at AS created_at_2, t0.updated_at AS updated_at_3, t0.confirmation_number AS confirmation_number_4, t0.status AS status_5, t0.period_start AS period_start_6, t0.period_end AS period_end_7, t0.period_length AS period_length_8, t0.vatrate AS vatrate_9, t0.price_without_tax AS price_without_tax_10, t0.object AS object_11, t0.path AS path_12, t0.price AS price_13, t0.payment_recurrence AS payment_recurrence_14, t0.new_organization_legal_name AS new_organization_legal_name_15, t0.new_organization_vatid AS new_organization_vatid_16, t0.is_new_organization AS is_new_organization_17, t0.is_prescriber AS is_prescriber_18, t0.total_paid AS total_paid_19, t0.new_organization_user_email AS new_organization_user_email_20, t0.is_sent AS is_sent_21, t0.sent_date AS sent_date_22, t0.sent_to AS sent_to_23, t0.number AS number_24, t0.total_refund AS total_refund_25, t0.is_canceled AS is_canceled_26, t0.discount_without_tax AS discount_without_tax_27, t0.discount_without_tax_percent AS discount_without_tax_percent_28, t0.is_imported AS is_imported_29, t0.is_domiciliation AS is_domiciliation_30, t0.payment_url AS payment_url_31, t0.reference AS reference_32, t0.remaining_to_pay AS remaining_to_pay_33, t0.total_refunded_payment AS total_refunded_payment_34, t0.marge AS marge_35, t0.is_new_organization_prescribed AS is_new_organization_prescribed_36, t0.is_not_in_prescriber AS is_not_in_prescriber_37, t0.new_prescriber_legal_name AS new_prescriber_legal_name_38, t0.new_prescriber_vatid AS new_prescriber_vatid_39, t0.new_prescriber_user_email AS new_prescriber_user_email_40, t0.is_attached_to_prescriber AS is_attached_to_prescriber_41, t0.invoice_type AS invoice_type_42, t0.reference_stripe AS reference_stripe_43, t0.new_organization_phone_number AS new_organization_phone_number_44, t0.payment_deadline AS payment_deadline_45, t0.is_template AS is_template_46, t0.unique_key AS unique_key_47, t0.is_paid_by_stripe AS is_paid_by_stripe_48, t0.is_pack_invoice AS is_pack_invoice_49, t0.sync_billing_report AS sync_billing_report_50, t0.external_id AS external_id_51, t0.organization_id AS organization_id_52, t0.user_id AS user_id_53, t0.new_organization_address_id AS new_organization_address_id_54, t55.id AS id_56, t55.created_at AS created_at_57, t55.updated_at AS updated_at_58, t55.status AS status_59, t55.vatrate AS vatrate_60, t55.price_without_tax AS price_without_tax_61, t55.object AS object_62, t55.path AS path_63, t55.price AS price_64, t55.new_organization_legal_name AS new_organization_legal_name_65, t55.new_organization_vatid AS new_organization_vatid_66, t55.is_new_organization AS is_new_organization_67, t55.is_prescriber AS is_prescriber_68, t55.new_organization_user_email AS new_organization_user_email_69, t55.is_sent AS is_sent_70, t55.sent_date AS sent_date_71, t55.sent_to AS sent_to_72, t55.number AS number_73, t55.is_canceled AS is_canceled_74, t55.discount_without_tax AS discount_without_tax_75, t55.discount_without_tax_percent AS discount_without_tax_percent_76, t55.invoice_is_generated AS invoice_is_generated_77, t55.payment_url AS payment_url_78, t55.is_generate AS is_generate_79, t55.marge AS marge_80, t55.new_organization_phone_number AS new_organization_phone_number_81, t55.is_new_organization_prescribed AS is_new_organization_prescribed_82, t55.is_not_in_prescriber AS is_not_in_prescriber_83, t55.new_prescriber_legal_name AS new_prescriber_legal_name_84, t55.new_prescriber_vatid AS new_prescriber_vatid_85, t55.new_prescriber_user_email AS new_prescriber_user_email_86, t55.is_attached_to_prescriber AS is_attached_to_prescriber_87, t55.is_paid_by_stripe AS is_paid_by_stripe_88, t55.organization_id AS organization_id_89, t55.new_organization_address_id AS new_organization_address_id_90, t55.invoice_id AS invoice_id_91, t55.prescriber_id AS prescriber_id_92, t55.new_prescriber_address_id AS new_prescriber_address_id_93, t55.discount_code_id AS discount_code_id_94, t0.prescriber_id AS prescriber_id_95, t0.new_prescriber_address_id AS new_prescriber_address_id_96, t97.id AS id_98, t97.created_at AS created_at_99, t97.updated_at AS updated_at_100, t97.is_done AS is_done_101, t97.comment AS comment_102, t97.npai AS npai_103, t97.price_without_tax AS price_without_tax_104, t97.tracking_number AS tracking_number_105, t97.price AS price_106, t97.days_keep AS days_keep_107, t97.organization_id AS organization_id_108, t97.invoice_id AS invoice_id_109, t0.invoice_parent_id AS invoice_parent_id_110, t111.id AS id_112, t111.created_at AS created_at_113, t111.updated_at AS updated_at_114, t111.confirmation_number AS confirmation_number_115, t111.status AS status_116, t111.period_start AS period_start_117, t111.period_end AS period_end_118, t111.period_length AS period_length_119, t111.vatrate AS vatrate_120, t111.price_without_tax AS price_without_tax_121, t111.object AS object_122, t111.path AS path_123, t111.price AS price_124, t111.payment_recurrence AS payment_recurrence_125, t111.new_organization_legal_name AS new_organization_legal_name_126, t111.new_organization_vatid AS new_organization_vatid_127, t111.is_new_organization AS is_new_organization_128, t111.is_prescriber AS is_prescriber_129, t111.total_paid AS total_paid_130, t111.new_organization_user_email AS new_organization_user_email_131, t111.is_sent AS is_sent_132, t111.sent_date AS sent_date_133, t111.sent_to AS sent_to_134, t111.number AS number_135, t111.total_refund AS total_refund_136, t111.is_canceled AS is_canceled_137, t111.discount_without_tax AS discount_without_tax_138, t111.discount_without_tax_percent AS discount_without_tax_percent_139, t111.is_imported AS is_imported_140, t111.is_domiciliation AS is_domiciliation_141, t111.payment_url AS payment_url_142, t111.reference AS reference_143, t111.remaining_to_pay AS remaining_to_pay_144, t111.total_refunded_payment AS total_refunded_payment_145, t111.marge AS marge_146, t111.is_new_organization_prescribed AS is_new_organization_prescribed_147, t111.is_not_in_prescriber AS is_not_in_prescriber_148, t111.new_prescriber_legal_name AS new_prescriber_legal_name_149, t111.new_prescriber_vatid AS new_prescriber_vatid_150, t111.new_prescriber_user_email AS new_prescriber_user_email_151, t111.is_attached_to_prescriber AS is_attached_to_prescriber_152, t111.invoice_type AS invoice_type_153, t111.reference_stripe AS reference_stripe_154, t111.new_organization_phone_number AS new_organization_phone_number_155, t111.payment_deadline AS payment_deadline_156, t111.is_template AS is_template_157, t111.unique_key AS unique_key_158, t111.is_paid_by_stripe AS is_paid_by_stripe_159, t111.is_pack_invoice AS is_pack_invoice_160, t111.sync_billing_report AS sync_billing_report_161, t111.external_id AS external_id_162, t111.organization_id AS organization_id_163, t111.user_id AS user_id_164, t111.new_organization_address_id AS new_organization_address_id_165, t111.prescriber_id AS prescriber_id_166, t111.new_prescriber_address_id AS new_prescriber_address_id_167, t111.invoice_parent_id AS invoice_parent_id_168, t111.discount_code_id AS discount_code_id_169, t0.discount_code_id AS discount_code_id_170 FROM invoice t0 LEFT JOIN quote t55 ON t55.invoice_id = t0.id LEFT JOIN letter_forward t97 ON t97.invoice_id = t0.id LEFT JOIN invoice t111 ON t111.invoice_parent_id = t0.id WHERE t0.discount_code_id = 18;
|
88 |
1.05 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.alternate_name AS alternate_name_3, t0.price_without_tax AS price_without_tax_4, t0.description AS description_5, t0.active AS active_6, t0.meta_description AS meta_description_7, t0.meta_title AS meta_title_8, t0.url AS url_9, t0.created_at AS created_at_10, t0.subscription_type AS subscription_type_11, t0.unique_key AS unique_key_12, t0.is_displayed AS is_displayed_13, t0.is_archived AS is_archived_14, t0.is_subscription_component AS is_subscription_component_15, t0.category_id AS category_id_16, t0.category_for_billing_report_id AS category_for_billing_report_id_17 FROM product t0 INNER JOIN discount_code_product ON t0.id = discount_code_product.product_id WHERE discount_code_product.discount_code_id = ?
SELECT t0.id AS id_1, t0.name AS name_2, t0.alternate_name AS alternate_name_3, t0.price_without_tax AS price_without_tax_4, t0.description AS description_5, t0.active AS active_6, t0.meta_description AS meta_description_7, t0.meta_title AS meta_title_8, t0.url AS url_9, t0.created_at AS created_at_10, t0.subscription_type AS subscription_type_11, t0.unique_key AS unique_key_12, t0.is_displayed AS is_displayed_13, t0.is_archived AS is_archived_14, t0.is_subscription_component AS is_subscription_component_15, t0.category_id AS category_id_16, t0.category_for_billing_report_id AS category_for_billing_report_id_17 FROM product t0 INNER JOIN discount_code_product ON t0.id = discount_code_product.product_id WHERE discount_code_product.discount_code_id = 18;
|
89 |
1.05 ms |
SELECT COUNT(d0_.id) AS sclr_0 FROM discount_code d0_ WHERE d0_.is_active = ?
SELECT COUNT(d0_.id) AS sclr_0 FROM discount_code d0_ WHERE d0_.is_active = 1;
|