mirror of
https://github.com/getnamingo/registry.git
synced 2025-05-13 16:16:59 +02:00
Further fix on invoices
This commit is contained in:
parent
626b0cd894
commit
3f30621bae
4 changed files with 27 additions and 7 deletions
|
@ -43,6 +43,12 @@ class FinancialsController extends Controller
|
|||
$billing = $db->selectRow('SELECT * FROM registrar_contact WHERE id = ?',
|
||||
[ $invoice_details['billing_contact_id'] ]
|
||||
);
|
||||
$company_name = $db->selectValue("SELECT value FROM settings WHERE name = 'company_name'");
|
||||
$address = $db->selectValue("SELECT value FROM settings WHERE name = 'address'");
|
||||
$address2 = $db->selectValue("SELECT value FROM settings WHERE name = 'address2'");
|
||||
$phone = $db->selectValue("SELECT value FROM settings WHERE name = 'phone'");
|
||||
$email = $db->selectValue("SELECT value FROM settings WHERE name = 'email'");
|
||||
|
||||
$issueDate = new \DateTime($invoice_details['issue_date']);
|
||||
$firstDayPrevMonth = (clone $issueDate)->modify('first day of last month')->format('Y-m-d');
|
||||
$lastDayPrevMonth = (clone $issueDate)->modify('last day of last month')->format('Y-m-d');
|
||||
|
@ -54,6 +60,11 @@ class FinancialsController extends Controller
|
|||
'invoice_details' => $invoice_details,
|
||||
'billing' => $billing,
|
||||
'statement' => $statement,
|
||||
'company_name' => $company_name,
|
||||
'address' => $address,
|
||||
'address2' => $address2,
|
||||
'phone' => $phone,
|
||||
'email' => $email,
|
||||
'currentUri' => $uri
|
||||
]);
|
||||
|
||||
|
|
|
@ -33,16 +33,15 @@
|
|||
<div class="col-6">
|
||||
<p class="h3">Provider / Registry</p>
|
||||
<address>
|
||||
Street Address<br>
|
||||
State, City<br>
|
||||
Region, Postal Code<br>
|
||||
ltd@example.com
|
||||
{{ company_name }}<br>
|
||||
{{ address }}<br>
|
||||
{{ address2 }}<br>
|
||||
{{ email }}
|
||||
</address>
|
||||
</div>
|
||||
<div class="col-6 text-end">
|
||||
<p class="h3">Client / Registrar</p>
|
||||
<address>
|
||||
{{ billing.first_name }} {{ billing.last_name }}<br>
|
||||
{{ billing.org }}<br>
|
||||
{{ billing.street1 }}<br>
|
||||
{{ billing.city }}, {{ billing.sp }}<br>
|
||||
|
|
|
@ -696,7 +696,12 @@ INSERT INTO `registry`.`settings` (`name`, `value`) VALUES
|
|||
('dns-udp-queries-responded', '0'),
|
||||
('searchable-whois-queries', '0'),
|
||||
('web-whois-queries', '0'),
|
||||
('whois-43-queries', '0');
|
||||
('whois-43-queries', '0'),
|
||||
('company_name', 'Example Registry LLC'),
|
||||
('address', '123 Example Street, Example City'),
|
||||
('address2', '48000, Ukraine'),
|
||||
('phone', '+123456789'),
|
||||
('email', 'contact@example.com');
|
||||
|
||||
CREATE USER 'registry'@'localhost' IDENTIFIED BY 'EPPRegistry';
|
||||
CREATE USER 'registry-select'@'localhost' IDENTIFIED BY 'EPPRegistrySELECT';
|
||||
|
|
|
@ -673,7 +673,12 @@ INSERT INTO registry.settings (name, value) VALUES
|
|||
('dns-udp-queries-responded', '0'),
|
||||
('searchable-whois-queries', '0'),
|
||||
('web-whois-queries', '0'),
|
||||
('whois-43-queries', '0');
|
||||
('whois-43-queries', '0'),
|
||||
('company_name', 'Example Registry LLC'),
|
||||
('address', '123 Example Street, Example City'),
|
||||
('address2', '48000, Ukraine'),
|
||||
('phone', '+123456789'),
|
||||
('email', 'contact@example.com');
|
||||
|
||||
ALTER TABLE registry.domain_price ADD FOREIGN KEY ("tldid") REFERENCES registry.domain_tld ("id");
|
||||
ALTER TABLE registry.domain_restore_price ADD FOREIGN KEY ("tldid") REFERENCES registry.domain_tld ("id");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue