Skip to content

Commit

Permalink
Fix "Make VoucherRow.Description writable"
Browse files Browse the repository at this point in the history
  • Loading branch information
adamelfstrom committed Sep 21, 2023
1 parent 9ed965a commit 9b9fba2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions FortnoxSDK.Tests/ConnectorTests/VoucherTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ public async Task Test_Voucher_CRUD()
TransactionDate = new DateTime(2020, 1, 1),
VoucherRows = new List<VoucherRow>()
{
new VoucherRow(){ Account = 1930, Debit = 1500, Credit = 0 },
new VoucherRow(){ Account = 1910, Debit = 0, Credit = 1500 }
new (){ Account = 1930, Debit = 1500, Credit = 0, Description = "Desc"},
new (){ Account = 1910, Debit = 0, Credit = 1500, Description = "Desc2"}
}
};

Expand Down
2 changes: 1 addition & 1 deletion FortnoxSDK/Entities/Vouchers/VoucherRow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class VoucherRow

///<summary> The description of the account. </summary>
[JsonProperty]
public string Description { get; private set; }
public string Description { get; set; }

///<summary> Amount of debit. </summary>
[JsonProperty]
Expand Down

0 comments on commit 9b9fba2

Please sign in to comment.