Beispiel #1
0
 public function updateCustomRecord($parameters)
 {
     TaxRule::where('id_104', $parameters['id'])->update(['name_104' => $this->request->input('name'), 'translation_104' => $this->request->has('translation') ? $this->request->input('translation') : null, 'priority_104' => $this->request->input('priority'), 'sort_order_104' => $this->request->input('sortOrder')]);
     $taxRule = TaxRule::find($parameters['id']);
     $taxRule->getTaxRateZones()->sync($this->request->input('taxRateZones'));
     $taxRule->getCustomerClassTaxes()->sync($this->request->input('customerClassTaxes'));
     $taxRule->getProductClassTaxes()->sync($this->request->input('productClassTaxes'));
 }