Manual Contents
Introduction
Methods and Arguments
Overview
Customers
GetCustomer
GetCustomerById
GetCustomerByEmail
GetCustomers
GetCustomersModifiedSince
InsertCustomer
UpdateCustomer
DeleteCustomer
GetCustomerSources
GetCustomerVATNumber
SetCustomerVATNumber
GetCustomerCurrency
SetCustomerCurrency
GetCustomersByPostcode
GetCustomerBalance
GetCustomerAdvancePayments
Quotes
DeleteQuote
DeleteQuoteByID
DeleteQuoteLine
DeleteQuoteLineWithQuoteID
GetQuoteByNumber
GetQuoteByID
GetQuotes
GetQuotes_Recent
GetQuotesForCustomer
InsertQuote
InsertQuoteLine
isStillQuote
UpdateQuote
UpdateQuoteHeader
ConvertQuoteToInvoice
Invoices
GetInvoice
GetInvoiceByID
GetInvoicesByDateRange
GetInvoicesForCustomer
GetInvoices_Overdue
GetInvoices_Recent
GetInvoices_Unpaid
InsertInvoice
InsertInvoiceLine
InsertInvoiceLineWithInvoiceNumber
UpdateInvoice
UpdateInvoiceHeader
DeleteInvoice
DeleteInvoiceByID
DeleteInvoiceLine
DeleteInvoiceLineWithInvoiceID
EmailInvoice
PrintInvoice
GetPaypalLink
InsertInvoiceNotes
GetInvoiceNotes
Invoice Payments
applyCreditNoteToInvoice
GetInvoicePayment
GetInvPayMethods
InsertInvoicePayment
DeleteInvoicePayment
AllocateAdvancePaymentToInvoice
Suppliers
GetSupplier
GetSuppliers
GetSupplierById
InsertSupplier
UpdateSupplier
GetSupplierVATNumber
SetSupplierVATNumber
GetSupplierCurrency
SetSupplierCurrency
Purchases
GetReceipt
GetReceipts
GetReceipts_Recent
GetReceiptsForSupplier
InsertReceipt
UpdateReceipt
UpdateReceiptHeader
DeleteReceipt
DeleteReceiptByID
InsertReceiptLine
InsertReceiptLineFromNumber
DeleteReceiptLine
DeleteReceiptLineWithReceiptID
AttachFileToReceipt
GetReceiptAttachments
DeleteReceiptAttachment
InsertReceiptNotes
GetReceiptNotes
Purchase Payments
GetReceiptPayment
GetRecPayMethods
InsertReceiptPayment
DeleteReceiptPayment
AllocateAdvancePaymentToReceipt
Bank
CreateBankAccount
GetBankAccounts
GetBankTXTypes
GetBankBalance
GetBankTransactions
InsertBankTransaction
UpdateBankTransaction
DeleteBankTransaction
Journals
InsertJournal
GetJournal
GetJournals
DeleteJournal
DeleteJournalByID
UpdateJournal
UpdateJournalHeader
Reports
GetAgedDebtors
GetAgedCreditors
GetBalanceSheet
GetDigitaCSVFile
GetIncomeByCustomer
GetKPIs
GetMonthlyProfitAndLoss
GetNominalLedger
GetProfitAndLoss
GetTrialBalance
GetVATReport
Projects
GetProjects
GetProjects_Full
InsertOrUpdateProject
GetProjectById
GetProjectByName
GetProjectByRef
Supplementary Functions
AddOrUpdateSubProduct
AutoAuthIP
createAccount
GetAccountOverview
GetBankOverview
GetCurrencies
GetRemoteLoginURL
GetProducts
GetProjects
GetNominalCodes
GetNominalCodesExtended
GetSubProducts
GetVATRates
InsertNominalCode
isUserVATRegistered
SetCustomerCurrency
SetSupplierCurrency
SetCustomerVATNumber
SetSupplierVATNumber
VCFToCustomerObjects
GetSubProductByID
GetSubProductByCode
GetCompanyDetails
Classes
AccountOverview
AgedDebtorsCreditors
BalanceSheet
BankAccount
BankOverview
BankTransaction
BankTXType
BasicDataset
CompanyDetails
Currencies
Customer
CustomerBalance
Invoice
InvoiceLine
InvoiceNote
JournalEntry
JournalLine
MonthlyPL
NominalCode
NominalCodeExtended
Payment
PaymentMethod
Product
ProfitAndLoss
Project
ReceiptAttachment
ReceiptNote
SubProduct
Supplier
TransactionInformation
VATReport
Manual - Methods - AddOrUpdateSubProduct
This method allows you to create a new SubProduct.
A SubProduct in the application is either a "product" as a child of a Sales Type, or a "Sub-Outgoing Type" as a child of an Outgoing Type.
| IN | sp SubProduct |
A SubProduct populated with the relevant fields. If the id is set to 0, a new SubProduct will be created. If it is non-zero then the selected SubProduct will be updated. |
| RETURNS | Integer | An integer giving the unique ID number of the updated or newly created SubProduct |
