public VatProblemData(VatDto vat) { VatId = vat.Id.Value; VatAbbreviation = vat.Abbreviation; VatDescription = vat.Description; VatType = vat.VatType; }
public LedgerAccountIndex(VatDto vat) { VatId = vat.Id; LedgerAccount = LedgerAccounts.VatDebt; AccountNumber = vat.LedgerAccount; AccountNumberRaw = $"{vat.LedgerAccount}"; IsDeactivated = vat.IsDeactivated; Description = vat.Description; LedgerAccountIndexType = LedgerAccountIndexTypes.Vat; Id = $"{vat.FiscalSetupId}_{LedgerAccountIndexType}_{vat.Id}"; FiscalSetupId = vat.FiscalSetupId; }
public static LedgerAccountIndex CreateLedgerSearchIndex(this VatDto vat) { return(new LedgerAccountIndex(vat)); }