purchase order,intercompany button

how we can active intercompany button in the purchase order form?it is good to say, in spite of clicking intercompany check box in the new purchase order,the intercompany button could not appear.

Hi,

I believe this button will be enabled if the purchase order is an intercompany order.

Hello,

The enabling/disabling of Intercompany button in the Purchase Order header/line is based on the following lines of the code in the “PurchTable” form (AOT > \Forms\PurchTable):

\Forms\PurchTable\Data Sources\PurchTable\Methods\active

buttonHeaderInterCompany.enabled(purchTable.isInterCompanyOrder());

buttonLineInterCompany.enabled (purchTable.isInterCompanyOrder() && PurchLine::exist(purchTable.PurchId));

\Forms\PurchTable\Data Sources\PurchLine\Methods\active

buttonLineInterCompany.enabled(purchTable.isInterCompanyOrder());

Just check these lines of code by putting a breakpoint and you’ll get to know the reason why the Intercompany button in the Purchase Order header/line is not getting enabled.