Sage 50 CA Alert issue with the SDK Import Invoice

SUGGESTED

Hi 

I am getting this error w the SDK import. 

on this method objSalesJournal.Post();

Error in ImportSalesOrder() Error: This customer order has not been printed or emailed. Record anyway? | Stack Trace: à SimplySDK.Support.SDKAlert.AskAlert(SimplyMessage message)
à Sage.Simply.Domain.Entities.Support.JournalAlert.Alert(AlertType type, SimplyMessage message, AlertResult defaultReturn)
à Simply.Domain.Journals.APARJournals.ARJournals.SalesModel.IsOrderQuotePrintedOrEmailedOK()
à Simply.Domain.Journals.APARJournals.InvoiceModel.IsOKToPostOrderQuote(Boolean displayMessage)
à Simply.Domain.Journals.APARJournals.InvoiceModel.IsJournalValidToPost(GridValidEventArgs e)
à Simply.Domain.Journals.APARJournals.ARJournals.SalesModel.IsJournalValidToPost(GridValidEventArgs e)
à Simply.Domain.Journals.JournalModel.PostJournal(GridValidEventArgs e)
à Simply.Domain.Journals.APARJournals.InvoiceModel.PostJournal(GridValidEventArgs e)
à SimplySDK.Support.Journal.Post()
à TxDownloaderPro_18_2_1.Process.ImportSalesOrder(SalesJournal objSalesJournal, String& strErrorMessage)

Thanks in advance, Please let me know if you can give me some idea or hint to solve this, issue.

Thanks,

SF

Top Replies

Parents
  • 0

    I resolved the issue by overriding the class

    public class NoAlerts : SDKAlert
    {
    /// <summary>
    /// StopAlertNotShow displays confirmations
    /// </summary>
    public override bool StopAlertNotShow(SimplyMessage message)
    {
    Console.WriteLine(message.Message);
    return false;
    }

    public override AlertResult AskAlert(SimplyMessage message)
    {
    return AlertResult.YES;
    }
    }

    Thanks

    SF

Reply
  • 0

    I resolved the issue by overriding the class

    public class NoAlerts : SDKAlert
    {
    /// <summary>
    /// StopAlertNotShow displays confirmations
    /// </summary>
    public override bool StopAlertNotShow(SimplyMessage message)
    {
    Console.WriteLine(message.Message);
    return false;
    }

    public override AlertResult AskAlert(SimplyMessage message)
    {
    return AlertResult.YES;
    }
    }

    Thanks

    SF

Children
No Data