R27437 ProductSupply - Generate Document Type

Code R27437
Entity General.Products.ProductSupply Entity
Name GenerateDocumentType
Attribute GenerateDocumentType
Layer Back-End
Events Commit
Modify NO
Action Validate that:

If (ProcurementType == Buy) than GenerateDocumentType.EntityName == PurchaseOrder else if (ProdurementType == Make) than GenerateDocumentType.EntityName == WorkOrder

Else GenerateDocumentType.EntityName == TransferOrder
Description The Generate Document Type field specifies the document type which should be generated by the procurement planning system, when generating supply based on the current rule. So if external procurement is defined for a material, then the procurement type is 'Buy' and the procurement planning system should generate Purchase Order to an external supplier. If an internal procurement is defined for a material than two procurement types are available - 'Transfer' and 'Make'. If the material is transferred from another store, then a Store Transfer should be generated by the planning system, else - if the material is made internally, then a planned Work Order should be generated.
Message "Product supply method for product '{ProductSupply.Product.PartNumber}' has invalid document type. The document type is '{ProductSupply.GenerateDocumentType.TypeName}' and the procurement type is '{ProductSupply.ProcurementType}'.

The procurement type 'Buy' requires the entity of the document type to be Purchase Order. Procurement type 'Make' requires the entity of the document type to be Work Order. And the procurement type 'Transfer' requires the entity of the document type to be 'Store Transfer'."
Introduced In Version 2017
Revocable NO

* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.