Skip to content

Commit

Permalink
fix invalidazione pagamento ordine. closes #246
Browse files Browse the repository at this point in the history
  • Loading branch information
madbob committed Dec 30, 2023
1 parent c78f43f commit f255e75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions code/app/Movement.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,12 +213,12 @@ public function attachToTarget($field = 'payment_id')

public function detachFromSender($field = 'payment_id')
{
$this->wiring('sender', $field, 0);
$this->wiring('sender', $field, null);
}

public function detachFromTarget($field = 'payment_id')
{
$this->wiring('target', $field, 0);
$this->wiring('target', $field, null);
}

public static function generate($type, $sender, $target, $amount)
Expand Down
2 changes: 1 addition & 1 deletion code/tests/Services/UsersServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ public function testStoreAndMail()
*/
public function testStoreFriend()
{
$initial_count = $users->count();
$initial_count = User::query()->creditable()->count();

$this->actingAs($this->userWithViewPerm);

Expand Down

0 comments on commit f255e75

Please sign in to comment.