+ $this->NewLine();
+ if ($doctype == 10 && $branch['disable_branch'] > 0) // payment links
+ {
+ if ($branch['disable_branch'] == 1)
+ {
+ $amt = number_format($myrow["ov_freight"] + $myrow["ov_gst"] + $myrow["ov_amount"], user_price_dec());
+ $txt = $doc_Payment_Link . " PayPal: ";
+ $name = urlencode($this->title . " " . $myrow['reference']);
+ $url = "https://www.paypal.com/xclick/business=" . $this->company['email'] . "&item_name=" .
+ $name . "&amount=" . $amt . "¤cy_code=" . $myrow['curr_code'];
+ $this->fontSize -= 2;
+ $this->Text($ccol, $txt);
+ $this->NewLine();
+ $this->SetTextColor(0, 0, 255);
+ $this->Text($ccol, $url);
+ $this->SetTextColor(0, 0, 0);
+ $this->addLink($url, $ccol, $this->row, $this->pageWidth - $this->rightMargin, $this->row + $this->lineHeight);
+ $this->fontSize += 2;
+ }
+ }