mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Default account to use line items taxes
This commit is contained in:
parent
f9b8603d09
commit
022ad2e414
@ -41,6 +41,8 @@ class AccountRepository
|
||||
$account->ip = Request::getClientIp();
|
||||
$account->account_key = str_random(RANDOM_KEY_LENGTH);
|
||||
$account->company_id = $company->id;
|
||||
$account->invoice_taxes = false;
|
||||
$account->invoice_item_taxes = true;
|
||||
|
||||
// Track referal code
|
||||
if ($referralCode = Session::get(SESSION_REFERRAL_CODE)) {
|
||||
|
@ -60,7 +60,7 @@ function ViewModel(data) {
|
||||
});
|
||||
|
||||
self.invoice_item_taxes.show = ko.computed(function() {
|
||||
if (self.invoice_item_taxes()) {
|
||||
if (self.invoice_item_taxes() && {{ count($taxRateOptions) ? 'true' : 'false' }}) {
|
||||
return true;
|
||||
}
|
||||
for (var i=0; i<self.invoice().invoice_items().length; i++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user