AL icon indicating copy to clipboard operation
AL copied to clipboard

OnBeforeCalcDateBOC in Codeunit 7600, this can helps to change the source codes,OrgDate,

Open srinivasGangadhara opened this issue 8 years ago • 4 comments

Hi Team,

if we have Publisher like below, OnBeforeCalcDateBOC(FirstCalCode,SecondCalCode,FirstSourceType,FirstSourceCode,FirstAddCode,SecondSourceType,SecondSourceCode,SecondAddCode);

Based on our requirment we can able to change the above data also we need the Var with Yes.

Also If we have OnAfterCalcDateBOC then it will also help full. :) 7600

Thanks!

Regards srinivas

srinivasGangadhara avatar Jan 17 '18 12:01 srinivasGangadhara

We don't have FirstCalCode or SecondCalCode in this codeunit. Seems you have customized codeunit, please rewrite your request for W1 codeunit.

AlexanderYakunin avatar Jan 18 '18 13:01 AlexanderYakunin

i can see in standard cronus 2018 database, that is not customized variables, Please check below screen shots. 7600-2

7600-1

srinivasGangadhara avatar Jan 19 '18 12:01 srinivasGangadhara

Well, in this case it makes no sense to pass FirstCalCode and SecondCalCode to event as they are blank at this point. Please confirm specification of event you need, from my view it should be like this:

OnBeforeCalcDateBOC(FirstSourceType,FirstSourceCode,FirstAddCode,SecondSourceType,SecondSourceCode,SecondAddCode);

OR (if you want to alter calculation of FirstCalCode and SecondCalcCode) they should be passed to event by VAR and used value from event instead for date calculation below, right?

AlexanderYakunin avatar Jan 29 '18 10:01 AlexanderYakunin

Yes, After standard calculation we want to update the our calculation. as below is correct.

OR (if you want to alter calculation of FirstCalCode and SecondCalcCode) they should be passed to event by VAR and used value from event instead for date calculation below, right?

srinivasGangadhara avatar Jan 29 '18 10:01 srinivasGangadhara