Hi,
i have five customer for different-2 code after many transaction for each customer now i want to consolidate into one customer out of them. what can be best solution.
is because the second line, CustA.DELETE, does not pass TRUE as a parameter. So only THAT record is deleted, nothing with a table relation and nothing in the OnDelete trigger is processed. So when you rename the other customer to the deleted one, the other records are still there and they "merge" together.
Comments
http://mibuso.com/forum/viewtopic.php?f ... t=Customer
This technique allows you to merge customers vendors gl accounts.
You can use it to combine douplicate customers contacts or combine old customers that you no longer use.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
CustA.get(A);
CustA.Delete;
CustB.get(B);
CustB.rename(A);
is because the second line, CustA.DELETE, does not pass TRUE as a parameter. So only THAT record is deleted, nothing with a table relation and nothing in the OnDelete trigger is processed. So when you rename the other customer to the deleted one, the other records are still there and they "merge" together.
My Blog - nav.education