Fix #7123 - getting abra ready to test
[Pman.Xtuple] / Pman.Dialog.XtupleJournalEntry.js
index f03f584..635c66f 100644 (file)
@@ -94,6 +94,7 @@ Pman.Dialog.XtupleJournalEntry = {
                                             xns: Roo.form,
                                             fieldLabel : 'Sequence',
                                             name : 'gltrans_sequence',
+                                            readOnly : true,
                                             width : 100
                                         },
                                         {
@@ -101,6 +102,7 @@ Pman.Dialog.XtupleJournalEntry = {
                                             xns: Roo.form,
                                             fieldLabel : 'Journal No.',
                                             name : 'gltrans_journalnumber',
+                                            readOnly : true,
                                             width : 75
                                         },
                                         {
@@ -129,8 +131,9 @@ Pman.Dialog.XtupleJournalEntry = {
                                         {
                                             xtype: 'TextField',
                                             xns: Roo.form,
-                                            fieldLabel : 'Entered',
-                                            name : 'gltrans_entered',
+                                            fieldLabel : 'Created',
+                                            name : 'gltrans_created',
+                                            readOnly : true,
                                             width : 150
                                         }
                                     ]
@@ -144,9 +147,9 @@ Pman.Dialog.XtupleJournalEntry = {
                                             xns: Roo.form,
                                             boxLabel : 'Posted',
                                             fieldLabel : 'Status',
-                                            inputValue : 'true',
-                                            name : 'Posted',
-                                            width : 75
+                                            name : 'gltrans_posted',
+                                            width : 100,
+                                            inputValue : true
                                         },
                                         {
                                             xtype: 'Row',
@@ -158,6 +161,7 @@ Pman.Dialog.XtupleJournalEntry = {
                                                     xns: Roo.form,
                                                     boxLabel : 'Recorded in Bank Reconcile',
                                                     fieldLabel : ' ',
+                                                    inputValue : true,
                                                     name : 'gltrans_rec',
                                                     width : 200
                                                 },
@@ -166,6 +170,7 @@ Pman.Dialog.XtupleJournalEntry = {
                                                     xns: Roo.form,
                                                     boxLabel : 'Deleted',
                                                     fieldLabel : 'Deleted',
+                                                    inputValue : true,
                                                     name : 'gltrans_deleted',
                                                     width : 75
                                                 }
@@ -182,6 +187,7 @@ Pman.Dialog.XtupleJournalEntry = {
                                             xns: Roo.form,
                                             fieldLabel : 'Source',
                                             name : 'gltrans_source',
+                                            readOnly : true,
                                             width : 100
                                         },
                                         {
@@ -189,6 +195,7 @@ Pman.Dialog.XtupleJournalEntry = {
                                             xns: Roo.form,
                                             fieldLabel : 'Doc Type',
                                             name : 'gltrans_doctype',
+                                            readOnly : true,
                                             width : 100
                                         },
                                         {
@@ -196,16 +203,35 @@ Pman.Dialog.XtupleJournalEntry = {
                                             xns: Roo.form,
                                             fieldLabel : 'References',
                                             name : 'gltrans_misc_id',
+                                            readOnly : true,
                                             width : 75
+                                        },
+                                        {
+                                            xtype: 'Button',
+                                            xns: Roo,
+                                            text : "Show"
                                         }
                                     ]
                                 },
                                 {
-                                    xtype: 'TextField',
+                                    xtype: 'Row',
                                     xns: Roo.form,
-                                    fieldLabel : 'Doc No.',
-                                    name : 'gltrans_docnumber',
-                                    width : 400
+                                    items : [
+                                        {
+                                            xtype: 'TextField',
+                                            xns: Roo.form,
+                                            fieldLabel : 'Doc No.',
+                                            name : 'gltrans_docnumber',
+                                            width : 100
+                                        },
+                                        {
+                                            xtype: 'TextField',
+                                            xns: Roo.form,
+                                            fieldLabel : 'Notes',
+                                            name : 'gltrans_notes',
+                                            width : 300
+                                        }
+                                    ]
                                 }
                             ]
                         }
@@ -429,7 +455,7 @@ Pman.Dialog.XtupleJournalEntry = {
                                 
                                     var vv = Roo.util.Format.number(v,2);
                                     if (v*1 < 0 ) {
-                                        return '<span color="red">' + vv + '</span>';
+                                        return '<span style="color:red">' + vv + '</span>';
                                     }
                                     return vv; 
                                 }