Skip to content

Instantly share code, notes, and snippets.

@PaulGWebster
Created May 30, 2022 21:27
Show Gist options
  • Save PaulGWebster/fd84c1cc38e826177f7c0298126ded45 to your computer and use it in GitHub Desktop.
Save PaulGWebster/fd84c1cc38e826177f7c0298126ded45 to your computer and use it in GitHub Desktop.
Data mesh difference
Wanted: $VAR1 = { [183/1817]
'description' => 1,
'cost_method' => 1,
'list_price' => 1,
'variants' => 1,
'product_manager' => 1,
'name' => 1,
'description_sale' => 1,
'volume' => 1,
'active' => 1,
'uom_po_id' => 1,
'property_account_expense' => 1,
'property_stock_inventory' => 1,
'seller_ids' => 1,
'procure_method' => 1,
'packaging' => 1,
'taxes_id' => 1,
'uos_id' => 1,
'property_stock_production' => 1,
'produce_delay' => 1,
'uom_id' => 1,
'default_code' => 1,
'description_purchase' => 1,
'mes_type' => 1,
'standard_price' => 1,
'weight' => 1,
'purchase_ok' => 1,
'supply_method' => 1,
'tracking' => 1,
'uos_coeff' => 1,
'ean13' => 1,
'state' => 1,
'categ_id' => 1,
'sale_ok' => 1,
'rental' => 1,
'property_stock_procurement' => 1,
'property_account_income' => 1,
'sale_delay' => 1,
'type' => 1
};
Original: $VAR1 = { [105/1780]
'has_configurable_attributes' => 0,
'sales_count' => 0,
'service_type' => 0,
'property_account_creditor_price_difference' => 0,
'message_attachment_count' => 0,
'project_id' => 0,
'sale_delay' => 0,
'visible_expense_policy' => 0,
'sale_line_warn_msg' => 0,
'currency_id' => 0,
'sequence' => 0,
'putaway_rule_ids' => 0,
'reordering_max_qty' => 0,
'property_stock_production' => 0,
'is_product_variant' => 0,
'activity_ids' => 0,
'property_account_income_id' => 0,
'default_code' => 0,
'description_picking' => 0,
'image_variant_1920' => 0,
'taxes_id' => 0,
'description_pickingout' => 0,
'variant_seller_ids' => 0,
'volume_uom_name' => 0,
'seller_ids' => 0,
'product_tmpl_id' => 1,
'expense_policy' => 0,
'volume' => 0,
'image_1920' => 0,
'message_has_error_counter' => 0,
'activity_exception_icon' => 0,
'description' => 0,
'invoice_policy' => 0,
'create_date' => 0,
'purchase_method' => 0,
'message_needaction' => 0,
'attribute_line_ids' => 0,
'nbr_reordering_rules' => 0,
'visible_qty_configurator' => 0,
'sale_line_warn' => 1,
'message_unread_counter' => 0,
'activity_state' => 0,
'outgoing_qty' => 0,
'project_template_id' => 0,
'display_name' => 0,
'id' => 1,
'image_512' => 0,
'sale_ok' => 0,
'valuation' => 0,
'description_purchase' => 0,
'code' => 0,
'message_is_follower' => 0,
'route_from_categ_ids' => 0,
'service_to_purchase' => 0,
'supplier_taxes_id' => 0,
'activity_exception_decoration' => 0,
'message_partner_ids' => 0,
'property_stock_inventory' => 0,
'property_account_expense_id' => 0,
'product_template_attribute_value_ids' => 0,
'asset_category_id' => 0,
'message_ids' => 0,
'image_variant_256' => 0,
'uom_po_id' => 1,
'product_variant_count' => 0,
'active' => 0,
'image_256' => 0,
'image_1024' => 0, [37/1780]
'price' => 0,
'purchased_product_qty' => 0,
'list_price' => 0,
'valid_product_template_attribute_line_ids' => 0,
'message_unread' => 0,
'barcode' => 0,
'activity_type_id' => 0,
'price_extra' => 0,
'value_svl' => 0,
'description_pickingin' => 0,
'service_tracking' => 0,
'image_128' => 0,
'company_id' => 0,
'tracking' => 1,
'combination_indices' => 0,
'can_image_variant_1024_be_zoomed' => 0,
'lst_price' => 0,
'warehouse_id' => 0,
'purchase_line_warn_msg' => 0,
'image_variant_512' => 0,
'pricelist_item_count' => 0,
'message_has_sms_error' => 0,
'standard_price' => 0,
'weight' => 0,
'uom_id' => 1,
'message_has_error' => 0,
'uom_name' => 0,
'deferred_revenue_category_id' => 0,
'message_needaction_counter' => 0,
'stock_valuation_layer_ids' => 0,
'free_qty' => 0,
'cost_currency_id' => 0,
'write_date' => 0,
'description_sale' => 0,
'weight_uom_name' => 0,
'message_follower_ids' => 0,
'cost_method' => 0,
'color' => 0,
'stock_move_ids' => 0,
'write_uid' => 0,
'type' => 1,
'quantity_svl' => 0,
'message_main_attachment_id' => 0,
'qty_available' => 0,
'activity_summary' => 0,
'location_id' => 0,
'create_uid' => 0,
'partner_ref' => 0,
'message_channel_ids' => 0,
'rental' => 0,
'packaging_ids' => 0,
'pricelist_id' => 0,
'categ_id' => 1,
'product_variant_ids' => 1,
'route_ids' => 0,
'__last_update' => 0,
'virtual_available' => 0,
'can_image_1024_be_zoomed' => 0,
'purchase_ok' => 0,
'product_id' => 1,
'purchase_line_warn' => 1,
'activity_date_deadline' => 0,
'responsible_id' => 0,
'service_policy' => 0,
'product_variant_id' => 0,
'image_variant_1024' => 0,
'website_message_ids' => 0,
'orderpoint_ids' => 0,
'incoming_qty' => 0,
'name' => 1,
'activity_user_id' => 0,
'reordering_min_qty' => 0,
'stock_quant_ids' => 0,
'image_variant_128' => 0
};
anted values not fulfilled: variants,1,product_manager,1,property_account_expense,1,procure_method,1,packaging,1,uos_id,1,produce_delay,1,mes_type,1,supply_method,1,uos
_coeff,1,ean13,1,state,1,property_stock_procurement,1,property_account_income,1
Converted to: $VAR1 = {
'active' => 0,
'volume' => 0,
'uom_po_id' => 1,
'cost_method' => 0,
'description' => 0,
'list_price' => 0,
'description_sale' => 0,
'name' => 1,
'property_stock_production' => 0,
'uom_id' => 1,
'default_code' => 0,
'description_purchase' => 0,
'purchase_ok' => 0,
'standard_price' => 0,
'weight' => 0,
'property_stock_inventory' => 0,
'seller_ids' => 0,
'taxes_id' => 0,
'sale_ok' => 0,
'rental' => 0,
'categ_id' => 1,
'tracking' => 1,
'type' => 1,
'sale_delay' => 0
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment