Applies to Product - Dynamics 365 Commerce
What’s happening?
In the Show Journal, when searching for a transaction using Receipt ID in Advanced Search, the CustomerOrderModeValue is incorrectly displayed as a placeholder value instead of the expected value. This discrepancy affects the ability to print the pick-up receipt, leading to missed customer orders.
Reason:
This arises due to the design of the system where, after a specific job (p-job) has been run and data exists in the headquarters database, the system prioritizes using those values to populate the sales order. Consequently, the CustomerOrderModeValue may return a value of 0 instead of the expected value, which is impacting the functionality of the customized receipt printing.
Resolution:
- It is recommended that the customer modifies their customization to not rely on the CustomerOrderModeValue for determining if the receipt was for pickup. Instead, they should implement a check that combines verifying if the delivery mode is "pick up" and if the document status equals 7 (Invoiced).
- After the p-job has been run, the remote GetSalesOrderDetailsByTransactionId will always return None for CustomerOrderModeValue, which is by design.
