mirror of
https://github.com/standardebooks/web.git
synced 2025-07-07 23:30:35 -04:00
Add code to mark donations as company matches for purposes of calculatin the patron's circle
This commit is contained in:
parent
32c3f666bf
commit
e7ef78bcd4
3 changed files with 33 additions and 6 deletions
|
@ -13,6 +13,7 @@ class Payment extends PropertiesBase{
|
|||
public $Amount;
|
||||
public $Fee;
|
||||
public $IsRecurring;
|
||||
public $IsMatchingDonation = false;
|
||||
|
||||
|
||||
// *******
|
||||
|
@ -50,15 +51,16 @@ class Payment extends PropertiesBase{
|
|||
|
||||
try{
|
||||
Db::Query('
|
||||
INSERT into Payments (UserId, Created, ChannelId, TransactionId, Amount, Fee, IsRecurring)
|
||||
INSERT into Payments (UserId, Created, ChannelId, TransactionId, Amount, Fee, IsRecurring, IsMatchingDonation)
|
||||
values(?,
|
||||
?,
|
||||
?,
|
||||
?,
|
||||
?,
|
||||
?,
|
||||
?,
|
||||
?)
|
||||
', [$this->UserId, $this->Created, $this->ChannelId, $this->TransactionId, $this->Amount, $this->Fee, $this->IsRecurring]);
|
||||
', [$this->UserId, $this->Created, $this->ChannelId, $this->TransactionId, $this->Amount, $this->Fee, $this->IsRecurring, $this->IsMatchingDonation]);
|
||||
}
|
||||
catch(PDOException $ex){
|
||||
if($ex->errorInfo[1] == 1062){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue