Hi, X++ code to generate check (cheque) from Vendor payment journal (generate payments). Note: In the Method of payment field, select a method of payment that uses the Check export file format. //*********************************** /*To print check 1) PaymMode - must be filled in LedgerJournalTrans (in paymMode = export format to be check) 2) OffsetAccountType = Bank in LedgerJournalTrans 3) Generate Payment dialog, bank account = Offset Bank account in LedgerJournalTrans*/ //************************************* static void GenerateCheque_VendorPayment(Args _args) { LedgerJournalTrans LedgerJournalTrans = LedgerJournalTrans::findRecId(5637186584, true); VendSumForPaym vendSumForPaym; boolean ...
Hi, The below job is used to copy the favorites from one user to another user. static void CopyFavoritesJob(Args _args) { SysPersonalization FromSysPersonalization; SysPersonalization ToSysPersonalization; UserId FromUserId= 'user01' ; UserId ToUserId= 'user03' ; ; ttsbegin ; // step 1 - delete current favorites menu from user while select forupdate ToSysPersonalization where ToSysPersonalization.ElementType==UtilElementType::UserMenu && ToSysPersonalization.UserId==ToUserId { ToSysPersonalization.doDelete(); } // step 2 - duplicate from user01 while select FromSysPersonalization where FromSysPersonalization.UserId==FromUserId && FromSysPersonalization.ElementType==UtilElementType::UserMenu { ToSysPersonalization.data(FromSysPersonalization); ToSysPersonalization.UserId=ToUserId; ToSysPersonalization.doInsert(); } ttscommit...
Hi, please use the below job to covert your word file into pdf file. static void convertWordToPDF(Args _args) { COM wordApplication; COM wordDocuments; COM wordDocument; //COM wordRange; Filename docFileName = @"C:\AX Documents\Document Handling\GCO-000025.doc"; Filename pdfFileName; Filename filepath; Filename fileName; ...
Comments
Post a Comment