Extend Point of sale ( pos ) version-13

hi i have this code for extend pos…

class PointOfSaleController extends erpnext.PointOfSale.Controller{
constructor(wrapper){
super(wrapper);
}

prepare_menu() {
super.prepare_menu();
this.page.add_menu_item( (“Prestamo”), this.captura_prestamo.bind(this), false);
this.page.add_menu_item(
(“Egreso”), this.captura_egreso.bind(this), false);

}

}

erpnext.PointOfSale.Controller = PointOfSaleController;

but only works in erpnext v13-beta

in erpnext V13 realease not woking… :frowning_face:
May someone help us?

someoe may help with this, some advice or tip, please.

thanks.

I’m trying to do the same thing… u found a solution?

i took the idea from GitHub - aisenyi/erpnext-raw-printing: Raw Pritning for ERPNext POS

1 Like

check the build.json file into public folder…
pos_assets is a symbolic links only…

i took the idea from GitHub - aisenyi/erpnext-raw-printing: Raw Pritning for ERPNext POS

You may want to use this pasigono repo for inspiration instead. I’m not the developer so am not sure exactly what changed, but the raw_printing app was developed on something like version 13.5/13.6. It worked with that, but since that time, there were some breaking changes in more recent versions. The pasigono repo was updated (and some other POS features were added) and is verified working with 13.17 and 13.18.

1 Like

@levi and @landaverdelbo Thxxx !! this helped me alot.

I managed to do what I wanted in the best way without impacting the erpnext source.