Generation

code to explanationMon, 24 Apr 2023

if ( !$this->NfeHeader->save($save2, true, [ "is_active", "nfe_return_code_id", ]) ): $ds->rollback(); throw new Exception( __("Houve um erro ao processar o estoque.") ); endif;

The NfeHeader->save method receives three parameters, the second parameter is true, the third parameter is an array, the array contains two items, is_active and nfe_return_code_id.

Want to kickstart your project?Use the new AI Studio to create your code