Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

Created June 27, 2017 02:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/dea7a5897254d912e9f1c4258ed7927a to your computer and use it in GitHub Desktop.
Save anonymous/dea7a5897254d912e9f1c4258ed7927a to your computer and use it in GitHub Desktop.
<?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