|
|
|
|
@ -22,54 +22,34 @@ namespace Gremlin.MVVM
|
|
|
|
|
private float _vAT = 19f;
|
|
|
|
|
private bool? _showBrutto = true;
|
|
|
|
|
private bool? _singlePrices = true;
|
|
|
|
|
private bool? _brochures = false;
|
|
|
|
|
private bool? _dataSheets = false;
|
|
|
|
|
private bool? _mailTemplate = false;
|
|
|
|
|
private bool? _attachBrochures = false;
|
|
|
|
|
private bool? _attachDataSheets = false;
|
|
|
|
|
private bool? _useMailTemplate = false;
|
|
|
|
|
private bool _quoteContains3PP = false;
|
|
|
|
|
private bool _quoteContainsRB = false;
|
|
|
|
|
private bool? _showDiscounts = true;
|
|
|
|
|
|
|
|
|
|
public string QuoteType
|
|
|
|
|
{
|
|
|
|
|
get => _quoteType;
|
|
|
|
|
|
|
|
|
|
internal set
|
|
|
|
|
{
|
|
|
|
|
_quoteType = value;
|
|
|
|
|
NotifyOfPropertyChange(() => QuoteType);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string QuotePath
|
|
|
|
|
{
|
|
|
|
|
get => _quotePath;
|
|
|
|
|
|
|
|
|
|
internal set
|
|
|
|
|
{
|
|
|
|
|
_quotePath = value;
|
|
|
|
|
NotifyOfPropertyChange(() => QuotePath);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string QuoteType { get => _quoteType; internal set { _quoteType = value; NotifyOfPropertyChange(() => QuoteType); } }
|
|
|
|
|
public string QuotePath { get => _quotePath; internal set { _quotePath = value; NotifyOfPropertyChange(() => QuotePath); } }
|
|
|
|
|
public bool? ShowBrutto { get => _showBrutto; internal set { _showBrutto = value; NotifyOfPropertyChange(() => ShowBrutto); } }
|
|
|
|
|
public string QuoteNumber { get => _quoteNumber; internal set { _quoteNumber = value; NotifyOfPropertyChange(() => QuoteNumber); } }
|
|
|
|
|
public int Warranty { get => _warranty; internal set { _warranty = value; NotifyOfPropertyChange(() => Warranty); } }
|
|
|
|
|
public int Validity { get => _validity; internal set { _validity = value; NotifyOfPropertyChange(() => Validity); } }
|
|
|
|
|
public bool? SinglePrices { get => _singlePrices; internal set { _singlePrices = value; NotifyOfPropertyChange(() => SinglePrices); } }
|
|
|
|
|
public bool? AttachBrochures { get => _attachBrochures; internal set { _attachBrochures = value; NotifyOfPropertyChange(() => AttachBrochures); } }
|
|
|
|
|
public bool? AttachDataSheets { get => _attachDataSheets; internal set { _attachDataSheets = value; NotifyOfPropertyChange(() => AttachDataSheets); } }
|
|
|
|
|
public bool? UseMailTemplate { get => _useMailTemplate; internal set { _useMailTemplate = value; NotifyOfPropertyChange(() => UseMailTemplate); } }
|
|
|
|
|
public bool? ShowDiscounts { get => _showDiscounts; internal set { _showDiscounts = value; NotifyOfPropertyChange(() => ShowDiscounts); } }
|
|
|
|
|
|
|
|
|
|
public List<LineItemVM> LineItemsVM { get => _lineItemsVM; private set => _lineItemsVM = value; }
|
|
|
|
|
public ContactVM Recipient { get => _recipient; internal set => _recipient = value; }
|
|
|
|
|
public ContactVM SalesRep { get => _salesRep; private set => _salesRep = value; }
|
|
|
|
|
public string QuoteNumber { get => _quoteNumber; internal set => _quoteNumber = value; }
|
|
|
|
|
public int Warranty { get => _warranty; internal set => _warranty = value; }
|
|
|
|
|
public int Validity { get => _validity; internal set => _validity = value; }
|
|
|
|
|
public decimal TotalListprice { get => _totalListprice; private set => _totalListprice = value; }
|
|
|
|
|
public decimal AverageDiscount { get => _averageDiscount; private set => _averageDiscount = value; }
|
|
|
|
|
public decimal TotalNet { get => _totalNet; private set => _totalNet = value; }
|
|
|
|
|
public float VAT { get => _vAT; private set => _vAT = value; }
|
|
|
|
|
public bool? SinglePrices { get => _singlePrices; internal set => _singlePrices = value; }
|
|
|
|
|
public bool? Brochures { get => _brochures; internal set => _brochures = value; }
|
|
|
|
|
public bool? DataSheets { get => _dataSheets; internal set => _dataSheets = value; }
|
|
|
|
|
public bool? MailTemplate { get => _mailTemplate; internal set => _mailTemplate = value; }
|
|
|
|
|
public bool QuoteContains3PP { get => _quoteContains3PP; private set => _quoteContains3PP = value; }
|
|
|
|
|
public bool QuoteContainsRB { get => _quoteContainsRB; private set => _quoteContainsRB = value; }
|
|
|
|
|
public bool? ShowDiscounts { get => _showDiscounts; internal set => _showDiscounts = value; }
|
|
|
|
|
|
|
|
|
|
internal QuoteViewModel(ContactVM salesRep)
|
|
|
|
|
{
|
|
|
|
|
@ -97,9 +77,9 @@ namespace Gremlin.MVVM
|
|
|
|
|
Validity = validity;
|
|
|
|
|
QuotePath = quotePath;
|
|
|
|
|
SinglePrices = singlePrices;
|
|
|
|
|
Brochures = brochures;
|
|
|
|
|
DataSheets = dataSheets;
|
|
|
|
|
MailTemplate = mailTemplate;
|
|
|
|
|
AttachBrochures = brochures;
|
|
|
|
|
AttachDataSheets = dataSheets;
|
|
|
|
|
UseMailTemplate = mailTemplate;
|
|
|
|
|
ShowDiscounts = showDiscounts;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|