Pman.Dialog.XtupleCreditMemo.bjs
authorAlan Knowles <alan@roojs.com>
Tue, 28 Jan 2014 04:30:05 +0000 (12:30 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 28 Jan 2014 04:30:05 +0000 (12:30 +0800)
Pman.Dialog.XtupleCreditMemo.js

Pman.Dialog.XtupleCreditMemo.bjs
Pman.Dialog.XtupleCreditMemo.js

index e22dc82..68c78ee 100644 (file)
                                                                     "readOnly": true,
                                                                     "width": 100,
                                                                     "xtype": "NumberField",
-                                                                    "|recalc": "function() {\n    var vals = _this.form.getValues();\n    this.setValue(\n        (1*vals.cmhead_taxable_value) + (1*vals.cmhead_taxfree_value) + (1*vals.cmhead_freight) + (1*vals.cmhead_tax_value) + (1*vals.cmhead_misc)\n    );\n}\n",
+                                                                    "|recalc": "function() {\n    var vals = _this.form.getValues();\n    this.setValue(\n        (1*vals.cmhead_taxable_value) + \n        (1*vals.cmhead_taxfree_value) + \n        (1*vals.cmhead_freight) + \n        (1*vals.cmhead_tax_value) + \n        (1*vals.cmhead_misc)\n    );\n}\n",
                                                                     "|xns": "Roo.form"
                                                                 }
                                                             ]
index 264ab5d..b30bdb2 100644 (file)
@@ -640,7 +640,11 @@ Pman.Dialog.XtupleCreditMemo = {
                                                                     recalc : function() {
                                                                         var vals = _this.form.getValues();
                                                                         this.setValue(
-                                                                            (1*vals.cmhead_taxable_value) + (1*vals.cmhead_taxfree_value) + (1*vals.cmhead_freight) + (1*vals.cmhead_tax_value) + (1*vals.cmhead_misc)
+                                                                            (1*vals.cmhead_taxable_value) + 
+                                                                            (1*vals.cmhead_taxfree_value) + 
+                                                                            (1*vals.cmhead_freight) + 
+                                                                            (1*vals.cmhead_tax_value) + 
+                                                                            (1*vals.cmhead_misc)
                                                                         );
                                                                     }
                                                                 }