sku_partner_code_from_ean
Retrieves a SKU partner code object from a partner ean number on a sku relation.
Example
1
| {{ '123' | sku_partner_code_from_ean }} => 123
|
| Type |
Parameter |
Description |
Required |
| string |
partnerEan |
The code of the SKU. Comes before the | sign. |
Required |
| mixed |
partnerNumberOrId |
The number or the id 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 partner code object if one is found |