Default account to use line items taxes
This commit is contained in:
parent
f9b8603d09
commit
022ad2e414
2 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue