exports.accountBeforeDeleteActions = [{it: 'saves the account id', action: function (data, done) {
data.deleteData = {
- accntId: data.model.get("account"),
+ accntId: data.model.get("account").id || data.model.get("account"),
accountModel: new XM.Account()
};
done();
read: "ProcessCreditCards"
},
createHash : {
- customer: 95, // TTOYS
+ customer: 102, // XRETAIL. Not a nested object because it's not a toOne from CreditCard
creditCardType: "V",
name: "John Smith",
address1: "123 Main Street",
@property {CustomerAccount} CRMAccount
*/
var spec = {
- skipAll: true,
recordType: "XM.Customer",
collectionType: "XM.CustomerListItemCollection",
/**
@description Tax Registrations panel should exist to attach existing/new Tax Registrations
to the Customer
@property {String} id ID attribute
- @property {Customer} Customer
+ @property {Customer} Customer
@property {TaxAuthority} TaxAuthority
@property {String} Number
@property {TaxZone} TaxZone
"'number', 'taxZone', 'effective', 'expires', 'notes'", function () {
});
/**
- @member
+ @member
@memberof CustomerTaxRegistration
@description Users can create, update, and delete Tax Registrations if they have the
MaintainTaxRegistrations privilege, and they can read Tax Registrations if they have