private function loadPayoutSettings(Gpf_Rpc_Form $form) { $form->setField(Pap_Settings::SUPPORT_VAT_SETTING_NAME, Gpf_Settings::get(Pap_Settings::SUPPORT_VAT_SETTING_NAME)); $form->setField("applyVatInvoicing", $this->attribute->getAttributeWithDefaultValue("apply_vat_invoicing", "")); $defaultVatPercentage = Gpf_Settings::get(Pap_Settings::VAT_PERCENTAGE_SETTING_NAME); $vatPercentage = $this->attribute->getAttributeWithDefaultValue(Pap_Settings::VAT_PERCENTAGE_SETTING_NAME, ""); if($vatPercentage == '' || $vatPercentage == 0) { $vatPercentage = $defaultVatPercentage; } $form->setField("vatPercentage", $vatPercentage); $form->setField("vatNumber", $this->attribute->getAttributeWithDefaultValue("vat_number", "")); $form->setField("amountOfRegCapital", $this->attribute->getAttributeWithDefaultValue("amount_of_reg_capital", "")); $form->setField("regNumber", $this->attribute->getAttributeWithDefaultValue("reg_number", "")); $form->setField("currency", $this->attribute->getAttributeWithDefaultValue("currency_id", "")); $form->setField("minimumPayoutOptions", Gpf_Settings::get(Pap_Settings::PAYOUTS_PAYOUT_OPTIONS_SETTING_NAME)); $form->setField("minimumpayout", $this->getAffiliate()->getMinimumPayout()); return $form; }