{"data":{"id":"ACSD-54626","source":"qpt","sourceRef":"magento/quality-patches@1.1.84","title":"Fixes the issue where you can't create a new purchase order rule (createPurchaseOrderApprovalRule) with the \"NUMBER_OF_SKUS\" attribute via GraphQL.","categories":["B2B","GraphQL"],"components":["magento/module-purchase-order-rule"],"origin":"adobe-commerce-support","documentation":{"url":"https://experienceleague.adobe.com/en/docs/commerce-operations/tools/quality-patches-tool/patches-available-in-qpt/v1-1-42/acsd-54626-cant-create-new-purchase-order-rule-with-number-of-skus-attribute-via-graphql","path":"help/tools/quality-patches-tool/patches-available-in-qpt/v1-1-42/acsd-54626-cant-create-new-purchase-order-rule-with-number-of-skus-attribute-via-graphql.md","blobSha":"af104082310e13a9ed0f4fecbd54fde084a5593c","description":"Customer cannot create a new purchase order rule (createPurchaseOrderApprovalRule) with the NUMBER_OF_SKUS attribute via GraphQL.","stepsToReproduce":"1. Enable B2B company and purchase rules. 1. Create a company with enabled purchase rules. 1. Run the following GraphQL query: mutation CreatePurchaseRule { createPurchaseOrderApprovalRule( input: { name: \"Test Rule\" description: \"description\" applies_to: \"MQ==\" status: ENABLED approvers: \"MQ==\" condition: { attribute: NUMBER_OF_SKUS operator: MORE_THAN quantity: 10 } } ) { uid name __typename } }","introducedInQpt":"1.1.42","createdFor":["2.4.6-p2"],"documentedRange":"2.4.6 - 2.4.6-p3","scheduledFixRelease":"2.4.7"},"files":[{"package":"magento/magento2-b2b-base","constraint":">=1.3.5 <1.3.6","path":"patches/commerce/ACSD-54626_1.3.5-p2.patch","blobSha":"3cbdd19cef079fbf1954367b3412cc7cf713bace","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/commerce/ACSD-54626_1.3.5-p2.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-purchase-order-rule/Model/Rule/CreateCondition.php","change":"modified","package":"magento/module-purchase-order-rule"}],"packages":["magento/module-purchase-order-rule"],"hasTests":false,"applicableVersions":{"magento-community":[],"magento-commerce":["2.4.6-p7","2.4.6-p6","2.4.6-p5","2.4.6-p4","2.4.6-p3","2.4.6-p2","2.4.6-p1","2.4.6"],"mage-os":[]},"unknownVersions":[],"requires":[],"replacedWith":null,"deprecated":false}],"applicableVersions":{"magento-community":[],"magento-commerce":["2.4.6-p7","2.4.6-p6","2.4.6-p5","2.4.6-p4","2.4.6-p3","2.4.6-p2","2.4.6-p1","2.4.6"],"mage-os":[]},"conditions":null,"requirements":null},"_documentation":"https://magento.watch/api","_description":"Quality patch ACSD-54626 details"}