Sage 100

 View Only
Expand all | Collapse all

Another consultant uncovered this issue with a cli

Shawn Slavin

Shawn Slavin09-15-2017 10:38

Barbara Goldstein

Barbara Goldstein09-15-2017 10:40

Therese Logeais

Therese Logeais09-15-2017 10:43

Robert Wood

Robert Wood09-15-2017 11:22

Jeff Schwenk

Jeff Schwenk09-15-2017 13:30

Moira Goggin

Moira Goggin09-15-2017 14:17

Jane Cavanaugh

Jane Cavanaugh09-15-2017 15:25

  • 1.  Another consultant uncovered this issue with a cli

    Posted 09-15-2017 09:58
    Another consultant uncovered this issue with a client this week, and it was something I never knew. When a Sales Order or a Purchase Order is deleted, the matching document(s) in the CustomerPDFLog File is also deleted. Sage appears to be saying this is WAD. Here is a link on the Ideas Page. If you don't mind, would you go and give it a ""vote"". https://www5.v1ideas.com/TheSageGroupplc/Sage100ERP/Idea/Detail/27812


  • 2.  RE: Another consultant uncovered this issue with a cli

    Posted 09-15-2017 10:38
    Vote Cast


  • 3.  RE: Another consultant uncovered this issue with a cli

    Posted 09-15-2017 10:40
    Done.


  • 4.  RE: Another consultant uncovered this issue with a cli

    Posted 09-15-2017 10:43
    Done.


  • 5.  RE: Another consultant uncovered this issue with a cli

    Posted 09-15-2017 11:22
    Voted


  • 6.  RE: Another consultant uncovered this issue with a cli

    Posted 09-15-2017 13:30
    Did my good deed of the month.


  • 7.  RE: Another consultant uncovered this issue with a cli

    Posted 09-15-2017 14:17
    Votes in.


  • 8.  RE: Another consultant uncovered this issue with a cli

    Posted 09-15-2017 15:25
    Voted. Now time to quit for the day!


  • 9.  RE: Another consultant uncovered this issue with a cli

    Posted 09-16-2017 19:00
    Madeline - It is definitely a WAD but it's also true that it won't delete the PDF and PDF log entry if LastInvoiceOrderNo has something in it. Since you have some scripters in your company maybe they could try playing with this little number in the Table Pre-Delete event. I presume here that Retain Deleted Orders in History = Y (not Prompt, not No) LastInvoiceOrderNo = """" retVal = oBusObj.GetValue(""LastInvoiceOrderNo$"", LastInvoiceOrderNo) If (oSession.Updating = 0 and oBusObj.EditState = 1 and LastInvoiceOrderNo = """") Then retVal = oBusObj.SetValue(""LastInvoiceOrderNo$"", ""Temp"") End If It sets a value of ""Temp"" into the SO object for LastInvoiceOrderNo. When the Sage delete function runs it will now NOT delete the PDF and PDF log entry and best of all ""Temp"" is not actually written to the field (b/c we are in the middle of a Delete not a Write). The only thing you may need to handle is if on the prompt for ""Do you wish to delete the order Yes / No "", if the user says No, then you may need another script for Table PreWrite (in case they save the order) that sets LastInvoiceOrderNo="""" if it is currently ""Temp


  • 10.  RE: Another consultant uncovered this issue with a cli

    Posted 09-19-2017 09:29
    Thanks @AlnoorCassim That is great information. Let me pass this on to one of our consultants that do scripting.