Edit and audit cash and carry and cash management transactions
This article describes how to edit and audit cash and carry and cash management transactions in Microsoft Dynamics 365 Commerce.
Overview
Dynamics 365 Commerce customers use both a first-party point of sale (POS) application and third-party POS applications. In the case of the first-party application, store transactions are pulled into Commerce headquarters from the channels through a batch process. In the case of third-party applications, transactions are pulled into Commerce headquarters through integration. In both cases, after transactions are pulled into Commerce headquarters, a consistency check process must be performed. This process runs multiple validations on the transactions, and only transactions that are successfully validated are pulled into the statement so that they can be posted in Commerce headquarters.
Commerce transactions might fail validation for various reasons. A bug in the integration code or in the POS application might cause inconsistent data. Alternatively, a user error might cause inconsistent data. For example, a user deletes a product after it was synced to the channel, or a user closes a fiscal period without posting transactions for that period. Although these transactions are flagged and are excluded from the statements, they can disrupt a customer's daily process of posting daily sales to the financials. In Commerce, you can edit the transactions that fail validation while you also maintain an audit of all the changes.
Edit transactions
In Commerce version 10.0.5, the only transactions that can be edited are cash and carry transactions, such as sales and returns. Customer orders and online orders can't be edited. In Commerce version 10.0.6 and later, cash management transactions can also be edited.
To edit transactions in Commerce headquarters, follow these steps.
Install the Microsoft Dynamics Office Add-in.
In Commerce headquarters, open the Store financials workspace. The Transaction validation failures tile provides a prefiltered view of the transaction page that failed one or more validation rules.
Open the transaction page, select the record that failed validation, select Office Add in, and then select Edit selected transaction. An Excel file that shows the details of the selected transaction is opened. This file contains the following worksheets:
- Lines – This worksheet has the header and product lines for the transaction, and related data for the transaction.
- Payments – This worksheet has the details of the payment lines for the transaction.
- Discounts – This worksheet has the discount-related details for the transaction.
- Taxes – This worksheet has the tax-related details for the transaction.
- Charges – This worksheet has the charges-related data for the transaction.
In the Excel file, modify the appropriate fields, and then upload the data back into Commerce headquarters by using the publishing functionality of the Dynamics Excel Add-in. After the data is published, the changes will be reflected in the system. During publication, no validation is done for changes that users make.
You can view a complete audit trail of the changes by selecting View audit trail in the Retail transaction header for the header-level changes, and in the relevant section and record on the appropriate transaction page. For example, all changes that are related to sales lines will be shown on the Sales transactions page, and all changes that are related to payments will be shown on the Payment transactions page. The following audit details are maintained for the changes:
- Modified date and time
- Field
- Old value
- New value
- Modified by
After you've made and published your changes, run Validate store transactions to validate that those changes are consistent and valid.
Note
You can edit only transactions that failed validation. If you want to edit a transaction that passed validation, change the validation status of the transaction to Error or None, and then publish the change. You can then edit the data on the header or in any other child records of the transaction, and publish the header or records.
Bulk-edit transactions that are linked to a statement
Commerce version 10.0.6 and later support the option to bulk-edit transactions at the statement level.
To bulk-edit transactions that are linked to a statement in Commerce headquarters, follow these steps.
Open the Statements page, and select the statement that contains the transactions that must be edited.
Select the Open in Microsoft Office button.
Depending on what must be edited, select one of the following options:
Edit cash and carry transactions – This option lets you edit all the cash and carry transactions that are included in the statement. The following Excel worksheets are available:
- Transaction – This worksheet has all the header-level information for the sales transactions.
- Sales transaction – This worksheet has all the line-level information for the sales transactions.
- Payment transactions – This worksheet has all the payment line information for the sales transactions.
- Discount transactions – This worksheet has all the discount line information for the sales transactions.
- Tax transactions – This worksheet has all the tax line information for the sales transactions.
- Charge transactions – This worksheet has all the charge line information for the sales transactions.
Edit cash management transactions – This option lets you edit all the cash management transactions that are included in the statement. The following Excel worksheets are available:
- Transaction – This worksheet has all the header-level information for the cash management transactions.
- Bank tender transactions – This worksheet has all the bank drop transaction details.
- Safe tender transactions – This worksheet has all the safe drop transaction details.
- Tender declaration – This worksheet has all the tender declaration transaction details.
- Income-expense transaction – This worksheet has all the income-expense transaction line details.
- Payment transactions – This worksheet has all the payment-related information for the Pay invoice operation and the income-expense transaction.
Edit the required transactions.
Note
Validations aren't done when you publish bulk-edited transactions. You must make sure that all your edits are accurate, and that the fidelity of data across the worksheets is maintained. For example, if you want to change the transaction date, so that you can manage scenarios where the fiscal or inventory period for the open transactions is closed, you must change the date on all the Excel worksheets that have the Business date column. To validate transactions after they have been edited, you can select Revalidate transactions on the Statements page. Wait for the validation job to finish running before you post the statement.
If the aggregation has already been generated, open the Aggregated transactions page, and select Regenerate sales order xml.
Bulk-edit transactions that aren't linked to a statement
Commerce version 10.0.10 and later support the option to bulk-edit transactions that fail validation but aren't linked to a statement.
To bulk-edit transactions that aren't linked to a statement in Commerce headquarters, follow these steps.
- Open the All stores page, and select the store that transactions must be edited for.
- Select the Open in Microsoft Office button, and then select Edit cash and carry transactions.
- Edit the required transactions, and then publish them.
Additional resources
Edit and audit online order and asynchronous customer order transactions
Edit financial dimensions for retail transactions
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for