(DNK) Set up batch processing for OIOUBL electronic invoicing
Applies To: Microsoft Dynamics AX 2012 R3, Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012
Use the Batch job form to set up batch processing for Offentlig Information Online Universal Business Language (OIOUBL) electronic invoicing.
You can set up a batch job for sales outbound electronic invoices, and another batch job for project outbound electronic invoices.
Click System administration > Inquiries > Batch jobs > Batch jobs.
Press CTRL+N to create a batch job, and then in the Job description field, enter a short description for the batch job.
Save the batch job, and then click View tasks.
In the Batch tasks form, press CTRL+N to create a batch task for the batch job, and then in the Class name field, select the AifOutboundProcessingService class name. In the Company accounts field, select the company you created the batch job for.
Create two batch tasks that use the following class names:
AifGatewaySendService
EInvoiceFileTransform_OIOUBL
Select the batch task that uses the EInvoiceFileTransform_OIOUBL class name, and then in the Batch group field, select a batch group.
Click Refresh to refresh the data in the form.
Click Parameters.
In the E-invoice OIOUBL XSL File Transformation form, specify the locations of the Source, Target, Processed, and Error file storage folders. For the XSLT file path, select the path for the eSalesInvoice_DK_OIOUBL file for sales outbound electronic invoices, or the path for the eProjectInvoice_DK_OIOUBL file for project outbound electronic invoices, and then close the form.
Click the Overview tab.
Select the batch task that uses the AifGatewaySendService class name (the second task) to set up the order in which the batch tasks are run.
In the lower pane, press CTRL+N to create a condition for the selected batch task to run after the batch task that uses the AifOutboundProcessingService class name (the first task) has ended.
In the Task ID field, select the batch task that uses the AifOutboundProcessingService class name.
In the Expected status field, select Ended.
注意
You can also select the batch task that uses the EInvoiceFileTransform_OIOUBL class name, and then set the condition to run the batch task when the batch task that uses the AifGatewaySendService class name has ended.