Created
June 27, 2017 02:33
-
-
Save anonymous/dea7a5897254d912e9f1c4258ed7927a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class WageReport extends DataObject{ | |
static $db = array( | |
"TargetBonus" => "Currency", | |
"TargetBonusPayed" => "Int", | |
"TargetBonusPayment" => "Currency", | |
"CatchupBonusPayment" => "Currency", | |
"BountyBonus" => "Currency", | |
"Commission" => "Currency", | |
"CommissionPool" => "Currency", | |
"Target" => "Currency", | |
"Turnover" => "Currency", | |
"StatusBonus" => "Currency", | |
"Year" => "Int", | |
"Month" => "Int" | |
); | |
static $has_one = array( | |
"Member" => "Member" | |
); | |
public static $summary_fields = array( | |
"Member.FullName", | |
"Member.ADMNumber", | |
"Year", | |
"Month", | |
"Bounty Bonus Payment" => "BountyBonus", | |
"Commission Payment" => "Commission", | |
"Commission Pool(Dont Pay This)" => "CommissionPool", | |
"Target Bonus" => "TargetBonusPayment", | |
"Catchup Bonus" => "CatchupBonusPayment", | |
"Status Bonus Payment" => "StatusBonus", | |
); | |
public static $field_labels = array("Member.FullName" => "Name", | |
"Member.ADMNumber" => "ADMNo"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment