INSERT INTO `salix`.`ACL` (model,property,accessType,permission,principalType,principalId)
	VALUES 
		('InvoiceOut','refund','WRITE','ALLOW','ROLE','invoicing'),
		('InvoiceOut','refund','WRITE','ALLOW','ROLE','salesAssistant'),
		('InvoiceOut','refund','WRITE','ALLOW','ROLE','claimManager'),
		('Ticket','refund','WRITE','ALLOW','ROLE','invoicing'),
		('Ticket','refund','WRITE','ALLOW','ROLE','salesAssistant'),
		('Ticket','refund','WRITE','ALLOW','ROLE','claimManager'),
		('Sale','refund','WRITE','ALLOW','ROLE','salesAssistant'),
		('Sale','refund','WRITE','ALLOW','ROLE','claimManager'),
		('TicketRefund','*','WRITE','ALLOW','ROLE','invoicing'),
		('ClaimObservation','*','WRITE','ALLOW','ROLE','salesPerson'),
		('ClaimObservation','*','READ','ALLOW','ROLE','salesPerson'),
		('Client','setPassword','WRITE','ALLOW','ROLE','salesPerson'),
		('Client','updateUser','WRITE','ALLOW','ROLE','salesPerson');

DELETE FROM `salix`.`ACL` WHERE id=313;

UPDATE `salix`.`ACL`
	SET principalId='invoicing'
	WHERE id=297;