styling..
This commit is contained in:
@ -31,7 +31,7 @@ class Document extends TransformerAbstract
|
||||
'issued_at' => $model->issued_at ? $model->issued_at->toIso8601String() : '',
|
||||
'due_at' => $model->due_at ? $model->due_at->toIso8601String() : '',
|
||||
'amount' => $model->amount,
|
||||
'amount_format' => money($model->amount, $model->currency_code, true)->format(),
|
||||
'amount_formatted' => money($model->amount, $model->currency_code, true)->format(),
|
||||
'currency_code' => $model->currency_code,
|
||||
'currency_rate' => $model->currency_rate,
|
||||
'contact_id' => $model->contact_id,
|
||||
|
@ -21,9 +21,9 @@ class DocumentItem extends TransformerAbstract
|
||||
'item_id' => $model->item_id,
|
||||
'name' => $model->name,
|
||||
'price' => $model->price,
|
||||
'price_format' => money($model->price, $model->document->currency_code, true)->format(),
|
||||
'price_formatted' => money($model->price, $model->document->currency_code, true)->format(),
|
||||
'total' => $model->total,
|
||||
'total_format' => money($model->total, $model->document->currency_code, true)->format(),
|
||||
'total_formatted' => money($model->total, $model->document->currency_code, true)->format(),
|
||||
'tax' => $model->tax,
|
||||
'tax_id' => $model->tax_id,
|
||||
'created_at' => $model->created_at ? $model->created_at->toIso8601String() : '',
|
||||
|
@ -28,7 +28,7 @@ class DocumentItemTax extends TransformerAbstract
|
||||
'tax_id' => $model->tax_id,
|
||||
'name' => $model->name,
|
||||
'amount' => $model->amount,
|
||||
'amount_format' => money($model->amount, $model->document->currency_code, true)->format(),
|
||||
'amount_formatted' => money($model->amount, $model->document->currency_code, true)->format(),
|
||||
'created_at' => $model->created_at ? $model->created_at->toIso8601String() : '',
|
||||
'updated_at' => $model->updated_at ? $model->updated_at->toIso8601String() : '',
|
||||
];
|
||||
|
@ -22,7 +22,7 @@ class DocumentTotal extends TransformerAbstract
|
||||
'code' => $model->code,
|
||||
'name' => $model->name,
|
||||
'amount' => $model->amount,
|
||||
'amount_format' => money($model->amount, $model->document->currency_code, true)->format(),
|
||||
'amount_formatted' => money($model->amount, $model->document->currency_code, true)->format(),
|
||||
'sort_order' => $model->sort_order,
|
||||
'created_at' => $model->created_at ? $model->created_at->toIso8601String() : '',
|
||||
'updated_at' => $model->updated_at ? $model->updated_at->toIso8601String() : '',
|
||||
|
Reference in New Issue
Block a user