Skip to content

Commit

Permalink
Fixed types in Voucher , VchType & GST Detail
Browse files Browse the repository at this point in the history
  • Loading branch information
saivineeth100 committed Nov 20, 2023
1 parent 1f0656e commit ec51044
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/TallyConnector.Core/Models/GSTDetail.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public class LedgerGSTRegistrationDetails
[XmlElement("APPLICABLEFROM")]
public TallyDate? ApplicableFrom { get; set; }
[XmlElement("GSTREGISTRATIONTYPE")]
public string? GSTRegistrationType { get; set; }
public GSTRegistrationType? GSTRegistrationType { get; set; }
[XmlElement("STATE")]
public string? State { get; set; }
[XmlElement("PLACEOFSUPPLY")]
Expand Down
1 change: 0 additions & 1 deletion src/TallyConnector.Core/Models/Masters/VoucherType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,6 @@ public class VoucherClassLedger
public CalculationMethod? MethodType { get; set; }

[XmlElement(ElementName = "CLASSRATE")]
[Column(TypeName = "decimal(10,4)")]
public string? ClassRate { get; set; }

/// <summary>
Expand Down
4 changes: 2 additions & 2 deletions src/TallyConnector.Core/Models/Voucher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ public Voucher()

[XmlElement(ElementName = "VCHGSTCLASS")]
[Column(TypeName = $"nvarchar({Constants.MaxNameLength})")]
public string VoucherGSTClass { get; set; }
public string? VoucherGSTClass { get; set; }

[XmlElement(ElementName = "ISCOSTCENTRE")]
[Column(TypeName = $"nvarchar({Constants.MaxNameLength})")]
public TallyYesNo? IsCostCentre { get; set; }

[XmlElement(ElementName = "COSTCENTRENAME")]
[Column(TypeName = $"nvarchar({Constants.MaxNameLength})")]
public string CostCentreName { get; set; }
public string? CostCentreName { get; set; }

[XmlElement(ElementName = "VCHENTRYMODE")]
[Column(TypeName = $"nvarchar(30)")]
Expand Down

0 comments on commit ec51044

Please sign in to comment.