Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Import file for crediting change amounts to customer accounts
{"AccountScreens":null,"AccountTransactionDocumentTypes":null,"AccountTransactionTypes":null,"AccountTypes":null,"Accounts":null,"Actions":null,"AutoConfigurationTasks":[{"CreateBackup":true,"Description":"Enables payment screen buttons to credit Change Amounts to Customer Account.","Language":"en","Name":"Enable crediting change amounts to customer accounts","SortOrder":0,"TaskData":"[{\"Action\":\"var ac = sql.Exists(\\\"SELECT Id from Accounts where Name = 'Receivables'\\\");\\u000d\\u000avar at = sql.Exists(\\\"SELECT Id from AccountTypes where Name = 'Receivable Accounts'\\\");\\u000d\\u000avar ct = sql.Exists(\\\"SELECT Id from AccountTypes where Name = 'Customer Accounts'\\\");\\u000d\\u000avar pt = sql.Exists(\\\"SELECT Id from AccountTypes where Name = 'Payment Accounts'\\\");\\u000d\\u000a\\u000d\\u000avar message = '';\\u000d\\u000a\\u000d\\u000aif(!ac) message += 'Receivables Account not Found<br\\\/>';\\u000d\\u000aif(!at) message += 'Receivable Accounts Type not Found<br\\\/>';\\u000d\\u000aif(!ct) message += 'Customer Accounts Type not Found<br\\\/>';\\u000d\\u000aif(!pt) message += 'Payment Accounts Type not Found<br\\\/>';\\u000d\\u000a\\u000d\\u000aif(message != '')\\u000d\\u000a dlg.AskQuestion(message,'OK');\\u000d\\u000a\\u000d\\u000aresult = ac && at && ct && pt;\",\"ActionType\":3,\"Condition\":null,\"Description\":\"Test Accounts\"},{\"Action\":\"AccountTransactionTypes:\\u000d\\u000a- Name: Change Payment Transaction\\u000d\\u000a SourceAccountTypeName: Payment Accounts\\u000d\\u000a TargetAccountTypeName: Receivable Accounts\\u000d\\u000a DefaultSourceAccountName: Cash\\u000d\\u000a DefaultTargetAccountName: Receivables\\u000d\\u000a- Name: Customer Change Payment Transaction\\u000d\\u000a SourceAccountTypeName: Customer Accounts\\u000d\\u000a TargetAccountTypeName: Receivable Accounts\\u000d\\u000a DefaultTargetAccountName: Receivables\\u000d\\u000a\",\"ActionType\":0,\"Condition\":null,\"Description\":\"Import Transaction Types\"},{\"Action\":\"ChangePaymentTypes:\\u000d\\u000a- Name: Default Change Payment\\u000d\\u000a AccountTransactionTypeName: Change Payment Transaction\\u000d\\u000a AccountName: Cash\\u000d\\u000a ChangePaymentTypeMaps:\\u000d\\u000a - {}\\u000d\\u000a- Name: Customer Credit\\u000d\\u000a AccountTransactionTypeName: Customer Change Payment Transaction\\u000d\\u000a ChangePaymentTypeMaps:\\u000d\\u000a - {}\\u000d\\u000a\",\"ActionType\":0,\"Condition\":null,\"Description\":\"Import Change Payment Types\"}]"}],"AutomationCommands":null,"CalculationSelectors":null,"CalculationTypes":null,"ChangePaymentTypes":null,"CustomReports":null,"Departments":null,"EntityScreens":null,"EntityTypes":null,"Numerators":null,"OrderTagGroups":null,"PaymentTypes":null,"PrintJobs":null,"PrinterTemplates":null,"Printers":null,"ProgramSettingValues":null,"Rules":null,"Scripts":null,"States":null,"TaskTypes":null,"TicketTagGroups":null,"TicketTypes":null,"Triggers":null}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.