Skip to content

Commit

Permalink
Garante que o metadado que controla o aviso de campos bancarios não c…
Browse files Browse the repository at this point in the history
…riados seja setado com true assim que o modulo de pagamento é habilitado Ref.: #23
  • Loading branch information
erleibiazzio committed Jan 5, 2024
1 parent 0704c7b commit 6289f73
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,10 @@ function register () {
"1" => i::__('Habilitar'),
],
'default_value' => (string) "0",
'serialize' => function($value, $entity) {
$entity->paymentFieldsPending = (!$entity->paymentFieldsPending && $value == 1) ? true : false;
return $value;
}
]
);

Expand Down

0 comments on commit 6289f73

Please sign in to comment.