Skip to content

Commit

Permalink
Invoice/Bill currency rate import rule changed. #pzbb0z
Browse files Browse the repository at this point in the history
  • Loading branch information
cuneytsenturk committed Aug 8, 2021
1 parent f1b80b1 commit 83ca29e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/Imports/Purchases/Sheets/Bills.php
Expand Up @@ -37,6 +37,7 @@ public function rules(): array

$rules['bill_number'] = Str::replaceFirst('unique:documents,NULL', 'unique:documents,document_number', $rules['document_number']);
$rules['billed_at'] = $rules['issued_at'];
$rules['currency_rate'] = 'required';

unset($rules['document_number'], $rules['issued_at'], $rules['type']);

Expand Down
1 change: 1 addition & 0 deletions app/Imports/Sales/Sheets/Invoices.php
Expand Up @@ -37,6 +37,7 @@ public function rules(): array

$rules['invoice_number'] = Str::replaceFirst('unique:documents,NULL', 'unique:documents,document_number', $rules['document_number']);
$rules['invoiced_at'] = $rules['issued_at'];
$rules['currency_rate'] = 'required';

unset($rules['document_number'], $rules['issued_at'], $rules['type']);

Expand Down

0 comments on commit 83ca29e

Please sign in to comment.