Sage 100

 View Only
  • 1.  When saving a PO that doesn't have a valid Tax Sch

    Posted 04-25-2018 08:56
    When saving a PO that doesn't have a valid Tax Schedule, user gets a message box that gives them the option to Continue or Delete. Does anybody know if it's possible to hide/remove the Delete button?


  • 2.  RE: When saving a PO that doesn't have a valid Tax Sch

    Posted 04-25-2018 09:57
    Looks like the code is checking to see if user has Delete rights in Role Maint and if so you get the Continue / Delete message box otherwise just a single OK button (meaning you can't save) then return to Header panel. Looks like official way to deal with this is not allow Delete rights. But you could of course try to script it on PreWrite where you do your own Tax Schedule checking and SetError with your own msg if invalid. I'm assuming PreWrite will run before the Tax Schedule Check but you'll have to verify that. You can see in UDF Maintenance that TaxSchedule is a DataSource for PO_PurchaseOrder_bus so something like this: sTaxSchedule = """" retVal = oBusObj.GetValue(""TaxSchedule$"", sTaxSchedule) If sTaxSchedule <> """" Then Set oTaxSchedSvc = oBusObj.GetChildHandle(""TaxSchedule"") FoundTaxSch = oTaxSchedSvc.Find(sTaxSchedule) End If If FoundTaxSch = 0 Then 'show the SetError(custom msg)