Add fill_products to API

This commit is contained in:
Hillel Coren 2018-12-11 10:31:47 +02:00
parent e8142a9067
commit 84f7d6d765

View file

@ -30,6 +30,7 @@ class UserAccountTransformer extends EntityTransformer
* @SWG\Property(property="invoice_labels", type="string", example="Labels")
* @SWG\Property(property="show_item_taxes", type="boolean", example=false)
* @SWG\Property(property="military_time", type="boolean", example=false)
* @SWG\Property(property="fill_products", type="boolean", example=false)
* @SWG\Property(property="tax_name1", type="string", example="VAT")
* @SWG\Property(property="tax_name2", type="string", example="Upkeep")
* @SWG\Property(property="tax_rate1", type="number", format="float", example="17.5")
@ -168,6 +169,7 @@ class UserAccountTransformer extends EntityTransformer
'invoice_labels' => $account->invoice_labels ?: '',
'show_item_taxes' => (bool) $account->show_item_taxes,
'military_time' => (bool) $account->military_time,
'fill_products' => (bool) $account->fill_products,
'tax_name1' => $account->tax_name1 ?: '',
'tax_rate1' => (float) $account->tax_rate1,
'tax_name2' => $account->tax_name2 ?: '',