|
|
|
|
@ -97,29 +97,26 @@ namespace Gremlin.MVVM
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private QuoteViewModel(string quoteNumber, string quoteType, ContactViewModel recipient, ContactViewModel salesRep, bool? brutto, decimal vAT, int warranty, int validity, string quotePath, bool? singlePrices, bool? brochures, bool? dataSheets, bool? mailTemplate, bool? showDiscounts, decimal totalListprice)
|
|
|
|
|
{
|
|
|
|
|
QuoteNumber = quoteNumber;
|
|
|
|
|
QuoteType = quoteType;
|
|
|
|
|
Recipient = recipient;
|
|
|
|
|
SalesRep = salesRep;
|
|
|
|
|
ShowBrutto = brutto;
|
|
|
|
|
VAT = vAT;
|
|
|
|
|
Warranty = warranty;
|
|
|
|
|
Validity = validity;
|
|
|
|
|
QuotePath = quotePath;
|
|
|
|
|
SinglePrices = singlePrices;
|
|
|
|
|
AttachBrochures = brochures;
|
|
|
|
|
AttachDataSheets = dataSheets;
|
|
|
|
|
UseMailTemplate = mailTemplate;
|
|
|
|
|
ShowDiscounts = showDiscounts;
|
|
|
|
|
TotalListprice = totalListprice;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
internal static QuoteViewModel CreateQuote(string quoteNumber, ContactViewModel recipient, ContactViewModel salesRep, decimal vAT = 19, string quoteType = "ein Analysegerät", bool? brutto = true, int warranty = 12, bool? singlePrices = true, bool? brochures = true, bool? dataSheets = true, bool? mailTemplate = true, string quotePath = "", int validity = 60, bool? showDiscounts = true, decimal totalListprice = 0)
|
|
|
|
|
{
|
|
|
|
|
QuoteViewModel quoteVM = new(quoteNumber, quoteType, recipient, salesRep, brutto, vAT, warranty, validity, quotePath, singlePrices, brochures, dataSheets, mailTemplate, showDiscounts, totalListprice);
|
|
|
|
|
quoteVM.LineItemsVM = new();
|
|
|
|
|
QuoteViewModel quoteVM = new()
|
|
|
|
|
{
|
|
|
|
|
QuoteNumber = quoteNumber,
|
|
|
|
|
QuoteType = quoteType,
|
|
|
|
|
Recipient = recipient,
|
|
|
|
|
SalesRep = salesRep,
|
|
|
|
|
ShowBrutto = brutto,
|
|
|
|
|
VAT = vAT,
|
|
|
|
|
Warranty = warranty,
|
|
|
|
|
Validity = validity,
|
|
|
|
|
QuotePath = quotePath,
|
|
|
|
|
SinglePrices = singlePrices,
|
|
|
|
|
AttachBrochures = brochures,
|
|
|
|
|
AttachDataSheets = dataSheets,
|
|
|
|
|
UseMailTemplate = mailTemplate,
|
|
|
|
|
ShowDiscounts = showDiscounts,
|
|
|
|
|
TotalListprice = totalListprice,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
ObservableCollection<LineItemViewModel> lineItemsVM = LineItemViewModel.ReadLineItemsFromClipboard();
|
|
|
|
|
|
|
|
|
|
|