/
Print and Send Sales Documents

Print and Send Sales Documents

Setting up the Print Report, Attachments

Report (attachments) for printing and sending

After running the function under the Print or Create attachment button on the sales document card (invoice/credit note), the system reads a report from the Invoice Printout Setup table, according to the value on the sales document card in the Invoice Print Type and Document Type fields.

Invoicing Print Setup

The fields in the table are:

  • Invoicing Type = Typ Fakturace

    • If the value is:

      • Individual

        • According to the value of the invoicing type and the type of document, the system searches for a record (line).

          • From the record, it takes the ID report, the structure of the email, or. Jobresponsibility for sales documents that have a value in the Inovice Print Type field – Blank on the document card.

      • Payment

        • According to the value of the invoicing type and the type of document, the system searches for a record (line).

          • From the record, it takes the ID report, the structure of the email, or. Jobrespensibility for sales documents that have a value in the Inovice Print Type = Payment field on the document card.

      • Maintenance (Maintenance)

        • According to the value of the invoicing type and the type of document, the system searches for a record (line).

          • From the record, it takes the ID report, the structure of the email, or. Jobrespensibility for sales documents that have a value in the Inovice Print Type = Maintenance (Service) field on the document card.

      • Fuel (Fuel)

        • According to the value of the invoicing type and the type of document, the system searches for a record (line).

          • From the record, it takes the ID report, the structure of the email, or. Jobrespensibility for sales documents that have a value in the Inovice Print Type = Fuel field on the document card 

  • Document Type

    • The system filters by document type when searching for a record

  • Report ID

    • the user selects a report that is generated when printing or saving attachments to document attachments

  • Email Body Layout Code

    • Settings for the body of the mail

  • E-mail Subject

    • The system reads the value into the body of the mail

  • E-mail Attachment Name

    • Attachment name for Attachment type Sales Invoice

  • Sent To

    • the Jobresponsibility of the contact to which the document is to be sent is selected

Customer Card

In the Invoicing tab, you can set up mass sending of sales documents for the customer.

Mass Sending of Saleable Documents:

  • Blank Value

    • The system does not process the document (does not send, does not switch the sending status)

  • Mass Jobs

    • Invoicing tasks: Post Financing Payment (with services); Mass Invoicing Fuel Cards; Mass Reinvoice Maintenance; Post Billing Credit Memos After posting the document, they immediately send the document, namely:

      • Create, save attachments

      • Toggle on the Document Status = Complete tab

      • Status Sending E-mail

        • Sent = if the mail is sent

        • Not sent – error = if the sending failed.

          • The Sending Email error text writes a description of the error

  • Periodic Task

    • After running the Mass Sending Documents task, the system creates an email for one customer, in which all the attached

  • Periodic Task Zip

  • After running the Mass Sending Documents task, the system creates an email for one customer, which contains a Zip attachment with all document attachments. In Zipe, a directory is created from attachments)

Stop Sending:

  • Ak je nastavené na ANO

    • Neither bulk invoicing jobs nor task Bulk document sending doesn't send customer's saleable documents.

Invoice Sending Method

The table Method of sending documents defines the method of sending sales documents (print, email), as well as the creation of additional attachments for individual invoicing for a given customer.

Field:

  • Invoicing Type

    • For lower invoicing tasks, the system searches for a record by Invoicing Type:

      • Post Financing Payment (with services) = Invoicing Type Payment

      • Mass Invoicing Fuel Cards = Invoicing Type = Fuel

      • Mass Reinvoice Maintenance = Invoicing Type = Maintenance

      • Post Billing Credit Memos = Payment

  • Document Type

    • Invoice/Credit Memo

  • Type of Sending Documents:

    •  Press

      •  After posting, the system sends the document to print

    •  Enamel

      • After posting, the system sends the document set by Jobresponsibility to the contact

  • Attachment Format

    •  A parameter is selected for creating a report format

  • Attachment Report ID

    • Selecting a report for an attachment

  • Attachment Report Name

    •  It is read from the selected report

  • Attachment Layout Code

    • Loads in the selected attachment layout

  • Attachment Layout Description

    • Choose an attachment layout  

  • Attachment Name

    • Text box

    • When inserting attachments into document attachments, the system changes the attachment with the selected text

Sales & Receivables Setup

In the Sales and Receivables Setup table, tab E – mailing Setup, the parameters of the Mass Sending Document task are set, such as: Email body report ID (the email dataset should contain fields from the customer card); Email Body Layout Code, Subject, Attachment Name

