Wrong error message in Save Items.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Wed, 14 Mar 2018 13:37:33 +0000 (14:37 +0100)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Wed, 14 Mar 2018 13:37:33 +0000 (14:37 +0100)
inventory/includes/db/items_db.inc

index df28cfee92a85c87285bd95a29c8ddfd2963ab3f..fa3d21a282efd2ae06aa37da3bb7401bfd741204 100644 (file)
@@ -142,7 +142,7 @@ function item_in_foreign_codes($stock_id)
         _('Cannot delete this item record because there are bills of material that require this part as a component.'),
        "SELECT COUNT(*) FROM "
                .TB_PREF."sales_order_details WHERE stk_code=".db_escape($stock_id) =>
-        _('Cannot delete this item because there are existing purchase order items for it.'),
+        _('Cannot delete this item because there are existing sales order items for it.'),
        "SELECT COUNT(*) FROM "
                .TB_PREF."purch_order_details WHERE item_code=".db_escape($stock_id)=>
         _('Cannot delete this item because there are existing purchase order items for it.')