Relationship between OFBiz account and party partyrelationship

Source: Internet
Author: User

The partyacctgpreference account priority table has a company record by default:

Insert into 'Party _ acctg_preference '('Party _ id', 'fiscal _ year_start_month', 'fiscal _ year_start_day ', 'tax _ form_id', 'cogs _ method_id ', 'base _ currency_uom_id ', 'invoice _ seq_cust_meth_id', 'invoice _ id_prefix', 'last _ invoice_number ', 'last _ invoice_restart_date', 'use _ region ', 'quote _ seq_cust_meth_id ', 'quote _ id_prefix', 'last _ quote_number', 'order _ seq_cust_meth_id ', 'order _ id_prefix', 'last _ order_number ', 'Refund _ payment_method_id ', 'error _ gl_journal_id', 'invoice _ sequence_enum_id ', 'order _ number', 'quote _ sequence_enum_id', 'last _ updated_stamp ', 'Last _ updated_tx_stam', 'created _ stamp', 'created _ tx_stam') values ('company', null, null, 'us _ irs_1120 ', 'cogs _ LIFO ', 'usd', 'inv _ hook_enf_seq ', 'ci', null, 'cq', null, null, 'co', null, null, 'error _ journal ', null, '2017-12-05 15:37:00', '2017-12-05 15:37:00 ', '2017-12-05 15:37:00 ', '2017-12-05 15:37:00 ');

If you add a new entry to the page following the above record, two accounts will appear.

OFBiz preference settings Framework/Common/config/General. Properties

# These values override the _ Na _ default values in user preferences for the global_preferences userprefgrouptypeid
# -- The default organizationpartyid for used in dropdowns and reports

Organization_party = Company

 

========================================================== ========================================================== =

 

Comment out account information and add new merchants

1. header. FTL

Line 114 add

<Li> Merchant: $ {topline. groupname} </LI>

 

Commonscreens. xml

Line 32 add

<Set field = "line. groupname" value = "$ {partygroup. groupname}"/>

 

The account information is displayed in:

Under the changeorgpartyid. Groovy File

 

Insert into 'Party _ relationship '('Party _ id_from', 'Party _ id_to ', 'Role _ type_id_from', 'Role _ type_id_to ', 'From _ date ', 'thru _ date', 'status _ id', 'relationship _ name', 'security _ group_id ', 'priority _ type_id', 'Party _ relationship_type_id ', 'permissions _ enum_id ', 'position _ title', 'comments', 'last _ updated_stamp', 'last _ updated_tx_stamp ', 'created _ stamp', 'created _ tx_stamp ') values ('20140901', '20140901', 'department ', 'Employee', '2017-01-01 00:00:00', null, null, null, null, '2017-12-05 15:36:57 ', '2017-12-05 15:36:57', '2017-12-05 15:36:57 ', '2017-12-05 15:36:57 ');

Note: In the preceding SQL statement, party_id_from: the associated member group party_id_to: the associated member's sentence definition: From operator to merchant!

Configure the relationship between operators and merchants:

1. Create an operator

2. assign a role: contact the employee

3. Create a member group merchant Fujian aiting

4. assign a role to a department

5. Establish association between operators and merchants

From operator to merchant OK!

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.