I'm building a CDS and Business Central - based mobile sales app for a customer. My intention is to use BC as the source of all masterfile and setup data and to create Sales Orders in BC from carts in the mobile app.
The customer's prices to their customer are complex and volatile. In BC they are using Item Pricing, Customer-Item Pricing and Customer Price Group pricing, as well as campaigns (for time limited promotion). A customer with Price Group pricing may also have Customer-Item Pricing. In addition, a salesperson is authorized to override any of them, with certain tolerances.
The goal is to have those prices real-time on the mobile. Before a sales person enters an orderline he needs today's price for the item. If I create a sales orderline with a zero price, BC will go through the possible prices for the item (Price Group, Customer-Item, List, Campaign).
I'd rather not create create an orderline just to get a price and then have the end customer not purchase the item.
I'd like the forum members comment on the idea of using BC's algoritms directly. Something like creating a webservice that will consume a customer number, item number and a date, call a codeunit that will calculate the price and respond with the best price, just like the way the BC sales order page does. It's seems somewhat daunting with my skillset, but it would fit nicely.
Does such an animal already exist or are there other alternatives ?

Report
All responses (
Answers (