Refactor printing logic across multiple scripts to use method chaining for improved readability and consistency
- Updated Printer and PrinterPos instantiation to use method chaining with addParam instead of add_param. - Refactored print functions in various modules including opname.js, pos.js, tukar.js, ppobtx.js, prabayar.js, and multiple report scripts. - Enhanced code clarity and maintainability by standardizing parameter addition for print jobs.
This commit is contained in:
@@ -29,10 +29,10 @@ var PPOBTXJS = {
|
||||
},
|
||||
|
||||
proses_print(oc, no_cetak) {
|
||||
var cetak = new PrinterPos('report/nota/ppob');
|
||||
cetak.add_param("Nomor_Cetak", no_cetak);
|
||||
cetak.add_param("Open_Cash", oc);
|
||||
cetak.exec();
|
||||
new PrinterPos('report/nota/ppob')
|
||||
.addParam("Nomor_Cetak", no_cetak)
|
||||
.addParam("Open_Cash", oc)
|
||||
.exec();
|
||||
},
|
||||
|
||||
proses_delete(no_tx) {
|
||||
|
||||
Reference in New Issue
Block a user