Sage 100

 View Only
Expand all | Collapse all

SO_InvoiceDetail UDF from SalesOrderDetail

  • 1.  SO_InvoiceDetail UDF from SalesOrderDetail

    Posted 12-04-2023 16:22
      |   view attached

    Sage 100 Premium 2022.2, UDF in SO_SalesOrderDetail (from CI_Item) is coming through as 0 in SO_InvoiceDetail. despite settings in UDF Maintenance (image attached).

    Any ideas on why?



    ------------------------------
    Phil McIntosh
    President
    Friendly Systems, Inc.
    ------------------------------


  • 2.  RE: SO_InvoiceDetail UDF from SalesOrderDetail

    Posted 12-04-2023 17:00

    DataType listed as numeric on all the UDF Attribute screens?



    ------------------------------
    Lee Graham
    Friendly Systems, Inc.
    ------------------------------



  • 3.  RE: SO_InvoiceDetail UDF from SalesOrderDetail

    Posted 12-04-2023 18:43

    yes



    ------------------------------
    Phil McIntosh
    President
    Friendly Systems, Inc.
    ------------------------------



  • 4.  RE: SO_InvoiceDetail UDF from SalesOrderDetail

    Posted 12-04-2023 18:56

    2022 Standard works. 

    (For Premium, don't use a restrictive numeric mask, since that affects the size of the numeric field in SQL... Even though Sage doesn't complain, it can cause serious problems).



    ------------------------------
    Kevin Moyes
    Technical Systems Analyst
    Munjal White Consulting Co.
    Toronto ON
    ------------------------------



  • 5.  RE: SO_InvoiceDetail UDF from SalesOrderDetail

    Posted 12-04-2023 19:49

    @Kevin Moyes  How would one remove the mask after the fact?  it is grayed out now...



    ------------------------------
    Phil McIntosh
    President
    Friendly Systems, Inc.
    ------------------------------



  • 6.  RE: SO_InvoiceDetail UDF from SalesOrderDetail

    Posted 12-04-2023 20:29

    Try to remove the data flow (tab 3), save / update... then make the Mask change, and add back the data flow.



    ------------------------------
    Kevin Moyes
    Technical Systems Analyst
    Munjal White Consulting Co.
    Toronto ON
    ------------------------------



  • 7.  RE: SO_InvoiceDetail UDF from SalesOrderDetail

    Posted 12-05-2023 20:16
      |   view attached

    Tried starting over, and it won't let me remove the mask.  Checkbox is greyed out, and if I clear the format it comes back...



    ------------------------------
    Phil McIntosh
    President
    Friendly Systems, Inc.
    ------------------------------



  • 8.  RE: SO_InvoiceDetail UDF from SalesOrderDetail

    Posted 12-05-2023 20:18

    Create a new UDF and see if that solves it?



    ------------------------------
    Doug Higgs
    Midwest Commerce Solutions, Inc
    (312) 315-0960
    Chauffeur, Chef, and Personal Assistant to Sprinkles
    ------------------------------



  • 9.  RE: SO_InvoiceDetail UDF from SalesOrderDetail

    Posted 12-05-2023 20:22

    that's what I am doing, but it seems the mask isn't optional



    ------------------------------
    Phil McIntosh
    President
    Friendly Systems, Inc.
    ------------------------------



  • 10.  RE: SO_InvoiceDetail UDF from SalesOrderDetail

    Posted 12-05-2023 20:27

    Create it as character and then convert it to numeric as needed?



    ------------------------------
    Doug Higgs
    Midwest Commerce Solutions, Inc
    (312) 315-0960
    Chauffeur, Chef, and Personal Assistant to Sprinkles
    ------------------------------



  • 11.  RE: SO_InvoiceDetail UDF from SalesOrderDetail

    Posted 12-06-2023 11:11

    redoing it with a different name and the data flows as it should...



    ------------------------------
    Phil McIntosh
    President
    Friendly Systems, Inc.
    ------------------------------



  • 12.  RE: SO_InvoiceDetail UDF from SalesOrderDetail

    Posted 12-06-2023 16:11

    Strange, Same types different name solved it. 



    ------------------------------
    Lee Graham
    Friendly Systems, Inc.
    ------------------------------



  • 13.  RE: SO_InvoiceDetail UDF from SalesOrderDetail

    Posted 12-06-2023 11:05

    You always need a numeric mask.  What I was saying is that how you set the mask matters more for SQL. 

    If you only expect integers up to 999, setting the mask for Premium to ### changes the field data type in SQL.  Providex will still accept larger numeric values, where SQL will reject 1000 in that field. 

    I haven't tested well enough to complain to Sage about it, but whether you put the "-" (for negatives) on the left or right of the mask does change the field type in SQL too (decimal precision).



    ------------------------------
    Kevin Moyes
    Technical Systems Analyst
    Munjal White Consulting Co.
    Toronto ON
    ------------------------------



  • 14.  RE: SO_InvoiceDetail UDF from SalesOrderDetail

    Posted 12-06-2023 16:47
    Edited by Phil McIntosh 12-07-2023 11:03

    wish there was a way to delete...



    ------------------------------
    Phil McIntosh
    President
    Friendly Systems, Inc.
    ------------------------------