QP Price List Copy and Adjust Upload

Description

Categories
Enginatics, R12 only, Upload
Repository
GitHub
Copies price lists and adjusts their prices, one row per price list, as the Copy Price List and Adjust Price List windows of Advanced Pricing do.

Upload Mode Create, Update downloads the selected price lists; Create gives an empty sheet to paste rows into.

Enter a New Price List to copy the row's price list with its qualifiers and the lines active today. Adjust By and Adjust Value then change the prices of the new list, or of the row's own list when no New Price List is entered.

Standard and agreement price lists can be copied, and the copy keeps the type of its source. A copied agreement price list gets no qualifiers and is not attached to an agreement. Prices can be adjusted on standard price lists only, as in the Adjust Price Lists window.

Change Effective To to end-date the row's price list, for example the day before the new list starts. Only a price list without an end date can be end-dated: an existing end date cannot be changed or removed, and a blank Effective To leaves the price list unchanged.

Item From, Item To and Category limit both the copy and the adjustment; Adjust Item Status and Adjust Creation Date limit the adjustment only. With any of these filters only lines priced by item number are copied or adjusted; lines priced by item category or all items are left out.

The copy and the adjustment are saved as soon as they run. A row that fails afterwards keeps the new price list and its message says so: adjust the new list in a separate row instead of uploading the row again.

SQL 39 lines

Parameters 6

ParameterTypeList of values SQL
Upload ModeLOV
Price ListLOV
qslhv.list_header_id=:list_header_id
Price List likeChar
qslhv.name like :price_list_like
Price List FromLOV
qslhv.name>=:price_list_from
Price List ToLOV
qslhv.name<=:price_list_to
Effective DateDate
nvl(qslhv.start_date_active,:effective_date)<=:effective_date and nvl(qslhv.end_date_active,:effective_date)>=:effective_date