Click or drag to resize

ISaleCost Property

Cost - changing this affects Earnings and/or Amount The total cost of the sale. Changing this affects Earnings and/or Amount.

Namespace:  SuperOffice.COM.SuperOfficeDB
Assembly:  SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntax
double Cost { get; set; }

Property Value

Type: Double
Double – the sale cost
Examples

Cost

This text may be copied to the notepad, and saved as a *.vbs file. Remember to change the login information.

VB
set app = CreateObject("Superoffice.application")
set sale = app.Database.CreateSale
sale.AmountAsFloat = 100.57
sale.cost = 10.57
msg = msg & "Amount = " & sale.AmountAsFloat & ". sale cost = " & sale.cost & vbCRLF
msg = msg & "Earning = " & sale.Earning & ". Sale earning percent =  " & sale.earningpercent
msgbox msg ,, "Sale"

See Also