Fixed gender mapping from PS to CRM

This commit is contained in:
gleemand 2021-06-04 15:47:50 +03:00 committed by GitHub
parent 4e7a34ceb9
commit 549d263f5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1164,7 +1164,7 @@ class RetailcrmOrderBuilder
? $object->date_add : date('Y-m-d H:i:s'),
'birthday' => RetailcrmTools::verifyDate($object->birthday, 'Y-m-d')
? $object->birthday : '',
'sex' => $object->id_gender == "0" ? "" : ($object->id_gender == "1" ? "male" : "female")
'sex' => $object->id_gender == "1" ? "male" : ($object->id_gender == "2" ? "female" : "")
),
$address
), function ($value) {