a:4:{s:4:"hash";s:0:"";s:5:"mtime";i:1763060675;s:6:"expire";i:9999999999;s:4:"tags";s:19:"efd_CONFIG,efd_MAGE";}
{"config":{"table":[{"pk":[{"@attributes":{"name":"entity_id","label":"Order"}}],"fk":[{"@attributes":{"name":"customer_id","label":"Customer","table":"customer_entity"}},{"@attributes":{"name":"billing_address_id","table":"sales_order_address"}},{"@attributes":{"name":"shipping_address_id","table":"sales_order_address"}},{"@attributes":{"name":"quote_id","table":"quote"}}],"column":[{"@attributes":{"name":"status","label":"Status","type":"select","options":"Mirasvit\\Report\\Config\\Source\\Sales\\OrderStatus"}},{"@attributes":{"name":"customer_group_id","label":"Customer Group","type":"select","options":"Mirasvit\\Report\\Config\\Source\\Customer\\Group"}},{"@attributes":{"name":"shipping_method","label":"Shipping Method","type":"select","options":"Mirasvit\\Report\\Config\\Source\\Sales\\ShippingMethod"}},{"@attributes":{"name":"created_at","label":"Purchased On","type":"date"}},{"@attributes":{"name":"store_id","label":"Store","type":"store"}},{"@attributes":{"name":"increment_id","label":"Order #","uniq":"1"}},{"@attributes":{"name":"customer_firstname","label":"First Name"}},{"@attributes":{"name":"customer_lastname","label":"Last Name"}},{"@attributes":{"name":"customer_email","label":"Email"}},{"@attributes":{"name":"customer_name","label":"Customer name","fields":"customer_firstname,customer_lastname","expr":"CONCAT_WS(' ', %1, %2)"}},{"@attributes":{"name":"customer_taxvat","label":"Tax \/ Vat"}},{"@attributes":{"name":"coupon_code","label":"Coupon Code"}},{"@attributes":{"name":"customer_note","label":"Customer Note"}},{"@attributes":{"name":"total_qty_ordered","label":"Qty Ordered","type":"number"}},{"@attributes":{"name":"discount_amount","label":"Discount","fields":"base_discount_amount,base_to_global_rate","type":"money","expr":"%1 * IF(%2 > 0, %2, 1)"}},{"@attributes":{"name":"shipping_amount","label":"Shipping","fields":"base_shipping_amount,base_to_global_rate","type":"money","expr":"%1 * IF(%2 > 0, %2, 1)"}},{"@attributes":{"name":"tax_amount","label":"Tax","fields":"base_tax_amount,base_to_global_rate","type":"money","expr":"%1 * IF(%2 > 0, %2, 1)"}},{"@attributes":{"name":"shipping_tax_amount","label":"Shipping Tax","fields":"base_shipping_tax_amount,base_to_global_rate","expr":"%1 * IF(%2 > 0, %2, 1)","type":"money"}},{"@attributes":{"name":"tax_refunded","label":"Tax Refunded","fields":"base_tax_refunded,base_to_global_rate","expr":"%1 * IF(%2 > 0, %2, 1)","type":"money"}},{"@attributes":{"name":"total_invoiced","label":"Invoiced","fields":"base_total_invoiced,base_to_global_rate","expr":"%1 * IF(%2 > 0, %2, 1)","type":"money"}},{"@attributes":{"name":"total_refunded","label":"Refunded","fields":"base_total_refunded,base_to_global_rate","type":"money","expr":"%1 * IF(%2 > 0, %2, 1)"}},{"@attributes":{"name":"total_invoiced_cost","label":"Invoiced Cost","fields":"base_total_invoiced_cost,base_to_global_rate","expr":"%1 * IF(%2 > 0, %2, 1)","type":"money"}},{"@attributes":{"name":"subtotal","label":"Subtotal","fields":"base_subtotal,base_to_global_rate","type":"money","expr":"%1 * IF(%2 > 0, %2, 1)"}},{"@attributes":{"name":"grand_total","label":"Grand Total","fields":"base_grand_total,base_to_global_rate","type":"money","expr":"%1 * IF(%2 > 0, %2, 1)"}},{"@attributes":{"name":"coupon_rule_name","label":"Cart Price Rule"}},{"@attributes":{"name":"by_new_customer","label":"Quantity by new customers","fields":"created_at,customer_entity.created_at","type":"number","expr":"IF(DATE_FORMAT(%1, '%Y-%m-%d') = DATE_FORMAT(customer_entity.created_at, '%Y-%m-%d') OR customer_entity.created_at IS NULL, 1, 0)","tables":"customer_entity"}},{"@attributes":{"name":"by_returning_customer","label":"Quantity by returning customers","fields":"created_at","type":"number","expr":"IF(DATE_FORMAT(%1, '%Y-%m-%d') = DATE_FORMAT(customer_entity.created_at, '%Y-%m-%d') OR customer_entity.created_at IS NULL, 0, 1)","tables":"customer_entity"}},{"@attributes":{"name":"grand_total_by_new_customer","label":"Grand Total by new customers","fields":"created_at,base_grand_total","type":"money","expr":"IF(DATE_FORMAT(%1, '%Y-%m-%d') = DATE_FORMAT(customer_entity.created_at, '%Y-%m-%d') OR customer_entity.created_at IS NULL, %2, 0)","tables":"customer_entity"}},{"@attributes":{"name":"grand_total_by_returning_customer","label":"Grand Total by returning customers","fields":"created_at,base_grand_total","type":"money","expr":"IF(DATE_FORMAT(%1, '%Y-%m-%d') = DATE_FORMAT(customer_entity.created_at, '%Y-%m-%d') OR customer_entity.created_at IS NULL, 0, %2)","tables":"customer_entity"}},{"@attributes":{"name":"grand_total_excl_tax","label":"Grand Total excl. Tax","fields":"base_grand_total,base_tax_amount,base_to_global_rate","type":"money","expr":"(%1 - IFNULL(%2, 0)) * %3"}},{"@attributes":{"name":"gross_profit","label":"Gross Profit","fields":"base_subtotal_invoiced,base_total_invoiced_cost,base_to_global_rate","type":"money","expr":"(%1 - IFNULL(%2, 0)) * %3"}},{"@attributes":{"name":"gross_margin","label":"Gross Margin","fields":"base_subtotal_invoiced,base_total_invoiced_cost","type":"percent","expr":"(%1 - IFNULL(%2, 0)) \/ %1 * 100"}},{"@attributes":{"name":"products","fields":"entity_id","label":"Products","type":"Mirasvit\\Reports\\Config\\Type\\OrderProducts"}}],"@attributes":{"name":"sales_order","label":"Orders","group":"Sales","connection":"sales"}},{"pk":[{"@attributes":{"name":"item_id"}}],"fk":[{"@attributes":{"name":"order_id","table":"sales_order"}},{"@attributes":{"name":"quote_item_id","table":"quote_item","uniq":"1"}},{"@attributes":{"name":"product_id","table":"catalog_product_entity","label":"Product ID"}}],"column":[{"@attributes":{"name":"created_at","label":"Purchased On","type":"date"}},{"@attributes":{"name":"store_id","label":"Store","type":"store"}},{"@attributes":{"name":"qty_backordered","label":"Qty Backordered","type":"number"}},{"@attributes":{"name":"qty_canceled","label":"Qty Canceled","type":"number"}},{"@attributes":{"name":"qty_invoiced","label":"Qty Invoiced","type":"number"}},{"@attributes":{"name":"qty_ordered","label":"Qty Ordered","type":"number"}},{"@attributes":{"name":"qty_refunded","label":"Qty Refunded","type":"number"}},{"@attributes":{"name":"qty_shipped","label":"Qty Shipped","type":"number"}},{"@attributes":{"name":"cost","label":"Cost","fields":"base_cost,qty_ordered","type":"money","expr":"(%1 * %2) * IF(sales_order.base_to_global_rate > 0, sales_order.base_to_global_rate, 1)","tables":"sales_order"}},{"@attributes":{"name":"price","label":"Price","fields":"base_price","type":"money","expr":"%1 * IF(sales_order.base_to_global_rate > 0, sales_order.base_to_global_rate, 1)","tables":"sales_order"}},{"@attributes":{"name":"tax_amount","label":"Tax","fields":"base_tax_amount","type":"money","expr":"%1 * IF(sales_order.base_to_global_rate > 0, sales_order.base_to_global_rate, 1)","tables":"sales_order"}},{"@attributes":{"name":"tax_invoiced","label":"Tax Invoiced","fields":"base_tax_invoiced","type":"money","expr":"%1 * IF(sales_order.base_to_global_rate > 0, sales_order.base_to_global_rate, 1)","tables":"sales_order"}},{"@attributes":{"name":"discount_amount","label":"Discount","fields":"base_discount_amount","type":"money","expr":"%1 * IF(sales_order.base_to_global_rate > 0, sales_order.base_to_global_rate, 1)","tables":"sales_order"}},{"@attributes":{"name":"amount_refunded","label":"Refunded","fields":"base_amount_refunded","type":"money","expr":"%1 * IF(sales_order.base_to_global_rate > 0, sales_order.base_to_global_rate, 1)","tables":"sales_order"}},{"@attributes":{"name":"row_total","label":"Total","fields":"base_row_total","type":"money","expr":"%1 * IF(sales_order.base_to_global_rate > 0, sales_order.base_to_global_rate, 1)","tables":"sales_order"}},{"@attributes":{"name":"row_invoiced","label":"Invoiced","fields":"base_row_invoiced","type":"money","expr":"%1 * IF(sales_order.base_to_global_rate > 0, sales_order.base_to_global_rate, 1)","tables":"sales_order"}},{"@attributes":{"name":"gross_margin","label":"Gross Margin","fields":"base_row_total,base_cost,qty_ordered","type":"percent","expr":"(%1 - IFNULL(%2, 0) * %3)\/%1 * 100"}},{"@attributes":{"name":"gross_profit","label":"Gross Profit","fields":"base_cost,qty_ordered,base_row_total","type":"money","expr":"(%3 - IFNULL(%1, 0) * %2) * sales_order.base_to_global_rate","tables":"sales_order"}}],"@attributes":{"name":"sales_order_item","label":"Order Items","group":"Sales","connection":"sales"}},{"pk":[{"@attributes":{"name":"entity_id"}}],"fk":[{"@attributes":{"name":"parent_id","table":"sales_order","uniq":"1"}}],"column":[{"@attributes":{"name":"method","label":"Payment Method","type":"select","options":"Mirasvit\\Report\\Config\\Source\\Sales\\PaymentMethod"}}],"@attributes":{"name":"sales_order_payment","label":"Order Payments","group":"Sales","connection":"sales"}},{"pk":[{"@attributes":{"name":"transaction_id","label":"Transaction ID"}}],"fk":[{"@attributes":{"name":"order_id","table":"sales_order","uniq":"1"}}],"column":[{"@attributes":{"name":"txn_type","label":"TXN Type"}},{"@attributes":{"name":"is_closed","label":"Is Closed"}},{"@attributes":{"name":"additional_information","label":"Additional Information"}},{"@attributes":{"name":"created_at","label":"Created At","type":"date"}}],"@attributes":{"name":"sales_payment_transaction","label":"Payment Transactions","group":"Sales","connection":"sales"}},{"pk":[{"@attributes":{"name":"tax_id","label":"Tax ID"}}],"fk":[{"@attributes":{"name":"order_id","table":"sales_order","uniq":"1"}}],"column":[{"@attributes":{"name":"code","label":"Tax Code"}},{"@attributes":{"name":"title","label":"Tax Title"}},{"@attributes":{"name":"percent","label":"Tax Percent","type":"percent"}},{"@attributes":{"name":"base_amount","label":"Tax Amount","type":"money"}}],"@attributes":{"name":"sales_order_tax","label":"Order Taxes","group":"Sales","connection":"sales"}},{"pk":[{"@attributes":{"name":"entity_id"}}],"fk":[{"@attributes":{"name":"parent_id","table":"sales_order"}}],"column":[{"@attributes":{"name":"region_id","label":"Region ID"}},{"@attributes":{"name":"fax","label":"Fax"}},{"@attributes":{"name":"region","label":"Region"}},{"@attributes":{"name":"postcode","label":"Postcode"}},{"@attributes":{"name":"street","label":"Street"}},{"@attributes":{"name":"city","label":"City"}},{"@attributes":{"name":"telephone","label":"Telephone"}},{"@attributes":{"name":"country","label":"Country","fields":"country_id","type":"country","options":"Mirasvit\\Report\\Config\\Source\\Directory\\Country"}},{"@attributes":{"name":"company","label":"Company"}},{"@attributes":{"name":"created_at","label":"Created At","type":"date","tables":"sales_order","fields":"sales_order.created_at"}}],"@attributes":{"name":"sales_order_address","label":"Order Addresses","group":"Sales","connection":"sales"}},{"pk":[{"@attributes":{"name":"entity_id","label":"Cart"}}],"fk":[{"@attributes":{"name":"customer_id","table":"customer_entity"}}],"column":[{"@attributes":{"name":"store_id","label":"Store","type":"store"}},{"@attributes":{"name":"created_at","label":"Created At","type":"date"}},{"@attributes":{"name":"updated_at","label":"Updated At","type":"date"}},{"@attributes":{"name":"customer_group_id","label":"Customer Group","type":"select","options":"Mirasvit\\Report\\Config\\Source\\Customer\\Group"}},{"@attributes":{"name":"is_active","label":"Is Active"}},{"@attributes":{"name":"items_qty","label":"Items Qty","type":"number"}},{"@attributes":{"name":"grand_total","label":"Grand Total","fields":"base_grand_total,base_to_global_rate","type":"money","expr":"%1 * IF(%2 > 0, %2, 1)"}},{"@attributes":{"name":"subtotal","label":"Subtotal","fields":"base_subtotal,base_to_global_rate","type":"money","expr":"%1 * IF(%2 > 0, %2, 1)"}},{"@attributes":{"name":"customer_email","label":"Email"}},{"@attributes":{"name":"customer_name","label":"Customer name","fields":"customer_firstname,customer_lastname","expr":"CONCAT_WS(' ', %1, %2)"}},{"@attributes":{"name":"remote_ip","label":"Remote IP","type":"html"}},{"@attributes":{"name":"applied_rule_ids","label":"Applied Rule","type":"select","options":"Mirasvit\\Report\\Config\\Source\\Sales\\SalesRule"}},{"@attributes":{"name":"coupon_code","label":"Coupon Code"}},{"@attributes":{"name":"products","fields":"entity_id","label":"Products","type":"Mirasvit\\Reports\\Config\\Type\\QuoteProducts"}}],"@attributes":{"name":"quote","label":"Quotes","group":"Sales","connection":"checkout"}},{"pk":[{"@attributes":{"name":"item_id"}}],"fk":[{"@attributes":{"name":"quote_id","table":"quote"}},{"@attributes":{"name":"product_id","table":"catalog_product_entity"}}],"column":[{"@attributes":{"name":"qty","label":"Qty","type":"number"}},{"@attributes":{"name":"cost","label":"Total Cost","fields":"base_cost,qty","type":"money","expr":"(%1 * %2) * IF(quote.base_to_global_rate > 0, quote.base_to_global_rate, 1)","tables":"quote"}},{"@attributes":{"name":"price","label":"Price","fields":"base_price","type":"money","expr":"%1 * IF(quote.base_to_global_rate > 0, quote.base_to_global_rate, 1)","tables":"quote"}},{"@attributes":{"name":"row_total","label":"Total","fields":"base_row_total","type":"money","expr":"%1 * IF(quote.base_to_global_rate > 0, quote.base_to_global_rate, 1)","tables":"quote"}},{"@attributes":{"name":"tax_amount","label":"Tax Amount","fields":"base_tax_amount","type":"money","expr":"%1 * IF(quote.base_to_global_rate > 0, quote.base_to_global_rate, 1)","tables":"quote"}},{"@attributes":{"name":"discount_amount","label":"Discount Amount","fields":"base_discount_amount","type":"money","expr":"%1 * IF(quote.base_to_global_rate > 0, quote.base_to_global_rate, 1)","tables":"quote"}}],"@attributes":{"name":"quote_item","label":"Quote Items","group":"Sales","connection":"checkout"}},{"pk":[{"@attributes":{"name":"item_id"}}],"fk":[{"@attributes":{"name":"product_id","table":"catalog_product_entity","uniq":"1"}}],"column":[{"@attributes":{"name":"qty","label":"Stock Qty","type":"number"}},{"@attributes":{"name":"notify_stock_qty","label":"Notify Stock Qty","type":"number"}}],"@attributes":{"name":"cataloginventory_stock_item","group":"Products","label":"Stock Items"}},{"pk":[{"@attributes":{"name":"entity_id"}}],"fk":[{"@attributes":{"name":"order_id","table":"sales_order","uniq":"1"}},{"@attributes":{"name":"billing_address_id","table":"sales_order_address"}}],"column":[{"@attributes":{"name":"increment_id","label":"Invoice #"}}],"@attributes":{"name":"sales_invoice","group":"Sales","connection":"sales","label":"Invoices"}},{"fk":[{"@attributes":{"name":"category_id","table":"catalog_category_entity"}},{"@attributes":{"name":"product_id","table":"catalog_product_entity"}}],"@attributes":{"name":"catalog_category_product"}},{"pk":[{"@attributes":{"name":"postcode_id"}}],"column":[{"@attributes":{"name":"country","label":"Country","fields":"country_id","type":"country","options":"Mirasvit\\Report\\Config\\Source\\Directory\\Country","tables":"sales_order_address","expr":"IFNULL(mst_reports_postcode.country_id, sales_order_address.country_id)"}},{"@attributes":{"name":"postcode","label":"Postcode","tables":"sales_order_address","expr":"IFNULL(mst_reports_postcode.postcode, sales_order_address.postcode)"}},{"@attributes":{"name":"state","label":"State","tables":"sales_order_address","expr":"IFNULL(mst_reports_postcode.state, sales_order_address.region)"}},{"@attributes":{"name":"place","label":"Place","tables":"sales_order_address","expr":"IFNULL(mst_reports_postcode.place, sales_order_address.city)"}},{"@attributes":{"name":"province","label":"Province"}},{"@attributes":{"name":"community","label":"Community"}},{"@attributes":{"name":"lat","label":"Lat"}},{"@attributes":{"name":"lng","label":"Lng"}}],"@attributes":{"name":"mst_reports_postcode","label":"Postcodes"}}],"eavTable":[{"pk":[{"@attributes":{"name":"entity_id","label":"Customer ID"}}],"fk":[{"@attributes":{"name":"default_billing","table":"customer_address_entity"}}],"column":[{"@attributes":{"name":"email","label":"Email","uniq":"1"}},{"@attributes":{"name":"group_id","label":"Group","type":"select","options":"Mirasvit\\Report\\Config\\Source\\Customer\\Group"}}],"@attributes":{"name":"customer_entity","label":"Customers","group":"Customers","type":"customer"}},{"pk":[{"@attributes":{"name":"entity_id"}}],"@attributes":{"name":"customer_address_entity","label":"Customer Addresses","group":"Customers","type":"customer_address"}},{"pk":[{"@attributes":{"name":"entity_id","label":"Product ID"}}],"column":[{"@attributes":{"name":"sku","label":"SKU","uniq":"1"}},{"@attributes":{"name":"type_id","label":"Product Type","type":"select","options":"Mirasvit\\Report\\Config\\Source\\Catalog\\ProductType"}},{"@attributes":{"name":"attribute_set_id","label":"Attribute Set","type":"select","options":"Mirasvit\\Report\\Config\\Source\\Catalog\\AttributeSet"}},{"@attributes":{"name":"attribute","label":"Attribute","fields":"entity_id"}}],"@attributes":{"name":"catalog_product_entity","label":"Products","group":"Products","type":"catalog_product"}},{"pk":[{"@attributes":{"name":"entity_id","label":"Category ID"}}],"@attributes":{"name":"catalog_category_entity","label":"Categories","group":"Categories","type":"catalog_category"}}],"relation":[{"@arguments":{"leftTable":"quote_item","rightTable":"catalog_product_entity","condition":"%1.product_id=%2.entity_id AND %1.parent_item_id IS NULL"},"@attributes":{"name":"quote_item-catalog_product_entity","type":"1n"}},{"@arguments":{"leftTable":"sales_order_item","rightTable":"catalog_product_entity","condition":"%1.product_id=%2.entity_id"},"@attributes":{"name":"sales_order_item-catalog_product_entity","type":"1n"}},{"@arguments":{"leftTable":"sales_order_address","rightTable":"mst_reports_postcode","condition":"%1.postcode=%2.postcode AND %1.country_id=%2.country_id"},"@attributes":{"name":"sales_order_address-mst_reports_postcode","type":"1n"}}],"@attributes":{"noNamespaceSchemaLocation":"..\/..\/..\/..\/module-report-api\/src\/ReportApi\/etc\/mst_report.xsd"}}}