Remove tax_data from transformers

This commit is contained in:
David Bomba 2023-04-28 14:52:54 +10:00
parent f3c911fccf
commit 03b73b2701
3 changed files with 4 additions and 4 deletions

View File

@ -150,7 +150,7 @@ class ClientTransformer extends EntityTransformer
'has_valid_vat_number' => (bool) $client->has_valid_vat_number, 'has_valid_vat_number' => (bool) $client->has_valid_vat_number,
'is_tax_exempt' => (bool) $client->is_tax_exempt, 'is_tax_exempt' => (bool) $client->is_tax_exempt,
'routing_id' => (string) $client->routing_id, 'routing_id' => (string) $client->routing_id,
'tax_data' => $client->tax_data ?: '', // 'tax_data' => $client->tax_data ?: '',
]; ];
} }
} }

View File

@ -149,7 +149,7 @@ class InvoiceTransformer extends EntityTransformer
'paid_to_date' => (float) $invoice->paid_to_date, 'paid_to_date' => (float) $invoice->paid_to_date,
'subscription_id' => $this->encodePrimaryKey($invoice->subscription_id), 'subscription_id' => $this->encodePrimaryKey($invoice->subscription_id),
'auto_bill_enabled' => (bool) $invoice->auto_bill_enabled, 'auto_bill_enabled' => (bool) $invoice->auto_bill_enabled,
'tax_data' => $invoice->tax_data ?: '', // 'tax_data' => $invoice->tax_data ?: '',
]; ];
} }
} }

View File

@ -7,8 +7,8 @@ parameters:
- '#Call to an undefined method Illuminate\Database\Eloquent\Builder::exclude#' - '#Call to an undefined method Illuminate\Database\Eloquent\Builder::exclude#'
level: 4 level: 4
paths: paths:
- app - 'app/'
excludePaths: excludePaths:
- vendor - 'vendor/'
universalObjectCratesClasses: universalObjectCratesClasses:
- App\DataMapper\Tax\RuleInterface - App\DataMapper\Tax\RuleInterface