- or download this
my %data = (
balance => $grid[0][0],
overdraft => $grid[0][1],
status => uc($grid[0][2]),
);
- or download this
my %data = @_;
my $amount = $data{amount} ? $data{amount} : undef;
- or download this
unless( $dbdata{balance}+$dbdata{overdraft} >= $amount ){
MyModule::Logger::log(BANK_ACCOUNT => "Debit FAILED user($self->
+{USER_ID}) reason($reason) amount($amount) because this failed: balan
+ce($dbdata{balance})+overdraft($dbdata{overdraft})>=amount($amount)")
+;
return 0;
}
- or download this
Debit FAILED user(<removed>) reason(ORDER_PAYMENT) amount(1742) becaus
+e this failed: balance(1742)+overdraft(0)>=amount(1742)