|
400 | 400 | 'reportable' => true,
|
401 | 401 | 'size' => '20',
|
402 | 402 | ),
|
403 |
| - |
404 |
| - 'tasks' => |
405 |
| - array( |
406 |
| - 'name' => 'tasks', |
407 |
| - 'type' => 'link', |
408 |
| - 'relationship' => 'aos_contracts_tasks', |
409 |
| - 'module' => 'Tasks', |
410 |
| - 'bean_name' => 'Task', |
411 |
| - 'source' => 'non-db', |
412 |
| - ), |
413 |
| - 'notes' => |
414 |
| - array( |
415 |
| - 'name' => 'notes', |
416 |
| - 'type' => 'link', |
417 |
| - 'relationship' => 'aos_contracts_notes', |
418 |
| - 'module' => 'Notes', |
419 |
| - 'bean_name' => 'Note', |
420 |
| - 'source' => 'non-db', |
421 |
| - ), |
422 |
| - 'meetings' => |
423 |
| - array( |
424 |
| - 'name' => 'meetings', |
425 |
| - 'type' => 'link', |
426 |
| - 'relationship' => 'aos_contracts_meetings', |
427 |
| - 'module' => 'Meetings', |
428 |
| - 'bean_name' => 'Meeting', |
429 |
| - 'source' => 'non-db', |
430 |
| - ), |
431 |
| - 'calls' => |
432 |
| - array( |
433 |
| - 'name' => 'calls', |
434 |
| - 'type' => 'link', |
435 |
| - 'relationship' => 'aos_contracts_calls', |
436 |
| - 'module' => 'Calls', |
437 |
| - 'bean_name' => 'Call', |
438 |
| - 'source' => 'non-db', |
439 |
| - ), |
440 |
| - |
441 |
| - 'emails' => |
442 |
| - array( |
443 |
| - 'name' => 'emails', |
444 |
| - 'type' => 'link', |
445 |
| - 'relationship' => 'emails_aos_contracts_rel', /* reldef in emails */ |
446 |
| - 'module' => 'Emails', |
447 |
| - 'bean_name' => 'Email', |
448 |
| - 'source' => 'non-db', |
449 |
| - 'studio' => array("formula" => false), |
450 |
| - ), |
451 |
| - 'aos_quotes_aos_contracts' => |
452 |
| - array( |
453 |
| - 'name' => 'aos_quotes_aos_contracts', |
454 |
| - 'type' => 'link', |
455 |
| - 'relationship' => 'aos_quotes_aos_contracts', |
456 |
| - 'source' => 'non-db', |
457 |
| - 'module' => 'AOS_Quotes', |
458 |
| - ), |
459 |
| - "documents" => |
460 |
| - array( |
461 |
| - 'name' => 'documents', |
462 |
| - 'type' => 'link', |
463 |
| - 'relationship' => 'aos_contracts_documents', |
464 |
| - 'source' => 'non-db', |
465 |
| - 'module' => 'Documents', |
466 |
| - ), |
467 | 403 | 'line_items' =>
|
468 | 404 | array(
|
469 | 405 | 'required' => false,
|
|
743 | 679 | ),
|
744 | 680 | 'len' => '26,6',
|
745 | 681 | ),
|
| 682 | + |
| 683 | + 'accounts' => |
| 684 | + array( |
| 685 | + 'name' => 'accounts', |
| 686 | + 'type' => 'link', |
| 687 | + 'relationship' => 'account_aos_contracts', |
| 688 | + 'module' => 'Accounts', |
| 689 | + 'bean_name' => 'Account', |
| 690 | + 'source' => 'non-db', |
| 691 | + ), |
| 692 | + 'contacts' => |
| 693 | + array( |
| 694 | + 'name' => 'contacts', |
| 695 | + 'type' => 'link', |
| 696 | + 'relationship' => 'contact_aos_contracts', |
| 697 | + 'module' => 'Contacts', |
| 698 | + 'bean_name' => 'Contact', |
| 699 | + 'source' => 'non-db', |
| 700 | + ), |
| 701 | + 'tasks' => |
| 702 | + array( |
| 703 | + 'name' => 'tasks', |
| 704 | + 'type' => 'link', |
| 705 | + 'relationship' => 'aos_contracts_tasks', |
| 706 | + 'module' => 'Tasks', |
| 707 | + 'bean_name' => 'Task', |
| 708 | + 'source' => 'non-db', |
| 709 | + ), |
| 710 | + 'notes' => |
| 711 | + array( |
| 712 | + 'name' => 'notes', |
| 713 | + 'type' => 'link', |
| 714 | + 'relationship' => 'aos_contracts_notes', |
| 715 | + 'module' => 'Notes', |
| 716 | + 'bean_name' => 'Note', |
| 717 | + 'source' => 'non-db', |
| 718 | + ), |
| 719 | + 'meetings' => |
| 720 | + array( |
| 721 | + 'name' => 'meetings', |
| 722 | + 'type' => 'link', |
| 723 | + 'relationship' => 'aos_contracts_meetings', |
| 724 | + 'module' => 'Meetings', |
| 725 | + 'bean_name' => 'Meeting', |
| 726 | + 'source' => 'non-db', |
| 727 | + ), |
| 728 | + 'calls' => |
| 729 | + array( |
| 730 | + 'name' => 'calls', |
| 731 | + 'type' => 'link', |
| 732 | + 'relationship' => 'aos_contracts_calls', |
| 733 | + 'module' => 'Calls', |
| 734 | + 'bean_name' => 'Call', |
| 735 | + 'source' => 'non-db', |
| 736 | + ), |
| 737 | + 'emails' => |
| 738 | + array( |
| 739 | + 'name' => 'emails', |
| 740 | + 'type' => 'link', |
| 741 | + 'relationship' => 'emails_aos_contracts_rel',/* reldef in emails */ |
| 742 | + 'source' => 'non-db', |
| 743 | + 'vname' => 'LBL_EMAILS', |
| 744 | + ), |
| 745 | + 'aos_quotes_aos_contracts' => |
| 746 | + array( |
| 747 | + 'name' => 'aos_quotes_aos_contracts', |
| 748 | + 'type' => 'link', |
| 749 | + 'relationship' => 'aos_quotes_aos_contracts', |
| 750 | + 'source' => 'non-db', |
| 751 | + 'module' => 'AOS_Quotes', |
| 752 | + ), |
| 753 | + "documents" => |
| 754 | + array( |
| 755 | + 'name' => 'documents', |
| 756 | + 'type' => 'link', |
| 757 | + 'relationship' => 'aos_contracts_documents', |
| 758 | + 'source' => 'non-db', |
| 759 | + 'module' => 'Documents', |
| 760 | + ), |
746 | 761 | "aos_products_quotes" =>
|
747 | 762 | array(
|
748 | 763 | 'name' => 'aos_products_quotes',
|
|
763 | 778 | ),
|
764 | 779 | ),
|
765 | 780 | 'relationships' => array(
|
| 781 | + 'aos_contracts_tasks' => array( |
| 782 | + 'lhs_module' => 'AOS_Contracts', |
| 783 | + 'lhs_table' => 'aos_contracts', |
| 784 | + 'lhs_key' => 'id', |
| 785 | + 'rhs_module' => 'Tasks', |
| 786 | + 'rhs_table' => 'tasks', |
| 787 | + 'rhs_key' => 'parent_id', |
| 788 | + 'relationship_type' => 'one-to-many', |
| 789 | + 'relationship_role_column' => 'parent_type', |
| 790 | + 'relationship_role_column_value' => 'AOS_Contracts' |
| 791 | + ), |
| 792 | + 'aos_contracts_notes' => array( |
| 793 | + 'lhs_module' => 'AOS_Contracts', |
| 794 | + 'lhs_table' => 'aos_contracts', |
| 795 | + 'lhs_key' => 'id', |
| 796 | + 'rhs_module' => 'Notes', |
| 797 | + 'rhs_table' => 'notes', |
| 798 | + 'rhs_key' => 'parent_id', |
| 799 | + 'relationship_type' => 'one-to-many', |
| 800 | + 'relationship_role_column' => 'parent_type', |
| 801 | + 'relationship_role_column_value' => 'AOS_Contracts' |
| 802 | + ), |
| 803 | + 'aos_contracts_meetings' => array( |
| 804 | + 'lhs_module' => 'AOS_Contracts', |
| 805 | + 'lhs_table' => 'aos_contracts', |
| 806 | + 'lhs_key' => 'id', |
| 807 | + 'rhs_module' => 'Meetings', |
| 808 | + 'rhs_table' => 'meetings', |
| 809 | + 'rhs_key' => 'parent_id', |
| 810 | + 'relationship_type' => 'one-to-many', |
| 811 | + 'relationship_role_column' => 'parent_type', |
| 812 | + 'relationship_role_column_value' => 'AOS_Contracts' |
| 813 | + ), |
| 814 | + 'aos_contracts_calls' => array( |
| 815 | + 'lhs_module' => 'AOS_Contracts', |
| 816 | + 'lhs_table' => 'aos_contracts', |
| 817 | + 'lhs_key' => 'id', |
| 818 | + 'rhs_module' => 'Calls', |
| 819 | + 'rhs_table' => 'calls', |
| 820 | + 'rhs_key' => 'parent_id', |
| 821 | + 'relationship_type' => 'one-to-many', |
| 822 | + 'relationship_role_column' => 'parent_type', |
| 823 | + 'relationship_role_column_value' => 'AOS_Contracts' |
| 824 | + ), |
766 | 825 | 'aos_contracts_aos_products_quotes' =>
|
767 | 826 | array(
|
768 | 827 | 'lhs_module' => 'AOS_Contracts',
|
|
0 commit comments