Sending Saleable Documents

Manually Sending Saleable Documents

After posting an individual document, the user has the option to send the document with attached attachments by e-mail from the document card.

After posting, the document has:

  • Document Status = Empty

  • Sending Status E-mail = Not Sent

 The user checks the saleable document, then switches Document Status = Complete

Click Create Attachment to create document attachments

When the system button is launched:

  • Checks Document Status = Complete

    • If there is no Document Status = Complete displays a message

 

image-20240620-191554.png
  • for the Invoicing Print type on the Selling Document card:

    • creates attachments from Invoice Printout Setup and Customer Inv. Sending Method

    • saves them in the Attachment of the document

      • for Salesable Invoice Report attaches Attachment Type = Sales Invoice

      • for Attachments Report attaches to Attachments Attachment Type = External Attachment Sales Invoice or Credit Memo

      • If the user inserts an attachment that is to be attached to the email, he must add the Attachment Type = External Attachment Sales Invoice or Credit Memo

Then use the Email button to create an Email and send it.

After sending, on the sales document card, the field Sending Status - E-mail = Sent

Sending Documents by Mass Invoicing Tasks

Invoicing tasks: Post Financing Payment (with services); Mass Invoicing Fuel Cards; Mass Reinvoice Maintenance; Post Billing Credit Memos after posting the document, ak je nastavené on the customer card:

  • Mass Sending Sale Documents = Mass Invoicing

  • Stop Sending = NO

  • The method of sending customer invoices for a given Invoicing Type is Email = YES

System after posting sales documents by invoicing tasks:

  • Sends saleable documents

  • Overrides on the sales document card Sending Status - E-mail = Sent

  • Writes Success or Failure invoicing tasks to the log

Mass Sending Document Task

The Mass Sending Document task can be run from the Role Center via Search, or repeatedly via the scheduler.

The task processes sellable documents, only for customers who have set up on the customer card:

  • Mass Sending of Saleable Documents = Periodic Task or Periodic Task Zip 

  • Stop Sending = NO

After the job starts:

  • goes through the List of Posted Invoices and the List of Posted Credit Memos;

  • filters records

    • Document Status = Complete

    • Sending Status E mail (Sending Status – Email) = Not sent

    • In the header of the document, in the field API MASS Invoice (4026710), ak je:

      •  YES collects in the tray

      •  NO - it's looking at the Shortcut Dimension 2 field. According to the dimension, it searches for the contract card, where in the API Financing Contract Header (4026397), ak is in the Paym field. Calendar is Tax Document (19032) value in the field:

        • YES + Invoice Print Type = Payment skips document (document will not be sent), waiting for manual sending

        • NO = continues on

  • Records grouped by

    •  Customer Numbers

      • On the customer card, it checks:

        • Mass Sending of Saleable Documents = Periodic Task or Periodic Task Zip 

        • Stop Sending = NO

    •  Jobresponsibilities namely:

      • according to the value in the field in Invoice Print Type (Sales Cr. Memo Header (114), Sales Invoice Header (112), searches the Invoicing Printout Setup tab for a record that has the same value as in Invoice Print Type;

      • of the found record searches for a value in the Send To (Job responsibilities) field

Note. If the customer had documents with all types of invoicing, the task would create:

  • One mail for Jobresponsibility Invoice, in which there would be documents with all types of invoicing

  • A second e-mail for Jobresponsibility FMN, in which there would be documents only for Invoicing Type = Maintenance.

 

  • groups records, creates mail:

    •  enamel

      • Takes Jobresponsibility from the contact card

    •  Body E – Mail:

      • The system reads the report from the Sales & Receivables Setup tab (311) from the Email Body Layout Code field

    • Object takes over

      • from the Sales & Receivables Setup tab (311) reads the value from the new field E – mail Subject 

  •  To an email attachment, as it was on the customer card in the Mass Sending of Sales Documents field:

    • Periodic task attaches all attachments from Attachment documents (does not zip them)

    • Periodic task ZIP, zips all attachments. In Zipe, it creates a directory according to the numbers of the individual documents in which the attachments are located.

  • Sends e-mail

  • On the document cards, writes the value into a new field Sending Status – Email (79280) Sent

    • If an error occurs when creating an E-mail or when sending, i.e. the E-mail is not sent. The system switches to the Sending Status – Email field to Not Sent – Error and writes an error to the Sending Error Text.

In Sent E-mails, the user can check whose emails were sent by the customer.