示例#1
0
 public VatProblemData(VatDto vat)
 {
     VatId           = vat.Id.Value;
     VatAbbreviation = vat.Abbreviation;
     VatDescription  = vat.Description;
     VatType         = vat.VatType;
 }
示例#2
0
 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;
 }
示例#3
0
 public static LedgerAccountIndex CreateLedgerSearchIndex(this VatDto vat)
 {
     return(new LedgerAccountIndex(vat));
 }