Multi Currency Payment - POS View - Solved

Looks like you missed the previous command to run.

Update os

sudo apt-get update

You may have to install Python 2.7 (eg on Ubuntu 16.04+) by running

apt-get install python-minimal

You may also have to install build-essential and

python-setuptools by running apt-get install build-essential python-setuptools

After these you try the other command also make frappe user and grant sudo access to frappe

Hello,

we follow the steps but same error. Please see below

Steps

  1. apt-get update
  2. apt-get install python-minimal
  3. apt-get install build-essential python-setuptools
  4. wget https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py
  5. sudo python install.py --production --version 11 --python python2.7 --user frappe

root@erpnext11:~# apt-get update
Get:1 Index of /ubuntu/ xenial InRelease [247 kB]
Hit:2 Index of /ubuntu/ xenial-updates InRelease
Hit:3 Index of /ubuntu/ xenial-backports InRelease
Hit:4 Index of /ubuntu xenial-security InRelease
Fetched 247 kB in 0s (627 kB/s)
Reading package lists… Done
root@erpnext11:~# apt-get install python-minimal
Reading package lists… Done
Building dependency tree
Reading state information… Done
python-minimal is already the newest version (2.7.12-1~16.04).
The following package was automatically installed and is no longer required:
grub-pc-bin
Use ‘apt autoremove’ to remove it.
0 upgraded, 0 newly installed, 0 to remove and 15 not upgraded.
root@erpnext11:~# apt-get install build-essential python-setuptools
Reading package lists… Done
Building dependency tree
Reading state information… Done
build-essential is already the newest version (12.1ubuntu2).
python-setuptools is already the newest version (20.7.0-1).
The following package was automatically installed and is no longer required:
grub-pc-bin
Use ‘apt autoremove’ to remove it.
0 upgraded, 0 newly installed, 0 to remove and 15 not upgraded.
root@erpnext11:~# wget https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py
–2019-08-29 07:20:34-- https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py
Resolving raw.githubusercontent.com (raw.githubusercontent.com)… 151.101.8.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.8.133|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 13353 (13K) [text/plain]
Saving to: ‘install.py.5’

install.py.5 100%[===================>] 13.04K --.-KB/s in 0s

2019-08-29 07:20:34 (29.6 MB/s) - ‘install.py.5’ saved [13353/13353]

root@erpnext11:~# sudo python install.py --production --version 11 --python python2.7 --user frappe
Get:1 Index of /ubuntu/ xenial InRelease [247 kB]
Hit:2 Index of /ubuntu/ xenial-updates InRelease
Hit:3 Index of /ubuntu/ xenial-backports InRelease
Hit:4 Index of /ubuntu xenial-security InRelease
Fetched 247 kB in 0s (640 kB/s)
Reading package lists… Done
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package libssl1.0-dev
E: Couldn’t find any package by glob ‘libssl1.0-dev’
E: Couldn’t find any package by regex ‘libssl1.0-dev’
Traceback (most recent call last):
File “install.py”, line 413, in
install_bench(args)
File “install.py”, line 21, in install_bench
‘sudo yum install -y epel-release redhat-lsb-core git python-setuptools python-devel openssl-devel libffi-devel’
File “install.py”, line 226, in run_os_command
returncode = subprocess.check_call(command, shell=True)
File “/usr/lib/python2.7/subprocess.py”, line 541, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘sudo apt-get install -y git build-essential python3-setuptools python3-dev libffi-dev libssl1.0-dev’ returned non-zero exit status 100

Try this command as recommended by the error

also this one

Hello,

Error Still,

root@erpnext11:~# sudo yum install -y epel-release redhat-lsb-core git python-setuptools python-devel openssl-devel libffi-devel
sudo: yum: command not found
root@erpnext11:~# sudo apt-get install -y git build-essential python3-setuptools python3-dev libffi-dev libssl1.0-dev
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package libssl1.0-dev
E: Couldn’t find any package by glob ‘libssl1.0-dev’
E: Couldn’t find any package by regex ‘libssl1.0-dev’
root@erpnext11:~#

Just use libssl1.0 and try.
Or skip libssl for now and try to install erpnext using the production command.

Check this

still have the same error encountered.

I think the package name has changed so first you need to find the name of the libssl package and then replace it in the script and then run the script.

This is little bit of technical but a basic for user with Linux knowledge.

I already replace the following:

  1. ‘sudo apt-get install -y git build-essential python3-setuptools python3-dev libffi-dev libssl-dev’
  2. - libssl-dev
    

Then I have no idea what is causing this problem maybe you need to wait for the frappe team to look into this.
There are some people who resolved by using the link shared by clarkej above.

You should follow that thread and respond there as that is the right thread and not this one.

thank you

I have finally been able to make the PoS bahrain work.

It is very very impressive. Good job guys.

Looking forward to working with you to make it even better.

Thumbs up

2 Likes

Please share what features are important for your use case?
I will be helpful of us to understand what are the common use cases.

1 Like

Thanks @fkardame

  1. Ability to do Return should be controlled by rights at the PoS Profile.
  2. When you choose “Is return” it should automatically generate a credit note for the customer. We do not need return for cash. Or it is made optional …Cash or Credit note
  3. Once user clicks “submit and print” it should automatically submit, print and open a new cart ready for transaction.
1 Like

Hi, im using v12 and already install pos bahrain but it not coming at my desk page? any step that i miss out?

Hello and welcome to the forum,

It is not ready for v12 yet

Hi, I have followed the instructions on how to setup multi currency in POS but I can’t seem to get to this screen. I installed POS Bahrain successful on v12. Where can I be missing it?

Many things.
You need to share more details on what all you have done.

I successfully installed ERPNext version 12 on Ubuntu 20.04. I then 1. Changed to my frappe-bench directory and did: sudo git GitHub - f-9t9it/pos_bahrain: POS enhancement for ERPNext. Command executed successfully (right syntax), did a bench restart. POS Bahrain didn’t list but could find it through awesome bar. When I created mode of payment and set default account as my base currency ZWD A/C and checked Use Other Currency and selected my ,
‘foreign’ currency as USD. Listed this mop in my POS profile. When checking out after a transaction, despite having defined exchange rates, my mode of payment screen shows both in same base currency. Also the two tabs that I see on this blog (Base Currency/Alternate Currency) do not show. How can I set this correctly.