posting transfer orders using job queue

DamjanDamjan Member Posts: 27
Hi all,

Has anybody working on a solution to post transfer orders using job queue?

I was thinking to create new codeunit to generate entries in job queue and then a report that would grab these entries and run codeunit TransferOrder-Post Shipment or TransferOrder-Post Receipt.

Has anybody done any solution like this?

Solution is being build on NAV2013 R2.

Thank you
BR Damjan

Best Answer

Answers

  • DamjanDamjan Member Posts: 27
    Hi,

    I just finished with this task, so I created a codeunit to create entries in table: Job Queue Entry,
    and then 2 reports running each as separate job entry:

    - one report to grab all job queue entries with transfer orders in status=released and that have "Qty. To Ship">0 (we are shipping only fully packed orders, and aren't using partial shipments, for now).
    - report Posted Transfer Shipment is printed in PDF to default printer and send as email to vendor/employee/customer

    - one report to grab all job queue entries with transfer orders in status=released and that have "Qty. Shipped">0 and "Qty To Receive">0
    - report Posted Transfer Receipt is printed in PDF to default printer and send as email to vendor/employee/customer

    User steps:
    1. Create new Transfer Order
    2. fill out Transfer Order
    3. Press button Post in Job Queue
    -> Info message pops: Transfer Order send to post into the job queue
    -> transfer order shipment is posted automatically by job queue
    -> as transfer order shipment is posted, report posted transfer shipment is printed to user's default printer and email with attached same report is sent to vendor/employee/customer (depend on value on field: Send-To) and to the Purchaser (user)
    -> transfer order receipt is posted automatically by the job queue
    -> as transfer order receipt is posted, report posted transfer receipt is printed to user's default printer and email with attached same report is sent to vendor/employee/customer (depend on value on field: Send-To), and to the Purchaser (user).

    Thanks Damjan
  • DamjanDamjan Member Posts: 27
    edited 2020-10-15
    Closing the issue.

    It is quite enough to run just codeunits in job queue, but we needed some additional functionality, thus I used reports.
Sign In or Register to comment.