Add billable prop

This commit is contained in:
David Bomba 2024-05-04 08:32:43 +10:00
parent 9ef6fc8be7
commit 18ae6e5369
7 changed files with 17 additions and 9 deletions

View File

@ -64,7 +64,7 @@ jobs:
- name: Build project - name: Build project
run: | run: |
shopt -s dotglob shopt -s dotglob
tar --exclude='public/storage' --exclude='.htaccess' --exclude='invoiceninja.zip' -zcvf /home/runner/work/invoiceninja/react-invoiceninja.tar * tar --exclude='public/storage' --exclude='./htaccess' --exclude='invoiceninja.zip' -zcvf /home/runner/work/invoiceninja/react-invoiceninja.tar *
- name: Release - name: Release
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')

View File

@ -74,7 +74,7 @@ jobs:
run: | run: |
zip -r /home/runner/work/invoiceninja/invoiceninja.zip .* -x "../*" zip -r /home/runner/work/invoiceninja/invoiceninja.zip .* -x "../*"
shopt -s dotglob shopt -s dotglob
tar --exclude='public/storage' --exclude='.htaccess' --exclude='invoiceninja.zip' -zcvf /home/runner/work/invoiceninja/invoiceninja.tar * tar --exclude='public/storage' --exclude='./htaccess' --exclude='invoiceninja.zip' -zcvf /home/runner/work/invoiceninja/invoiceninja.tar *
- name: Release - name: Release
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')

View File

@ -448,6 +448,7 @@ class BaseExport
'custom_value4' => 'task.custom_value4', 'custom_value4' => 'task.custom_value4',
'status' => 'task.status_id', 'status' => 'task.status_id',
'project' => 'task.project_id', 'project' => 'task.project_id',
'billable' => 'task.billable',
]; ];
protected array $forced_client_fields = [ protected array $forced_client_fields = [

View File

@ -232,7 +232,6 @@ class SendReminders implements ShouldQueue
} }
$invoice->service()->touchReminder($template)->save(); $invoice->service()->touchReminder($template)->save();
// $invoice->save();
} }
/** /**

View File

@ -42,11 +42,11 @@ class ClientRegisterService
} }
foreach ($rules as $field => $properties) { foreach ($rules as $field => $properties) {
if ($field === 'email') { if ($field == 'email') {
$rules[$field] = array_merge($rules[$field], ['email:rfc', 'max:191', Rule::unique('client_contacts')->where('company_id', $this->company->id)]); $rules[$field] = array_merge($rules[$field], ['email:rfc', 'max:191', Rule::unique('client_contacts')->where('company_id', $this->company->id)]);
} }
if ($field === 'current_password' || $field === 'password') { if ($field == 'current_password' || $field == 'password') {
$rules[$field] = array_merge($rules[$field], ['string', 'min:6', 'confirmed']); $rules[$field] = array_merge($rules[$field], ['string', 'min:6', 'confirmed']);
} }
} }

View File

@ -164,6 +164,7 @@ class Quote extends BaseModel
protected $casts = [ protected $casts = [
// 'date' => 'date:Y-m-d', // 'date' => 'date:Y-m-d',
'tax_data' => 'object',
'due_date' => 'date:Y-m-d', 'due_date' => 'date:Y-m-d',
'partial_due_date' => 'date:Y-m-d', 'partial_due_date' => 'date:Y-m-d',
'line_items' => 'object', 'line_items' => 'object',

View File

@ -13,15 +13,16 @@
namespace App\PaymentDrivers\Authorize; namespace App\PaymentDrivers\Authorize;
use App\Models\Invoice; use App\Models\Invoice;
use App\PaymentDrivers\AuthorizePaymentDriver;
use App\Utils\Traits\MakesHash; use App\Utils\Traits\MakesHash;
use net\authorize\api\contract\v1\CreateTransactionRequest; use App\PaymentDrivers\Authorize\FDSReview;
use net\authorize\api\contract\v1\ExtendedAmountType;
use net\authorize\api\contract\v1\OpaqueDataType;
use net\authorize\api\contract\v1\OrderType; use net\authorize\api\contract\v1\OrderType;
use App\PaymentDrivers\AuthorizePaymentDriver;
use net\authorize\api\contract\v1\PaymentType; use net\authorize\api\contract\v1\PaymentType;
use net\authorize\api\contract\v1\SettingType; use net\authorize\api\contract\v1\SettingType;
use net\authorize\api\contract\v1\OpaqueDataType;
use net\authorize\api\contract\v1\ExtendedAmountType;
use net\authorize\api\contract\v1\TransactionRequestType; use net\authorize\api\contract\v1\TransactionRequestType;
use net\authorize\api\contract\v1\CreateTransactionRequest;
use net\authorize\api\controller\CreateTransactionController; use net\authorize\api\controller\CreateTransactionController;
/** /**
@ -143,6 +144,12 @@ class AuthorizeTransaction
nlog(' Code : '.$tresponse->getMessages()[0]->getCode()); nlog(' Code : '.$tresponse->getMessages()[0]->getCode());
nlog(' Description : '.$tresponse->getMessages()[0]->getDescription()); nlog(' Description : '.$tresponse->getMessages()[0]->getDescription());
nlog(print_r($tresponse->getMessages()[0], 1)); nlog(print_r($tresponse->getMessages()[0], 1));
if($tresponse->getResponseCode() == "4"){
//notify user that this transaction is being held under FDS review:
FDSReview::dispatch((string)$tresponse->getTransId(), $this->authorize->payment_hash, $this->authorize->company_gateway->company->db);
}
} else { } else {
nlog('Transaction Failed '); nlog('Transaction Failed ');
if ($tresponse->getErrors() != null) { if ($tresponse->getErrors() != null) {