Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 73760

AX 2012 Purchase Order/ Sales Order allow post packing slip and invoice only after confirmation

$
0
0

I got a request to disallow posting packing slip and invoice if the concerned PO/ SO not yet post confirmation.

I tried to insert the following code in PurchTableForm.enableUpdateJournalButtons() class method

iF (!_purchTable.DocumentState == VersioningDocumentState::Confirmed && _purchTable.PurchStatus != PurchStatus::Received && _purchTable.InterCompanyOrder == noyes::No)

    {

        _buttonUpdateReceiptsList.enabled(false);

        _buttonUpdatePackingSlip.enabled(false);

        _buttonUpdateInvoice.enabled(false);

    }

 

However, the above code does not take effect...

I would like to know what is the problem of my solution, and what should be the correct solution to accomplish this goal?


Viewing all articles
Browse latest Browse all 73760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>