Skip to content

Instantly share code, notes, and snippets.

Avatar

jorge-perez-anfix

View GitHub Profile
View ContaProUtils.js
searchPayChargeMethods: function(onSuccess, onFailure, applicationInstanceId) {
var PayChargeMethodModel = Ext.ModelManager.getModel('Anfix.contapro.model.expirations.paychargemethods.PayChargeMethod'),
payChargeMethodModel = new PayChargeMethodModel({applicationInstanceId: applicationInstanceId || this.controller.appContaPro[ConstantsGui.WINDOW_ID]});
payChargeMethodModel.search({
search : {
jsonRequest: {
Order : ['PayChargeMethodCode'],
OrderTypes : ['ASC'],
Fields : ['PayChargeMethodId','PayChargeMethodCode','PayChargeMethodName'],