示例#1
0
 public function assignData($data)
 {
     $info = $this->getInfoInstance();
     $dues = $this->getCalculation()->getSerializedDues($this->getSession()->getDues());
     $info->setBillpayRateSurcharge($this->getSession()->getSurchargeAmount());
     $info->setBillpayRateCount($this->getSession()->getBillpayRates());
     $info->setBillpayRateTotalAmount($this->getSession()->getTotalPaymentAmount());
     $info->setBillpayRateDues($dues);
     $info->setBillpayRateInterestRate($this->getSession()->getInterestRate());
     $info->setBillpayRateAnualRate($this->getSession()->getAnualPercentageRate());
     $info->setBillpayRateBaseAmount($this->getSession()->getCalculationBaseAmount());
     $info->setBillpayRateResidualAmount($this->getSession()->getCalculationResidualAmount());
     $info->setBillpayRateFee($this->getSession()->getTransationFee());
     $info->setBillpayRateFeeNet($this->getSession()->getTransationFeeNet());
     $info->setBillpayRateFeeTax($this->getSession()->getTransationFeeTaxAmount());
     if (isset($data[$this->getPostIdentifier('account_holder')]) && isset($data[$this->getPostIdentifier('account_number')]) && isset($data[$this->getPostIdentifier('sort_code')])) {
         $bankAccount = array();
         $bankAccount['accountholder'] = $data[$this->getPostIdentifier('account_holder')];
         $bankAccount['accountnumber'] = $data[$this->getPostIdentifier('account_number')];
         $bankAccount['sortcode'] = $data[$this->getPostIdentifier('sort_code')];
         $this->getSession()->setBankAccount($bankAccount);
     }
     if (isset($data[$this->getPostIdentifier('phone')])) {
         $this->getSession()->setSelectedPhone($data[$this->getPostIdentifier('phone')]);
     }
     parent::assignData($data);
 }
示例#2
0
 public function assignData($data)
 {
     if (isset($data[$this->getPostIdentifier('account_holder')]) && isset($data[$this->getPostIdentifier('account_number')]) && isset($data[$this->getPostIdentifier('sort_code')])) {
         $bankAccount = array();
         $bankAccount['accountholder'] = $data[$this->getPostIdentifier('account_holder')];
         $bankAccount['accountnumber'] = $data[$this->getPostIdentifier('account_number')];
         $bankAccount['sortcode'] = $data[$this->getPostIdentifier('sort_code')];
         $this->getSession()->setBankAccount($bankAccount);
     }
     parent::assignData($data);
 }