web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Suggested answer

Create sales line in transaction by coding

(0) ShareShare
ReportReport
Posted on by

Hi all,

I have one sale line with item A, quantity = 10, and applied discount 50%

I need to split into two sales line with quantity as below:

- line 1 - item A: quantity = 1 + applied discount 50%

- line 2 - item A: quantity = 9 + no-applied discount

At first, I study how to clone one sales line to new another sales line as the same, then I will adjust quantity and discount later (by extending discount package)

Could anyone help me how to do that ? (ex: Does Retail Server, CRT have any request to create SalesLine request,..)

I have the same question (0)
  • Suggested answer
    Shaimaa Abo Gabal Profile Picture
    on at
    RE: Create sales line in transaction by coding

    Hi Kien,

    You can try ti use SaveCartLinesRequest  (This request represents a request for create, update, delete, or void operations on the cart line.)  listed in article docs.microsoft.com/.../crt-services

    If it doesn't help you , I would recommend you to open support request with us so we can contact Retail Product group for further help .

    Also may be that help if you disable product aggregation parameter from Functionality profile , Then at POS add the product with1 QTY apply line discount for the first line , then add the item again and it'll created new line with 1 QTY and you can update QTY for this line as you want .  (see screen shots)

    pastedimage1580910306653v1.png

    pastedimage1580910828414v2.png

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 900

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 256 Super User 2025 Season 2

#3
Sagar Suman Profile Picture

Sagar Suman 188 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans