İçereği Atla
Menü
Bu soru işaretlendi
3 Cevaplar
2865 Görünümler

I am trying to customize my point of sale in the module and what I need to do is obtain the values: customer name, address, product name, quantity, price, subtotal, tax, order total at the moment of pressing the validate button in a directory, list someone could guide me how to do it in version 12.0




Avatar
Vazgeç
En İyi Yanıt

Hi Manfred Lopez,
You need to inherit 'finalize_validation' js function

pos_screen.PaymentScreenWidget.include({
show: function(){
this._super();
var self = this;
},
finalize_validation: function() {
this._super();
var self = this;
var order = this.pos.get_order(); // get all the info regarding purchase
var customer = this.pos.get_client(); // customer info
// other logics here
...
...
},
});


Avatar
Vazgeç
Üretici En İyi Yanıt

Thanks for the reply.

Avatar
Vazgeç
En İyi Yanıt

Hi,

first you can inherit 'finalize_validation'  function:

pos_screen.PaymentScreenWidget.include({
show: function(){
this._super();
var self = this;
},
finalize_validation: function() {
this._super();
var self = this;
var order = this.pos.get_order();
var customer = this.pos.get_client();
// other logics here, what you want
......
},
}); Thank you
Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
2
Nis 22
2902
1
Tem 25
1991
3
Tem 25
2138
3
May 25
3731
4
Ağu 25
3241