I made an ajax request that saves my data that I want to send
to the pos receipt; I want that when saving this data is also sent to the receipt for printing; this way it doesn't workconfirm: function() {
var order = self.pos.get_order();
//console.log(order.get_amount())
var client_name=$("#client_name").text()
var numero_agent=$("#numero_agent").text()
var ref=document.getElementsByName("ref")[0].value
var montant=document.getElementsByName("montant")[0].value
if(ref != '' && montant != ''){
console.log('dans mobile money')
ajax.jsonRpc("http://localhost:8070/postmobilemoney/",'call',{
name:"test",
reference:ref,
montant:montant,
nom_client:client_name,
numero_agent:numero_agent,
}).then(function (result){
montant=result['montant']
ref=result['reference']
client_name=result['nom_client']
numero_agent=result['numero_agent']
self.gui.show_screen('receipt',{'montant':montant,ref:'ref','client_name':client_name})
})
}else {
alert("veuillez remplir tous les champs")
}
},
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Akuntansi
- Inventaris
- PoS
- Project
- MRP
Pertanyaan ini telah diberikan tanda
2032
Tampilan
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
Creating a custom field widget on Odoo ERP system
Diselesaikan
|
|
1
Jan 20
|
6946 | |
|
0
Mar 17
|
2998 | ||
|
0
Apr 25
|
1119 | ||
How i can modify JS method in POS?
Diselesaikan
|
|
1
Sep 23
|
7266 | |
|
1
Mei 23
|
7168 |