The following parameters influence the functioning of this routine:

According to context of this parameter, the system automatically cleanups sale order items already released.

If context of parameter = 1, the system deletes all files with "already invoiced" status;

If context of parameter = 2 (This content is used only for versions with Top Connect), the system physically excludes deleted files;

If context of parameter = 3, the system does not run cleanup.

This parameter must be used to control numbering of outbound documents with own form.

If context is 1, the control is made through SX5 (system standard);

If it is 2, control is made through SXE/SXF.

This parameter defines the standard numbers of items found in the outbound document, regardless of series.

For outbound documents series that have different items numbers, the parameters MV_ITEM + Series must be defined, along with numbers specific of items.

Example:

Series B1 has 5 item by invoice and the other series, 10 items. Thus, a parameter MV_ITEM should be defined for each series that holds numbers of different items and the parameter MV_NUMITEM for the other series.


MV_ITEMB1 = 05

MV_NUMITEN = 10

Thus, when an outbound document is issued for B1 series, the maximum number of items by document is 05, and for any other series is 10.  

Establishes if freight amounts, independent and safe freights must respect the sale order currency.

If parameter is defined as Yes, the system converts the freight amounts, independent and safe freights for the sale order currency. Otherwise, the system does not convert these values.

Indicates if the bills type NCC - Credit Note to Customer are automatically cleared. This procedure automatically runs the offset of sale return, letting the system offset NCC bills with original bill, as well as the accounting entries, with no need to manually run this routine through the Financial environment.

This parameter handles the type of apportionment, in the sale order, in the discount of indemnization by amount. Options are:

1 - Apportionment for all items of sale order;

2 - Apportionment for items that generate trade note.

This parameter configures if amount of aggregated expenses (freight, insurance or other expenses) entered in sale order is considered in the release of sale order and if it is calculated by item or by the total amount of order.

It can be configured with:

1 – Indicates that value entered for aggregated expenses refers to the release of sale order, that is, each release has a new freight amount, insurance, and expense.

2 – Indicates that amount entered for aggregated expenses refers to the total amount of sale orders, regardless of order release.

Observe examples, considering the following situation:

Sales order (000023) is invoiced in two different moments, once:

Example 1 - Parameter MV_TPRTDSP = 1

Invoice

Sale/Item order

Qty.

Unit Price

Total Amount

Qty. released

Aggreg. expens.

Items

000001

000023/01

100

20.00

2,000.00

100

200.00

000002

000023/02

100

40.00

4,000.00

100

200.00

Aggreg. expens.

(Order)

$ 200.00 (total informed in sales order header)


In this case, observe that for both items, the total entered in the order header ($ 200.00 per item), was added as aggregated expenses amount.

Example 2 - Parameter MV_TPRTDSP = 2

Invoice

Sale/Item order

Qty.

Unit Price

Total Amount

Qty. released

Aggreg. expens.

(items)

000001

000023/01

100

20.00

2,000.00

100

100.00

000002

000023/02

100

40.00

4,000.00

100

100.00

Agg. expens.

(order)

$ 200.00 (total informed in sales order header)


In this case, observe that the amount entered for aggregated expenses was divided between the two items of order ($ 100.00 per item).