POS Customization Custom Field

Is this possible? How? Thanks a lot!

@sheerland check with pos.js where

sync_sales_invoice: function () {
		var me = this;
		this.si_docs = this.get_submitted_invoice() || [];
		this.email_queue_list = this.get_email_queue() || {};
		this.customers_list = this.get_customers_details() || {};
		if(this.customer_doc) {
			this.freeze = this.customer_doc.display
		}

		if ((this.si_docs.length || this.email_queue_list || this.customers_list) && !this.freeze) {
			frappe.call({
				method: "erpnext.accounts.doctype.sales_invoice.pos.make_invoice",
				args: {
					doc_list: me.si_docs,
					email_queue_list: me.email_queue_list,
					customers_list: me.customers_list
				},
				callback: function (r) {
					if (r.message) {
						me.customers = r.message.synced_customers_list;
						me.address = r.message.synced_address;
						me.contacts = r.message.synced_contacts;
						me.removed_items = r.message.invoice;
						me.removed_email = r.message.email_queue
						me.removed_customers = r.message.customers
						me.remove_doc_from_localstorage();
						me.remove_email_queue_from_localstorage();
						me.remove_customer_from_localstorage();
						me.prepare_customer_mapper()
						me.autocomplete_customers()
					}
				}
			})
		}
} 

check you get data you need then check terminal do you get your custom data

manipulate with

pos.py

1 Like

Need assistance on getting this done. Where to start. I need to add cost_center to be allowed to change per POS transaction.