@ -22,11 +22,11 @@ namespace Gremlin.MVVM
private float _vAT = 19f ;
private bool? _showBrutto = true ;
private bool? _singlePrices = true ;
private bool? _attachBrochures = false ;
private bool? _attachDataSheets = false ;
private bool? _useMailTemplate = false ;
private bool _quoteContains3PP = false ;
private bool _quoteContainsRB = false ;
private bool? _attachBrochures ;
private bool? _attachDataSheets ;
private bool? _useMailTemplate ;
private bool _quoteContains3PP ;
private bool _quoteContainsRB ;
private bool? _showDiscounts = true ;
public string QuoteType { get = > _quoteType ; internal set { _quoteType = value ; NotifyOfPropertyChange ( ( ) = > QuoteType ) ; } }
@ -41,15 +41,15 @@ namespace Gremlin.MVVM
public bool? UseMailTemplate { get = > _useMailTemplate ; internal set { _useMailTemplate = value ; NotifyOfPropertyChange ( ( ) = > UseMailTemplate ) ; } }
public bool? ShowDiscounts { get = > _showDiscounts ; internal set { _showDiscounts = value ; NotifyOfPropertyChange ( ( ) = > ShowDiscounts ) ; } }
public List < LineItemViewModel > LineItemsV M { get = > _lineItemsVM ; private set = > _lineItemsVM = value ; }
public ContactViewModel Recipient { get = > _recipient ; internal set => _recipient = value ; }
public ContactViewModel SalesRep { get = > _salesRep ; private set = > _salesRep = 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 QuoteContains3PP { get = > _quoteContains3PP ; private set = > _quoteContains3PP = value ; }
public bool QuoteContainsRB { get = > _quoteContainsRB ; private set = > _quoteContainsRB = value ; }
public List < LineItemViewModel > LineItemsV iew Model { get = > _lineItemsVM ; internal set { _lineItemsVM = value ; NotifyOfPropertyChange ( ( ) = > LineItemsViewModel ) ; } }
public ContactViewModel Recipient { get = > _recipient ; internal set { _recipient = value ; NotifyOfPropertyChange ( ( ) = > Recipient ) ; } }
public ContactViewModel SalesRep { get = > _salesRep ; internal set { _salesRep = value ; NotifyOfPropertyChange ( ( ) = > SalesRep ) ; } }
public decimal TotalListprice { get = > _totalListprice ; internal set { _totalListprice = value ; NotifyOfPropertyChange ( ( ) = > TotalListprice ) ; } }
public decimal AverageDiscount { get = > _averageDiscount ; internal set { _averageDiscount = value ; NotifyOfPropertyChange ( ( ) = > AverageDiscount ) ; } }
public decimal TotalNet { get = > _totalNet ; internal set { _totalNet = value ; NotifyOfPropertyChange ( ( ) = > TotalNet ) ; } }
public float VAT { get = > _vAT ; internal set { _vAT = value ; NotifyOfPropertyChange ( ( ) = > VAT ) ; } }
public bool QuoteContains3PP { get = > _quoteContains3PP ; internal set { _quoteContains3PP = value ; NotifyOfPropertyChange ( ( ) = > QuoteContains3PP ) ; } }
public bool QuoteContainsRB { get = > _quoteContainsRB ; internal set { _quoteContainsRB = value ; NotifyOfPropertyChange ( ( ) = > QuoteContainsRB ) ; } }
internal QuoteViewModel ( ContactViewModel salesRep )
{
@ -89,7 +89,7 @@ namespace Gremlin.MVVM
bool quoteContains3PP = false , quoteContainsRB = false ;
QuoteViewModel quoteVM = new ( quoteNumber , quoteType , recipient , salesRep , brutto , vAT , warranty , validity , quotePath , singlePrices , brochures , dataSheets , mailTemplate , showDiscounts ) ;
quoteVM . LineItemsV M = new ( ) ;
quoteVM . LineItemsV iew Model = new ( ) ;
ObservableCollection < LineItemViewModel > lineItemsVM = LineItemViewModel . ReadLineItemsFromClipboard ( ) ;
@ -119,7 +119,7 @@ namespace Gremlin.MVVM
quoteVM . Warranty = int . Parse ( lineItemVM . OptionNumber . Last ( ) . ToString ( ) ) * 12 ;
}
quoteVM . LineItemsV M. Add ( lineItemVM ) ;
quoteVM . LineItemsV iew Model . Add ( lineItemVM ) ;
}
quoteVM . TotalListprice = totalListprice ;