Change UstId to UstIdNr
This commit is contained in:
@ -12,7 +12,7 @@ namespace Elwig.Documents {
|
|||||||
Member = m;
|
Member = m;
|
||||||
Location = App.BranchName;
|
Location = App.BranchName;
|
||||||
IncludeSender = includeSender;
|
IncludeSender = includeSender;
|
||||||
var uid = (m.UstId ?? "-") + (m.IsBuchführend ? "" : " <i>(pauschaliert)</i>");
|
var uid = (m.UstIdNr ?? "-") + (m.IsBuchführend ? "" : " <i>(pauschaliert)</i>");
|
||||||
Aside = $"<table><colgroup><col span='1' style='width: 2.25cm;'/><col span='1' style='width: 100%;'/></colgroup>" +
|
Aside = $"<table><colgroup><col span='1' style='width: 2.25cm;'/><col span='1' style='width: 100%;'/></colgroup>" +
|
||||||
$"<thead><tr><th colspan='2'>Mitglied</th></tr></thead><tbody>" +
|
$"<thead><tr><th colspan='2'>Mitglied</th></tr></thead><tbody>" +
|
||||||
$"<tr><th>Mitglieds-Nr.</th><td>{m.MgNr}</td></tr>" +
|
$"<tr><th>Mitglieds-Nr.</th><td>{m.MgNr}</td></tr>" +
|
||||||
|
@ -17,7 +17,7 @@ namespace Elwig.Documents {
|
|||||||
Footer = Utils.GenerateFooter("<br/>", " \u00b7 ")
|
Footer = Utils.GenerateFooter("<br/>", " \u00b7 ")
|
||||||
.Item(c.NameFull).NextLine()
|
.Item(c.NameFull).NextLine()
|
||||||
.Item(c.Address).Item($"{c.Plz} {c.Ort}").Item("Österreich").Item("Tel.", c.PhoneNr).Item("Fax", c.FaxNr).NextLine()
|
.Item(c.Address).Item($"{c.Plz} {c.Ort}").Item("Österreich").Item("Tel.", c.PhoneNr).Item("Fax", c.FaxNr).NextLine()
|
||||||
.Item(c.EmailAddress).Item(c.Website).Item("Betriebs-Nr.", c.LfbisNr).Item("UID", c.UstId).NextLine()
|
.Item(c.EmailAddress).Item(c.Website).Item("Betriebs-Nr.", c.LfbisNr).Item("UID", c.UstIdNr).NextLine()
|
||||||
.Item("BIC", c.Bic).Item("IBAN", c.Iban)
|
.Item("BIC", c.Bic).Item("IBAN", c.Iban)
|
||||||
.ToString();
|
.ToString();
|
||||||
Date = DateTime.Today;
|
Date = DateTime.Today;
|
||||||
|
@ -30,7 +30,7 @@ namespace Elwig.Helpers {
|
|||||||
|
|
||||||
public string? Iban;
|
public string? Iban;
|
||||||
public string? Bic;
|
public string? Bic;
|
||||||
public string? UstId;
|
public string? UstIdNr;
|
||||||
public string? LfbisNr;
|
public string? LfbisNr;
|
||||||
|
|
||||||
public string? PhoneNr;
|
public string? PhoneNr;
|
||||||
@ -66,7 +66,7 @@ namespace Elwig.Helpers {
|
|||||||
EmailAddress = parameters.GetValueOrDefault("CLIENT_EMAIL");
|
EmailAddress = parameters.GetValueOrDefault("CLIENT_EMAIL");
|
||||||
Website = parameters.GetValueOrDefault("CLIENT_WEBSITE");
|
Website = parameters.GetValueOrDefault("CLIENT_WEBSITE");
|
||||||
LfbisNr = parameters.GetValueOrDefault("CLIENT_LFBISNR");
|
LfbisNr = parameters.GetValueOrDefault("CLIENT_LFBISNR");
|
||||||
UstId = parameters.GetValueOrDefault("CLIENT_USTIDNR");
|
UstIdNr = parameters.GetValueOrDefault("CLIENT_USTIDNR");
|
||||||
Bic = parameters.GetValueOrDefault("CLIENT_BIC");
|
Bic = parameters.GetValueOrDefault("CLIENT_BIC");
|
||||||
Iban = parameters.GetValueOrDefault("CLIENT_IBAN");
|
Iban = parameters.GetValueOrDefault("CLIENT_IBAN");
|
||||||
Sender2 = parameters.GetValueOrDefault("DOCUMENT_SENDER") ?? "";
|
Sender2 = parameters.GetValueOrDefault("DOCUMENT_SENDER") ?? "";
|
||||||
|
@ -332,7 +332,7 @@ namespace Elwig.Helpers {
|
|||||||
return new(true, null);
|
return new(true, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static ValidationResult CheckUstId(TextBox input, bool required) {
|
public static ValidationResult CheckUstIdNr(TextBox input, bool required) {
|
||||||
string text = "";
|
string text = "";
|
||||||
int pos = input.CaretIndex;
|
int pos = input.CaretIndex;
|
||||||
for (int i = 0, v = 0; i < input.Text.Length; i++) {
|
for (int i = 0, v = 0; i < input.Text.Length; i++) {
|
||||||
|
@ -95,8 +95,8 @@ namespace Elwig.Models {
|
|||||||
[Column("lfbis_nr")]
|
[Column("lfbis_nr")]
|
||||||
public string? LfbisNr { get; set; }
|
public string? LfbisNr { get; set; }
|
||||||
|
|
||||||
[Column("ustid")]
|
[Column("ustid_nr")]
|
||||||
public string? UstId { get; set; }
|
public string? UstIdNr { get; set; }
|
||||||
|
|
||||||
[Column("volllieferant")]
|
[Column("volllieferant")]
|
||||||
public bool IsVollLieferant { get; set; }
|
public bool IsVollLieferant { get; set; }
|
||||||
|
@ -422,12 +422,12 @@ namespace Elwig.Windows {
|
|||||||
InputLostFocus((TextBox)sender, Validator.CheckBic);
|
InputLostFocus((TextBox)sender, Validator.CheckBic);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void UstIdInput_TextChanged(object sender, RoutedEventArgs evt) {
|
protected void UstIdNrInput_TextChanged(object sender, RoutedEventArgs evt) {
|
||||||
InputTextChanged((TextBox)sender, Validator.CheckUstId);
|
InputTextChanged((TextBox)sender, Validator.CheckUstIdNr);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void UstIdInput_LostFocus(object sender, RoutedEventArgs evt) {
|
protected void UstIdNrInput_LostFocus(object sender, RoutedEventArgs evt) {
|
||||||
InputLostFocus((TextBox)sender, Validator.CheckUstId);
|
InputLostFocus((TextBox)sender, Validator.CheckUstIdNr);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void LfbisNrInput_TextChanged(object sender, RoutedEventArgs evt) {
|
protected void LfbisNrInput_TextChanged(object sender, RoutedEventArgs evt) {
|
||||||
|
@ -258,8 +258,8 @@
|
|||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
<Label Content="UID:" Margin="10,10,0,0" Grid.Column="0"/>
|
<Label Content="UID:" Margin="10,10,0,0" Grid.Column="0"/>
|
||||||
<TextBox x:Name="UstIdInput" Margin="0,10,10,0" Grid.Column="1" Width="120" HorizontalAlignment="Left"
|
<TextBox x:Name="UstIdNrInput" Margin="0,10,10,0" Grid.Column="1" Width="120" HorizontalAlignment="Left"
|
||||||
TextChanged="UstIdInput_TextChanged" LostFocus="UstIdInput_LostFocus"/>
|
TextChanged="UstIdNrInput_TextChanged" LostFocus="UstIdNrInput_LostFocus"/>
|
||||||
|
|
||||||
<Label Content="BetriebsNr.:" Margin="10,40,0,0" Grid.Column="0"/>
|
<Label Content="BetriebsNr.:" Margin="10,40,0,0" Grid.Column="0"/>
|
||||||
<TextBox x:Name="LfbisNrInput" Margin="0,40,10,0" Grid.Column="1" Width="64" HorizontalAlignment="Left" TextAlignment="Right"
|
<TextBox x:Name="LfbisNrInput" Margin="0,40,10,0" Grid.Column="1" Width="64" HorizontalAlignment="Left" TextAlignment="Right"
|
||||||
|
@ -346,7 +346,7 @@ namespace Elwig.Windows {
|
|||||||
m.Iban = (IbanInput.Text == "") ? null : IbanInput.Text.Replace(" ", "");
|
m.Iban = (IbanInput.Text == "") ? null : IbanInput.Text.Replace(" ", "");
|
||||||
m.Bic = (BicInput.Text == "") ? null : BicInput.Text;
|
m.Bic = (BicInput.Text == "") ? null : BicInput.Text;
|
||||||
|
|
||||||
m.UstId = (UstIdInput.Text == "") ? null : UstIdInput.Text;
|
m.UstIdNr = (UstIdNrInput.Text == "") ? null : UstIdNrInput.Text;
|
||||||
m.LfbisNr = (LfbisNrInput.Text == "") ? null : LfbisNrInput.Text;
|
m.LfbisNr = (LfbisNrInput.Text == "") ? null : LfbisNrInput.Text;
|
||||||
m.IsBuchführend = BuchführendInput.IsChecked ?? false;
|
m.IsBuchführend = BuchführendInput.IsChecked ?? false;
|
||||||
|
|
||||||
@ -476,7 +476,7 @@ namespace Elwig.Windows {
|
|||||||
IbanInput.Text = m.Iban;
|
IbanInput.Text = m.Iban;
|
||||||
BicInput.Text = m.Bic;
|
BicInput.Text = m.Bic;
|
||||||
|
|
||||||
UstIdInput.Text = m.UstId;
|
UstIdNrInput.Text = m.UstIdNr;
|
||||||
LfbisNrInput.Text = m.LfbisNr;
|
LfbisNrInput.Text = m.LfbisNr;
|
||||||
BuchführendInput.IsChecked = m.IsBuchführend;
|
BuchführendInput.IsChecked = m.IsBuchführend;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user