API: v.1.6 Create client fixes

This commit is contained in:
miroman-afk
2021-06-07 15:08:15 +03:00
parent 7325d8946a
commit 1113b6a3ea
3 changed files with 27 additions and 14 deletions

View File

@@ -26,6 +26,7 @@ class CreateBarcode extends HRCCommand implements HRCCommandInterface {
$client->user_code = strtoupper(md5(time() + $i));
$client->group_id = $group['code'];
$client->is_special_price = 0;
$client->barcode_type = 1;
$barcode = new ClientsBarcode;
$barcode->code_id = $i;