AXForum  
Вернуться   AXForum > Microsoft Dynamics CRM > Dynamics CRM: Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 23.11.2013, 20:53   #1  
Blog bot is offline
Blog bot
Участник
 
25,644 / 848 (80) +++++++
Регистрация: 28.10.2006
Or venders with vender ledger entries or G/L accounts with G/L Entries or Banks with bank account ledger entries or items with item ledger entries or …

You say no? Think again! YES you can … under certain circumstances.

So what I am talking about?

At a customer we found some vendor ledger entries of type invoice with a blank vendor. Doh! The posted invoices still had the vendor no. Doh Doh! But the vendor-record itself was gone. Doh Doh Doh! My colleague was close to panicking (and I can’t blame her). What has happened here?

I remembered (very weird, I know) that I once (a long, long time ago) I learned that it was possible to do these kind of things.

You can do that when the ledger entries are all closed or total amount is 0 (for G/L accounts).

The code you can find in the OnDelete-trigger of the base-tables : “MoveEntries.MoveItemEntries(Rec);” for the items. And codeunit 361:”MoveEntries” does the dirty work.

But WHY would someone do that?

I think this functionality was created because, in the old days, every megabyte of databasespace was to be paid to Navision (no, this time Microsoft is innocent! Navision wasn’t bought by Microsoft yet).

So there were a lot of routines to remove old records and some have survived thus far.

This functionality is not needed anymore to shrink the database-space in use. Even worse: it destroys referential integrity and probably (didn’t check this out) is forbidden by law in some countries.

I created a feedback on connect for it. Vote for it!



Читать дальше
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 


Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 00:55.