Im Magento-Backend (1.4) gibt es keine Möglichkeit, einmal erstellte Rechnungen wieder zu löschen. Um eine einzelne Rechnung zu eliminieren, ist dieser MySQL-Query hilfreich:
delete from `sales_order_entity_datetime` where `entity_id`='$entityId' and `entity_type_id` IN (17,18,19); delete from `sales_order_entity_decimal` where `entity_id`='$entityId' and `entity_type_id` IN (17,18,19); delete from `sales_order_entity_int` where `entity_id`='$entityId' and `entity_type_id` IN (17,18,19); delete from `sales_order_entity_text` where `entity_id`='$entityId' and `entity_type_id` IN (17,18,19); delete from `sales_order_entity_varchar` where `entity_id`='$entityId' and `entity_type_id` IN (17,18,19); delete from `sales_order_entity` where `parent_id`='$entityId' and `entity_type_id`='20'; delete from `sales_order_entity` where `entity_id`='$entityId' and `entity_type_id`='18';
Dahinter verbirgt sich folgende Logik:
"sales_order_entity_*": delete from `$table` where `entity_id`='$entityId' and `entity_type_id` IN (17,18,19); "sales_order_entity": delete from `$table` where `parent_id`='$entityId' and `entity_type_id`='20'; delete from `$table` where `entity_id`='$entityId' and `entity_type_id`='18';
Popularity: 18% [?]


Write a Comment