From dcdc22b15b584759a9b453d07fe85f28b580e82f Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Fri, 28 Feb 2014 09:20:07 +0100 Subject: [PATCH] [ADDED] Missing comment --- public/include/classes/transaction.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/public/include/classes/transaction.class.php b/public/include/classes/transaction.class.php index 4251269a..fab7cf57 100644 --- a/public/include/classes/transaction.class.php +++ b/public/include/classes/transaction.class.php @@ -334,6 +334,7 @@ class Transaction extends Base { return $this->createDebitRecord($account_id, $coin_address, $amount, 'Debit_AP'); } private function createDebitRecord($account_id, $coin_address, $amount, $type) { + // Calculate and deduct txfee from amount $type == 'Debit_MP' ? $txfee = $this->config['txfee_manual'] : $txfee = $this->config['txfee_auto']; $amount = $amount - $txfee; // Add Debit record