Skip to main content
Post a question

Notifications

Community site session details

Community site session details

Session Id : NiEjnqwxDVslwzZzsvYefY
Service | Customer Service, Contact Center, Fie...
Suggested answer

Negative Used Qty on Work Order Product

Like (0) ShareShare
ReportReport
Posted on 8 Jan 2020 14:37:45 by 260

Hi, 

I have a scenario where we have added Work Order Products to a Work Order which have been passed through integration to an external system.  (Product Code,Used Qty,Total Amount)

Legitimately, later in the process it is determined that these were the incorrect products for billing and so we need to send another record through the integration to Credit these products on the external system and add the new 'correct' ones in D365. (to pass though the integration)

However, OOB the Total Amount field will not calculate a negative value and the only way the external system has of crediting these is by receiving a negative qty and a negative amount.

Any help appreciated.

  • Suggested answer
    Thomas David Dayman Profile Picture
    11,323 on 09 Jan 2020 at 17:33:09
    RE: Negative Used Qty on Work Order Product

    Im not suggesting that you need a customer total amount field. Im assuming that you need this negative sum for this external system and you can turn the total amount number to negative in the integration if the WOP is marked as 'Credit' = Yes

    Or if you cant change the total amount in the integration. You can have a custom total amount field but have a workflow to copy the value of the normal total amount when it changes. If the WOP is marked as Credit then change the custom total amount to negative.

  • John Holmes Profile Picture
    260 on 09 Jan 2020 at 08:27:43
    RE: Negative Used Qty on Work Order Product

    I need to send a negative qty and negative amount for a work order product through an integration but also have the total amount on the work order respect these credited lines

  • John Holmes Profile Picture
    260 on 09 Jan 2020 at 08:24:56
    RE: Negative Used Qty on Work Order Product

    I had thought of that but then I would also need a custom total amount field on the Work Order and write plugins to calculate which I was hoping to avoid

  • Fannie30 Profile Picture
    2,990 Moderator on 08 Jan 2020 at 23:22:23
    RE: Negative Used Qty on Work Order Product

    Are you looking to adjust work order product quantity or what is invoiced to the customer?  What’s the problem you’re trying to resolve?  

  • Thomas David Dayman Profile Picture
    11,323 on 08 Jan 2020 at 21:14:06
    RE: Negative Used Qty on Work Order Product

    Are you sending just the work order products to this external system? Is the external system in charge of invoicing the customer?

    You may want to just a a field on the WOP form called 'Credit' Yes/No and through the integration give the total amount as negative if Credit = Yes

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,440 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,575 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans
Loading complete