Ornids - Multi Service App With Customer App, Driver App, Merchant App and Admin Panel

ozz411

New member
Dec 20, 2020
28
0
3
What radius value should be entered to find the remote trainer your radius is 1000 m = 1km
 

kempes21

Member
Jan 23, 2021
90
33
18
CDN
trx-media.com
Hi i have this code from this source, i think this code for edit format currency.
i need remove digit .00 from format currency in this source but i don't have skills for edit that.
and i done try to litle edit but nothing change anything :(

Can you help me to edit this code or can you tell me about that ?
this sources code in directory "ornidsadmin\asset\app-assets\js\scripts\ourdevelops\duit.js"

Big Thanks :)

Code:
$("input[data-type='currency']").on({
    keyup: function () {
        formatCurrency($(this));
    },
    blur: function () {
        formatCurrency($(this), "blur");
    },
});

function formatNumber(n) {
    // format number 1000000 to 1,234,567
    return n.replace(/\D/g, "").replace(/\B(?=(\d{3})+(?!\d))/g, ",");
}

function formatCurrency(input, blur) {
    // appends $ to value, validates decimal side
    // and puts cursor back in right position.

    // get input value
    var input_val = input.val();

    // don't validate empty input
    if (input_val === "") {
        return;
    }

    // original length
    var original_len = input_val.length;

    // initial caret position
    var caret_pos = input.prop("selectionStart");

    // check for decimal
    if (input_val.indexOf(".") >= 0) {
        // get position of first decimal
        // this prevents multiple decimals from
        // being entered
        var decimal_pos = input_val.indexOf(".");

        // split number by decimal point
        var left_side = input_val.substring(0, decimal_pos);
        var right_side = input_val.substring(decimal_pos);

        // add commas to left side of number
        left_side = formatNumber(left_side);

        // validate right side
        right_side = formatNumber(right_side);

        // On blur make sure 2 numbers after decimal
        if (blur === "blur") {
            right_side += "00";
        }

        // Limit decimal to only 2 digits
        right_side = right_side.substring(0, 2);

        // join number by .
        input_val = left_side + "." + right_side;
    } else {
        // no decimal entered
        // add commas to number
        // remove all non-digits
        input_val = formatNumber(input_val);
        input_val = input_val;

        // final formatting
        if (blur === "blur") {
            input_val += ".00";
        }
    }

    // send updated string to input
    input.val(input_val);

    // put caret back in the right position
    var updated_len = input_val.length;
    caret_pos = updated_len - original_len + caret_pos;
    input[0].setSelectionRange(caret_pos, caret_pos);
}
 

DarkBrazil

Member
May 27, 2020
34
52
18
After completing a race the driver's application stay in a loop and does not return to the Dashboard, does this happen to anyone else? how to solve?
 

diadiemninhthuan

New member
Babiato Fan
Jan 24, 2021
23
2
3
Check your FCM + packgname + sha 1
Need to same on firebase and app project.
Thanks for the support, the information I have made and changed is correct, but when logging in, the driver's account will load and report an erro.
 

Attachments

  • z2303596428685_cc3b03b007743305bf014ead51064e4d.jpg
    z2303596428685_cc3b03b007743305bf014ead51064e4d.jpg
    267.8 KB · Views: 55

DarkBrazil

Member
May 27, 2020
34
52
18
Thanks for the support, the information I have made and changed is correct, but when logging in, the driver's account will load and report an erro.

Check your FCM + packgname + sha 1
Need to same on firebase and app project.

and also update google-services.json after you created your release version of the app
 
  • Like
Reactions: Bang Combat

diadiemninhthuan

New member
Babiato Fan
Jan 24, 2021
23
2
3
Check your FCM + packgname + sha 1
Need to same on firebase and app project.

and also update google-services.json after you created your release version of the app
HI!
I got this error because in configuration file "Constant" is written in base_url after the domain name need to add "/"
I have overcome it
 

diadiemninhthuan

