web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Product receipt - Cancel button was disabled

(0) ShareShare
ReportReport
Posted on by

Hi All,

I have an incorrect product receipt and want to cancel this, but I don't know why the "Cancel" button was disabled therefore I couldn't do.

I have administrator access rights here.

This one hasn't been canceled yet and there is not any pending invoice related to this Product receipt.

1067.0.PNG

This issue is occurred on this PO only

Please let me know why this button is disabled on this PO? and how to enable the "cancel" button for this? 

Thanks

*This post is locked for comments

I have the same question (0)
  • Mahmoud Hakim Profile Picture
    17,887 on at

    Is there any customization on this form?

  • Community Member Profile Picture
    on at

    Hi Hakim,

    No, there is not any customization.

    Thanks

  • Verified answer
    Chaitanya Golla Profile Picture
    17,225 on at

    Hi,

    Cancel button is enabled on the ProductReceipt journal form based on the criteria defined in method canPackingSlipBeCanceledOrCorrected on table VendPackingSlipJour. You can check the criteria that are getting failed to enable cancel button for your purchase order by placing a breakpoint in this method.

    This code refers to the following condition(s):

    A purchase order can be canceled if it's not IntercompanyDirectDelivery order and its any one of the packing slip lines is not canceled and is any one of the packing slip lines is not fully invoiced and is any one of the packing slip lines has not been invoice matched (or) if there is work created for the associated purchase order.

    Refer methods:

    \Data Dictionary\Tables\VendPackingSlipJour\Methods\isCanceled

    \Data Dictionary\Tables\VendPackingSlipJour\Methods\isFullyInvoiced

    \Data Dictionary\Tables\VendPackingSlipJour\Methods\isInvoiceMatched

    \Data Dictionary\Tables\VendPackingSlipJour\Methods\whsPackingSlipHasWork

    Hope this information helps you.

    Thanks,

    Chaitanya Golla

  • Community Member Profile Picture
    on at

    Thanks, Golla.

    I will do check as your suggestion.

  • Weaveriski Profile Picture
    23,620 Moderator on at

    Are you using Advanced Warehousing (WHS)?

  • Suggested answer
    Khaled Alloud Profile Picture
    3,658 on at

    Hello,

    If there is an invoice created then the Cancel button is disabled.

    You would need to reverse the invoice first which i doubt will work because it is linked to a PO.

    You need to create another PO with negative qty

    Thank you,

  • Community Member Profile Picture
    on at

    Yes, we are using WHS.

    I did check as suggestion from Chaitanya Golla and found that the received quantity already released to Production order.

    \Data Dictionary\Tables\VendPackingSlipJour\Methods\whsPackingSlipHasWork

  • Weaveriski Profile Picture
    23,620 Moderator on at

    Yes the fact work is created for the stock means you can no longer cancel the receipt, the products received are in use. You would need to cancel the work to reactivate the cancel button. 

  • Suggested answer
    Chaitanya Golla Profile Picture
    17,225 on at

    Hi,

    As per code, either you need to cancel or close the work created for the associated purchase order(as suggested by Steven).

    Thanks,

    Chaitanya Golla

  • Community Member Profile Picture
    on at

    I am using Advanced Warehouse. I have completed the work and the work is in closed status. I have even done the Packing slip. But the cancel button in the packing slip is still disabled. Can anyone suggest some solution.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans