{"id":660,"date":"2024-04-09T09:33:45","date_gmt":"2024-04-09T15:33:45","guid":{"rendered":"https:\/\/fbedolla.com\/?p=660"},"modified":"2024-04-09T10:59:04","modified_gmt":"2024-04-09T16:59:04","slug":"business-central-projects-jobs-to-purchase","status":"publish","type":"post","link":"https:\/\/fbedolla.com\/index.php\/2024\/04\/09\/business-central-projects-jobs-to-purchase\/","title":{"rendered":"Business Central Projects (Jobs) to Purchase"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/youtu.be\/iZ5Aba1MVyw\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/JObtoPurch-1024x576.jpg\" alt=\"\" class=\"wp-image-740\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/JObtoPurch-1024x576.jpg 1024w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/JObtoPurch-300x169.jpg 300w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/JObtoPurch-768x432.jpg 768w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/JObtoPurch-816x459.jpg 816w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/JObtoPurch.jpg 1280w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\"><a href=\"https:\/\/youtu.be\/iZ5Aba1MVyw\" target=\"_blank\" rel=\"noopener\" title=\"\">https:\/\/youtu.be\/iZ5Aba1MVyw<\/a><\/figcaption><\/figure>\n\n\n\n<p>This is a long post because I want to cover the requirement history and how I try to cover the lack of functionality. I\u00b4m going to include some code and the github <a href=\"https:\/\/github.com\/fbedolla\/JobToPurchase\" target=\"_blank\" rel=\"noopener\" title=\"\">link<\/a>.<\/p>\n\n\n\n<p>In one of our implementation projects, we are using Jobs\/Projects (this blog was written before BC 2024 Wave 1 release) and the customer asks to create purchase orders from job planning lines.  <\/p>\n\n\n\n<p><strong><em>BC doesn\u2019t do that.<\/em><\/strong><\/p>\n\n\n\n<p>So I did a little research and found these:<\/p>\n\n\n\n<p>2018!! And still marked as under review<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"921\" height=\"436\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image.png\" alt=\"\" class=\"wp-image-661\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image.png 921w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-300x142.png 300w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-768x364.png 768w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-816x386.png 816w\" sizes=\"auto, (max-width: 921px) 100vw, 921px\" \/><\/figure>\n\n\n\n<p>2022 2023 asking for votes<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"921\" height=\"313\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-2.png\" alt=\"\" class=\"wp-image-663\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-2.png 921w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-2-300x102.png 300w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-2-768x261.png 768w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-2-816x277.png 816w\" sizes=\"auto, (max-width: 921px) 100vw, 921px\" \/><\/figure>\n\n\n\n<p>2023 declined<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"921\" height=\"352\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-3.png\" alt=\"\" class=\"wp-image-664\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-3.png 921w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-3-300x115.png 300w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-3-768x294.png 768w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-3-816x312.png 816w\" sizes=\"auto, (max-width: 921px) 100vw, 921px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"921\" height=\"343\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-4.png\" alt=\"\" class=\"wp-image-665\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-4.png 921w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-4-300x112.png 300w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-4-768x286.png 768w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-4-816x304.png 816w\" sizes=\"auto, (max-width: 921px) 100vw, 921px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"921\" height=\"337\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-5.png\" alt=\"\" class=\"wp-image-666\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-5.png 921w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-5-300x110.png 300w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-5-768x281.png 768w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-5-816x299.png 816w\" sizes=\"auto, (max-width: 921px) 100vw, 921px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"921\" height=\"749\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-6.png\" alt=\"\" class=\"wp-image-667\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-6.png 921w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-6-300x244.png 300w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-6-768x625.png 768w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-6-816x664.png 816w\" sizes=\"auto, (max-width: 921px) 100vw, 921px\" \/><\/figure>\n\n\n\n<p>in 2021 Microsoft gave something like an &#8220;answer&#8221; and receive 3 very solid replies<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"613\" height=\"1024\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-7-613x1024.png\" alt=\"\" class=\"wp-image-668\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-7-613x1024.png 613w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-7-179x300.png 179w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-7-768x1284.png 768w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-7-919x1536.png 919w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-7-816x1364.png 816w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-7.png 962w\" sizes=\"auto, (max-width: 613px) 100vw, 613px\" \/><\/figure>\n\n\n\n<p>If you check those replies, you can see the Deseree Krumm reply, she touches the most important point:<\/p>\n\n\n\n<p>If you receive your items, those items are &#8220;consumed&#8221; in the project line and never &#8220;pass&#8221;  in the location, but, if you have a receive\/ship process, you dont have a item cost applied in the project until you post your invoice. <\/p>\n\n\n\n<p>Another point that wasnt covered by Business Central, if you use service type items, those items doesnt appears in the order planning or requisition worksheet.<\/p>\n\n\n\n<p>Why this is important? well, you can sell services, so you can add services to project plan lines, and those services can be covered for an external vendor (subcontracting) with their own resources and you cant purchase resources, so you create a service item to purchase\/sales and the BC planning system doesn\u00b4t care about that or the G\/L Accounts for project related expenses.<\/p>\n\n\n\n<p>So, how can we have a solution for these scenarios?<\/p>\n\n\n\n<p>Let&#8217;s start checking the Job Planning Lines (JPL) <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"211\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-8-1024x211.png\" alt=\"\" class=\"wp-image-671\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-8-1024x211.png 1024w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-8-300x62.png 300w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-8-768x158.png 768w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-8-1536x316.png 1536w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-8-816x168.png 816w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-8.png 1685w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>I added a new field to put the vendor code and a boolean to create the purhcase order only if the vendor is defined because you need a vendor, In the code I put some validations and pull info from item and vendor card.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"690\" height=\"640\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-9.png\" alt=\"\" class=\"wp-image-672\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-9.png 690w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-9-300x278.png 300w\" sizes=\"auto, (max-width: 690px) 100vw, 690px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"921\" height=\"925\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-10.png\" alt=\"\" class=\"wp-image-673\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-10.png 921w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-10-300x300.png 300w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-10-150x150.png 150w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-10-768x771.png 768w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-10-88x88.png 88w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-10-816x820.png 816w\" sizes=\"auto, (max-width: 921px) 100vw, 921px\" \/><\/figure>\n\n\n\n<p>I mark the bool field if the vendor is defined but&#8230; onnly if the line is item, also, if its item, I look for the defined vendor in the item card or the item vendor table, an d yes, I added dimension filed in JPL and look for the item defined dimensions.<\/p>\n\n\n\n<p>also, some code to get the vendor defined location code for the item, if the vendor doesn&#8217;t have a defined location, you can set up one in the general setup .<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"608\" height=\"400\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-11.png\" alt=\"\" class=\"wp-image-674\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-11.png 608w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-11-300x197.png 300w\" sizes=\"auto, (max-width: 608px) 100vw, 608px\" \/><\/figure>\n\n\n\n<p>Wuth this, you can put in the lines items, G\/L accounts and text and transfer those line types to purchase orders.<\/p>\n\n\n\n<p>Let&#8217;s analyze the first part of the codeunit:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"802\" height=\"751\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-12.png\" alt=\"\" class=\"wp-image-676\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-12.png 802w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-12-300x281.png 300w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-12-768x719.png 768w\" sizes=\"auto, (max-width: 802px) 100vw, 802px\" \/><\/figure>\n\n\n\n<p>In this first procedure, I took the lines and pit the different vendors in a temp table, i can use a query but I prefer this method to try to mimic a SQL Coalesce to delete duplicates. Once I have a set of unique vendors, I started to create the documents with two procedures.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"767\" height=\"619\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-13.png\" alt=\"\" class=\"wp-image-677\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-13.png 767w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-13-300x242.png 300w\" sizes=\"auto, (max-width: 767px) 100vw, 767px\" \/><\/figure>\n\n\n\n<p>For headers, I look for the project dimensions and create the header setting vendor, those dimensions, dates, and 2 new fields for project &#8220;link&#8221; .<\/p>\n\n\n\n<p>Now, the lines:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"586\" height=\"1024\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-15-586x1024.png\" alt=\"\" class=\"wp-image-680\" style=\"width:616px;height:auto\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-15-586x1024.png 586w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-15-172x300.png 172w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-15-768x1343.png 768w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-15-816x1427.png 816w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-15.png 851w\" sizes=\"auto, (max-width: 586px) 100vw, 586px\" \/><\/figure>\n\n\n\n<p>The last line after the insert isa mark procedure that writes the PO number in the line to inform the user with which order is the JPL linked<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"292\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-17-1024x292.png\" alt=\"\" class=\"wp-image-682\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-17-1024x292.png 1024w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-17-300x86.png 300w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-17-768x219.png 768w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-17-816x233.png 816w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-17.png 1313w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"219\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-18-1024x219.png\" alt=\"\" class=\"wp-image-684\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-18-1024x219.png 1024w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-18-300x64.png 300w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-18-768x164.png 768w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-18-1536x328.png 1536w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-18-816x174.png 816w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-18.png 1667w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Let\u00b4s check the PO\u00b4s<\/p>\n\n\n\n<p>Header<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"306\" height=\"661\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-20.png\" alt=\"\" class=\"wp-image-687\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-20.png 306w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-20-139x300.png 139w\" sizes=\"auto, (max-width: 306px) 100vw, 306px\" \/><\/figure>\n\n\n\n<p>Lines<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"346\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-19-1024x346.png\" alt=\"\" class=\"wp-image-686\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-19-1024x346.png 1024w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-19-300x101.png 300w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-19-768x260.png 768w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-19-1536x519.png 1536w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-19-816x276.png 816w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-19.png 1734w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Now, we can know how many PO&#8217;s related to projects are created in the system and how many released PO&#8217;s, receipts, invoices, etc.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"538\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-21-1024x538.png\" alt=\"\" class=\"wp-image-688\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-21-1024x538.png 1024w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-21-300x158.png 300w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-21-768x403.png 768w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-21-1536x807.png 1536w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-21-816x429.png 816w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-21.png 1911w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>if we open the Job Planing Lines page we got the whole enchilada <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"538\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-22-1024x538.png\" alt=\"\" class=\"wp-image-689\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-22-1024x538.png 1024w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-22-300x158.png 300w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-22-768x403.png 768w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-22-1536x807.png 1536w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-22-816x429.png 816w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-22.png 1911w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>But, what happens if the item is an assembly or production item?<\/p>\n\n\n\n<p>well, we need to modify the previous code checking first in the replenishment system fir the item<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"780\" height=\"926\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-23.png\" alt=\"\" class=\"wp-image-690\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-23.png 780w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-23-253x300.png 253w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-23-768x912.png 768w\" sizes=\"auto, (max-width: 780px) 100vw, 780px\" \/><\/figure>\n\n\n\n<p>ok, the initial code for the Create Purchase Order action is focused on those lines where the &#8220;CreatePurchOrd&#8221; Boolean was set to true <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"685\" height=\"332\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-24.png\" alt=\"\" class=\"wp-image-691\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-24.png 685w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-24-300x145.png 300w\" sizes=\"auto, (max-width: 685px) 100vw, 685px\" \/><\/figure>\n\n\n\n<p>So, following that idea, I need to create a new action called, CreateAssyOrder<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"843\" height=\"1001\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-25.png\" alt=\"\" class=\"wp-image-692\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-25.png 843w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-25-253x300.png 253w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-25-768x912.png 768w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-25-816x969.png 816w\" sizes=\"auto, (max-width: 843px) 100vw, 843px\" \/><\/figure>\n\n\n\n<p> and another called CreateProdOrder<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"846\" height=\"1024\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-26-846x1024.png\" alt=\"\" class=\"wp-image-693\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-26-846x1024.png 846w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-26-248x300.png 248w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-26-768x929.png 768w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-26-816x988.png 816w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-26.png 856w\" sizes=\"auto, (max-width: 846px) 100vw, 846px\" \/><\/figure>\n\n\n\n<p>Not all companies use assemblies and less companies use production module, so we can leave booleans in the setup page to <em>show\/no show<\/em> those actions in the page<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"615\" height=\"329\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-27.png\" alt=\"\" class=\"wp-image-694\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-27.png 615w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-27-300x160.png 300w\" sizes=\"auto, (max-width: 615px) 100vw, 615px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"749\" height=\"244\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-29.png\" alt=\"\" class=\"wp-image-696\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-29.png 749w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-29-300x98.png 300w\" sizes=\"auto, (max-width: 749px) 100vw, 749px\" \/><\/figure>\n\n\n\n<p>And add some code to show\/hide those actions<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"512\" height=\"812\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-28.png\" alt=\"\" class=\"wp-image-695\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-28.png 512w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/03\/image-28-189x300.png 189w\" sizes=\"auto, (max-width: 512px) 100vw, 512px\" \/><\/figure>\n\n\n\n<p>Another thing was, how many items did we have in the warehouse? of you use the standard JPL, you dont have an easy access tothat info, so, why we dont create a new factbox page and link that page to the JPL?? <\/p>\n\n\n\n<p>The Project Manager Role center was modified to add some actions to the standard application<\/p>\n\n\n\n<h1 class=\"wp-block-heading\"><a>Job to Purchase Setup<\/a><\/h1>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"921\" height=\"92\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image.png\" alt=\"\" class=\"wp-image-701\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image.png 921w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-300x30.png 300w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-768x77.png 768w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-816x82.png 816w\" sizes=\"auto, (max-width: 921px) 100vw, 921px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"921\" height=\"414\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-1.png\" alt=\"\" class=\"wp-image-702\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-1.png 921w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-1-300x135.png 300w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-1-768x345.png 768w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-1-816x367.png 816w\" sizes=\"auto, (max-width: 921px) 100vw, 921px\" \/><\/figure>\n\n\n\n<p>Here you can select if you want to create purchase orders, quotes or send the lines to the requisition worksheet.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"220\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-2.png\" alt=\"\" class=\"wp-image-703\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-2.png 700w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-2-300x94.png 300w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/figure>\n\n\n\n<p>In the actual code, the only functional option is the create purchase order process, you need to add the other options code.<\/p>\n\n\n\n<p>For the purchase process, the vendor definition is important at some level, why? Because you need to define in the order planning or the requisition worksheet that value to allow Business Central to create the purchase orders.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"921\" height=\"440\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-3.png\" alt=\"\" class=\"wp-image-704\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-3.png 921w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-3-300x143.png 300w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-3-768x367.png 768w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-3-816x390.png 816w\" sizes=\"auto, (max-width: 921px) 100vw, 921px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"921\" height=\"100\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-4.png\" alt=\"\" class=\"wp-image-705\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-4.png 921w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-4-300x33.png 300w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-4-768x83.png 768w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-4-816x89.png 816w\" sizes=\"auto, (max-width: 921px) 100vw, 921px\" \/><\/figure>\n\n\n\n<p>In this extension, I added the Vendor No field and bring the item card information (or related Item Vendor table value). I added the data because you can be a project manager or planner and you don\u2019t need to be worried about which vendor you need to use. In the next image, you can see a few more fields, those fields can help to make different actions based on the item replenishment type (purchase, assembly, or production order) and dimensions for job\/project planning lines.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"921\" height=\"228\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-5.png\" alt=\"\" class=\"wp-image-706\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-5.png 921w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-5-300x74.png 300w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-5-768x190.png 768w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-5-816x202.png 816w\" sizes=\"auto, (max-width: 921px) 100vw, 921px\" \/><\/figure>\n\n\n\n<p>I also added some data to the rolecenter to get information about which and how many orders are created based in the job\/project demands.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"921\" height=\"483\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-6.png\" alt=\"\" class=\"wp-image-707\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-6.png 921w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-6-300x157.png 300w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-6-768x403.png 768w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-6-816x428.png 816w\" sizes=\"auto, (max-width: 921px) 100vw, 921px\" \/><\/figure>\n\n\n\n<p>Let\u2019s see how this extension works and put some ideas for the future.<\/p>\n\n\n\n<p>First, I defined a Default location, this can be used for those job\/project planning lines with location code undefined.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"921\" height=\"402\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-7.png\" alt=\"\" class=\"wp-image-708\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-7.png 921w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-7-300x131.png 300w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-7-768x335.png 768w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-7-816x356.png 816w\" sizes=\"auto, (max-width: 921px) 100vw, 921px\" \/><\/figure>\n\n\n\n<h1 class=\"wp-block-heading\"><a>Projects<\/a><\/h1>\n\n\n\n<p>Now we need to create a new project and start to add some task lines.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"921\" height=\"461\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-8.png\" alt=\"\" class=\"wp-image-709\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-8.png 921w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-8-300x150.png 300w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-8-768x384.png 768w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-8-816x408.png 816w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-8-400x200.png 400w\" sizes=\"auto, (max-width: 921px) 100vw, 921px\" \/><\/figure>\n\n\n\n<p>Now, lets go to the project planning lines.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"921\" height=\"170\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-9.png\" alt=\"\" class=\"wp-image-710\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-9.png 921w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-9-300x55.png 300w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-9-768x142.png 768w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-9-816x151.png 816w\" sizes=\"auto, (max-width: 921px) 100vw, 921px\" \/><\/figure>\n\n\n\n<p>Remember, we can modify our item to assign a vendor number.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"921\" height=\"396\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-10.png\" alt=\"\" class=\"wp-image-711\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-10.png 921w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-10-300x129.png 300w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-10-768x330.png 768w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-10-816x351.png 816w\" sizes=\"auto, (max-width: 921px) 100vw, 921px\" \/><\/figure>\n\n\n\n<p>Or we can add information in the purchase, related vendors.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"921\" height=\"287\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-11.png\" alt=\"\" class=\"wp-image-712\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-11.png 921w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-11-300x93.png 300w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-11-768x239.png 768w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-11-816x254.png 816w\" sizes=\"auto, (max-width: 921px) 100vw, 921px\" \/><\/figure>\n\n\n\n<p>For this example, I\u2019m going to add one vendor in the related table.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"921\" height=\"234\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-12.png\" alt=\"\" class=\"wp-image-713\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-12.png 921w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-12-300x76.png 300w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-12-768x195.png 768w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-12-816x207.png 816w\" sizes=\"auto, (max-width: 921px) 100vw, 921px\" \/><\/figure>\n\n\n\n<p>And now, we add the item to the project lines.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"921\" height=\"155\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-13.png\" alt=\"\" class=\"wp-image-714\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-13.png 921w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-13-300x50.png 300w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-13-768x129.png 768w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-13-816x137.png 816w\" sizes=\"auto, (max-width: 921px) 100vw, 921px\" \/><\/figure>\n\n\n\n<p>As you can see in the image, we pull the vendor no. and the create purchase order Boolean, if the item has dimension, we pull that information to these lines.<\/p>\n\n\n\n<p>If we run the <strong><em>standard<\/em><\/strong> <strong><em>process<\/em><\/strong>, we can run the order planning worksheet to calculate the job demand and create our purchase orders.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"921\" height=\"484\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-14.png\" alt=\"\" class=\"wp-image-715\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-14.png 921w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-14-300x158.png 300w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-14-768x404.png 768w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-14-816x429.png 816w\" sizes=\"auto, (max-width: 921px) 100vw, 921px\" \/><\/figure>\n\n\n\n<p>Now, if we look for the Supply For field.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"921\" height=\"478\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-15.png\" alt=\"\" class=\"wp-image-716\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-15.png 921w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-15-300x156.png 300w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-15-768x399.png 768w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-15-816x424.png 816w\" sizes=\"auto, (max-width: 921px) 100vw, 921px\" \/><\/figure>\n\n\n\n<p>And click the make orders action to create your next step.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"921\" height=\"248\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-16.png\" alt=\"\" class=\"wp-image-717\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-16.png 921w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-16-300x81.png 300w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-16-768x207.png 768w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-16-816x220.png 816w\" sizes=\"auto, (max-width: 921px) 100vw, 921px\" \/><\/figure>\n\n\n\n<p>In this page, you can send this information to a requisition worksheet or make your purchase orders.<\/p>\n\n\n\n<p>So, why we need a purchase from jobs extension?<\/p>\n\n\n\n<p>Well, I showed a standard inventory item but, what happens if we use a <strong>service<\/strong> <strong>item?<\/strong> remember, the order planning doesn\u2019t consider that kind of items, or G\/L Accounts.<\/p>\n\n\n\n<p>Another reason, you don\u2019t want to make so many steps and open a lot of pages and click in many actions, you just want to make a purchase order from your project planning lines.<\/p>\n\n\n\n<p>So, lets see how this works for items, service items and expenses (G\/L Accounts).<\/p>\n\n\n\n<h1 class=\"wp-block-heading\"><a>Project to Purchase<\/a><\/h1>\n\n\n\n<p>We create a new service item.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"921\" height=\"390\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-17.png\" alt=\"\" class=\"wp-image-718\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-17.png 921w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-17-300x127.png 300w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-17-768x325.png 768w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-17-816x346.png 816w\" sizes=\"auto, (max-width: 921px) 100vw, 921px\" \/><\/figure>\n\n\n\n<p>And then, we add the new item to the planning lines with a G\/L Account and texts.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"921\" height=\"288\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-18.png\" alt=\"\" class=\"wp-image-719\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-18.png 921w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-18-300x94.png 300w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-18-768x240.png 768w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-18-816x255.png 816w\" sizes=\"auto, (max-width: 921px) 100vw, 921px\" \/><\/figure>\n\n\n\n<p>Just for fun, lets run the order planning page and we get the same result as the other scenario.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"921\" height=\"484\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-19.png\" alt=\"\" class=\"wp-image-720\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-19.png 921w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-19-300x158.png 300w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-19-768x404.png 768w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-19-816x429.png 816w\" sizes=\"auto, (max-width: 921px) 100vw, 921px\" \/><\/figure>\n\n\n\n<p>Let\u2019s check with the Requisition Worksheet.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"921\" height=\"318\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-20.png\" alt=\"\" class=\"wp-image-721\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-20.png 921w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-20-300x104.png 300w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-20-768x265.png 768w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-20-816x282.png 816w\" sizes=\"auto, (max-width: 921px) 100vw, 921px\" \/><\/figure>\n\n\n\n<p>And we don\u2019t get any warning or line.<\/p>\n\n\n\n<p>So, lets go to the project planning lines and click in the Create Purchase Orders action.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"921\" height=\"335\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-21.png\" alt=\"\" class=\"wp-image-722\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-21.png 921w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-21-300x109.png 300w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-21-768x279.png 768w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-21-816x297.png 816w\" sizes=\"auto, (max-width: 921px) 100vw, 921px\" \/><\/figure>\n\n\n\n<p>What\u2019s happened now?<\/p>\n\n\n\n<p>Well, if you check the next code, first we need to check how many different vendors are defined in the planning lines and create a purchase order for each vendor.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"478\" height=\"1024\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-22-478x1024.png\" alt=\"\" class=\"wp-image-723\" style=\"width:478px;height:auto\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-22-478x1024.png 478w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-22-140x300.png 140w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-22.png 632w\" sizes=\"auto, (max-width: 478px) 100vw, 478px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"921\" height=\"205\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-23.png\" alt=\"\" class=\"wp-image-724\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-23.png 921w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-23-300x67.png 300w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-23-768x171.png 768w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-23-816x182.png 816w\" sizes=\"auto, (max-width: 921px) 100vw, 921px\" \/><\/figure>\n\n\n\n<p>Then we add the different lines for each order<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"449\" height=\"1024\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-24-449x1024.png\" alt=\"\" class=\"wp-image-725\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-24-449x1024.png 449w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-24-132x300.png 132w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-24.png 594w\" sizes=\"auto, (max-width: 449px) 100vw, 449px\" \/><\/figure>\n\n\n\n<p>If you catch the idea, I create a purchase line for G\/L Accounts, Items (service or inventory) and blank lines for notes,<\/p>\n\n\n\n<p>Let\u2019s see the orders.<\/p>\n\n\n\n<p>The first order was created with this information.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"921\" height=\"483\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-25.png\" alt=\"\" class=\"wp-image-726\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-25.png 921w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-25-300x157.png 300w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-25-768x403.png 768w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-25-816x428.png 816w\" sizes=\"auto, (max-width: 921px) 100vw, 921px\" \/><\/figure>\n\n\n\n<p>The second order was created for vendor 40000.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"921\" height=\"483\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-26.png\" alt=\"\" class=\"wp-image-727\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-26.png 921w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-26-300x157.png 300w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-26-768x403.png 768w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-26-816x428.png 816w\" sizes=\"auto, (max-width: 921px) 100vw, 921px\" \/><\/figure>\n\n\n\n<p>And the third order.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"921\" height=\"484\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-27.png\" alt=\"\" class=\"wp-image-728\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-27.png 921w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-27-300x158.png 300w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-27-768x404.png 768w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-27-816x429.png 816w\" sizes=\"auto, (max-width: 921px) 100vw, 921px\" \/><\/figure>\n\n\n\n<p>With the last columns, we can track which is the origin project, task, and planning line.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"921\" height=\"483\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-28.png\" alt=\"\" class=\"wp-image-729\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-28.png 921w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-28-300x157.png 300w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-28-768x403.png 768w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-28-816x428.png 816w\" sizes=\"auto, (max-width: 921px) 100vw, 921px\" \/><\/figure>\n\n\n\n<p>Also, please note that I don\u2019t put the Job\/Project No or Task no in the item purchase lines to avoid the automatic consumption.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"921\" height=\"483\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-29.png\" alt=\"\" class=\"wp-image-730\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-29.png 921w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-29-300x157.png 300w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-29-768x403.png 768w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-29-816x428.png 816w\" sizes=\"auto, (max-width: 921px) 100vw, 921px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"921\" height=\"483\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-30.png\" alt=\"\" class=\"wp-image-731\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-30.png 921w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-30-300x157.png 300w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-30-768x403.png 768w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-30-816x428.png 816w\" sizes=\"auto, (max-width: 921px) 100vw, 921px\" \/><\/figure>\n\n\n\n<p>But in the G\/L Account line I put the job\/project related information.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"921\" height=\"484\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-31.png\" alt=\"\" class=\"wp-image-732\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-31.png 921w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-31-300x158.png 300w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-31-768x404.png 768w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-31-816x429.png 816w\" sizes=\"auto, (max-width: 921px) 100vw, 921px\" \/><\/figure>\n\n\n\n<p>So, when you post this kind of stuff, the expense will be applied against the project instantly.<\/p>\n\n\n\n<h1 class=\"wp-block-heading\"><a>Ideas and future scenarios<\/a><\/h1>\n\n\n\n<p>Now, what about the assembly or productions items?<\/p>\n\n\n\n<p>Well, we need to detect that kind of items when you select your item s in the planning lines, so I added two Boolean fields to mark them with a subscription event.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"921\" height=\"704\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-32.png\" alt=\"\" class=\"wp-image-733\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-32.png 921w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-32-300x229.png 300w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-32-768x587.png 768w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-32-816x624.png 816w\" sizes=\"auto, (max-width: 921px) 100vw, 921px\" \/><\/figure>\n\n\n\n<p>We can see these fields in the planning lines.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"921\" height=\"288\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-33.png\" alt=\"\" class=\"wp-image-734\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-33.png 921w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-33-300x94.png 300w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-33-768x240.png 768w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-33-816x255.png 816w\" sizes=\"auto, (max-width: 921px) 100vw, 921px\" \/><\/figure>\n\n\n\n<p>And with this, we can call assembly or production orders.<\/p>\n\n\n\n<p>For the assembly items, the next code is designed to create the assembly orders filling some special fields to keep control about the source project for the assembly order.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"811\" height=\"1024\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-34-811x1024.png\" alt=\"\" class=\"wp-image-735\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-34-811x1024.png 811w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-34-238x300.png 238w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-34-768x970.png 768w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-34-816x1030.png 816w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-34.png 921w\" sizes=\"auto, (max-width: 811px) 100vw, 811px\" \/><\/figure>\n\n\n\n<p>For the assembly items, the next code is designed to create the Production orders filling some special fields to keep control about the source project for the Production order.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"795\" height=\"1024\" src=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-35-795x1024.png\" alt=\"\" class=\"wp-image-736\" srcset=\"https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-35-795x1024.png 795w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-35-233x300.png 233w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-35-768x990.png 768w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-35-816x1052.png 816w, https:\/\/fbedolla.com\/wp-content\/uploads\/2024\/04\/image-35.png 921w\" sizes=\"auto, (max-width: 795px) 100vw, 795px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>This is a long post because I want to cover the requirement history and how I try to cover the lack of functionality. I\u00b4m going to include some code and the github link. In one of our implementation projects, we are using Jobs\/Projects (this blog was written before BC 2024 Wave 1 release) and the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4,8,7],"tags":[],"class_list":["post-660","post","type-post","status-publish","format-standard","hentry","category-coding","category-extensions","category-ideas"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/fbedolla.com\/index.php\/wp-json\/wp\/v2\/posts\/660","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fbedolla.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fbedolla.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fbedolla.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fbedolla.com\/index.php\/wp-json\/wp\/v2\/comments?post=660"}],"version-history":[{"count":13,"href":"https:\/\/fbedolla.com\/index.php\/wp-json\/wp\/v2\/posts\/660\/revisions"}],"predecessor-version":[{"id":744,"href":"https:\/\/fbedolla.com\/index.php\/wp-json\/wp\/v2\/posts\/660\/revisions\/744"}],"wp:attachment":[{"href":"https:\/\/fbedolla.com\/index.php\/wp-json\/wp\/v2\/media?parent=660"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fbedolla.com\/index.php\/wp-json\/wp\/v2\/categories?post=660"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fbedolla.com\/index.php\/wp-json\/wp\/v2\/tags?post=660"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}