Documentation
Documentation
RICE MILL
Overview
The Rice Mill CRM Application is a comprehensive solution designed to streamline and simplify how much rice
per day,how many were sold that rice and which type of rice all reports send to owners daily wise. It leverages the
power of customer relationship management (CRM) to enhance customer experiences, optimize store operations,
and improve overall efficiency in the rice mill factory. This project aims to develop a user-friendly and feature-rich
application that addresses the specific needs of a rice mill factory.
Daily Sales and Production Reports: Generates detailed reports on how much rice is produced & sold
each day.
Revenue Reports: Provides insights into daily revenue generated.
Customer Analytics: Tracks popular rice types and most frequent buyers.
Resource Allocation: Helps owners understand data for better resource allocation and future planning.
Purpose: Summarizes data from a child object to a parent object that shares a master-detail relationship.
Functions: Can use COUNT, SUM, MIN, and MAX functions.
Validation Rules
Permission Sets
Organization Wide Defaults (OWD): Defines the baseline level of access for the most restricted user.
Roles and Access:
Are you new to Salesforce? Not sure exactly what it is, or how to use it? Don’t know where you should start on
your learning journey? If you’ve answered yes to any of these questions, then you’re in the right place. This
module is for you.
What Is Salesforce?
Salesforce is your customer success platform, designed to help you sell, service, market, analyze, and connect with
your customers. Salesforce has everything you need to run your business from anywhere. Using standard products
and features, you can manage relationships with prospects and customers, collaborate and engage with employees
and partners, and store your data securely in the cloud.
So what does that really mean? Well, before Salesforce, your contacts, emails, follow-up tasks, and prospective
deals might have been organized something like this:
You have successfully created a Salesforce Developer Account. You will receive a confirmation email with further
instructions to complete the setup.
Go to the inbox of the email address you used while signing up. The verification email may take 5-10
minutes to arrive.
Open the email from Salesforce and click on the "Verify Account" link.
On the verification page, create a password for your account.
Answer a security question for account recovery.
Click on "Change Password".
Salesforce objects are database tables that permit you to store data that is specific to an organization.
Standard Objects: Standard objects are provided by salesforce.com such as users, contracts, reports,
dashboards, etc.
Custom Objects: Custom objects are created by users. They supply information that is unique and essential
to their organization. They are the heart of any application and provide a structure for sharing data.
To Create an Object:
Click on Save.+
Click on Save.
Click on Save.
Click on Save.
A tab is a user interface element used to build records for objects and view the records within those objects.
Custom Tabs: Custom object tabs are the user interface for custom applications that you build in salesforce.com.
They look and behave like standard Salesforce tabs such as accounts, contacts, and opportunities.
Keep it as default.
Click on Next.
Click on Save.
Upload a Photo:
Select the items (Supplier, Rice Mill, Consumer, Rice Details) from the search bar.
Move the selected items using the arrow button.
Click Next.
Types of Fields
1. Standard Fields
2. Custom Fields
Standard Fields
As the name suggests, Standard Fields are the predefined fields in Salesforce that perform a standard task. The
main point is that you can’t simply delete a Standard Field unless it is a non-required standard field. Otherwise,
users have the option to delete them freely at any point from the application. Some common fields you will find in
every Salesforce application include:
Created By
Owner
Last Modified
Field Made During Object Creation
Custom Fields
On the other side of the coin, Custom Fields are highly flexible, and users can change them according to their
requirements. Each organization or company can use them if necessary. It means you do not always need to
include them in the records, unlike Standard Fields. Hence, the final decision depends on the user, who can add or
remove Custom Fields as needed.
From the dropdown, click Edit for the Rice Details object.
Creating Junction Object: Rice Details with Supplier & Rice Mill
Creating the Roll-up Summary Field on Supplier & Rice Mill Objects
Give the Field Label as Sum of Rice Distributed. The Field Name will be auto-generated.
Click Next.
Follow the same steps from 1 to 3 for the Rice Mill object.
Give the Field Label as Rice Distributed to Shops. The Field Name will be auto-generated.
Click Next.
Create the field Rice Taken by Shops in Kgs using the number datatype in the Consumer object.
Follow the same steps from 1 to 3 for the Rice Mill object.
Give the Field Label as Rice Taken. The Field Name will be auto-generated.
Click Next.
Navigate to Setup:
In Object Manager, find and select "Rice Details" from the list of objects.
Click on "Fields & Relationships."
In Object Manager, find and select "Rice Mills" from the list of objects.
Click on "Fields & Relationships."
In Object Manager, find and select "Consumer" from the list of objects.
Click on "Fields & Relationships."
Go to setup → click on Object Manager → type object name (consumer) in the search bar Click on Fields &
Relationships → click on New.
Select Data type as “Formula” and click Next.
Give Field Label and Field Name as “Amount Paid” and select formula return type as “Number” Formula :
rice_taken_by_shops__c * rice_mill_name__r.rice_price_kg__c
Give Field Label and Field Name as “Amount Paid” and select formula return type as “Number” and Next.
Go to setup → click on Object Manager → type object name (consumer) in the search bar
Click on Fields & Relationships → click on New.
Select Data type as “Formula” , click Next.
Give Field Label and Field Name as “Consumer Name” and select formula return type as “TEXT” , click
Next.
Insert field formula should be: First_Name__c + ' ' + Last_Name__c , Check For syntax.
Creating the Validation Rule for Phone Number Field in Consumer Object
Go to the setup page → click on Object Manager → from the dropdown click edit for the consumer
object.
Click on Validation Rules → click New.
Enter the Rule Name as “Phonenumberoremailblankrule”.
Enter the Description as “Phone number and email should not be blank”.
Enter the formula as: OR( ISBLANK( phone_number__c ), ISBLANK( email__c )) .
Check the syntax.
Under the Error Message , Write “Please fill in your Phone Number”.
Save Validation rule .
Click Save.
1. Standard Profiles
Contract Manager
Read Only
Marketing User
Solutions Manager
Standard User
System Administrator
2. Custom Profiles
Custom profiles are defined by us. They can be deleted if there are no users assigned with that particular profile.
Go to Setup → type "Profiles" in the quick find box → click on Profiles → clone the desired profile
(Standard User) → enter profile name (Owner) → Save.
Scroll down to Custom Object Permissions and give access permissions for consumers, rice details, rice
mill, and suppliers objects as mentioned in the below diagram.
Give access and save it.
Go to Setup → type "Profiles" in the quick find box → click on Profiles → clone the desired profile
(Standard Platform User) → enter profile name (Employer) → Save.
While still on the profile page, click Edit.
Select the Custom App settings as default for the rice mill.
Scroll down to Custom Object Permissions and give access permissions for consumer, rice details, rice
mill, and suppliers objects as mentioned in the below diagram. Click Save.
Go to Setup → type "Profiles" in the quick find box → click on Profiles → clone the desired profile
(Standard Platform User) → enter profile name (Workers ) → Save.
While still on the profile page, click Edit.
Select the Custom App settings as default for the rice mill.
Scroll down to Custom Object Permissions and give access permissions for consumer, rice details, rice
mill, and suppliers objects as mentioned in the below diagram. Click Save.
Go to Setup → type "Users" in the quick find box → select Users → click New User.
Fill in the fields:
Save it.
Extra Information:
By setting the Organization-Wide Defaults (OWD) to "Public Read-Only," every profile has its own access
according to their profile. In our case, roles are created and assigned so that the owner can see employer and
worker records, and the employer can see worker records.
Consumer Name
Rice Type
Rice Price/kg
Mode of Payment
Amount Paid