mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-09 20:52:56 +01:00
Updates
This commit is contained in:
parent
850c5e8f94
commit
a5a9c43aff
@ -23,7 +23,7 @@
|
|||||||
"src": "resources/js/clients/invoices/action-selectors.js"
|
"src": "resources/js/clients/invoices/action-selectors.js"
|
||||||
},
|
},
|
||||||
"resources/js/clients/invoices/payment.js": {
|
"resources/js/clients/invoices/payment.js": {
|
||||||
"file": "assets/payment-36249364.js",
|
"file": "assets/payment-292ee4d0.js",
|
||||||
"isEntry": true,
|
"isEntry": true,
|
||||||
"src": "resources/js/clients/invoices/payment.js"
|
"src": "resources/js/clients/invoices/payment.js"
|
||||||
},
|
},
|
||||||
|
8
resources/js/clients/invoices/payment.js
vendored
8
resources/js/clients/invoices/payment.js
vendored
@ -80,7 +80,13 @@ class Payment {
|
|||||||
document.getElementById("payment_method_id").value =
|
document.getElementById("payment_method_id").value =
|
||||||
element.dataset.gatewayTypeId;
|
element.dataset.gatewayTypeId;
|
||||||
|
|
||||||
if (element.dataset.isPaypal != '1') {
|
const filledRff = document.querySelector('input[name="contact_first_name"').value.length >=1 &&
|
||||||
|
document.querySelector('input[name="contact_last_name"').value.length >= 1 &&
|
||||||
|
document.querySelector('input[name="contact_email"').value.length >= 1 &&
|
||||||
|
document.querySelector('input[name="client_city"').value.length >= 1 &&
|
||||||
|
document.querySelector('input[name="client_postal_code"').value.length >= 1;
|
||||||
|
|
||||||
|
if (element.dataset.isPaypal != '1' || filledRff) {
|
||||||
this.steps.delete("rff");
|
this.steps.delete("rff");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -46,6 +46,8 @@
|
|||||||
<input type="hidden" name="contact_first_name" value="{{ auth()->guard('contact')->user()->first_name }}">
|
<input type="hidden" name="contact_first_name" value="{{ auth()->guard('contact')->user()->first_name }}">
|
||||||
<input type="hidden" name="contact_last_name" value="{{ auth()->guard('contact')->user()->last_name }}">
|
<input type="hidden" name="contact_last_name" value="{{ auth()->guard('contact')->user()->last_name }}">
|
||||||
<input type="hidden" name="contact_email" value="{{ auth()->guard('contact')->user()->email }}">
|
<input type="hidden" name="contact_email" value="{{ auth()->guard('contact')->user()->email }}">
|
||||||
|
<input type="hidden" name="client_city" value="{{ auth()->guard('contact')->user()->client->city }}">
|
||||||
|
<input type="hidden" name="client_postal_code" value="{{ auth()->guard('contact')->user()->client->postal_code }}">
|
||||||
|
|
||||||
<div class="bg-white shadow sm:rounded-lg mb-4" translate>
|
<div class="bg-white shadow sm:rounded-lg mb-4" translate>
|
||||||
<div class="px-4 py-5 sm:p-6">
|
<div class="px-4 py-5 sm:p-6">
|
||||||
|
Loading…
Reference in New Issue
Block a user