예제 #1
0
파일: Class1.cs 프로젝트: kouweizhong/waqs
 public static HistoriqueTva GetHistoriqueTvaDateDelivrance(this PrestationElementaire pel)
 {
     return(pel.BienEtServiceTarifie != null
         ? pel
            .BienEtServiceTarifie
            .HistoriqueTvas
            .Where(h => h.DateDebut <= pel.Prestation.DateDelivrance)
            .OrderByDescending(h => h.DateDebut)
            .FirstOrDefault()
         : null);
 }
예제 #2
0
파일: Class1.cs 프로젝트: kouweizhong/waqs
 public static HistoriqueTauxTva GetHistoriqueTauxTvaDateDelivrance(this PrestationElementaire pel)
 {
     return(GetHistoriqueTvaDateDelivrance(pel) == null
         ? null
         : GetHistoriqueTvaDateDelivrance(pel)
            .CodeTva
            .HistoriqueTauxTvas
            .Where(h => h.DateDebut <= pel.Prestation.DateDelivrance)
            .OrderByDescending(h => h.DateDebut)
            .FirstOrDefault());
 }