Good afternoon!
I'm trying to create a helper for purchase order creation which allows a manager to choose where to buy items. I have imported price lists for several vendors and some items are cheaper in one company while others are cheaper in another. The delivery is free starting from some amount of the order.
So, after the user enters items and quantities in this document, and clicks Fill vendors, the Vendor column of the document's tabular section should be filled with vendors having cheapest price for that item. After that I need to allow a user to choose a vendor from a choice list which should contain values with presentations like "vendor (price)".
In the footer of that document the summary of the document should be displayed as:
vendor | amount | delivery cost
I know how to implement the summary, problems are:
The query to get best prices with vendors.
How to fill choice lists of vendor column fields.
The Vendor prices information register has Daily periodicity, Item and Vendor dimensions, and Price resource.
The 1C:Enterprise developers forum