Posts

Showing posts from December, 2019

To generate dimension and find the account value - KGSPMIDimensionUtility

KGSPMIDimensionUtility /// <summary> /// Utility class for Dimensions. /// </summary>   class KGSPMIDimensionUtility { public static RefRecId generateDynamicAccount( LedgerJournalACType _type, str _account) { DimensionDynamicAccountServiceProvider dimensionDynamicAccountServiceProvider; DimensionAttributeValueContract ledgerContract; DimensionStorageResult dimensionStorageResult; DimensionDynamicAccountContract contract; contract = new DimensionDynamicAccountContract (); contract.parmAccountType(_type); contract.parmCompany(curExt()); ledgerContract = DimensionAttributeValueContract ::construct(enum2Str(_type), _account); contract.parmPrimaryDimensionAttributeValue(ledgerContract); dimensionDynamicAccountServiceProvider = DimensionDynamicAccountServiceProvider ::newForDynamicAccountContract(contract); dimensionStorageResult = dimensionDynamicAccountServiceProvider.resolve(); return dimens...

Concur import for General Ledger post by Pipe delimited

Contract Class [DataContractAttribute,SysOperationContractProcessingAttribute( classstr ( KGSPMIManualFileReadCSVUIBuilder ))] class KGSPMIManualFileReadCSVContract { //This code is not used /// <summary> /// Gets or sets the value of the datacontract parameter File. /// </summary> /// <param name="_fileName"> /// The new value of the datacontract parameter filename; optional. /// </param> /// <returns> /// The current value of datacontract parameter filename /// </returns> private System.IO. Stream stream; private Filename filename; private boolean readDataFromBlob; public System.IO. Stream parmStream(System.IO. Stream _stream = stream) { stream = _stream; return stream; } public Filename parmFilename( Filename _fileName = fileName) { fileName = _fileName; return fileNam...