Skip to content

Commit

Permalink
Typo in function name
Browse files Browse the repository at this point in the history
  • Loading branch information
christiangessner committed Jul 30, 2020
1 parent 24be5eb commit 4b721c4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ List<BomRow> GetBomRowsByHeaderNumber(string parentNumber)

foreach (var bomRow in bomRows)
{
var material = GetMaterialyByNumber(bomRow.ChildNumber);
var material = GetMaterialByNumber(bomRow.ChildNumber);
bomRow.Description = material.Description;
bomRow.UnitOfMeasure = material.UnitOfMeasure;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace ErpServices.ErpManager.Implementation
{
public partial class ErpManager : IErpManager
{
public Material GetMaterialyByNumber(string number)
public Material GetMaterialByNumber(string number)
{
return ExecuteOnDatabase(database => database.GetCollection<Material>().Find(material => material.Number == number)).FirstOrDefault();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public interface IErpManager : IDisposable
bool Connect(ErpLogin login);

// Material functionality
Material GetMaterialyByNumber(string number);
Material GetMaterialByNumber(string number);
IEnumerable<Material> SearchMaterials(IEnumerable<ErpMaterialSearchSettings> query);
Material CreateMaterial(Material material);
Material UpdateMaterial(Material material);
Expand Down
2 changes: 1 addition & 1 deletion Files/powerGatePlugin/ErpServices/Services/Materials.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public override IEnumerable<Material> Query(IExpression<Material> expression)
{
var number = expression.GetWhereValuesAsString("Number");
Log.InfoFormat("Single query for item number {0}", number);
var material = ErpManager.GetMaterialyByNumber(number);
var material = ErpManager.GetMaterialByNumber(number);

if (material != null)
return new[] { material };
Expand Down

0 comments on commit 4b721c4

Please sign in to comment.