salix/modules/ticket/back/models/sale.js

18 lines
685 B
JavaScript
Raw Permalink Normal View History

module.exports = Self => {
2018-08-30 09:02:50 +00:00
require('../methods/sale/getClaimableFromTicket')(Self);
2022-12-20 14:19:05 +00:00
require('../methods/sale/salePreparingList')(Self);
require('../methods/sale/reserve')(Self);
require('../methods/sale/deleteSales')(Self);
require('../methods/sale/updatePrice')(Self);
require('../methods/sale/updateQuantity')(Self);
2019-09-06 09:43:15 +00:00
require('../methods/sale/updateConcept')(Self);
2019-11-21 11:00:56 +00:00
require('../methods/sale/recalculatePrice')(Self);
require('../methods/sale/refund')(Self);
require('../methods/sale/canEdit')(Self);
require('../methods/sale/usesMana')(Self);
Self.validatesPresenceOf('concept', {
message: `Concept cannot be blank`
});
2018-04-10 05:48:04 +00:00
};