sku_id_from_partner_sku_code

Retrieves a SKU ID from a partner SKU code on a sku relation.

Example

1
{{ '123' | sku_id_from_partner_sku_code }} => 123

Input

Type Parameter Description Required
string skuCode The code of the SKU. Comes before the | sign. Required
int partnerNumber The number of the partner, defaults to null  
string relation The relation to check, defaults to ‘any’  
string requiredPermission Can be sales, production, purchase  
string hasTagCode If the sku must have a tag with a specific code  

Output

Type Description
mixed The SKU ID or null if not found