New member
Babiato Fan
Jan 24, 2021
23
2
3
found the driver but does not send a task to the driver.The sender cannot assign a task to the driver after typing the recipient information and payment method Screenshot_2u.jpg
Hi!
I got the same error as you, have you solved this problem only, can you share it?
 

kempes21

Member
Jan 23, 2021
90
33
18
CDN
trx-media.com
Hi i have this code from this source, i think this code for edit format currency.
i need remove digit .00 from format currency in this source but i don't have skills for edit that.
and i done try to litle edit but nothing change anything :(

Can you help me to edit this code or can you tell me about that ?
this sources code in directory "ornidsadmin\asset\app-assets\js\scripts\ourdevelops\duit.js"

Big Thanks :)

Code:
$("input[data-type='currency']").on({
    keyup: function () {
        formatCurrency($(this));
    },
    blur: function () {
        formatCurrency($(this), "blur");
    },
});

function formatNumber(n) {
    // format number 1000000 to 1,234,567
    return n.replace(/\D/g, "").replace(/\B(?=(\d{3})+(?!\d))/g, ",");
}

function formatCurrency(input, blur) {
    // appends $ to value, validates decimal side
    // and puts cursor back in right position.

    // get input value
    var input_val = input.val();

    // don't validate empty input
    if (input_val === "") {
        return;
    }

    // original length
    var original_len = input_val.length;

    // initial caret position
    var caret_pos = input.prop("selectionStart");

    // check for decimal
    if (input_val.indexOf(".") >= 0) {
        // get position of first decimal
        // this prevents multiple decimals from
        // being entered
        var decimal_pos = input_val.indexOf(".");

        // split number by decimal point
        var left_side = input_val.substring(0, decimal_pos);
        var right_side = input_val.substring(decimal_pos);

        // add commas to left side of number
        left_side = formatNumber(left_side);

        // validate right side
        right_side = formatNumber(right_side);

        // On blur make sure 2 numbers after decimal
        if (blur === "blur") {
            right_side += "00";
        }

        // Limit decimal to only 2 digits
        right_side = right_side.substring(0, 2);

        // join number by .
        input_val = left_side + "." + right_side;
    } else {
        // no decimal entered
        // add commas to number
        // remove all non-digits
        input_val = formatNumber(input_val);
        input_val = input_val;

        // final formatting
        if (blur === "blur") {
            input_val += ".00";
        }
    }

    // send updated string to input
    input.val(input_val);

    // put caret back in the right position
    var updated_len = input_val.length;
    caret_pos = updated_len - original_len + caret_pos;
    input[0].setSelectionRange(caret_pos, caret_pos);
}

Hi guys.
Can you help me about this?
 

code999

Active member
Oct 14, 2020
197
27
28
near you
Hi all members, anyone tries to upload driver appon play store..?? If yes then plz guide me how to get aproval driver app get rejected on playstore thx
 

el3ashe2

Active member
Jan 18, 2021
120
30
28
Hi all members, anyone tries to upload driver appon play store..?? If yes then plz guide me how to get aproval driver app get rejected on playstore thx
you need to add sha of play store to firebase and redownload the .json file to the project then rebuild and publish
 

code999

Active member
Oct 14, 2020
197
27
28
near you
you need to add sha of play store to firebase and redownload the .json file to the project then rebuild and publish
No dear that is not the problem due to new google policy there is some terms for background location tracking they ask for pop-up disclaimer before permission granted and also dev have to proof that app requires background locqtion feture in the app too much complicated i just make an apk and distributed offline..
 

kempes21

Member
Jan 23, 2021
90
33
18
CDN
trx-media.com
No dear that is not the problem due to new google policy there is some terms for background location tracking they ask for pop-up disclaimer before permission granted and also dev have to proof that app requires background locqtion feture in the app too much complicated i just make an apk and distributed offline..

I think you just add popup privacy and policy for location requires.
 
  • Like
Reactions: code999

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu