Minor fixes
This commit is contained in:
parent
cf5d9b9882
commit
e7b68368f9
|
|
@ -84,7 +84,7 @@ class PreviewPurchaseOrderController extends BaseController
|
||||||
* ),
|
* ),
|
||||||
* )
|
* )
|
||||||
*/
|
*/
|
||||||
public function show($request)
|
public function show(Request $request)
|
||||||
{
|
{
|
||||||
if (request()->has('entity') &&
|
if (request()->has('entity') &&
|
||||||
request()->has('entity_id') &&
|
request()->has('entity_id') &&
|
||||||
|
|
|
||||||
|
|
@ -135,8 +135,9 @@ class StorecoveExpense
|
||||||
$expense_repo = new ExpenseRepository();
|
$expense_repo = new ExpenseRepository();
|
||||||
|
|
||||||
$expense = ExpenseFactory::create($vendor->company_id, $vendor->user_id);
|
$expense = ExpenseFactory::create($vendor->company_id, $vendor->user_id);
|
||||||
unset($expense_array['vendor']);
|
$expense->vendor_id = $vendor->id;
|
||||||
|
|
||||||
|
unset($expense_array['vendor']);
|
||||||
|
|
||||||
return $expense_repo->save($expense_array, $expense);
|
return $expense_repo->save($expense_array, $expense);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -36,12 +36,8 @@ class EInvoiceValidationTest extends TestCase
|
||||||
|
|
||||||
protected function setUp(): void
|
protected function setUp(): void
|
||||||
{
|
{
|
||||||
|
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
// $this->markTestSkipped('company model issues');
|
|
||||||
$this->makeTestData();
|
$this->makeTestData();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testInvalidCompanySettings()
|
public function testInvalidCompanySettings()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue