Child category now saves properly. Customer Supplier now saves on insert Invoice statecode issue solved