mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 13:54:30 -04:00
commit
1a5073bb0d
@ -1 +1 @@
|
|||||||
5.5.100
|
5.5.101
|
@ -33,7 +33,7 @@ class UpdatePrice extends AbstractService
|
|||||||
->first();
|
->first();
|
||||||
|
|
||||||
if ($product) {
|
if ($product) {
|
||||||
$line_items[$key]->cost = floatval($product->cost);
|
$line_items[$key]->cost = floatval($product->price);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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.5.100',
|
'app_version' => '5.5.101',
|
||||||
'app_tag' => '5.5.100',
|
'app_tag' => '5.5.101',
|
||||||
'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', ''),
|
||||||
|
@ -93,6 +93,7 @@ class RecurringInvoiceTest extends TestCase
|
|||||||
'company_id' => $this->company->id,
|
'company_id' => $this->company->id,
|
||||||
'user_id' => $this->user->id,
|
'user_id' => $this->user->id,
|
||||||
'cost' => 20,
|
'cost' => 20,
|
||||||
|
'price' => 20,
|
||||||
'product_key' => 'pink',
|
'product_key' => 'pink',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
@ -128,6 +129,7 @@ class RecurringInvoiceTest extends TestCase
|
|||||||
'company_id' => $this->company->id,
|
'company_id' => $this->company->id,
|
||||||
'user_id' => $this->user->id,
|
'user_id' => $this->user->id,
|
||||||
'cost' => 10,
|
'cost' => 10,
|
||||||
|
'price' => 10,
|
||||||
'product_key' => 'pink',
|
'product_key' => 'pink',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
@ -152,6 +154,7 @@ class RecurringInvoiceTest extends TestCase
|
|||||||
$this->assertEquals(10, $recurring_invoice->amount);
|
$this->assertEquals(10, $recurring_invoice->amount);
|
||||||
|
|
||||||
$p->cost = 20;
|
$p->cost = 20;
|
||||||
|
$p->price = 20;
|
||||||
$p->save();
|
$p->save();
|
||||||
|
|
||||||
$recurring_invoice->service()->updatePrice();
|
$recurring_invoice->service()->updatePrice();
|
||||||
@ -175,6 +178,7 @@ class RecurringInvoiceTest extends TestCase
|
|||||||
'company_id' => $this->company->id,
|
'company_id' => $this->company->id,
|
||||||
'user_id' => $this->user->id,
|
'user_id' => $this->user->id,
|
||||||
'cost' => 10,
|
'cost' => 10,
|
||||||
|
'price' => 10,
|
||||||
'product_key' => 'pink',
|
'product_key' => 'pink',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
@ -182,6 +186,7 @@ class RecurringInvoiceTest extends TestCase
|
|||||||
'company_id' => $this->company->id,
|
'company_id' => $this->company->id,
|
||||||
'user_id' => $this->user->id,
|
'user_id' => $this->user->id,
|
||||||
'cost' => 20,
|
'cost' => 20,
|
||||||
|
'price' => 20,
|
||||||
'product_key' => 'floyd',
|
'product_key' => 'floyd',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
@ -220,9 +225,11 @@ class RecurringInvoiceTest extends TestCase
|
|||||||
$this->assertEquals(30, $recurring_invoice->amount);
|
$this->assertEquals(30, $recurring_invoice->amount);
|
||||||
|
|
||||||
$p1->cost = 20;
|
$p1->cost = 20;
|
||||||
|
$p1->price = 20;
|
||||||
$p1->save();
|
$p1->save();
|
||||||
|
|
||||||
$p2->cost = 40;
|
$p2->cost = 40;
|
||||||
|
$p2->price = 40;
|
||||||
$p2->save();
|
$p2->save();
|
||||||
|
|
||||||
$recurring_invoice->service()->updatePrice();
|
$recurring_invoice->service()->updatePrice();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user