GPS Based M-Reporting Documentation - MR
GPS Based M-Reporting Documentation - MR
GPS Based M-Reporting Documentation - MR
Every time user opens the App, one record should be inserted in below table if he is an
authentic user.
Confidential Document
Centaur Pharmaceuticals Pvt Ltd
Confidential Document
Centaur Pharmaceuticals Pvt Ltd
Sequence No. 1
Screen-shot
But further complete structure of MR and MGR is based on ID entered by the user.
Confidential Document
Centaur Pharmaceuticals Pvt Ltd
Since all users will not be shifted to android application at a time, another table is
used to validate user’s registration done via Android application.
Table name: centaur_android.android_user_registration
Systems also checks whether fare chart doctor relation is saved by MR for current
month and only then proceed further. Applicable only to MR.
Fare chart doctor relation is one time activity manage by MR via separate
Portal.
Details GPS based Application is not applicable to Kashmir & Nepal Field Force (MR,MGR)
NEPAL and KASHMIR will be on web based application and rest of the India will be
on Android application.
Confidential Document
Centaur Pharmaceuticals Pvt Ltd
Sequence No. 2
Screen Name Background Process one (Applicable to MR and MGR combined)
Purpose To check Report date and password expiry.
Determines Whether current report or previous locked opened report and password expiry.
Screen-shot Not applicable
Input size, type, Not applicable
validation
Whenever sales Admin Dept. has opened previous day’s report then MR/MGR can
report without GPS as person cannot visit particular location again.
Confidential Document
Centaur Pharmaceuticals Pvt Ltd
Sequence No. 3
Screen Name Initial menu
Purpose To bifurcate GPS and Non GPS Activities
Determines
Screen-shot
On clicking Other Activity, only non GPS related activities are available.
Details
Confidential Document
Centaur Pharmaceuticals Pvt Ltd
Sequence No. 4
Screen Name Background Process two (Only for MR)
Purpose Systems checks following conditions and do not allow to proceeds if either of the
condition fails :
- Report already submitted.
- Leave applied.
- Tour Plan (TP) for this month is not approved.
- Requested for deviation.
- Planner not entered.
- Sample Consignments not confirmed.
- Todays TP date is locked.
Determines Controls mentioned in “purpose” above.
Screen-shot Not applicable
Input size, type, Not applicable
validation
Tp for this month is not approved : if tpstatus field of centaurdata.tp table is “1” then
MR’S TP is not approved.
Requested for deviation :if tpdevreq field of centaurdata.tp table is >0 and
deviated_tpworktype!=’’ then MR has entered deviation which is not approved by his
Manager.
Confidential Document
Centaur Pharmaceuticals Pvt Ltd
Today’s TP date is locked : if locked field =”Y” in centaurdata.tp table. Which means
TP for DFR date is locked and MR cannot report for that date.
Details
Confidential Document
Centaur Pharmaceuticals Pvt Ltd
Sequence No. 5
Screen Name Main Menu
Purpose To select desired activity.
Determines Main Menu
Screen-shot
From – To Place: is taken from centaurdata.tp table fields tpfrom1 & tpto1/
deviated_from1 & deviated_to1 where tpdate is equal to above DFR date.
Confidential Document
Centaur Pharmaceuticals Pvt Ltd
From – To Place (interior) : is taken from centaurdata.tp table fields tpfrom2 & tpto2/
deviated_from2 & deviated_to2 where tpdate is equal to above DFR date.
Places (from-to) from deviated_from2 & deviated_to2s is considered only when
tpdevreq=2 that is approved deviation.
Above all information is only display. After that user will choose option from given
dropdown.
Details
Confidential Document
Centaur Pharmaceuticals Pvt Ltd
Sequence No. 6
Screen Name Call Entry
Purpose Daily Field Report (DFR)
Determines Daily Doctor’s Calls Entry
Screen-shot Image 1 Image 2
Confidential Document
Centaur Pharmaceuticals Pvt Ltd
System checks, once doctor call is saved successfully then again same doctor will not be
displayed in drop down list as shown in Image 1.
If doctors latitude, longitude are rectified for correct geo position then system does not
display those doctors in drop down list, because we expect MR to visit same location 3
times and also rectify 3 times which we call it as three iteration after which IT HELP DESK
Confirms doctors new geo position.
On saving doctor call number of calls count is displayed below doctor button.
count taken from centaurdata.mobile_dfrdrs. Field drcode
GPS Functionality :
As we are having multiple divisions and MR from each division visit same doctor at different places that means
there is overlap in Doctors.
Systems keeps on attempting for almost 60 seconds to get accurate GPS signal and accuracy of signal which
should be less than 25 otherwise system display message that he is not within the desired accuracy.
If timestamp that is last GPS signal fetched by users handset is greater than 5 minutes older, then system diverts user
to JavaScript google map from licensed google maps API. We also show overlay transparent circle indicating 100
meters radius for clinic and 220 meters radius in case of hospital. We also show red colour pointer indicating user’s
current position.
System checks logged in MR’s code in empcde field from centaurERPcrm.doctors_address table and read
latitude, longitude field in front of MR code. In case of multiple_clinic=’Y’, system checks lat-lon in front of MR code
first and then it checks for rest of the divisions assuming Doctor is having multiple clinics.
Then system checks for second clinic if available in front of logged in MR’s code.
Ultimately, system tries to find out user’s nearest matching location as per conditions given below.
Example of multiple_clinic=’Y’ : If logged in MR is ‘SQ82’ then, all lat-lon will be matched. If logged in MR is ‘AE06’
then, all lat-lon and only his second clinic will be matched. If logged in MR is ‘SI07’ then, only lat-lon in front of MR
code will be matched and since this is hospital doctor he will get 220 meters radius for reporting.
Example of multiple_clinic=’N’ and second clinic that is second_clinc_lat and second_clinic_lng are not empty : If
logged in MR is ‘B239’ then, only lat-lon will be matched and if logged in MR is ‘P908’ then, lat-lon and second
clinic lat-lon will be matched.
If user’s current location is not matched with any of the above combination then system will give the message as
shown in Image 2.
Details
Confidential Document
Centaur Pharmaceuticals Pvt Ltd
Input size, type, validation Work Type is drop down list. Values are hardcoded.
Rx Type is a drop down list. Values are hardcoded.
Rx Brand is drop down list of character 60.
Rx Units is a numeric Text box of size 5.
Brands Detailed /Promoted is drop down list of character 5.
Samples / Inputs Given is consist of product name (60 characters) from
centaurERPmasters.prod_mst for Samples and from centaurERPmasters.prom_mst
for promotional material plus total units in hand (int 20) calculated from
centaurdata.samples_stock for each product.
Qty : Text Box (Int 20)
SAVE Button.
Dependency Rx Brand combo depends on Rx Type.
Save button will only appear after selection of Doctor,
Rx Type and Work Type.s
Connectivity
Database.Table used with Fields Access
centaurdata.mobile_hqprd mktg_p_cde, grp, hq Read
read,write,view access centaurERPmasters.prod_mst p_name,p_shrt, p_cde Read
centaurFieldMatrix.matrix_br p_cde, Read
empcde,month,year,drcod
e, opportunity, app_rej
centaurERPcrm.doctors_brands Product_Code, drcode, Read
Units_Per_Month
centaurdata.samples_stock Empcde,p_cde, units, Read/Write
yymm
centaurERPmasters.prom_mst show_in_ereporting, Read
ls_cde, closed
centaurdata.mobile_dfrmain empcde,dfrdate, Read/ Write
storedate,ww1,
ww2,from1,from2,to1,to2,
type1,type2,status,
from_mobile
centaurdata.mobile_dfrdrs empcde,dfrdate, Read/ Write
drcode,me,yn,
ww_mgr,dfrtime,
device_type,
Confidential Document
Centaur Pharmaceuticals Pvt Ltd
device_details,
storedate,
sankalp_activity,
latitude,longitude,
dr_adr_correct,
dr_adr_remark,
meter_diff_matched_with,
accuracy,
altitude,
altitudeaccuracy,
heading,speed,
timestamp,
timestamp_datetime
centaurERPcrm.doctors_address lat_lon_confirmed, Write
drcode, uid
centaurdata.mobile_dfrbrands empcde,dfrdate, Read/ Write
drcode,p_cde,
sampled,storedate
centaurdata.mobile_detailing_pr empcde, Read/ Write
oducts dfrdate,p_cde,
p_name,
drcode,dr_type,
m5_rx_qty,hq,
state
PHP path/file mobile_mr_dfr.php
name,class,function…. mobile_mr_combo_class.php
mobile_mr_savedfr.php
mobile_save_class.php
Process Flow Work Type : Values are Independent or Joint. Mr can work in field independently
or jointly with Manager. If joint working is selected by MR then managers displayed
above in joint work will be shown to MR to select. He can either select one or two
at a time that means he can work with two senior managers.
Refer process from sequence no. 5.
RX Type :
Values are as follows : Based on this Rx brand combo will be displayed.
1. Existing Rxer – Doctor who is already prescribing Centaur brand derived from
centaurdata.mobile_hqprd (key : hq,grp) and centaurFieldMatrix.matrix_br
(key : empcde,month,year,drcode,ooprtunity,app_rej).
We disable opportunity brands from RX Brand combo
from centaurFieldMatrix.matrix_br for ooprtunity=’Y’ and app_rej!=’A’
3. Non Rxers – System does not allow to select and enter RX brand and RX units.
Confidential Document
Centaur Pharmaceuticals Pvt Ltd
Samples / Inputs Given and Qty. : First 3 drop down lists are of samples
with closing stock of logged in MR.
Product name is taken from centaurERPmasters.prod_mst (key : p_cde)
And closing stock is derived from centaurdata.samples_stock
(key : yymm,empcde,p_cde,units).
Logged in MR cannot enter Quantity more than closing stock.
Last 2 drop down lists are of promotional inputs with closing stock of logged in MR.
Promotional Input name is taken from centaurERPmasters.prom_mst (key : ls_cde)
And closing stock is derived from centaurdata.samples_stock
(key : yymm,empcde,p_cde,units). Only those promotional inputs are shown
for whom show_in_ereporting flag is ’Y’ in centaurERPmasters.prom_mst (key : ls_cde)s
SAVE Button :
While saving, system again checks GPS signal. If GPS signal not found
then user will not be able to save the report.
Tables along with field names which are used for saving data are given below
Confidential Document
Centaur Pharmaceuticals Pvt Ltd
Doctor's Entry
Table Field
Table Name Input Field Remark
Name
empcde Login ID Insert
dfrdate DFR Date Insert
storedate Server Date Insert
ww_mgr
centaurdata.mobile_dfrdrs
is selsected then store
values by separating with Insert
comma.
device_type Insert
device_detai
Insert
ls
storedate Server Date Insert
sankalp_acti
Insert
vity
latitude User's current Latitude Insert
longitude User's current Longitude Insert
Confidential Document
Centaur Pharmaceuticals Pvt Ltd
dr_adr_corre
Insert
ct
dr_adr_rema
Insert
rk
Meter difference between Insert
meter_diff_ current location Insert
matched_wit
h and Docotrs address found Insert
in database Insert
Accuracy GPS Accuracy Insert
altitude GPS Altitude Insert
altitudeaccur
GPS Altitudeaccuracy Insert
acy
heading GPS Heading Insert
speed GPS Speed Insert
timestamp GPS Timestamp Insert
Confidential Document
Centaur Pharmaceuticals Pvt Ltd
Rx Information
Table Field
Table Name Input Field Remark
Name
empcde Login ID Insert/update
dfrdate DFR Date Insert/update
centaurdata.
mobile_dfrbr drcode Doctor Code
Insert/update
ands
p_cde Rx Brand Insert/update
rx Rx Units Insert/update
Confidential Document
Centaur Pharmaceuticals Pvt Ltd
Confidential Document
Centaur Pharmaceuticals Pvt Ltd
Sequence No. 7
Screen Name Call Entry
Purpose Chemist
Determines Daily Chemist Visit details
Screen-shot
RCPA (Retailer Chemist Prescription Audit): This drop down will contain Doctor’s name &
code. If Doctor’s details are already saved by MR then those saved doctors will appear
which are derived from centaurdata.mobile_dfrdrs (key : empcde, dfrdate) and
centaurdata.drchart (key : Drcode,empcde) otherwise from
Confidential Document
Centaur Pharmaceuticals Pvt Ltd
Competitor Brand & Units : Information of competitor brands for Centaur Brands and their
units.
New Product Availability : This drop down is of Centaur’s Newly launched brands derived
from centaurERPmasters.prod_mst (key : groups ) where difference of current date &
launching date of product is less than or equal 180 days.
SAVE Button : Will appear only after entry of Chemist Name , Competitor Brand & units and
Selection of RCPA Doctor.
Tables along with field names which are used for saving data are given below
Chemist Details
New product
newbrand
Availability
Insert
centaurdasta. rcpa_drcode RCPA Doctor
mobile_dfrch Insert
emist rcpa Competitor Brand
Insert
rcpa_units Competitor Units
Insert
dfrtime Server Time
Insert
Details
Confidential Document
Centaur Pharmaceuticals Pvt Ltd
Sequence No. 8
Screen Name Call Entry
Purpose Stockist
Determines Stockists Visited
Screen-shot
Input size, type, Stockist : Drop down list of Stockist Name (40 CHAR) + Stockist Code (4 CHAR)
validation
Dependency
Connectivity
Database.Table used Fields Access
centaurERPsndStatistic.statistic_dmr distcde,empcde Read
with read,write,view
centaurFieldFormats.sss_closed Distcde,grp Read
access centaurERPmasters.dist_mst Distnme, distcde Read
centaurdata.mobile_dfrchemist empcde,dfrdate,stkcde,stockist,df Read /
rtime,device_type,storedate Write
Stockist Details
Confidential Document
Centaur Pharmaceuticals Pvt Ltd
Details
Sequence No. 9
Screen Name Call Entry
Purpose To Freeze DFR Entry
Determines
Screen-shot
Dependency
Connectivity
Database.Table used Fields Access
centaurdata.mobile_dfrmain freeze,remark,empcde,dfrdate Read /
with read,write,view
Write
access centaurdata.dfrmain empcde,dfrdate,storedate, Read /
ww1,ww2,from1,from2, Write
to1,to2,town,city,days,planday,
uerycombo,STATUS,empgroup,
remark,type1,type2,COMMENT,
commentby,commentdt,
commentstatus,mgrlearning,
secsales,competitive_info,
dfrkm1,dfrkm2,taken_for_CGA ,
remark1,remark2,remark3,
remark4,remark5,remark6,
Confidential Document
Centaur Pharmaceuticals Pvt Ltd
remark7,remark8,remark9,
remark10,remark11,remark12,
remark13,remark14,remark15,
remark16,remark17,remark18,
remark19,remark20,remark21,
remark22,remark23,remark24,
remark25,from_mobile,freeze,
conv_automail,m5brand_automail,
freeze_by_system
centaurdata.dfrdrs empcde,dfrdate,drcode, Read /
me,yn,ww_mgr,cmd, Write
cmd_brand,
cmd_rx,cmd_remarks,dfrtime,
week_day,plan_no,
plan_day,dr_activity,
device_type,device_details,
storedate,sankalp_activity,
jw_assigned,jw_date,
jw_time,latitude,
longitude,altitude,
altitudeaccuracy,
heading,speed,accuracy,
TIMESTAMP,
timestamp_datetime,
meter_diff_matched_with,
dr_adr_correct,dr_adr_remark,
dr_remark
centaurdata.dfrchemist empcde,dfrdate, Read /
stkcde,stockist, Write
chemist,me,pob,
newbrand,rcpa_drcode,
rcpa,rcpa_units,
dfrtime,device_type,
storedate,
pob_includes_sint_new
centaurdata.dfrbrands empcde,dfrdate,drcode, Read /
p_cde,rx,detailed, Write
sampled,othbrand,
othqty,p2,campaign_code,
converted,conversion_remark,
rx_approved_by,rx_approved_on,
p_snp,rx_value,
primary_detailed,storedate
centaurdata.detailing_products empcde,dfrdate,p_cde, Read /
p_name,drcode,dr_type, Write
started_m5_rx,m5_rx_qty,
hq,state,m5brand_automail,
opportunity_closed,app_date,
app_rej_by,app_rej,mgr_remark,
mail_sent,conv_to_president,
conv_to_president_remark,
conv_to_president_by
centaurFieldFormats.allow_web_repor dfr_done,empcde,from_date, Write
ting to_date
Confidential Document
Centaur Pharmaceuticals Pvt Ltd
Table Field
Table Name Input Field Remark
Name
centaurFieldFormat
Save value
s.allow_web_repor dfr_done
as "Y"
ting Update
Replace
Basetown with From
centaurdata.farech place Update
art_doctor_relation Replace
desttown with To
Place Update
empcde Login ID Insert
Today's
from_patch
From Place
Insert
Original
to_patch
centaurdata.farech From Place
Insert
art_doctor_relation
Doctor
_action drcode
Code Insert
login_id Login ID Insert
login_date Server Date
Insert
Server
login_time
Time Insert
Details
Confidential Document
Centaur Pharmaceuticals Pvt Ltd
Sequence No. 10
Screen Name Call Entry
Purpose To Enter Non – Working Report (e.g. Training at HO, Meeting etc.)
Determines
Screen-shot
Input size, type, Stockist : Drop down list of Stockist Name (40 CHAR) + Stockist Code (4 CHAR)
validation SAVE Button
Remark : Text box CHAR 230
Submit & Freeze Button
Dependency
Connectivity
Database.Table used Fields Access
centaurERPsndStatistic.statistic_dmr distcde,empcde Read
with read,write,view
centaurFieldFormats.sss_closed Distcde,grp Read
access centaurERPmasters.dist_mst Distnme, distcde Read
centaurdata.mobile_dfrchemist empcde,dfrdate,stkcde,stockist Read /
,dfrtime,device_type,storedate Write
centaurdata.mobile_dfrmain empcde,dfrdate,storedate,ww1 Read /
,ww2,from1,from2,to1,to2,type1, Write
type2,status,remark,from_mobil
e
PHP path/file mobile_mr_stockist.php
name,class,function mobile_mr_savestockist.php
…. mobile_mr_freeze.php
mobile_save_class.php
Process Flow Non Working Report Entry :
For Non-Working reporting, only stockist button is visible. MR can save stockist which is not
compulsory.
For non-working reports Submit & Freeze button and Remark text box will appear
automatically. After clicking Submit & Freeze data will be saved in below table.
Confidential Document
Centaur Pharmaceuticals Pvt Ltd
Details
Confidential Document
Centaur Pharmaceuticals Pvt Ltd
Sequence No. 11
Screen Name Geocoding Addresses (MR/MGR)
Purpose To tag doctors geo-position
Determines DFR entry
Screen-shot
Input size, type, Employee combo employee name(150) and right(5) char of drcode
validation Cick to save Geo-Position Button
This option is available in drop down till three iteration done by MR/MGR. IF doctors Geo-
position confirmed by MR/MGR then this option is not visible.
Confidential Document
Centaur Pharmaceuticals Pvt Ltd
Same MR is visiting Doctor at two places. Tag this place. : If MR visiting to doctor at his
second clinic then Mr/MGR requested our GPS HELP-DESK help desk investigate the clinic
photo and doctor name on WhatsApp and push one entry in
centaurERPcrm.request_for_second_clinic table if employee code and today’s date
available in centaurERPcrm.request_for_second_clinic table then Same MR is visiting Doctor
at two places. Tag this place option is available for MR/MGR for tagging second clinic.
MAP: geocoded area of the doctor 100 meters for clinic and 220 for hospital is shown in
form of circle and MR/MGR’S current position shown in form of Red Pointer.s
Details
Confidential Document
Centaur Pharmaceuticals Pvt Ltd
Sequence No. 12
Screen Name New DR Addition with Geocoding (Only for MR)
Purpose To take geo-position of doctor
Determines Latitude,longitude of Doctor’s Clinic/Hospital
Screen-shot
Confidential Document
Centaur Pharmaceuticals Pvt Ltd
Confidential Document
Centaur Pharmaceuticals Pvt Ltd
Details
Confidential Document
Centaur Pharmaceuticals Pvt Ltd
Sequence No. 13
Screen Name Transfer DR.
Purpose To transfer doctor from any other patch to today’s patch
Determines
Screen-shot
Input size, type, From Patch is a drop down list consist of from place char(30) & to place char (30),
validation Doctor drop down list is of 150 character and right 5 digits of doctor code.
To patch is a drop down list consist of from place char(30) & to place char (30),
“Is this transfer only for today?” is a check box.
Transfer button
Dependency Doctor drop down list is depend on from patch selection.
Connectivity This Transferred Doctor is visible in Doctor drop down list of Call Entry.
Database.Table used Fields Access
centaurdata.farechart_doctor_relation basetown,desttown,yymm,emp Read/Wr
with read,write,view
cde,drcode,drname,login_id, ite
access login_date,login_times
centaurdata.drchart Empcde,drcode, Read
centaurdata.farechart_doctor_relation_ empcde,from_patch,to_patch, Write
action drcode,only_for_today,login_id,l
ogin_date,login_time
PHP path/file Mobile_mr_transfer_dr.php
name,class,function Mobile_mr_savetransferdr.php
Mobile_save_class.php
….
Process Flow From Patch : Derived from centaurdata.farechart_doctor_relation (Key :yymm,empcde) of
logged in MR.
To Patch : Today’s patch as per Tour plan. For details please refer sequence no 5 (Process
flow From – To Place).
Is this transfer only for today ? : On click of this transfer will be reversed back to the
original patch after submission of DFR.
Confidential Document
Centaur Pharmaceuticals Pvt Ltd
After selection of from patch & Doctor , Transfer Button will appear.
Table Field
Table Name Input Field Remark
Name
Replace with
basetown
Today's From place
centaurdata.fare
chart_doctor_rel Update
ation
Replace with
desttown
Today's To place
Update
empcde Login ID Insert
Details Every MR defines his patch through fare chart – doctor relation. In each patch there can be
more than one doctors attached.
In tour plan, MR selects this patch as from – to place (where he will visit) for
every day.
While doing call entry, doctor’s drop down list is derived from this patch
which is mentioned in tour plan against DFR date.
But if MR wants to meet another Doctor who is not in today’s patch, he can
transfer that doctor to today’s patch through this entry.
Confidential Document
Centaur Pharmaceuticals Pvt Ltd
If he clicks this question then after final freeze of DFR, again that doctor will
get transfer to original patch otherwise will remain in today’s patch.
Confidential Document
Centaur Pharmaceuticals Pvt Ltd
Sequence No. 14
Screen Name MR Tour plan
Purpose Daily field work plan
Determines
Screen-shot
Prev button
Next button
Save button
Send For Approval button
Confidential Document
Centaur Pharmaceuticals Pvt Ltd
ddate,tpdevreq,tpdevreqdate,
tpdevres,tpdevapvdate,tpdeva
pvres,tpdevapvemp,locked,
locked_open_by,aimedconv,
deviated_tpworktype,deviated
_ww1,deviated_ww2,deviated_
from1,deviated_to1,deviated_ty
pe1,deviated_type2,deviated_f
rom2,deviated_to2,deviated_k
m1,deviated_km2,device_type
centaurFieldFormats.open_locked_tp empcde Read
centaurERPsnd.month_close yyyy Read
centaurdata.km_for_tp $kmfld,showkm,hqworking,yym Read
m,empcde
centaurERPsndStatistic.statistic_lvl empcde,yymm Read
centaurdata.mobile_dfrmain empcde,dfrdate,storedate,STAT Read/Wr
US,remark,type1,from_mobile ite
centaurERPadmin1819.holiday Holidate, state, Read
centaurdata.farechart Empcde,basetown,desttow Read
n,dist_km,type
centaurERPleave.leave_transactions empl_cd,leave_from,leave_to,
application_type,
late_mark_entry,
encashment_entry,
application_type
centaurdata.users_status statustype
centaurERPsndStatistic.statistic_rep_mst manager,grp,yymm,empcde
centaurdata.tpmgr Empcde,tpdate,tpmanageer1,t
pmanager2, tpstatus, tpdevreq,
deviated_ww1, deviated_ww2
PHP path/file mobile_mr_tp.php
name,class,function mobile_mr_tp_details.php
….
Process Flow Status : Derived from centaurdata.users_status
Confidential Document
Centaur Pharmaceuticals Pvt Ltd
SUNDAY, HOLIDAY and LEAVE dates should freeze while updating a Tour plan.
If tour plan not entered before 25 of every month for the next month system marked MR’S 1
to 12 Days as HQ-HQ and system freeze first 12 days.
For SUNDAY, HOLIDAY and LEAVE system pushed one entry into
centaurdata.mobile_dfrmain table.
After successfully Tour Plan entry MR can press “Send for Approval” which will send automail
to his manager to approve his Tour plan.
yyyy year
centaurERPmasters.statistic_ru Read
nctl yymm month Read
chr_month month in character Read
empcde Login ID
centaurERPsndStatistic.statistic_em Read
p_mst Login Employee
empnme
Name Read
dt_joining Date of Joining Read
Table Field
Table Name Input Field Remark
Name
empcde Login ID Read
yymm year/month Read
centaurFieldForma
remark Remark Entered by admin dept Read
ts.open_locked_tp
from_date tp locked open from date Read
to_date tp locked open to date Read
Confidential Document
Centaur Pharmaceuticals Pvt Ltd
Holiday Master
Table Name Table Field Name Input Field Remark
team logged in MR HQ Read
state logged in MR state Read
centaurERPadmin1819 grp logged in MR grp Read
.holiday Holiday (Diwali,Holi,
holiday
etc….) Read
holidate Holiday Date Read
Farechart Master
Table Name Table Field Name Input Field Remark
empcde Logged in ID Read
basetown place from Read
desttown place to Read
dist_km KM Read
centaurdata.farechart
field work non field
fw_nfw
work area Read
Fare Type
TYPE
(HQ,EX,OS,etc….) Read
Apply,Cancel,Etc…..
application_type Read
centaurERPleave.leav
empl_cd "CH00"+Logged in ID Read
e_transactions
leave_from Leave taken from Read
leave_to Leave taken up to Read
Confidential Document
Centaur Pharmaceuticals Pvt Ltd
Table Field
Table Name Input Field Remark
Name
empl_code Manager code Read
tpdate Tour Plan Date Read
tpmanager1 MR 1 selected for Tour Plan Read
centaurdata. tpmanager2 MR 2 selected for Tour Plan Read
tpmgr tpstatus Tour plan status (WORKING,MEETING,Etc..) Read
tpdevreq Deviation Requested by Manager Read
deviated_ww1 Deviated MR 1 selected for Tour Plan Read
deviated_ww2 Deviated MR 2 selected for Tour Plan Read
Table
Table Field Name Input Field Remark
Name
empl_code Login ID Delete & Insert
tpdate Tour plan Date Delete & Insert
tpfrom1 From Place 1 Delete & Insert
tpto1 To place 1 Delete & Insert
tptype1 TP type (HQ,EX…..) Delete & Insert
tpfrom2 From Place 2 Delete & Insert
tpto2 TO place 2 Delete & Insert
tptype2 TP type Delete & Insert
KM of From place 1+To Delete & Insert
tpkm1
place 1
KM of From place 2+To Delete & Insert
tpkm2
place 2
Manager 1 who have Delete & Insert
tpmanager1
selected him
centaur Manager 2 who have Delete & Insert
data.tp tpmanager2
selected him
business1 Not in use Delete & Insert
business2 Not in use Delete & Insert
Tpstatus=0 means entered Delete & Insert
byMR,Tpstatus=1
tpstatus
means approved by Delete & Insert
manager
tpworktype Working type Delete & Insert
Employee code of TP Delete & Insert
tpapprovedby
approved manager
Storedate when mr save his Delete & Insert
tpstoredate
TP
tpapproveddate Manager TP approved Date Delete & Insert
Tpdevreq=1 means MR Delete & Insert
tpdevreq
enter TP deviation,
Confidential Document
Centaur Pharmaceuticals Pvt Ltd
Details
Confidential Document
Centaur Pharmaceuticals Pvt Ltd
Sequence No. 15
Screen Name View Tour Plan (TP)
Purpose
Determines
Screen-shot
Confidential Document
Centaur Pharmaceuticals Pvt Ltd
Details
Confidential Document
Centaur Pharmaceuticals Pvt Ltd
Sequence No. 16
Screen Name TP Deviation
Purpose To Deviate tour plan
Determines
Screen-shot
Input size, type, Deviation date combo last 7 days date are visible for Deviation
validation Status combo
From-to combo of basetown char(30) and desttown char(30),KM int(4),type char(10)
Interior From To combo of basetown (30) and desttown(30),KM int(4),type char(10)
Remark : Text area.
Confidential Document
Centaur Pharmaceuticals Pvt Ltd
If entered one doctor and tried to entered TP deviation, system should stop MR to enter TP
deviation.
If already entered TP deviation and his immediate manager not approve then system not
allow MR to enter again TP deviation. Prompt Message “Your Tp for this month is not
approved.Please confirm with your Manager”
if TP date is locked by admin dept then system should not allow MR to put TP deviation.
Details
Confidential Document
Centaur Pharmaceuticals Pvt Ltd
Sequence No. 17
Screen Name Assign as Joint Call
Purpose To mention doctor call entry as Joint call with Manager instead of independent call.
Determines
Screen-shot
Input size, type, Doctor drop down list is of 150 character and right 5 digits of doctor code.
validation Manager Code – Designation is a check box.
“Save & Assign” as button.
Confidential Document
Centaur Pharmaceuticals Pvt Ltd
Sequence No. 18
Screen Name Confirm Consignment
Purpose
Determines
Screen-shot
Confidential Document
Centaur Pharmaceuticals Pvt Ltd
After selecting consignment, products with despatch qty (qty_recd field from
centaurdata.promotdata) are shown.
If received qty. is less than despatched qty. then add one more record in
centaurdata.samples_stock table with empcde = ‘SUSP’ (i.e. suspense account) with
difference of qty. between despatched qty. & received qty.
Sample Consignment
Confidential Document
Centaur Pharmaceuticals Pvt Ltd
Current
yymm
Year(YY)+Month(mm)
insert
empcde Login ID insert
dfrdate DFR Date insert
Product
p_cde (Sample/Promotional
Input) insert
Product
p_shrt (Sample/Promotional
Input) Short Name
insert
trn_no Transation Number insert
Stock Type (Issue /
stock_type
Receipt / Opening) insert
centaurdata.samples_stock
TYPE Dispatch/ C&F Transfer
insert
fromto_empcde Login ID insert
drcode Doctor Code insert
consignment_no Consignment Number
insert
consignment_date Consignment Date insert
units Qty Received insert
cost Product Cost insert
VALUE Units*Cost insert
login_id Login ID insert
login_date Server Date insert
login_time Server Time insert
pass_used Login Password insert
Details
Confidential Document
Centaur Pharmaceuticals Pvt Ltd
Sequence No. 19
Screen Name Dr Info.
Purpose To view MR doctor details and activity related information.
Determines High/low potential doctors
Screen-shot
Dependency
Connectivity
Database.Table used Fields Access
centaurdata.farechart_doctor_relation empcde,yymm,drcode,baseto Read
with read,write,view
wn,desttown
access centaurdata.drchart drcode,drname,hcname,hcad Read
dline1,hcaddline2,hcaddline3.d
r_town,dr_city,patients,state,pin,
birth_day,birth_mth,birth_year,a
nniv_day,anniv_mth,anniv_year,
product_units,value_pm
centaurdata.dfrdrs dfrdate Read
centaurdata.dfrmain ww1,ww2 Read
centaurERPsndStatistic.statistic_lvl empnme Read
centaurFieldFormats.precme_detail cme_id Read
centaurFieldFormats.precme_main cme_date Read
centaurFieldFormats.precrmact_detail activity_id, drcode Read
centaurFieldFormats.precrmact_detail pre_entered_date, Read
centaurFieldFormats.postcpr_drdetail cpr_id,drcode Read
centaurFieldFormats.precpr_main conf_fdate Read
centaurFieldMatrix.matrix_br v_pattern,p_cde,p_shrt, Read
month,year, drcode,empcde
Confidential Document
Centaur Pharmaceuticals Pvt Ltd
System checks, once doctor call is saved successfully then again same doctor will not be
displayed in drop down list.
If doctors latitude, longitude are rectified for correct geo position then system does not
display those doctors in drop down list.
Before enter into doctors cabin MR should have detail information about doctors
Confidential Document
Centaur Pharmaceuticals Pvt Ltd
Sequence No. 20
Screen Name Balance Calls
Purpose To vive MR his todays DFR details.
Determines
Screen-shot
Dependency
Connectivity
Database.Table used Fields Access
centaurdata.mobile_dfrdrs Dfrtime, empcde, Read
with read,write,view
drcode,dfrdate
access centaurdata.drchart drcode,empcde,empnme, Read
farechart_doctor_relation Yymm,basetown,desttown,emp Read
cde,drcode
centaurdata.mobile_dfrchemist chemist,dfrtime, empcde, Read
dfrdate, chemist, stkcde,dfrtime
centaurERPmasters.dist_mst Distnme, distcde Read
PHP path/file mobile_mr_balance_calls.php
name,class,function
….
Process Flow
Doctors call, chemist details and stockists details which are entered by MR for today has
been shown here.
Details
Confidential Document
Centaur Pharmaceuticals Pvt Ltd
Sequence No. 21
Screen Name view Sample Stock
Purpose To view current stock (Sample / Promotional Inputs) in hand.
Determines
Screen-shot
Dependency
Connectivity Sample stock
Database.Table used Fields Access
centaurdata.samples_stock p_cde, units, value, empcde, Read
with read,write,view
yymm
access centaurERPmasters.prod_mst p_name,p_shrt Read
centaurERPmasters.prom_mst show_in_ereporting Read
PHP path/file mobile_mr_stock.php
name,class,function
….
Process Flow Show Product wise Units in stock.
Details
Confidential Document
Centaur Pharmaceuticals Pvt Ltd
Sequence No. 22
Screen Name Update Drs. Mobile no.
Purpose
Determines
Screen-shot
Dependency
Connectivity
Database.Table used Fields Access
centaurERPcrm.doctors_address mobile_no, drcode, Read/wri
with read,write,view
te
access centaurERPcrm.doctors_main Email,drcode Read/Wr
ite
centaurERPcrm.doctors_action login_id,date,time,details Read/wri
te
PHP path/file mobile_mr_mob_no.php
name,class,function
….
Process Flow To update doctor mobile no and email id
Details
Confidential Document
Centaur Pharmaceuticals Pvt Ltd
Sequence No. 23
Screen Name Change Password
Purpose
Determines
Screen-shot
Confidential Document
Centaur Pharmaceuticals Pvt Ltd
Pressvious
centaurERPmasters.login_id old_password Password Update
Confidential Document
Centaur Pharmaceuticals Pvt Ltd
Sequence No. 24
Screen Name Bulletin
Purpose To flash Bulletin to MR/MGR
Determines
Screen-shot
Dependency
Connectivity
Database.Table used Fields Access
centaurdata.mobile_bulletine from_date,to_date,grp,bulletine Read
with read,write,view
_details
access
PHP path/file We have hardcoded. Now created a table to store a bulletin
name,class,function
….
Process Flow Group wise bulletin stored in centaurdata.mobile_bulletine table. on basis of from_date
and to_date and grp system should flash bulletin
Details
Confidential Document