tax rule set default in back office

This commit is contained in:
Etienne Roudeix
2013-10-17 15:31:09 +02:00
parent dad2591a57
commit dc2de702e8
6 changed files with 97 additions and 18 deletions

View File

@@ -41,11 +41,12 @@ class Tax extends BaseAction implements EventSubscriberInterface
$tax
->setDispatcher($this->getDispatcher())
->setRequirements($event->getRequirements())
->setType($event->getType())
->setLocale($event->getLocale())
->setTitle($event->getTitle())
->setDescription($event->getDescription())
;
;
$tax->save();
@@ -66,9 +67,10 @@ class Tax extends BaseAction implements EventSubscriberInterface
->setLocale($event->getLocale())
->setTitle($event->getTitle())
->setDescription($event->getDescription())
->save()
;
$tax->save();
$event->setTax($tax);
}
}
@@ -97,7 +99,6 @@ class Tax extends BaseAction implements EventSubscriberInterface
TheliaEvents::TAX_CREATE => array("create", 128),
TheliaEvents::TAX_UPDATE => array("update", 128),
TheliaEvents::TAX_DELETE => array("delete", 128),
);
}
}