ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

Codeunit 7010 New Function

Open LFlamme opened this issue 8 years ago • 3 comments

Hi, we need a new function in Codeunit 7010. We need this because we need to use the local functions in CU 7010. We also need a similar function in CU 7000. image Parameters: VAR purchasePriceRL : Record "Purchase Price" itemNoL : Code[20] variantCodeL : Code[10] qtyL : Decimal uOML : Code[10] locationCodeL : Code[10] VendorNoL : Code[20] startingDateL : Date

Variables currencyExchangeRateL Record Currency Exchange Rate vendorL Record Vendor UnitofMeasureManagementl Codeunit Unit of Measure Management

thanks in advance

LFlamme avatar Nov 26 '18 14:11 LFlamme

Hi,

Can you explain what the scenario is where you need this function? As a workaround for now, can you try to create a temporary purchase header and temporary purchase line with the correct values to call FindPurchLinePrice. You should be able to retrieve the Purchase Price record from the OnAfterFindPurchLinePrice event. I would suggest you use manual binding for the subscriber so that it is only called in your scenario.

br/Gert

grobyns avatar Dec 20 '18 11:12 grobyns

Closing for now. Please re-open if you have more info.

br/Gert

grobyns avatar Jan 08 '19 12:01 grobyns

Hi, sorry for the late reply, I didn´t notice i got an answer.

We have new tables, where we want to get prices, without going through the whole process. so this solution would make it possible for us to use local functions and global variables.

LFlamme avatar Mar 13 '19 12:03 LFlamme