From: <nat...@us...> - 2008-09-29 14:29:54
|
Revision: 2573 http://perp.svn.sourceforge.net/perp/?rev=2573&view=rev Author: nathangray Date: 2008-09-29 14:29:45 +0000 (Mon, 29 Sep 2008) Log Message: ----------- Make sure pre-payment is 0 if not set, instead of NULL Modified Paths: -------------- trunk/perp_ap/inc/class.bo_perp_payment.inc.php Modified: trunk/perp_ap/inc/class.bo_perp_payment.inc.php =================================================================== --- trunk/perp_ap/inc/class.bo_perp_payment.inc.php 2008-09-29 14:24:26 UTC (rev 2572) +++ trunk/perp_ap/inc/class.bo_perp_payment.inc.php 2008-09-29 14:29:45 UTC (rev 2573) @@ -428,6 +428,9 @@ * @param pre_payment float If there is a prepayment, the amount of the prepayment */ public function allocate_payment($payment_id, $payment_number, $trans_id, $invoice_id, $amount, $date, $pre_payment) { + if(is_null($pre_payment)) { + $pre_payment = 0; + } if($GLOBALS['egw']->acl->check('payment', EGW_ACL_ADD, 'perp_ap') && $amount != 0) { return $this->so->allocate_payment($payment_id, $payment_number, $trans_id, $invoice_id, $amount, $date, $pre_payment); } else { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |