Hedera.DeliveryNote = new Class ({ Extends: Hedera.Report ,subtotalRenderer: function (column, form) { column.value = this.subtotal (form); } ,subtotal: function (form) { var price = form.get ('price'); var discount = form.get ('discount'); return form.get ('quantity') * price * ((100 - discount) / 100); } });