mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 12:44:31 -04:00
Fixes for transformers
This commit is contained in:
parent
d535b5bbfd
commit
cc518b92dd
@ -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_info' => $client->tax_data ?: new \stdClass,,
|
'tax_info' => $client->tax_data ?: new \stdClass,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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_info' => $invoice->tax_data ?: new \stdClass,,
|
'tax_info' => $invoice->tax_data ?: new \stdClass,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user