
private void al0CopyAttachmentsQuotationToProject(RecId _SalesQuotationRecId, RecId _ProjTableId)
{
DocuRef salesQuotationDocuRef;
DocuRef ProjTableDocuRef;
//Search if exists an attachment for SalesQuotationTable
while select salesQuotationDocuRef
where salesQuotationDocuRef.RefTableId == tableNum(SalesQuotationTable)
&& salesQuotationDocuRef.RefRecId == _SalesQuotationRecId
{
//Copy attachment into Project
DocuRef::createFromDocuRef(salesQuotationDocuRef,_ProjTableId , tableNum(ProjTable));
}
;