1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-15 15:42:51 +01:00

Merge pull request #6552 from turbo124/v5-stable

v5.3.6
This commit is contained in:
David Bomba 2021-09-02 18:14:13 +10:00 committed by GitHub
commit ce17c82b35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 19 additions and 11 deletions

View File

@ -1 +1 @@
5.3.5 5.3.6

View File

@ -52,10 +52,10 @@ class ClientTransformer extends BaseTransformer
'website' => $this->getString( $data, 'client.website' ), 'website' => $this->getString( $data, 'client.website' ),
'vat_number' => $this->getString( $data, 'client.vat_number' ), 'vat_number' => $this->getString( $data, 'client.vat_number' ),
'id_number' => $this->getString( $data, 'client.id_number' ), 'id_number' => $this->getString( $data, 'client.id_number' ),
'custom_value1' => $this->getString( $data, 'client.custom1' ), 'custom_value1' => $this->getString( $data, 'client.custom_value1' ),
'custom_value2' => $this->getString( $data, 'client.custom2' ), 'custom_value2' => $this->getString( $data, 'client.custom_value2' ),
'custom_value3' => $this->getString( $data, 'client.custom3' ), 'custom_value3' => $this->getString( $data, 'client.custom_value3' ),
'custom_value4' => $this->getString( $data, 'client.custom4' ), 'custom_value4' => $this->getString( $data, 'client.custom_value4' ),
'balance' => preg_replace( '/[^0-9,.]+/', '', $this->getFloat( $data, 'client.balance' ) ), 'balance' => preg_replace( '/[^0-9,.]+/', '', $this->getFloat( $data, 'client.balance' ) ),
'paid_to_date' => preg_replace( '/[^0-9,.]+/', '', $this->getFloat( $data, 'client.paid_to_date' ) ), 'paid_to_date' => preg_replace( '/[^0-9,.]+/', '', $this->getFloat( $data, 'client.paid_to_date' ) ),
'credit_balance' => 0, 'credit_balance' => 0,
@ -67,10 +67,10 @@ class ClientTransformer extends BaseTransformer
'last_name' => $this->getString( $data, 'contact.last_name' ), 'last_name' => $this->getString( $data, 'contact.last_name' ),
'email' => $this->getString( $data, 'contact.email' ), 'email' => $this->getString( $data, 'contact.email' ),
'phone' => $this->getString( $data, 'contact.phone' ), 'phone' => $this->getString( $data, 'contact.phone' ),
'custom_value1' => $this->getString( $data, 'contact.custom1' ), 'custom_value1' => $this->getString( $data, 'contact.custom_value1' ),
'custom_value2' => $this->getString( $data, 'contact.custom2' ), 'custom_value2' => $this->getString( $data, 'contact.custom_value2' ),
'custom_value3' => $this->getString( $data, 'contact.custom3' ), 'custom_value3' => $this->getString( $data, 'contact.custom_value3' ),
'custom_value4' => $this->getString( $data, 'contact.custom4' ), 'custom_value4' => $this->getString( $data, 'contact.custom_value4' ),
], ],
], ],
'country_id' => isset( $data['client.country'] ) ? $this->getCountryId( $data['client.country']) : null, 'country_id' => isset( $data['client.country'] ) ? $this->getCountryId( $data['client.country']) : null,

View File

@ -29,6 +29,10 @@ class ExpenseTransformer extends BaseTransformer {
'project_id' => isset( $data['expense.project'] ) ? $this->getProjectId( $data['expense.project'] ) : null, 'project_id' => isset( $data['expense.project'] ) ? $this->getProjectId( $data['expense.project'] ) : null,
'payment_type_id' => isset( $data['expense.payment_type'] ) ? $this->getPaymentTypeId( $data['expense.payment_type'] ) : null, 'payment_type_id' => isset( $data['expense.payment_type'] ) ? $this->getPaymentTypeId( $data['expense.payment_type'] ) : null,
'payment_date' => isset( $data['expense.payment_date'] ) ? date( 'Y-m-d', strtotime( $data['expense.payment_date'] ) ) : null, 'payment_date' => isset( $data['expense.payment_date'] ) ? date( 'Y-m-d', strtotime( $data['expense.payment_date'] ) ) : null,
'custom_value1' => $this->getString( $data, 'expense.custom_value1' ),
'custom_value2' => $this->getString( $data, 'expense.custom_value2' ),
'custom_value3' => $this->getString( $data, 'expense.custom_value3' ),
'custom_value4' => $this->getString( $data, 'expense.custom_value4' ),
'transaction_reference' => $this->getString( $data, 'expense.transaction_reference' ), 'transaction_reference' => $this->getString( $data, 'expense.transaction_reference' ),
'should_be_invoiced' => $clientId ? true : false, 'should_be_invoiced' => $clientId ? true : false,
]; ];

View File

@ -33,6 +33,10 @@ class VendorTransformer extends BaseTransformer {
'city' => $this->getString( $data, 'vendor.city' ), 'city' => $this->getString( $data, 'vendor.city' ),
'state' => $this->getString( $data, 'vendor.state' ), 'state' => $this->getString( $data, 'vendor.state' ),
'postal_code' => $this->getString( $data, 'vendor.postal_code' ), 'postal_code' => $this->getString( $data, 'vendor.postal_code' ),
'custom_value1' => $this->getString( $data, 'vendor.custom_value1' ),
'custom_value2' => $this->getString( $data, 'vendor.custom_value2' ),
'custom_value3' => $this->getString( $data, 'vendor.custom_value3' ),
'custom_value4' => $this->getString( $data, 'vendor.custom_value4' ),
'vendor_contacts' => [ 'vendor_contacts' => [
[ [
'first_name' => $this->getString( $data, 'vendor.first_name' ), 'first_name' => $this->getString( $data, 'vendor.first_name' ),

View File

@ -14,8 +14,8 @@ return [
'require_https' => env('REQUIRE_HTTPS', true), 'require_https' => env('REQUIRE_HTTPS', true),
'app_url' => rtrim(env('APP_URL', ''), '/'), 'app_url' => rtrim(env('APP_URL', ''), '/'),
'app_domain' => env('APP_DOMAIN', 'invoicing.co'), 'app_domain' => env('APP_DOMAIN', 'invoicing.co'),
'app_version' => '5.3.5', 'app_version' => '5.3.6',
'app_tag' => '5.3.5', 'app_tag' => '5.3.6',
'minimum_client_version' => '5.0.16', 'minimum_client_version' => '5.0.16',
'terms_version' => '1.0.1', 'terms_version' => '1.0.1',
'api_secret' => env('API_SECRET', ''), 'api_secret' => env('API_SECRET', ''),