mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Update Company settings, OpenAPI documentation and Company Migration (#3025)
* Insert generic for client country if not set * Invoice fixes
This commit is contained in:
parent
e4b0943db6
commit
0f9aae454b
@ -26,6 +26,7 @@
|
||||
* @OA\Property(property="city", type="string", example="", description="________"),
|
||||
* @OA\Property(property="state", type="string", example="", description="________"),
|
||||
* @OA\Property(property="postal_code", type="string", example="", description="________"),
|
||||
* @OA\Property(property="phone", type="string", example="555-3434-3434", description="The client phone number"),
|
||||
* @OA\Property(property="country_id", type="string", example="", description="________"),
|
||||
* @OA\Property(property="custom_value1", type="string", example="", description="________"),
|
||||
* @OA\Property(property="custom_value2", type="string", example="", description="________"),
|
||||
|
@ -83,8 +83,8 @@ class InvoiceTransformer extends EntityTransformer
|
||||
{
|
||||
return [
|
||||
'id' => $this->encodePrimaryKey($invoice->id),
|
||||
'amount' => (float) $invoice->amount ?: '',
|
||||
'balance' => (float) $invoice->balance ?: '',
|
||||
'amount' => (float) $invoice->amount,
|
||||
'balance' => (float) $invoice->balance,
|
||||
'client_id' => (string) $this->encodePrimaryKey($invoice->client_id),
|
||||
'status_id' => (string) ($invoice->status_id ?: 1),
|
||||
'design_id' => (string) ($invoice->design_id ?: 1),
|
||||
|
Loading…
x
Reference in New Issue
Block a user