commit
85bfae82df
|
|
@ -55,8 +55,8 @@ jobs:
|
|||
run: |
|
||||
rm -rf node_modules
|
||||
rm -rf .git
|
||||
rm .env
|
||||
rm -rf ui
|
||||
rm .env || true
|
||||
rm -rf ui || true
|
||||
# Set permissions: directories 755, files 644
|
||||
chmod -R a=r,u+w,a+X .
|
||||
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
5.11.15
|
||||
5.11.16
|
||||
|
|
@ -17,8 +17,8 @@ return [
|
|||
'require_https' => env('REQUIRE_HTTPS', true),
|
||||
'app_url' => rtrim(env('APP_URL', ''), '/'),
|
||||
'app_domain' => env('APP_DOMAIN', 'invoicing.co'),
|
||||
'app_version' => env('APP_VERSION', '5.11.15'),
|
||||
'app_tag' => env('APP_TAG', '5.11.15'),
|
||||
'app_version' => env('APP_VERSION', '5.11.16'),
|
||||
'app_tag' => env('APP_TAG', '5.11.16'),
|
||||
'minimum_client_version' => '5.0.16',
|
||||
'terms_version' => '1.0.1',
|
||||
'api_secret' => env('API_SECRET', false),
|
||||
|
|
|
|||
|
|
@ -764,17 +764,19 @@ class InvoiceItemTest extends TestCase
|
|||
$line_item = new InvoiceItem();
|
||||
$line_item->quantity = 1;
|
||||
$line_item->cost = 100;
|
||||
$line_item->tax_name1 = 'Tax1';
|
||||
$line_item->tax_rate1 = 0;
|
||||
$line_item->tax_name2 = 'Tax2';
|
||||
$line_item->tax_rate2 = 15;
|
||||
$line_items[] = $line_item;
|
||||
|
||||
$invoice->line_items = $line_items;
|
||||
$invoice->save();
|
||||
|
||||
$item = $invoice->line_items[0];
|
||||
|
||||
$invoice = $invoice->calc()->getInvoice();
|
||||
|
||||
$item = $invoice->line_items[0];
|
||||
|
||||
$this->assertEquals(100, $invoice->amount);
|
||||
$this->assertEquals(13.04, $invoice->total_taxes);
|
||||
$this->assertEquals(86.96, $item->net_cost);
|
||||
|
|
|
|||
Loading…
Reference in New Issue