Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

HowTo Good Quantity by Worker

(0) ShareShare
ReportReport
Posted on by 44

Hello,

how do I get the number of pcs reported by a worker in a production? in x++. (In progress or as Feedback) 

I know that for quantity by operation I can go JmgJobTable::QuantityGood()

I appreciate you help

thanks a lot before hand,

  • CBNestor Profile Picture
    CBNestor 44 on at
    RE: HowTo Good Quantity by Worker

    By the way Sergei,

    Why the OprNum and OprId are not recorded in the ProdRouteTrans Table??

    thanks a lot

  • CBNestor Profile Picture
    CBNestor 44 on at
    RE: HowTo Good Quantity by Worker

    Perfect Sergei,

    as always thanks a lot

    Just what I needed, I created it as a static method cuz I need to call that from an outside class

  • Verified answer
    Sergei Minozhenko Profile Picture
    Sergei Minozhenko 23,091 on at
    RE: HowTo Good Quantity by Worker

    Hi CBNestor,

    Maybe you can create new method like ProdRoute.qtyGood, but instead of filtering by route information, you can filter by worker. Something like this:

    public ProdReportedGood qtyGoodByWorker(RecId _workerRecId)
    {
        return (select sum(QtyGood) from prodRouteTrans
                    where prodRouteTrans.TransRefId   == this.ProdId                  &&
                          prodRouteTrans.TransRefType == ProdTransRefType::Production &&
                          prodRouteTrans.Worker       == _workerRecId                 &&
                          prodRouteTrans.TransType    == ProdRouteTransType::Qty).QtyGood;
    }
    

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February 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... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,430 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans