Skip to content

Commit

Permalink
Added properties for short tags and a helper method.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaerith committed Jun 22, 2021
1 parent 6408699 commit 5d71073
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
26 changes: 25 additions & 1 deletion OnixData/Version3/Price/OnixPriceTax.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,30 @@ public partial class OnixPriceTax
public OnixPriceTax()
{
TaxType = -1;
TaxRateCode = "";
TaxRateCode = TaxRatePercent = String.Empty;
}

private int taxTypeField;
private string taxRateCodeField;
private string taxRatePercentField;

#region Helper Methods

public decimal TaxRatePercentNum
{
get
{
decimal nPercent = 0;

if (!String.IsNullOrEmpty(TaxRatePercent))
Decimal.TryParse(TaxRatePercent, out nPercent);

return nPercent;
}
}

#endregion

#region Reference Tags

/// <remarks/>
Expand Down Expand Up @@ -78,6 +95,13 @@ public string x471
set { TaxRateCode = value; }
}

/// <remarks/>
public string x472
{
get { return TaxRatePercent; }
set { TaxRatePercent = value; }
}

#endregion
}
}
6 changes: 6 additions & 0 deletions OnixData/Version3/Publishing/OnixPublishingDetail.cs
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,12 @@ public string x456
{
get { return this.ROWSalesRightsType; }
set { this.ROWSalesRightsType = value; }
}

public string b083
{
get { return this.CountryOfPublication; }
set { this.CountryOfPublication = value; }
}

#endregion
Expand Down

0 comments on commit 5d71073

Please sign in to comment.