How to block G/L Account line in a purchase order when status is released

Hello,

I’d like to block purchase order lines when purchase order status is released. This works fine when using items. But in my current implementation i work with G/L Account only (we want to have a follow-up of general overheads using items would generate too much items and posting group configuration).

Does anyone knows some setup options or workaround to get this result?

Regards

Etienne

Hi,

Welcome to Dynamics User Group.

Do you have access to table design? If yes, then you need to make change in Purchase Line (Table 39) inTestStatusOpen function, which gives error only for the case of Item or Fixed Asset. Following is a part of code in that function:

IF Type IN [Type::Item,Type::“Fixed Asset”] THEN
PurchHeader.TESTFIELD(Status,PurchHeader.Status::Open);

change the first line of code to :

IF Type IN [Type::Item,Type::“Fixed Asset”, Type::“G/L Account”] THEN

Hi Dhan,

Looks OK,

Thanks