Forum Replies Created

Page 6 of 11
  • Mike Carey

    Administrator
    08/05/2020 at 1:32 PM in reply to: HOW IS WO/MO LINKED TO PO DETAIL?

    Hi Nate- this topic was just answered in the Screen Script forum.. Here is the post. Basically, it is linked via the Purchase_WO table.. Hope this helps !!

    https://quegroup.org/f_screen_scriptor/9135055#9137406

  • Mike Carey

    Administrator
    07/31/2020 at 10:24 AM in reply to: PULLING PO DETAIL SI_NUMBER LINKED AND NOT LINKED

    The Purchase_wo table shows you how much is linked- look at the first 4 columns in that table and you will see the linkage to wo bom and po detail along with the quantity ordered and received. link this table to the wo_bom, and wo_bom to wo_operation to get the si_number. Both of the SQL examples above show that linkage.

  • Mike Carey

    Administrator
    07/31/2020 at 7:57 AM in reply to: TIME DATE STAMP

    Jami- can you elaborate more on what you are looking for on this ? is it a report of clock in and outs over a time period ?

  • Mike Carey

    Administrator
    07/31/2020 at 7:54 AM in reply to: PULLING PO DETAIL SI_NUMBER LINKED AND NOT LINKED

    Mahmoud- the Purchase_WO tables connects the PO to a WO BOM item . To get the SI number for that BOM item, you need to link the WO_BOM table to the wo_operation table. THis SQL does that but removes your “other WO”, which i am not sure what you are expecting (see below)

    Select PD.ENTRY_DATE, PH.PO_NUMBER, PH.VENDOR_NAME, P.PN, P.DESCRIPTION, PD.QTY_ORDERED, PD.QTY_REC, PD.LAST_DELIVERY_DATE, PD.UNIT_COST, SU.EMPLOYEE_CODE,

    PD.NOTES, PD.PNM_AUTO_KEY, WO.SI_NUMBER “WO#”

    FROM PARTS_MASTER P, PO_DETAIL PD, PO_HEADER PH, WO_OPERATION WO, SYS_USERS SU, PURCHASE_WO PW, WO_BOM WOB

    WHERE PD.POH_AUTO_KEY = PH.POH_AUTO_KEY

    AND PD.PNM_AUTO_KEY = P.PNM_AUTO_KEY

    AND PD.SYSUR_AUTO_KEY = SU.SYSUR_AUTO_KEY

    AND PD.POD_AUTO_KEY = PW.POD_AUTO_KEY (+)

    and pw.wob_auto_key = wob.wob_auto_key

    and wo.woo_auto_key = wob.woo_auto_key

    Order by ENTRY_DATE asc

    But I am not sure what you mean in your first posts above, to show the linked and unlinked SI number for a PO. What are you expecting to see for the unlinked SI number ?

  • Mike Carey

    Administrator
    07/28/2020 at 1:40 PM in reply to: EXTERNAL WORK ORDER TEARDOWN

    Ian- that is to bad the shipper isn’t actually created, i wonder if that is a bug ? We don’t have that module, so i can’t help with that at all. But if that works out, then after doing the shipping, you can just issue all the parts that were reserved and then you can close the WO.

    Have you looked at using piece parts to make this work ? each part would be received as a piece part, and then returned to the customer at the end of the job.

  • Mike Carey

    Administrator
    07/28/2020 at 9:28 AM in reply to: TECHNICAL DATA

    Vicky- are you looking to have the manual page(s) print with the travelers or to have them lookup-able via part number ?

  • Mike Carey

    Administrator
    07/28/2020 at 9:26 AM in reply to: EXTERNAL WORK ORDER TEARDOWN

    For an external work order, you could add the items to BOM as Replace. Do the turn in to create a stock line. Then process the disposition and reserve the stock line that was turned in. Then you can do the Parts Mgmt shipping to send it to customer.

    We don’t do this, but I tested on training system and it looks like it would work. We currently use a manual, outside of Quantum, process to do this for our “Tear down and tag” work orders, but I am looking at ways to do inside of Quantum and have the physical tag printed by Quantum instead of Excel and Word merge. We don’t use the shipping module, so it is a little easier.

  • Mike Carey

    Administrator
    07/17/2020 at 2:47 PM in reply to: WO TRAVELER PRINTING BLANK PAGE

    @Nadim- yes- brilliant investigation and explanation. I have worked on some forms designer reports that use the hide display of detail lines that are truly hard to figure out. It works, but very hard to debug and understand sometimes.

    @Craig- good question as to why your forms dated older- worth checking into your upgrade processes for sure.

  • Mike Carey

    Administrator
    07/17/2020 at 2:41 PM in reply to: TECHNICAL DATA

    I am very interested in this as well. I have developed a proof of concept how this can work, but have not had time yet to work it to completion.

  • Mike Carey

    Administrator
    07/16/2020 at 7:29 AM in reply to: WO TRAVELER PRINTING BLANK PAGE

    Craig- we are on an older version than you (10.9.38) and my version of STD Work Order Traveler A4 is dated Nov 13, 2013. Not sure why yours is older and also has a “~” at the end of the name. I would look into why that is the case.

    Also- your screen shots show printing to PDF- does it print the extra page when printing to a printer ? (wondering if print to PDF page sizes are not the same as the document).

  • Mike Carey

    Administrator
    07/15/2020 at 11:24 AM in reply to: WO TRAVELER PRINTING BLANK PAGE

    Craig- not able to reproduce this with the STD A4 traveler and using your task selection on 10.9.38.

    Can you send a screen shot of the print parameters window? You are saying that this is happening with the STD A4 form or your own customized form ?

  • Mike Carey

    Administrator
    07/13/2020 at 4:25 PM in reply to: WO TRAVELER PRINTING BLANK PAGE

    Craig.. If you want to email me your rtm file, I can take a look at it for you.

  • Mike Carey

    Administrator
    07/07/2020 at 9:34 AM in reply to: AUTOMATING N/A IN SERIAL FIELD OF AUTHORIZED RELEASE CERT.

    Dana- this code is entered on the OnGetText procedure in the Calc section of the Forms Designer for the varSerialNumber field. This form has multiple sub reports, and the stock items are in the SubReport Stock area. You select these on the bottom of the window.

  • Mike Carey

    Administrator
    07/06/2020 at 10:38 AM in reply to: AUTOMATING N/A IN SERIAL FIELD OF AUTHORIZED RELEASE CERT.

    Dana- you can do this with Forms Designer. Set the serial number variable with this code:

    begin

    if STOCK[‘SERIAL_NUMBER’]<>” then

    Text := STOCK[‘SERIAL_NUMBER’]

    else

    Text:=’N/A’;

    end;

  • Mike Carey

    Administrator
    06/22/2020 at 10:11 AM in reply to: DISPLAY SQL ERROR MESSAGE INSTEAD OF BLANK REPORT

    Hi John- yes, this is what i have in mind. It is my “roll your own” event manager.

  • Mike Carey

    Administrator
    06/19/2020 at 7:55 AM in reply to: DISPLAY SQL ERROR MESSAGE INSTEAD OF BLANK REPORT

    Thank you Nadim and Thiago for your help- we don’t have Event Mgr, but I can look for errors in the that table other ways automatically and notify me via email.

    I will convert my command SQL into a package that has an exception handler to write to this table and see how that works… Maybe the exception handler could return an error flag in the cursor that the Crystal could look for and display on the report, so that the user knows what happened.

  • Mike Carey

    Administrator
    06/18/2020 at 7:35 AM in reply to: DISPLAY SQL ERROR MESSAGE INSTEAD OF BLANK REPORT

    that table only contains errors from being out of licenses and some dataversion unique key errors.. maybe because we are on 10.9.38 ?

  • Mike Carey

    Administrator
    06/17/2020 at 8:11 AM in reply to: DISPLAY SQL ERROR MESSAGE INSTEAD OF BLANK REPORT

    i don’t see a SYS_USER_ERROR table- is it in a different schema ?

  • Mike Carey

    Administrator
    06/11/2020 at 7:43 AM in reply to: WHAT TABLE DOES QTY ISSUED COME FROM IN SL IN QUANTUM

    Nadim makes an excellent point about using views. Also, view can change with upgrades / release changes, which could impact your report. I like to take the code from a view or package and extract the components from it that I need to make the query for my report. This way, I am protected from changes by CC, and also have a better performing query.

  • Mike Carey

    Administrator
    06/09/2020 at 3:04 PM in reply to: MULTIPLE PART #’S PER WO

    Craig- check the quantity on the WO Header ? You can receive up to that quantity.

  • Mike Carey

    Administrator
    06/09/2020 at 10:25 AM in reply to: WHAT TABLE DOES QTY ISSUED COME FROM IN SL IN QUANTUM

    Lee- did Nadim’s answer on this post (https://quegroup.org/f_crystal/9024099#9024809)answer your question ?

  • Mike Carey

    Administrator
    06/09/2020 at 9:58 AM in reply to: AVERAGE DAYS TO PAY REPORT

    Krista- i wrote 2 reports do this. See attached. the v3 one looks at payments made in a date range in the past, and the v2 one is the average of all payments in between today and that date range in the past.

  • Mike Carey

    Administrator
    05/22/2020 at 1:22 PM in reply to: UI ENHANCEMENT

    Thank you for the update on this John. It indeed is a big project to make this change. I would also like to see the inconsistencies between module windows, how menu items are different, ordered differently and different names for same function (Find, Stock Issue for example) cleaned up as well.

  • Mike Carey

    Administrator
    05/12/2020 at 2:16 PM in reply to: SHELF LIFE LIMIT REPORT

    We don’t have this in production yet, but this is the SQL that our test report is using in Crystal Reports (ExpDays is a user input parameter at runtime):

    SELECT stm.PN, stm.DESCRIPTION, (select loc.location_code from qctl.location loc where stm.LOC_AUTO_KEY = loc.loc_auto_key) as “Location”,

    stm.QTY_OH, stm.QTY_AVAILABLE, stm.REC_DATE, stm.EXP_DATE, stm.STOCK_LINE, stm.CTRL_NUMBER, stm.CTRL_ID,

    stm.RECEIVER_NUMBER , to_char(sysdate, ‘MM/dd/YYYY’) as DateFrom, to_char((sysdate +42), ‘MM/dd/YYYY’) as DateTo

    FROM stock stm

    WHERE stm.EXP_DATE IS NOT NULL

    and stm.QTY_AVAILABLE != 0

    and stm.EXP_DATE <= sysdate +{?ExpDays} ORDER BY stm.exp_date

  • Mike Carey

    Administrator
    04/17/2020 at 7:35 AM in reply to: CLOSED PO DATE

    Yes, great info Nadim, thank you. Qualifying the tables with QCTL would mean that you could not run that report on the TRAIN scheme without changing the SQL, right ?

    I wonder why CC doesn’t run this function to rebuild the synonyms when they upgrade.

    I ran that command (sqlplus crystal/report@maxqprod) from command prompt to start SQLPlus and then ran the statement exec adm_pkg.bind_to_quantum_schema(‘QCTL’); to rebuild the synonyms.

    So i always use QCTL when i am working in Crystal Reports (or TRAIN if accessing the training database where i can manipulate test data). Is there an advantage to using CRYSTAL instead? Is there a similar schema to access for the TRAIN schema ?

  • Mike Carey

    Administrator
    04/16/2020 at 8:51 AM in reply to: CLOSED PO DATE

    John- i don’t know why that error appears.. i copied your code into CR and it ran fine for me. double check the spelling on each table in the FROM on your select.

    Also- you have

    roh.rst_auto_key = ‘2’ and

    rst.status_type = ‘Closed’

    You don’t need both- the status_type=’Closed” is the better way than the rst_auto_key, as this can change and then your report won’t work. In the example I posted above, the pst_auto_key was commented out with —

  • Mike Carey

    Administrator
    04/15/2020 at 11:57 AM in reply to: CLOSED PO DATE

    Hi John- just to further improve this- instead of hard-coding the PST auto_key for the closed status (this can possibly change or new types of closed status codes can be created), I would suggest changing the where clause like this: (note that i posted my example with PST_auto_key=7, instead of 1 from your example)

    SELECT max(psh.entry_datetime), poh.po_number, poh.poh_udf_001, pst.pst_auto_key, pst.status_code

    FROM po_header poh, po_status pst, po_status_history psh

    WHERE

    poh.poh_auto_key(+) = psh.poh_auto_key and

    poh.pst_auto_key = pst.pst_auto_key and

    —poh.pst_auto_key = 7

    pst.status_type = ‘Closed’

    group by poh.po_number, poh.poh_udf_001, pst.pst_auto_key, pst.status_code

    order by po_number

    In our case, we added an additional status of Cancelled, which is also a closed status. Plus we deleted and add status, so that our current Closed status has a pst_auto_key = 7

  • Mike Carey

    Administrator
    04/15/2020 at 10:00 AM in reply to: JOINING STOCK TO WO_OPERATION

    If you want to reproduce the data that the stock search / browse shows, that query is in FUNCTION STOCK_BROWSE, in the QC_IC_PKG. You can grab the SQL out of the dynamic SQL, edit and adjust it to replace the parameter variables with your own values. Let me know if you need help doing that.

  • Mike Carey

    Administrator
    04/15/2020 at 9:39 AM in reply to: CLOSED PO DATE

    John- you were correct to think about using MAX. This is a grouping function, so you need a group by in the select, like this.

    SELECT max(psh.entry_datetime), poh.po_number, poh.poh_udf_001, pst.pst_auto_key, pst.status_code

    FROM po_header poh, po_status pst, po_status_history psh

    WHERE

    poh.poh_auto_key(+) = psh.poh_auto_key and

    poh.pst_auto_key = pst.pst_auto_key and

    poh.pst_auto_key = 7

    group by poh.po_number, poh.poh_udf_001, pst.pst_auto_key, pst.status_code

    order by po_number

    Hope this helps !

  • Mike Carey

    Administrator
    04/06/2020 at 8:31 AM in reply to: INSERT SIGNATURE INTO A REPORT

    Pietro- i wanted to print the signature of a user selected from a drop down list. I can get the sysur info for currently logged in user, but sometimes we wanted to print this for someone else who is not in the office for example.

    This is a crystal report Sales Order C of C that i created and it wanted to use the CRI_auto_key to query the Crystal reports security to see who is allowed to run the report and only allow those signatures to be applied. The thinking was that anybody on the list could print it with another signature from the list.

    But we decided that printing the signature on a C of C was not correct, only the name can be filled in. This relates to my other forum topic of how to get the CRI_auto_key from within the report.

  • Mike Carey

    Administrator
    04/06/2020 at 8:29 AM in reply to: ACCESS A REPORTS CRI_AUTO_KEY

    Thank you Nadim- that works. Having the report name hard coded to match the name in Quantum isn’t ideal, but this will work.

  • Mike Carey

    Administrator
    04/04/2020 at 1:20 PM in reply to: INSERT SIGNATURE INTO A REPORT

    Nadim- yes i meant CRI not RPI auto_key…

  • Mike Carey

    Administrator
    04/03/2020 at 3:48 PM in reply to: INSERT SIGNATURE INTO A REPORT

    Thank you Nadim.. this worked and i was able to insert the signature image for the user who runs the report.

    Do you know how to get the rpi_auto_key for the current report inside of Crystal Reports ?

  • Mike Carey

    Administrator
    03/31/2020 at 6:57 AM in reply to: ACCESS A REPORTS CRI_AUTO_KEY

    Pietro. Thank you, I have the query to grab the user info but don’t know how to reference the current cri_auto_key for the report being run.

  • Mike Carey

    Administrator
    03/27/2020 at 1:39 PM in reply to: INSERT SIGNATURE INTO A REPORT

    Yes, that is a good idea. I was hoping to grab them from the database, like in Forms Designer forms…

  • Mike Carey

    Administrator
    03/24/2020 at 8:09 AM in reply to: DARK MODE ?

    Pietro – on 10.9.38, there are no color schemes that are actually dark mode. There are still large areas of bright white. Maybe in new versions there are better options ?

  • Mike Carey

    Administrator
    03/19/2020 at 10:46 AM in reply to: REGION SEEMS TO BE IGNORING PLACEMENT

    Hi Rob- take a look at the “Shift Relative to” when you right click the item in the design window- this tells how to position and “push down” sections as other sections grow. I would look at all the memos, regions etc and see what the shift relative to settings are.

  • Mike Carey

    Administrator
    03/17/2020 at 12:56 PM in reply to: SET LARGE GROUP TO INACTIVE

    If you have the PN list in the excel, you could query the parts_master for all PN matching those and having the max pnm_auto_key (the most recently added). That should give you the pnm_auto_keys to archive, after you do a select and review them, and maybe also select and review any stock lines for that list of pnm_auto_key.

    The “where PN in(xxx,xxx,xxx,xxx)” and “where pnm_auto_key in(xxx,xxx,xxx)” is your friend here !

  • Mike Carey

    Administrator
    03/06/2020 at 7:40 AM in reply to: HELP JOINING TABLES

    That’s correct- but that only will work for WO that are currently open and Main component is reserved (received and NOT on repair order). The view will work for completed WO, open WO and open WO with Main Component out on repair.

  • Mike Carey

    Administrator
    03/05/2020 at 3:36 PM in reply to: HELP JOINING TABLES

    select * from view_spb_wo_maincomponent

    where woo_auto_key=379

    will return lots of info, including serial_number, from a WO using it’s woo_auto_key. If you look at the code behind the view, you will learn how it works and how the tables are connected.

  • Mike Carey

    Administrator
    03/05/2020 at 3:20 PM in reply to: ERROR MESSAGE WHEN TRYING TO CREATE A W/O BILLING

    From the Help file search for “unallowable”: This is in the Global, GL Utilities menu

    Toggle Unallowable

    Toggles the current value of the “Unallowable” true/false flag. The “Unallowable” flag was implemented as a part of custom programming. When the “Unallowable” flag is true, an error will occur when creating a quote or billing for the work order. Access to this option is controlled with security rights.

  • Mike Carey

    Administrator
    03/05/2020 at 1:43 PM in reply to: STOCK TRACKING IN AUDIT_TRAIL

    Srini- your query is from the audit_trail table, which is where Quantum stores changes made to fields. Which fields are audited and stored here are completely up the developers at CC. They can add and remove fields from here with different versions of the software. I suspect that you upgraded from a earlier release of Quantum on Jan 13 of 2017. The version you upgraded FROM was auditing changes for more fields than your current version of Quantum is doing. Your current version only audits the mkt_price and unit_price field changes.

    What Nadim is referring to with the “Activate Stock Line in Accounting Audit Trail” setting is that having this turned on, will allow you do the search “stock audit” function. This is one of the searches on the drop down arrow next to the Parts Management icon. Having the option checked tells Quantum to populate the data used in this search. You should be able to run that search with no parameters and see all stock changes that impacted the GL.

    Hope this helps !

  • Mike Carey

    Administrator
    03/03/2020 at 7:26 AM in reply to: SET A FIELD TO ITALICS VIA CODE

    Perfect- thank you Nadim !!

  • Mike Carey

    Administrator
    03/02/2020 at 11:43 AM in reply to: MODIFED TO PN IS MISSING

    Jake- try removing the theme for that user and see if that field shows up. Or perhaps you have a theme / screen scripter set up to display that field on the other schema, but not on this. We don’t have any screen scripter /theme and it does not show on WO add, so maybe you have added that field to the WO Add panel with screen scripter ?

  • Mike Carey

    Administrator
    03/02/2020 at 10:59 AM in reply to: MODIFED TO PN IS MISSING

    On our system (10.9.38), the modify pn is not displayed when adding a WO either. To set this, we edit the header after creating the WO. Do all of your schema’s work this way as well ? Are they different versions of Quantum maybe ?

  • Mike Carey

    Administrator
    02/28/2020 at 1:20 PM in reply to: PROBLEM WITH BOM PART RESERVATION PROCESS

    Nate- I believe that Clinton is referring to the ShowMessage command in a Forms Designer form. This creates a pop up with text that you can populate. The popup has an Okay button that user must click to proceed. There is another forms designer popup that

    Example

    if someflagisset = ” then ShowMessage(‘Check for xxx document’);

  • Mike Carey

    Administrator
    02/27/2020 at 9:23 AM in reply to: RO ORDER REPORT THAT SHOWS SO AND WO NUMBERS

    Lee- That works for BOM repairs. For WO Main Component repairs, you join the WOO_AUTO_KEY in RO_Detail to the WO_Operations to get the SI_Number.

  • Mike Carey

    Administrator
    02/25/2020 at 1:07 PM in reply to: QUANTUM – STANDARD CRYSTAL REPORTS (CREDENTIALS)

    Brandon– the service is maxqprod, userid is QCTL (for production), and password is quantum

    Hope that helps !

  • Mike Carey

    Administrator
    02/21/2020 at 6:35 AM in reply to: SDF EDIT

    Randy- the SDF columms/fields are not changeable in the Quantum interface. Only the UDF fields can be modified. The SDF fields are for another purpose as Pietro points out (Screen Scripter module, which is not generally available).

  • Mike Carey

    Administrator
    02/19/2020 at 7:43 AM in reply to: SHELF LIFE REPORT

    I am pretty certain that this is the report..

Page 6 of 11