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.