Пример #1
0
 public static function CreateReceiptVoucher($receipt)
 {
     $rcpt = new Voucher($receipt->id, $receipt->transactionType->name, $receipt->transactionId, $receipt->amount->amount, $receipt->description, $receipt->date, $receipt->stamp);
     $rcpt->persist();
     $rcpt->setClient($receipt->clientId);
     return $rcpt;
 }