Пример #1
0
 public void Print(PayRequest payment, PayRequest paymentForServices, bool isCancelPayment)
 {
     if (this.IsUseFiscalDocument.Value)
     {
         AccountOther other;
         ObjectList<PayRequestAccountService> requestAccountServices = paymentForServices.GetRequestAccountServices();
         ObjectList<SpPayment> services = new ObjectList<SpPayment>();
         foreach (PayRequestAccountService service in requestAccountServices)
         {
             SpPayment payment2 = new SpPayment {
                 ServiceName = service.Name,
                 Summ = service.Paid
             };
             services.Add(payment2);
         }
         ObjectList<AccountOther> infoOrgFromRequestAccountServices = AccountOther.GetInfoOrgFromRequestAccountServices(paymentForServices.Id);
         if ((infoOrgFromRequestAccountServices != null) && (infoOrgFromRequestAccountServices.get_Count() > 0))
         {
             other = infoOrgFromRequestAccountServices.get_Item(0);
         }
         else
         {
             other = new AccountOther();
         }
         this.PrintPayment(other, services, payment.ExternalTransactionId, isCancelPayment, payment.PaidSumm, paymentForServices.Commission, false, null, null);
     }
 }