• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Edit
Show / Hide Table of Contents

Create quote

•
Version: 10
Some tooltip text!
• 1 minute to read
 • 1 minute to read

You can either create a quote from scratch or copy an existing quote from another sale.

NSQuoteEntity CreateAndSaveQuote(Integer saleId, Integer connectionId, String firstAlternativeName)

NSQuoteAgent qa;
NSQuoteEntity quote = qa.CreateAndSaveQuote(72,1,"basic gardening supplies");

printLine(quote.GetQuoteId().toString());
Tip

If there's no external ERP connection, you're most likely using SuperOffice with ID 1.

NSQuoteEntity CreateAndSaveQuoteFromSale(Integer copyFromSaleId, Integer copyToSaleId)

The quote is copied with its products and alternatives.

NSQuoteAgent qa;
NSQuoteEntity quote = qa.CreateAndSaveQuoteFromSale(67,73);

printLine(quote.GetSaleId().toString());
Note

The sale you copy the quote from must have the same currency as the sale you are copying it to.

Next

  • Create alternatives
  • Add quote lines
In This Article
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top