1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-13 22:54:25 +01:00

Enabled creating recurring invoices through the API

This commit is contained in:
Hillel Coren 2016-01-13 16:58:39 +02:00
parent 8ab28ced1a
commit 175c685032

View File

@ -197,15 +197,6 @@ class InvoiceApiController extends BaseAPIController
} }
} }
// hardcode some fields
$fields = [
'is_recurring' => false
];
foreach ($fields as $key => $val) {
$data[$key] = $val;
}
// initialize the line items // initialize the line items
if (isset($data['product_key']) || isset($data['cost']) || isset($data['notes']) || isset($data['qty'])) { if (isset($data['product_key']) || isset($data['cost']) || isset($data['notes']) || isset($data['qty'])) {
$data['invoice_items'] = [self::prepareItem($data)]; $data['invoice_items'] = [self::prepareItem($data)];