This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static container copyCustomStagingToTarget(DMFDefinitionGroupExecution _dmfDefinitionGroupExecution) | |
| { | |
| container con = next copyCustomStagingToTarget(_dmfDefinitionGroupExecution); | |
| LedgerJournalEntityStaging staging; | |
| LedgerJournalTrans ledgerJournalTrans; | |
| ttsbegin; | |
| ledgerJournalTrans.skipDataMethods(true); | |
| while select forupdate ledgerJournalTrans |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [FunctionName("GetToken")] | |
| public static async Task<IActionResult> Run( | |
| [HttpTrigger(AuthorizationLevel.Function, "get", "post")] HttpRequest req, | |
| ILogger log) | |
| { | |
| var client = new HttpClient(); | |
| var body = new Dictionary<string, string> | |
| { | |
| { "client_id", "<your-client-id>" }, | |
| { "client_secret", "<your-client-secret>" }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public TheAxaptaResponseContract processMsg(TheAxaptaRequestContract _request) | |
| { | |
| TheAxaptaResponseContract response = new TheAxaptaResponseContract(); | |
| try | |
| { | |
| str storeId = _request.parmStoreNumber(); | |
| str trackingNumber = _request.parmTrackingNumber1(); | |
| // Example: Validate store ID | |
| if (storeId == "") | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ExtensionOf(classStr(CustFreeTextInvoicePostedBusinessEventContract))] | |
| internal final class CustFreeTextInvoicePostedBusinessEventContractMyModel_Extension | |
| { | |
| // contract extension state | |
| private str customerClassification; | |
| protected void initialize(CustInvoiceJour _custInvoiceJour) | |
| { | |
| next initialize(_custInvoiceJour); | |
| customerClassification = 'StandardCustomer'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [DataContractAttribute] | |
| public class TheAxaptaRequestContract | |
| { | |
| private boolean isShipped; | |
| private String255 dataAreaId; | |
| private String255 storeNumber; | |
| private String255 trackingNumber1; | |
| [DataMember("TrackingNumber1")] | |
| public String255 parmTrackingNumber1(String255 _trackingNumber1 = trackingNumber1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using OfficeOpenXml; | |
| using OfficeOpenXml.Style; | |
| internal final class TheAxaptaExcelExportWithColor | |
| { | |
| /// <summary> | |
| /// Class entry point. The system will call this method when a designated menu | |
| /// is selected or when execution starts and this class is set as the startup class. | |
| /// </summary> | |
| /// <param name = "_args">The specified arguments.</param> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| display BarCodeString getBarCode() | |
| { | |
| Barcode barcode; | |
| barcode = Barcode::construct(BarcodeType::Code39); | |
| barcode.string(true, "Actual value of bar code"); //You can parameterize this value | |
| barcode.encode(); | |
| return barcode.barcodeStr(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| MainAccount mainAccount; | |
| DimensionAttributeValue dimensionAttributeValue; | |
| DimensionAttribute dimensionAttribute; | |
| container dimCon = str2con(myTable.AccountDisplayValue, "-"); // This will break dimension combinaiton into different fields | |
| LedgerAccountValidationContract validationContract; | |
| LedgerAccountContract accountContract; | |
| DimensionAttributeValueContract valueContract; | |
| FinancialDimensionValidationService service; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public void autoApproveWF(Common _common, str _user) | |
| { | |
| WorkflowWorkItemTable WorkflowWorkItemTable; | |
| select WorkflowWorkItemTable | |
| where workflowWorkItemTable.Type == WorkflowWorkItemType::WorkItem | |
| && workflowWorkItemTable.Status == WorkflowWorkItemStatus::Pending | |
| && WorkflowWorkItemTable.RefTableId== _common.TableId | |
| && WorkflowWorkItemTable.RefRecId == _common.RecId; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Dpk_VendTableEventHandlerClass | |
| { | |
| /// <summary> | |
| /// | |
| /// </summary> | |
| /// <param name="sender"></param> | |
| /// <param name="e"></param> | |
| [DataEventHandler(tableStr(VendTable), DataEventType::InitializedRecord)] | |
| public static void VendTable_onInitializedRecord(Common sender, DataEventArgs e) |
NewerOlder