Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- __PACKAGE__->config(
- # Define parent chain action and partpath
- action => { setup => { PathPart => 'general/members', Chained => '/api/rest/rest_base' } },
- # DBIC result class
- class => 'DB::Member',
- # Columns required to create
- create_requires => [qw/flat_no society_id/],
- # Additional non-required columns that create allows
- create_allows => [qw/dob1 dob2 email group_id holder1 holder2 if_freehold if_member membership_no mobile1 mobile2 nominee pa_city pa_country pa_state pa_zip pan pan1 pan2 password phones present_address/],
- # Columns that update allows
- update_allows => [qw/flat_no society_id dob1 dob2 email group_id holder1 holder2 if_freehold if_member membership_no mobile1 mobile2 nominee pa_city pa_country pa_state pa_zip pan pan1 pan2 password phones present_address/],
- # Columns that list returns
- select => [qw/flat_no membership_no email pan present_address pa_city pa_state pa_country pa_zip holder1 holder2 nominee dob1 dob2 pan1 pan2 mobile1 mobile2 phones if_member if_freehold password society_id member_id group_id/],
- # Every possible prefetch param allowed
- prefetch_allows => [
- [qw/member_ledgers/], { 'member_ledgers' => [qw//] },
- [qw/member_meter_readings/], { 'member_meter_readings' => [qw//] },
- [qw/payment_collections/], { 'payment_collections' => [qw/member_ledgers/] },
- [qw/saved_bills/], { 'saved_bills' => [qw//] },
- ],
- # Order of generated list
- ordered_by => [qw/member_id/],
- # columns that can be searched on via list
- search_exposes => [
- qw/member_balance(member_id) flat_no membership_no email pan present_address pa_city pa_state pa_country pa_zip holder1 holder2 nominee dob1 dob2 pan1 pan2 mobile1 mobile2 phones if_member if_freehold password society_id member_id group_id/,
- { 'member_ledgers' => [qw/transaction_id head transaction_type amount payment_id comments generated due_on society_id member_id/] },
- { 'member_meter_readings' => [qw/uniq_id flat_no dated reading reading_avg society_id member_id/] },
- { 'payment_collections' => [qw/payment_id payment_mode instrument_no payment_status instrument_bank instrument_date payment_amount payment_time book_no receipt_no society_id member_id/] },
- { 'saved_bills' => [qw/uniq_id month year bill_html society_id member_id/] },
- ],);
Add Comment
Please, Sign In to add comment