{"id":24833,"date":"2022-04-29T07:10:40","date_gmt":"2022-04-29T07:10:40","guid":{"rendered":"http:\/\/www.greytrix.com\/blogs\/sagex3\/?p=24833"},"modified":"2022-05-02T04:17:45","modified_gmt":"2022-05-02T04:17:45","slug":"dynamic-departure-time-change-based-on-arrival-time-selection","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/sagex3\/2022\/04\/29\/dynamic-departure-time-change-based-on-arrival-time-selection\/","title":{"rendered":"Dynamic Departure time change based on Arrival time selection"},"content":{"rendered":"\n<p>In <a href=\"https:\/\/www.greytrix.com\/product\/erp-development\/sage-x3\" target=\"_blank\" data-type=\"URL\" data-id=\"https:\/\/www.greytrix.com\/product\/erp-development\/sage-x3\" rel=\"noreferrer noopener\">Sage X3<\/a>, one of the client\u2019s requirement was to have a dynamic departure time field update based on Arrival time field data under Management tab of Sales invoice module. The field takes value in the form of HH:MM. Below is the<br>Customization done for achieving the same.<\/p>\n\n\n\n<p><strong>New Stuff:<\/strong> <a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2022\/03\/30\/validation-of-supplier-invoice-no-and-date-in-grn\/\" target=\"_blank\" data-type=\"URL\" data-id=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2022\/03\/30\/validation-of-supplier-invoice-no-and-date-in-grn\/\" rel=\"noreferrer noopener\">Validation of Supplier Invoice No and Date in GRN<\/a><\/p>\n\n\n\n<p>First to navigate to the screens that\u2019ll be used for the below steps:<\/p>\n\n\n\n<p>Sales Invoice: All &gt; Sales &gt; Invoices &gt; Invoices (GESSIH)<br>Window Management: All &gt; Development &gt; Script dictionary &gt; Windows<br>Scripts: All &gt; Development &gt; Script dictionary &gt; Scripts<\/p>\n\n\n\n<p>Refer the screenshots for reference:<\/p>\n\n\n\n<p>Step 1: Head over to Sales invoice &gt; Management tab and locate the fields. The initial default values in these fields are set to current system time.<\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2022\/04\/Fields-in-SI-screen-before-customization.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; \nalign: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2022\/04\/Fields-in-SI-screen-before-customization.jpg\" alt=\"Fields in SI screen before customization.jpg\"><\/a><\/center>\n<font size=\"2\"><center>Fields in SI screen before customization.jpg<\/center><\/font>\n\n\n\n\n\n<p>Step 2: For the customization we require a couple of Action events to be assigned to Invoice Preparation time (Arrival time) and Invoice Preparation date (Arrival date) fields. The purpose of these events is to trigger our customization on Departure time and Departure date fields upon changes made.<\/p>\n\n\n\n<p>Step 3: The customization logic performs 3 parts which are as follows:<br>1) If a new Invoice is being created through New button press then the Arrival time field and Arrival date field will default to Current system time and date and the Departure time field will default to +20mins (as per requirement) from Arrival time field and Departure date field will default to Arrival date.<\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2022\/04\/1st-Customization.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; \nalign: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2022\/04\/1st-Customization.jpg\" alt=\"1st Customization\"><\/a><\/center>\n<font size=\"2\"><center>1st Customization<\/center><\/font>\n\n\n\n<p>2) After defaulting if the user changes the Arrival time\/date fields then the respective changes will reflect on Departure time\/date fields.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2022\/04\/2nd-Customization.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; \nalign: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2022\/04\/2nd-Customization.jpg\" alt=\"2nd Customization\"><\/a><\/center>\n<font size=\"2\"><center>2nd Customization<\/center><\/font>\n\n\n\n<p>3) If the Invoice creation takes time, then upon creation the Arrival time field will reflect the Creation time and Departure time field will reflect change as per Arrival time.<\/p>\n\n\n\n<p><\/p>\n\n\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2022\/04\/3rd-Customization.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; \nalign: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2022\/04\/3rd-Customization.jpg\" alt=\"3rd Customization\"><\/a><\/center>\n<font size=\"2\"><center>3rd Customization<\/center><\/font>\n\n\n\n<p>Step 4: The key part is the conversion from Date-time data to CLBFile format (HH:MM format) and vice-versa to get the required changes made to the Departure time field. For this GDATETIME$, DATE$, VAL(expression) and FORMAT$ Sage X3\u2019s keywords for achieving this.<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-text-color has-link-color wp-elements-c5e1638fe0db781fd132d689b469078c\" style=\"color:#c71d22\"><strong>About Us<\/strong><\/h2>\n\n\n\n<p>Greytrix \u2013 a globally recognized and one of the oldest Sage Development Partners is a one-stop solution provider for Sage ERP and Sage CRM organizational needs. Being acknowledged and rewarded for multi-man years of experience and expertise, we bring complete end-to-end assistance for your technical consultations, product customizations, data migration, system integrations, third-party add-on development, and implementation competence.<\/p>\n\n\n\n<p id=\"block-28013e99-0882-44c6-b705-7b16c85053b2\">Greytrix&nbsp;has some unique integration solutions developed for&nbsp;<a href=\"https:\/\/www.greytrix.com\/sage-crm\/\">Sage CRM<\/a>&nbsp;with Sage ERPs&nbsp;namely&nbsp;<a href=\"https:\/\/www.greytrix.com\/sage-x3-erp\/\">Sage X3<\/a>,&nbsp;<a href=\"https:\/\/www.greytrix.com\/sage-intacct\/\">Sage Intacct<\/a>,&nbsp;<a href=\"https:\/\/www.greytrix.com\/sage-100-erp\/\">Sage 100<\/a>,&nbsp;<a href=\"https:\/\/www.greytrix.com\/sage-500-erp\/\">Sage 500<\/a>,&nbsp;and&nbsp;<a href=\"https:\/\/www.greytrix.com\/sage-300-erp\/\">Sage 300<\/a>. We also offer best-in-class&nbsp;Sage ERP&nbsp;and&nbsp;Sage CRM&nbsp;customization and development services&nbsp;to&nbsp;Business&nbsp;Partners,&nbsp;End&nbsp;Users, and Sage PSG worldwide. Greytrix&nbsp;helps in&nbsp;the migration of Sage CRM from&nbsp;Salesforce | ACT! | SalesLogix | Goldmine | Sugar CRM | Maximizer. Our Sage CRM Product Suite includes&nbsp;addons like&nbsp;&nbsp;Greytrix Business Manager,&nbsp;Sage CRM Project Manager,&nbsp;Sage CRM Resource Planner,&nbsp;Sage CRM Contract Manager,&nbsp;Sage CRM Event Manager,&nbsp;Sage CRM Budget Planner,&nbsp;Gmail Integration,&nbsp;Sage CRM Mobile Service Signature,&nbsp;Sage CRM CTI Framework.<\/p>\n\n\n\n<p id=\"block-4bc42a09-fb13-4598-8137-ce5f7b91ce28\">Greytrix is a recognized&nbsp;Sage Champion Partner&nbsp;for GUMU&#x2122; Sage X3 \u2013 Sage CRM integration listed on&nbsp;<a href=\"https:\/\/www.sage.com\/marketplace\/asb_ListingDetail?listingId=a1h24000007PC3aAAG\" target=\"_blank\" rel=\"noreferrer noopener\">Sage Marketplace<\/a>&nbsp;and Sage CRM \u2013 Sage Intacct integration listed on&nbsp;<a href=\"https:\/\/marketplace.intacct.com\/MPListing?lid=a2D0H000007kiHyUAI\" target=\"_blank\" rel=\"noreferrer noopener\">Sage Intacct Marketplace<\/a>. The&nbsp;<a href=\"https:\/\/www.greytrix.com\/gumu\/\" target=\"_blank\" rel=\"noreferrer noopener\">GUMU&#x2122; Cloud framework<\/a>&nbsp;by Greytrix forms the backbone of cloud integrations that are managed in real-time for the processing and execution of application programs at the click of a button.<\/p>\n\n\n\n<p id=\"block-76376301-1c3e-4250-8a09-727595a606f0\">For more information on our integration solutions, please contact us at&nbsp;<a href=\"mailto:sage@greytrix.com\">sage@greytrix.com<\/a>. We will be glad to assist you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In Sage X3, one of the client\u2019s requirement was to have a dynamic departure time field update based on Arrival time field data under Management tab of Sales invoice module. The field takes value in the form of HH:MM. Below is theCustomization done for achieving the same. New Stuff: Validation of Supplier Invoice No and\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2022\/04\/29\/dynamic-departure-time-change-based-on-arrival-time-selection\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,13],"tags":[3586,3585,3587,3578,901,2538],"class_list":["post-24833","post","type-post","status-publish","format-standard","hentry","category-sage-erp-x3","category-integration","tag-arrival-time","tag-date-time-2","tag-departure-time","tag-dynamic-change","tag-global-variable","tag-sales-invoice"],"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/24833","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/comments?post=24833"}],"version-history":[{"count":13,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/24833\/revisions"}],"predecessor-version":[{"id":24876,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/24833\/revisions\/24876"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/media?parent=24833"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/categories?post=24833"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/tags?post=24833"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}