revenue full flow

This commit is contained in:
saravanakumar_kandasami 2017-07-31 22:08:42 +05:30
parent b458cc2bf5
commit d2ce7e70a0
12 changed files with 1711 additions and 350 deletions

View File

@ -0,0 +1,12 @@
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?>
ERROR - 2017-07-31 18:34:57 --> Severity: Warning --> mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given C:\xampp\htdocs\siddharth_application\system\database\drivers\mysqli\mysqli_result.php 38
ERROR - 2017-07-31 18:35:07 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948
ERROR - 2017-07-31 18:35:07 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948
ERROR - 2017-07-31 18:35:11 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948
ERROR - 2017-07-31 18:35:11 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948
ERROR - 2017-07-31 18:35:18 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948
ERROR - 2017-07-31 18:35:18 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948
ERROR - 2017-07-31 18:35:23 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948
ERROR - 2017-07-31 18:35:23 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948
ERROR - 2017-07-31 18:37:12 --> Severity: Warning --> mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given C:\xampp\htdocs\siddharth_application\system\database\drivers\mysqli\mysqli_result.php 38

View File

@ -0,0 +1,4 @@
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?>
ERROR - 2017-08-01 02:36:40 --> Severity: Notice --> Undefined variable: Deatail C:\xampp\htdocs\siddharth_application\application\views\importpo.php 423
ERROR - 2017-08-01 02:36:40 --> Severity: Notice --> Undefined variable: AvlimportBudAmt C:\xampp\htdocs\siddharth_application\application\views\importpo.php 1934

View File

@ -0,0 +1,570 @@
<?php return array (
'codeToName' =>
array (
32 => 'space',
160 => 'space',
33 => 'exclam',
34 => 'quotedbl',
35 => 'numbersign',
36 => 'dollar',
37 => 'percent',
38 => 'ampersand',
146 => 'quoteright',
40 => 'parenleft',
41 => 'parenright',
42 => 'asterisk',
43 => 'plus',
44 => 'comma',
45 => 'hyphen',
173 => 'hyphen',
46 => 'period',
47 => 'slash',
48 => 'zero',
49 => 'one',
50 => 'two',
51 => 'three',
52 => 'four',
53 => 'five',
54 => 'six',
55 => 'seven',
56 => 'eight',
57 => 'nine',
58 => 'colon',
59 => 'semicolon',
60 => 'less',
61 => 'equal',
62 => 'greater',
63 => 'question',
64 => 'at',
65 => 'A',
66 => 'B',
67 => 'C',
68 => 'D',
69 => 'E',
70 => 'F',
71 => 'G',
72 => 'H',
73 => 'I',
74 => 'J',
75 => 'K',
76 => 'L',
77 => 'M',
78 => 'N',
79 => 'O',
80 => 'P',
81 => 'Q',
82 => 'R',
83 => 'S',
84 => 'T',
85 => 'U',
86 => 'V',
87 => 'W',
88 => 'X',
89 => 'Y',
90 => 'Z',
91 => 'bracketleft',
92 => 'backslash',
93 => 'bracketright',
94 => 'asciicircum',
95 => 'underscore',
145 => 'quoteleft',
97 => 'a',
98 => 'b',
99 => 'c',
100 => 'd',
101 => 'e',
102 => 'f',
103 => 'g',
104 => 'h',
105 => 'i',
106 => 'j',
107 => 'k',
108 => 'l',
109 => 'm',
110 => 'n',
111 => 'o',
112 => 'p',
113 => 'q',
114 => 'r',
115 => 's',
116 => 't',
117 => 'u',
118 => 'v',
119 => 'w',
120 => 'x',
121 => 'y',
122 => 'z',
123 => 'braceleft',
124 => 'bar',
125 => 'braceright',
126 => 'asciitilde',
161 => 'exclamdown',
162 => 'cent',
163 => 'sterling',
165 => 'yen',
131 => 'florin',
167 => 'section',
164 => 'currency',
39 => 'quotesingle',
147 => 'quotedblleft',
170 => 'ordfeminine',
139 => 'guilsinglleft',
155 => 'guilsinglright',
150 => 'endash',
134 => 'dagger',
135 => 'daggerdbl',
183 => 'periodcentered',
182 => 'paragraph',
149 => 'bullet',
130 => 'quotesinglbase',
132 => 'quotedblbase',
148 => 'quotedblright',
187 => 'guillemotright',
133 => 'ellipsis',
137 => 'perthousand',
191 => 'questiondown',
96 => 'grave',
180 => 'acute',
136 => 'circumflex',
152 => 'tilde',
175 => 'macron',
168 => 'dieresis',
184 => 'cedilla',
151 => 'emdash',
198 => 'AE',
216 => 'Oslash',
140 => 'OE',
186 => 'ordmasculine',
230 => 'ae',
248 => 'oslash',
156 => 'oe',
223 => 'germandbls',
207 => 'Idieresis',
233 => 'eacute',
159 => 'Ydieresis',
247 => 'divide',
221 => 'Yacute',
194 => 'Acircumflex',
225 => 'aacute',
219 => 'Ucircumflex',
253 => 'yacute',
234 => 'ecircumflex',
220 => 'Udieresis',
218 => 'Uacute',
203 => 'Edieresis',
169 => 'copyright',
229 => 'aring',
224 => 'agrave',
227 => 'atilde',
154 => 'scaron',
237 => 'iacute',
251 => 'ucircumflex',
226 => 'acircumflex',
231 => 'ccedilla',
222 => 'Thorn',
179 => 'threesuperior',
210 => 'Ograve',
192 => 'Agrave',
215 => 'multiply',
250 => 'uacute',
255 => 'ydieresis',
238 => 'icircumflex',
202 => 'Ecircumflex',
228 => 'adieresis',
235 => 'edieresis',
205 => 'Iacute',
177 => 'plusminus',
166 => 'brokenbar',
174 => 'registered',
200 => 'Egrave',
142 => 'Zcaron',
208 => 'Eth',
199 => 'Ccedilla',
193 => 'Aacute',
196 => 'Adieresis',
232 => 'egrave',
211 => 'Oacute',
243 => 'oacute',
239 => 'idieresis',
212 => 'Ocircumflex',
217 => 'Ugrave',
254 => 'thorn',
178 => 'twosuperior',
214 => 'Odieresis',
181 => 'mu',
236 => 'igrave',
190 => 'threequarters',
153 => 'trademark',
204 => 'Igrave',
189 => 'onehalf',
244 => 'ocircumflex',
241 => 'ntilde',
201 => 'Eacute',
188 => 'onequarter',
138 => 'Scaron',
176 => 'degree',
242 => 'ograve',
249 => 'ugrave',
209 => 'Ntilde',
245 => 'otilde',
195 => 'Atilde',
197 => 'Aring',
213 => 'Otilde',
206 => 'Icircumflex',
172 => 'logicalnot',
246 => 'odieresis',
252 => 'udieresis',
240 => 'eth',
158 => 'zcaron',
185 => 'onesuperior',
128 => 'Euro',
),
'isUnicode' => false,
'FontName' => 'Times-BoldItalic',
'FullName' => 'Times Bold Italic',
'FamilyName' => 'Times',
'Weight' => 'Bold',
'ItalicAngle' => '-15',
'IsFixedPitch' => 'false',
'CharacterSet' => 'ExtendedRoman',
'FontBBox' =>
array (
0 => '-200',
1 => '-218',
2 => '996',
3 => '921',
),
'UnderlinePosition' => '-100',
'UnderlineThickness' => '50',
'Version' => '002.000',
'EncodingScheme' => 'WinAnsiEncoding',
'CapHeight' => '669',
'XHeight' => '462',
'Ascender' => '683',
'Descender' => '-217',
'StdHW' => '42',
'StdVW' => '121',
'StartCharMetrics' => '317',
'C' =>
array (
32 => 250.0,
160 => 250.0,
33 => 389.0,
34 => 555.0,
35 => 500.0,
36 => 500.0,
37 => 833.0,
38 => 778.0,
146 => 333.0,
40 => 333.0,
41 => 333.0,
42 => 500.0,
43 => 570.0,
44 => 250.0,
45 => 333.0,
173 => 333.0,
46 => 250.0,
47 => 278.0,
48 => 500.0,
49 => 500.0,
50 => 500.0,
51 => 500.0,
52 => 500.0,
53 => 500.0,
54 => 500.0,
55 => 500.0,
56 => 500.0,
57 => 500.0,
58 => 333.0,
59 => 333.0,
60 => 570.0,
61 => 570.0,
62 => 570.0,
63 => 500.0,
64 => 832.0,
65 => 667.0,
66 => 667.0,
67 => 667.0,
68 => 722.0,
69 => 667.0,
70 => 667.0,
71 => 722.0,
72 => 778.0,
73 => 389.0,
74 => 500.0,
75 => 667.0,
76 => 611.0,
77 => 889.0,
78 => 722.0,
79 => 722.0,
80 => 611.0,
81 => 722.0,
82 => 667.0,
83 => 556.0,
84 => 611.0,
85 => 722.0,
86 => 667.0,
87 => 889.0,
88 => 667.0,
89 => 611.0,
90 => 611.0,
91 => 333.0,
92 => 278.0,
93 => 333.0,
94 => 570.0,
95 => 500.0,
145 => 333.0,
97 => 500.0,
98 => 500.0,
99 => 444.0,
100 => 500.0,
101 => 444.0,
102 => 333.0,
103 => 500.0,
104 => 556.0,
105 => 278.0,
106 => 278.0,
107 => 500.0,
108 => 278.0,
109 => 778.0,
110 => 556.0,
111 => 500.0,
112 => 500.0,
113 => 500.0,
114 => 389.0,
115 => 389.0,
116 => 278.0,
117 => 556.0,
118 => 444.0,
119 => 667.0,
120 => 500.0,
121 => 444.0,
122 => 389.0,
123 => 348.0,
124 => 220.0,
125 => 348.0,
126 => 570.0,
161 => 389.0,
162 => 500.0,
163 => 500.0,
'fraction' => 167.0,
165 => 500.0,
131 => 500.0,
167 => 500.0,
164 => 500.0,
39 => 278.0,
147 => 500.0,
170 => 266.0,
139 => 333.0,
155 => 333.0,
'fi' => 556.0,
'fl' => 556.0,
150 => 500.0,
134 => 500.0,
135 => 500.0,
183 => 250.0,
182 => 500.0,
149 => 350.0,
130 => 333.0,
132 => 500.0,
148 => 500.0,
187 => 500.0,
133 => 1000.0,
137 => 1000.0,
191 => 500.0,
96 => 333.0,
180 => 333.0,
136 => 333.0,
152 => 333.0,
175 => 333.0,
'breve' => 333.0,
'dotaccent' => 333.0,
168 => 333.0,
'ring' => 333.0,
184 => 333.0,
'hungarumlaut' => 333.0,
'ogonek' => 333.0,
'caron' => 333.0,
151 => 1000.0,
198 => 944.0,
'Lslash' => 611.0,
216 => 722.0,
140 => 944.0,
186 => 300.0,
230 => 722.0,
'dotlessi' => 278.0,
'lslash' => 278.0,
248 => 500.0,
156 => 722.0,
223 => 500.0,
207 => 389.0,
233 => 444.0,
'abreve' => 500.0,
'uhungarumlaut' => 556.0,
'ecaron' => 444.0,
159 => 611.0,
247 => 570.0,
221 => 611.0,
194 => 667.0,
225 => 500.0,
219 => 722.0,
253 => 444.0,
'scommaaccent' => 389.0,
234 => 444.0,
'Uring' => 722.0,
220 => 722.0,
'aogonek' => 500.0,
218 => 722.0,
'uogonek' => 556.0,
203 => 667.0,
'Dcroat' => 722.0,
'commaaccent' => 250.0,
169 => 747.0,
'Emacron' => 667.0,
'ccaron' => 444.0,
229 => 500.0,
'Ncommaaccent' => 722.0,
'lacute' => 278.0,
224 => 500.0,
'Tcommaaccent' => 611.0,
'Cacute' => 667.0,
227 => 500.0,
'Edotaccent' => 667.0,
154 => 389.0,
'scedilla' => 389.0,
237 => 278.0,
'lozenge' => 494.0,
'Rcaron' => 667.0,
'Gcommaaccent' => 722.0,
251 => 556.0,
226 => 500.0,
'Amacron' => 667.0,
'rcaron' => 389.0,
231 => 444.0,
'Zdotaccent' => 611.0,
222 => 611.0,
'Omacron' => 722.0,
'Racute' => 667.0,
'Sacute' => 556.0,
'dcaron' => 608.0,
'Umacron' => 722.0,
'uring' => 556.0,
179 => 300.0,
210 => 722.0,
192 => 667.0,
'Abreve' => 667.0,
215 => 570.0,
250 => 556.0,
'Tcaron' => 611.0,
'partialdiff' => 494.0,
255 => 444.0,
'Nacute' => 722.0,
238 => 278.0,
202 => 667.0,
228 => 500.0,
235 => 444.0,
'cacute' => 444.0,
'nacute' => 556.0,
'umacron' => 556.0,
'Ncaron' => 722.0,
205 => 389.0,
177 => 570.0,
166 => 220.0,
174 => 747.0,
'Gbreve' => 722.0,
'Idotaccent' => 389.0,
'summation' => 600.0,
200 => 667.0,
'racute' => 389.0,
'omacron' => 500.0,
'Zacute' => 611.0,
142 => 611.0,
'greaterequal' => 549.0,
208 => 722.0,
199 => 667.0,
'lcommaaccent' => 278.0,
'tcaron' => 366.0,
'eogonek' => 444.0,
'Uogonek' => 722.0,
193 => 667.0,
196 => 667.0,
232 => 444.0,
'zacute' => 389.0,
'iogonek' => 278.0,
211 => 722.0,
243 => 500.0,
'amacron' => 500.0,
'sacute' => 389.0,
239 => 278.0,
212 => 722.0,
217 => 722.0,
'Delta' => 612.0,
254 => 500.0,
178 => 300.0,
214 => 722.0,
181 => 576.0,
236 => 278.0,
'ohungarumlaut' => 500.0,
'Eogonek' => 667.0,
'dcroat' => 500.0,
190 => 750.0,
'Scedilla' => 556.0,
'lcaron' => 382.0,
'Kcommaaccent' => 667.0,
'Lacute' => 611.0,
153 => 1000.0,
'edotaccent' => 444.0,
204 => 389.0,
'Imacron' => 389.0,
'Lcaron' => 611.0,
189 => 750.0,
'lessequal' => 549.0,
244 => 500.0,
241 => 556.0,
'Uhungarumlaut' => 722.0,
201 => 667.0,
'emacron' => 444.0,
'gbreve' => 500.0,
188 => 750.0,
138 => 556.0,
'Scommaaccent' => 556.0,
'Ohungarumlaut' => 722.0,
176 => 400.0,
242 => 500.0,
'Ccaron' => 667.0,
249 => 556.0,
'radical' => 549.0,
'Dcaron' => 722.0,
'rcommaaccent' => 389.0,
209 => 722.0,
245 => 500.0,
'Rcommaaccent' => 667.0,
'Lcommaaccent' => 611.0,
195 => 667.0,
'Aogonek' => 667.0,
197 => 667.0,
213 => 722.0,
'zdotaccent' => 389.0,
'Ecaron' => 667.0,
'Iogonek' => 389.0,
'kcommaaccent' => 500.0,
'minus' => 606.0,
206 => 389.0,
'ncaron' => 556.0,
'tcommaaccent' => 278.0,
172 => 606.0,
246 => 500.0,
252 => 556.0,
'notequal' => 549.0,
'gcommaaccent' => 500.0,
240 => 500.0,
158 => 389.0,
'ncommaaccent' => 556.0,
185 => 300.0,
'imacron' => 278.0,
128 => 500.0,
),
'CIDtoGID_Compressed' => true,
'CIDtoGID' => 'eJwDAAAAAAE=',
'_version_' => 4,
);

View File

@ -0,0 +1,570 @@
<?php return array (
'codeToName' =>
array (
32 => 'space',
160 => 'space',
33 => 'exclam',
34 => 'quotedbl',
35 => 'numbersign',
36 => 'dollar',
37 => 'percent',
38 => 'ampersand',
146 => 'quoteright',
40 => 'parenleft',
41 => 'parenright',
42 => 'asterisk',
43 => 'plus',
44 => 'comma',
45 => 'hyphen',
173 => 'hyphen',
46 => 'period',
47 => 'slash',
48 => 'zero',
49 => 'one',
50 => 'two',
51 => 'three',
52 => 'four',
53 => 'five',
54 => 'six',
55 => 'seven',
56 => 'eight',
57 => 'nine',
58 => 'colon',
59 => 'semicolon',
60 => 'less',
61 => 'equal',
62 => 'greater',
63 => 'question',
64 => 'at',
65 => 'A',
66 => 'B',
67 => 'C',
68 => 'D',
69 => 'E',
70 => 'F',
71 => 'G',
72 => 'H',
73 => 'I',
74 => 'J',
75 => 'K',
76 => 'L',
77 => 'M',
78 => 'N',
79 => 'O',
80 => 'P',
81 => 'Q',
82 => 'R',
83 => 'S',
84 => 'T',
85 => 'U',
86 => 'V',
87 => 'W',
88 => 'X',
89 => 'Y',
90 => 'Z',
91 => 'bracketleft',
92 => 'backslash',
93 => 'bracketright',
94 => 'asciicircum',
95 => 'underscore',
145 => 'quoteleft',
97 => 'a',
98 => 'b',
99 => 'c',
100 => 'd',
101 => 'e',
102 => 'f',
103 => 'g',
104 => 'h',
105 => 'i',
106 => 'j',
107 => 'k',
108 => 'l',
109 => 'm',
110 => 'n',
111 => 'o',
112 => 'p',
113 => 'q',
114 => 'r',
115 => 's',
116 => 't',
117 => 'u',
118 => 'v',
119 => 'w',
120 => 'x',
121 => 'y',
122 => 'z',
123 => 'braceleft',
124 => 'bar',
125 => 'braceright',
126 => 'asciitilde',
161 => 'exclamdown',
162 => 'cent',
163 => 'sterling',
165 => 'yen',
131 => 'florin',
167 => 'section',
164 => 'currency',
39 => 'quotesingle',
147 => 'quotedblleft',
170 => 'ordfeminine',
139 => 'guilsinglleft',
155 => 'guilsinglright',
150 => 'endash',
134 => 'dagger',
135 => 'daggerdbl',
183 => 'periodcentered',
182 => 'paragraph',
149 => 'bullet',
130 => 'quotesinglbase',
132 => 'quotedblbase',
148 => 'quotedblright',
187 => 'guillemotright',
133 => 'ellipsis',
137 => 'perthousand',
191 => 'questiondown',
96 => 'grave',
180 => 'acute',
136 => 'circumflex',
152 => 'tilde',
175 => 'macron',
168 => 'dieresis',
184 => 'cedilla',
151 => 'emdash',
198 => 'AE',
216 => 'Oslash',
140 => 'OE',
186 => 'ordmasculine',
230 => 'ae',
248 => 'oslash',
156 => 'oe',
223 => 'germandbls',
207 => 'Idieresis',
233 => 'eacute',
159 => 'Ydieresis',
247 => 'divide',
221 => 'Yacute',
194 => 'Acircumflex',
225 => 'aacute',
219 => 'Ucircumflex',
253 => 'yacute',
234 => 'ecircumflex',
220 => 'Udieresis',
218 => 'Uacute',
203 => 'Edieresis',
169 => 'copyright',
229 => 'aring',
224 => 'agrave',
227 => 'atilde',
154 => 'scaron',
237 => 'iacute',
251 => 'ucircumflex',
226 => 'acircumflex',
231 => 'ccedilla',
222 => 'Thorn',
179 => 'threesuperior',
210 => 'Ograve',
192 => 'Agrave',
215 => 'multiply',
250 => 'uacute',
255 => 'ydieresis',
238 => 'icircumflex',
202 => 'Ecircumflex',
228 => 'adieresis',
235 => 'edieresis',
205 => 'Iacute',
177 => 'plusminus',
166 => 'brokenbar',
174 => 'registered',
200 => 'Egrave',
142 => 'Zcaron',
208 => 'Eth',
199 => 'Ccedilla',
193 => 'Aacute',
196 => 'Adieresis',
232 => 'egrave',
211 => 'Oacute',
243 => 'oacute',
239 => 'idieresis',
212 => 'Ocircumflex',
217 => 'Ugrave',
254 => 'thorn',
178 => 'twosuperior',
214 => 'Odieresis',
181 => 'mu',
236 => 'igrave',
190 => 'threequarters',
153 => 'trademark',
204 => 'Igrave',
189 => 'onehalf',
244 => 'ocircumflex',
241 => 'ntilde',
201 => 'Eacute',
188 => 'onequarter',
138 => 'Scaron',
176 => 'degree',
242 => 'ograve',
249 => 'ugrave',
209 => 'Ntilde',
245 => 'otilde',
195 => 'Atilde',
197 => 'Aring',
213 => 'Otilde',
206 => 'Icircumflex',
172 => 'logicalnot',
246 => 'odieresis',
252 => 'udieresis',
240 => 'eth',
158 => 'zcaron',
185 => 'onesuperior',
128 => 'Euro',
),
'isUnicode' => false,
'FontName' => 'Times-Italic',
'FullName' => 'Times Italic',
'FamilyName' => 'Times',
'Weight' => 'Medium',
'ItalicAngle' => '-15.5',
'IsFixedPitch' => 'false',
'CharacterSet' => 'ExtendedRoman',
'FontBBox' =>
array (
0 => '-169',
1 => '-217',
2 => '1010',
3 => '883',
),
'UnderlinePosition' => '-100',
'UnderlineThickness' => '50',
'Version' => '002.000',
'EncodingScheme' => 'WinAnsiEncoding',
'CapHeight' => '653',
'XHeight' => '441',
'Ascender' => '683',
'Descender' => '-217',
'StdHW' => '32',
'StdVW' => '76',
'StartCharMetrics' => '317',
'C' =>
array (
32 => 250.0,
160 => 250.0,
33 => 333.0,
34 => 420.0,
35 => 500.0,
36 => 500.0,
37 => 833.0,
38 => 778.0,
146 => 333.0,
40 => 333.0,
41 => 333.0,
42 => 500.0,
43 => 675.0,
44 => 250.0,
45 => 333.0,
173 => 333.0,
46 => 250.0,
47 => 278.0,
48 => 500.0,
49 => 500.0,
50 => 500.0,
51 => 500.0,
52 => 500.0,
53 => 500.0,
54 => 500.0,
55 => 500.0,
56 => 500.0,
57 => 500.0,
58 => 333.0,
59 => 333.0,
60 => 675.0,
61 => 675.0,
62 => 675.0,
63 => 500.0,
64 => 920.0,
65 => 611.0,
66 => 611.0,
67 => 667.0,
68 => 722.0,
69 => 611.0,
70 => 611.0,
71 => 722.0,
72 => 722.0,
73 => 333.0,
74 => 444.0,
75 => 667.0,
76 => 556.0,
77 => 833.0,
78 => 667.0,
79 => 722.0,
80 => 611.0,
81 => 722.0,
82 => 611.0,
83 => 500.0,
84 => 556.0,
85 => 722.0,
86 => 611.0,
87 => 833.0,
88 => 611.0,
89 => 556.0,
90 => 556.0,
91 => 389.0,
92 => 278.0,
93 => 389.0,
94 => 422.0,
95 => 500.0,
145 => 333.0,
97 => 500.0,
98 => 500.0,
99 => 444.0,
100 => 500.0,
101 => 444.0,
102 => 278.0,
103 => 500.0,
104 => 500.0,
105 => 278.0,
106 => 278.0,
107 => 444.0,
108 => 278.0,
109 => 722.0,
110 => 500.0,
111 => 500.0,
112 => 500.0,
113 => 500.0,
114 => 389.0,
115 => 389.0,
116 => 278.0,
117 => 500.0,
118 => 444.0,
119 => 667.0,
120 => 444.0,
121 => 444.0,
122 => 389.0,
123 => 400.0,
124 => 275.0,
125 => 400.0,
126 => 541.0,
161 => 389.0,
162 => 500.0,
163 => 500.0,
'fraction' => 167.0,
165 => 500.0,
131 => 500.0,
167 => 500.0,
164 => 500.0,
39 => 214.0,
147 => 556.0,
170 => 276.0,
139 => 333.0,
155 => 333.0,
'fi' => 500.0,
'fl' => 500.0,
150 => 500.0,
134 => 500.0,
135 => 500.0,
183 => 250.0,
182 => 523.0,
149 => 350.0,
130 => 333.0,
132 => 556.0,
148 => 556.0,
187 => 500.0,
133 => 889.0,
137 => 1000.0,
191 => 500.0,
96 => 333.0,
180 => 333.0,
136 => 333.0,
152 => 333.0,
175 => 333.0,
'breve' => 333.0,
'dotaccent' => 333.0,
168 => 333.0,
'ring' => 333.0,
184 => 333.0,
'hungarumlaut' => 333.0,
'ogonek' => 333.0,
'caron' => 333.0,
151 => 889.0,
198 => 889.0,
'Lslash' => 556.0,
216 => 722.0,
140 => 944.0,
186 => 310.0,
230 => 667.0,
'dotlessi' => 278.0,
'lslash' => 278.0,
248 => 500.0,
156 => 667.0,
223 => 500.0,
207 => 333.0,
233 => 444.0,
'abreve' => 500.0,
'uhungarumlaut' => 500.0,
'ecaron' => 444.0,
159 => 556.0,
247 => 675.0,
221 => 556.0,
194 => 611.0,
225 => 500.0,
219 => 722.0,
253 => 444.0,
'scommaaccent' => 389.0,
234 => 444.0,
'Uring' => 722.0,
220 => 722.0,
'aogonek' => 500.0,
218 => 722.0,
'uogonek' => 500.0,
203 => 611.0,
'Dcroat' => 722.0,
'commaaccent' => 250.0,
169 => 760.0,
'Emacron' => 611.0,
'ccaron' => 444.0,
229 => 500.0,
'Ncommaaccent' => 667.0,
'lacute' => 278.0,
224 => 500.0,
'Tcommaaccent' => 556.0,
'Cacute' => 667.0,
227 => 500.0,
'Edotaccent' => 611.0,
154 => 389.0,
'scedilla' => 389.0,
237 => 278.0,
'lozenge' => 471.0,
'Rcaron' => 611.0,
'Gcommaaccent' => 722.0,
251 => 500.0,
226 => 500.0,
'Amacron' => 611.0,
'rcaron' => 389.0,
231 => 444.0,
'Zdotaccent' => 556.0,
222 => 611.0,
'Omacron' => 722.0,
'Racute' => 611.0,
'Sacute' => 500.0,
'dcaron' => 544.0,
'Umacron' => 722.0,
'uring' => 500.0,
179 => 300.0,
210 => 722.0,
192 => 611.0,
'Abreve' => 611.0,
215 => 675.0,
250 => 500.0,
'Tcaron' => 556.0,
'partialdiff' => 476.0,
255 => 444.0,
'Nacute' => 667.0,
238 => 278.0,
202 => 611.0,
228 => 500.0,
235 => 444.0,
'cacute' => 444.0,
'nacute' => 500.0,
'umacron' => 500.0,
'Ncaron' => 667.0,
205 => 333.0,
177 => 675.0,
166 => 275.0,
174 => 760.0,
'Gbreve' => 722.0,
'Idotaccent' => 333.0,
'summation' => 600.0,
200 => 611.0,
'racute' => 389.0,
'omacron' => 500.0,
'Zacute' => 556.0,
142 => 556.0,
'greaterequal' => 549.0,
208 => 722.0,
199 => 667.0,
'lcommaaccent' => 278.0,
'tcaron' => 300.0,
'eogonek' => 444.0,
'Uogonek' => 722.0,
193 => 611.0,
196 => 611.0,
232 => 444.0,
'zacute' => 389.0,
'iogonek' => 278.0,
211 => 722.0,
243 => 500.0,
'amacron' => 500.0,
'sacute' => 389.0,
239 => 278.0,
212 => 722.0,
217 => 722.0,
'Delta' => 612.0,
254 => 500.0,
178 => 300.0,
214 => 722.0,
181 => 500.0,
236 => 278.0,
'ohungarumlaut' => 500.0,
'Eogonek' => 611.0,
'dcroat' => 500.0,
190 => 750.0,
'Scedilla' => 500.0,
'lcaron' => 300.0,
'Kcommaaccent' => 667.0,
'Lacute' => 556.0,
153 => 980.0,
'edotaccent' => 444.0,
204 => 333.0,
'Imacron' => 333.0,
'Lcaron' => 611.0,
189 => 750.0,
'lessequal' => 549.0,
244 => 500.0,
241 => 500.0,
'Uhungarumlaut' => 722.0,
201 => 611.0,
'emacron' => 444.0,
'gbreve' => 500.0,
188 => 750.0,
138 => 500.0,
'Scommaaccent' => 500.0,
'Ohungarumlaut' => 722.0,
176 => 400.0,
242 => 500.0,
'Ccaron' => 667.0,
249 => 500.0,
'radical' => 453.0,
'Dcaron' => 722.0,
'rcommaaccent' => 389.0,
209 => 667.0,
245 => 500.0,
'Rcommaaccent' => 611.0,
'Lcommaaccent' => 556.0,
195 => 611.0,
'Aogonek' => 611.0,
197 => 611.0,
213 => 722.0,
'zdotaccent' => 389.0,
'Ecaron' => 611.0,
'Iogonek' => 333.0,
'kcommaaccent' => 444.0,
'minus' => 675.0,
206 => 333.0,
'ncaron' => 500.0,
'tcommaaccent' => 278.0,
172 => 675.0,
246 => 500.0,
252 => 500.0,
'notequal' => 549.0,
'gcommaaccent' => 500.0,
240 => 500.0,
158 => 389.0,
'ncommaaccent' => 500.0,
185 => 300.0,
'imacron' => 278.0,
128 => 500.0,
),
'CIDtoGID_Compressed' => true,
'CIDtoGID' => 'eJwDAAAAAAE=',
'_version_' => 4,
);

View File

@ -1 +1,19 @@
<span style='color: #900'>6,144 KB</span> <span style='color: #090'>282.2649 ms</span><br />
<span style='color: #900'>8,192 KB</span> <span style='color: #090'>335.4859 ms</span><br /><div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
<h4>A PHP Error was encountered</h4>
<p>Severity: Warning</p>
<p>Message: explode() expects parameter 2 to be string, array given</p>
<p>Filename: include/style.cls.php</p>
<p>Line Number: 948</p>
</div><div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
<h4>A PHP Error was encountered</h4>
<p>Severity: Warning</p>
<p>Message: explode() expects parameter 2 to be string, array given</p>
<p>Filename: include/style.cls.php</p>
<p>Line Number: 948</p>
</div>

View File

@ -69,7 +69,7 @@
{
$currencyCode = $Curr->FontCode2000;
//$currencyName = $currencyName;
$currencyName = $Curr->Currency_Code;
}
@ -139,11 +139,12 @@
</div>
<p>&nbsp;</p>
<div class="page" style="font-size:12px;">
<table style="border-collapse: collapse;" border="1" width="100%" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<tr style="background:#8c8c8c;color:#fff;">
<td>Requistion Number</td>
<td>Requested By</td>
<td>Requested Department</td>
@ -172,9 +173,9 @@
</table>
<p>&nbsp;</p>
<table style="border-collapse: collapse;" border="1" width="100%" cellspacing="0" cellpadding="0">
<table style="border-collapse: collapse;" border="0" width="100%" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<tr style="background:#8c8c8c;color:#fff;">
<th>#</th>
<th>Item Code</th>
<th>Item Name</th>
@ -317,3 +318,4 @@
<?php } ?>
</div>

View File

@ -28,6 +28,15 @@ if(!empty($AvlBudAmt))
$AvlAmount = $AvlBudAmt;
}
if(!empty($INRSYMBOL))
{
foreach($INRSYMBOL as $INRS)
{
$INRSYM=$INRS->FontCode2000;
}
}
foreach ($PaymentTerms as $TER)
{
$Terms=$TER->PaymentTerms;
@ -82,8 +91,7 @@ if(!empty($POMaster))
$POStatus = $Req->StatusCode;
$PONO = $Req->PONO;
$ServiceDescription = $Req->ServiceDescription;
$PayableAT=$Req->PayableAT;
$PaymentDays=$Req->PaymentDays;
}
}
if(!empty($RequistionDetails))
@ -104,31 +112,7 @@ foreach ($POSTATUS as $PST )
}
?>
<style>
#packagingcalmodel {
margin-top:200px;
z-index: 1080 !important;
}
#ExciseDutyCalModel {
margin-top:200px;
z-index: 1080 !important;
}
#VatCalModel {
margin-top:200px;
z-index: 1080 !important;
}
#CSTCalModel {
margin-top:200px;
z-index: 1080 !important;
}
.modal
{
padding-right:30% ! important;
}
</style>
<!-- Latest compiled and minified CSS -->
<script src="<?php echo base_url()?>assets/tinymce/js/tinymce/tinymce.min.js"></script>
@ -137,7 +121,7 @@ foreach ($POSTATUS as $PST )
selector: "textarea#txtSpcialInstruction",
menubar: false,
statusbar: false,
toolbar: false
toolbar: false,
//plugins: "link image"
});
@ -252,7 +236,17 @@ $('#EditPackagingType').change(function() {
$('#drpEditFreight').change(function() {
var FreightType =$("#drpEditFreight").val();
//alert(FreightType);
if (FreightType == "PER TRIP")
{
$('#EditAmendTripsValue').show();
}
else {
$('#EditAmendTripsValue').hide();
}
selValue = $("#drpEditFreight").val() ;
$('#txtEditFreight').val('');
@ -682,6 +676,8 @@ function calculateEditTaxValue()
return tot;
}
$(document).ready(function () {
$("#PaymentTerms").select2();
$('#Date').click(function () {
//for Date range selection
$('#Schedulediv').hide();
@ -711,12 +707,7 @@ function calculateEditTaxValue()
});
</script>
<style>
.content {
Padding:0% ! important;
}
body {
background-color: #ecf0f5;
}
.pagination {
margin :0px ! important;
}
@ -726,6 +717,28 @@ body {
.num {
text-align:right;
}
#packagingcalmodel {
margin-top:200px;
z-index: 1080 !important;
}
#ExciseDutyCalModel {
margin-top:200px;
z-index: 1080 !important;
}
#VatCalModel {
margin-top:200px;
z-index: 1080 !important;
}
#CSTCalModel {
margin-top:200px;
z-index: 1080 !important;
}
.modal
{
padding-right:30% ! important;
}
</style>
<div class="content-wrapper">
<?php
@ -734,9 +747,9 @@ body {
echo form_open($this->config->base_url().'/purchaseorder/addPO/',$attributes); ?>
<section class="content">
<div style="border:2px solid #333">
<div>
<center><b><h2>Siddharth Industries - Amendment Revenue Purchase Order- <?php echo $PONO;?></h2></b></center></div><br/><br/>
<center><b><h2>Siddharth Industries - Amendment Revenue Purchase Order- <?php echo $PONO;?></h2></b></center></div>
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
@ -848,7 +861,7 @@ body {
</div>
</div>
<div class="col-md-4" id="Deliverydtdiv" style="padding:0%;">
<input type="text" name="beforeDeliverydt" value="<?php echo $Deliverydt;?>">
<!--<input type="text" name="beforeDeliverydt" value="<?php echo $Deliverydt;?>"> -->
<label>Delivery Date</label>
<div class="form-group">
@ -861,7 +874,7 @@ body {
</div>
<div class="col-md-4" id="Schedulediv" style="display:none;padding:0%;">
<input type="hidden" name="beforeScheduleby" value="<?php echo $DeliverSchedule;?>">
<label >Schedule </label>
<label >Schedule By </label>
<?php
$data = array('name' => 'Scheduleby','value' => set_value('Scheduleby',$DeliverSchedule),'id'=>'Scheduleby', 'class' => 'form-control' ,'required' => 'true' ,'rows' => '3', 'cols' => '40');
@ -874,8 +887,8 @@ body {
<div class="col-md-12">
<legend>Payment Details</legend>
<!-- Text input-->
<div class="col-md-3">
<span for="payablefrom">Payable Terms</span>
<div class="col-md-4">
<label for="payablefrom">Payable Terms</label>
<input type="hidden" name="beforePaymentTerms" value="<?php echo $Terms;?>">
@ -916,14 +929,15 @@ body {
</div>
<div class="col-md-3">
</div>
<div class="col-md-6">
</div>
<div class="col-md-4" id="otheroptiondiv" style="display:none;">
<label>Description of Payable Terms<span class="badge" style="color:red;text-align:right;background-color: #ecf0f5 ;">*</span></label>
<div class="form-group">
<?php
$data = array('name' => 'Otherpayment','Otherpayment' => set_value('Otherpayment'),'id'=>'Otherpayment', 'class' => 'form-control' ,'required' => 'true');
echo form_input($data);
?>
</div>
</div>
</div>
</div>
</div>
@ -1053,13 +1067,12 @@ body {
</div>
</div>
<div class="container-fluid">
<table>
<br/>
<div id="EDITREVENUE" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<!-- Modal content-->
@ -1093,7 +1106,7 @@ body {
</div>
</div>
<div class="col-md-3">
<label>Cost Center Name</label>
<label>Cost Center Code</label>
<div class="form-group">
<?php
$data = array('name' => 'EditCostCenter','value' => set_value('EditCostCenter'),'id'=>'EditCostCenter', 'class' => 'form-control' ,'readonly' => 'true');
@ -1103,7 +1116,7 @@ body {
</div>
</div>
<div class="col-md-3">
<label>Avl Bud Amt</label>
<label>Avl Bud Amt In INR</label>
<div class="form-group">
<?php
$data = array('name' => 'EditAvlBudAmt','value' => set_value('EditAvlBudAmt'),'id'=>'EditAvlBudAmt', 'class' => 'form-control num' ,'readonly' => 'true');
@ -1157,7 +1170,7 @@ body {
</div>
</div>
<div class="col-md-2">
<label>Rate</label>
<label><?php echo "Rate In ($INRSYM)";?></label>
<div class="form-group">
<?php
$data = array('name' => 'EditRate','value' => set_value('EditRate'),'id'=>'EditRate', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'Editchange()','style'=>'text-align:right;' );
@ -1166,7 +1179,7 @@ body {
</div>
</div>
<div class="col-md-2">
<label>Basic Amt In INR</label>
<label><?php echo "Basic Amount ($INRSYM)";?></label>
<div class="form-group">
<?php
$data = array('name' => 'txtEditBasicValue','value' => set_value('txtEditBasicValue'),'id'=>'txtEditBasicValue', 'class' => 'form-control num' ,'readonly' => 'true','style'=>'text-align:right;');
@ -1219,52 +1232,24 @@ body {
?>
</div>
</div>
<div id="SGSTModel" >
<div class="col-md-2" >
<label>SGST in %</label>
<div class="col-md-2">
<label>CGST In %</label>
<div class="form-group">
<?php
$data = array('name' => 'txtEditVat','value' => set_value('txtEditVat'),'id'=>'txtEditVat', 'class' => 'form-control num','onchange'=>'calculateVat();' ,'style'=>'text-align:right;');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-2" >
<label>SGST Amt In INR </label>
<div class="form-group">
<?php
$data = array('name' => 'txtEditAfterVat','value' => set_value('txtEditAfterVat'),'id'=>'txtEditAfterVat', 'class' => 'form-control num' ,'readonly' => 'true','onkeypress'=>'return isNumberKey(event);','style'=>'text-align:right;');
echo form_input($data);
?>
</div>
</div>
</div>
<div id="IGSTModel" style="display:none;">
<div class="col-md-2">
<label>IGST in %</label>
<div class="form-group">
<?php
$data = array('name' => 'txtEditOtherTax','value' => set_value('txtEditOtherTax'),'id'=>'txtEditOtherTax', 'class' => 'form-control num','onkeypress'=>'return isNumberKey(event);','onchange'=>'calculateOtherTaxes(1);','style'=>'text-align:right;');
$data = array('name' => 'txtEditGST','value' => set_value('txtEditGST'),'id'=>'txtEditGST', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>' calculateGST(1);','style'=>'text-align:right;');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-2">
<label>IGST Amt INR</label>
<label>CGST Amt In INR</label>
<div class="form-group">
<?php
$data = array('name' => 'txtEditAfterOtherTax','value' => set_value('txtEditAfterOtherTax'),'id'=>'txtEditAfterOtherTax', 'class' => 'form-control num' ,'readonly' => 'true','style'=>'text-align:right;');
$data = array('name' => 'txtEditAfterGST','value' => set_value('txtEditAfterGST'),'id'=>'txtEditAfterGST', 'class' => 'form-control num' ,'readonly' => 'true','style'=>'text-align:right;');
echo form_input($data);
?>
?>
</div>
</div>
</div>
</div>
</div>
@ -1310,30 +1295,58 @@ body {
?>
</div>
</div>
<div class="col-md-2">
<label>CGST in %</label>
<div id="SGSTModel" >
<div class="col-md-2" >
<label>SGST In %</label>
<div class="form-group">
<?php
$data = array('name' => 'txtEditGST','value' => set_value('txtEditGST'),'id'=>'txtEditGST', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>' calculateGST(1);','style'=>'text-align:right;');
$data = array('name' => 'txtEditVat','value' => set_value('txtEditVat'),'id'=>'txtEditVat', 'class' => 'form-control num','onchange'=>'calculateVat();' ,'style'=>'text-align:right;');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-2" >
<label>SGST Amt In INR </label>
<div class="form-group">
<?php
$data = array('name' => 'txtEditAfterVat','value' => set_value('txtEditAfterVat'),'id'=>'txtEditAfterVat', 'class' => 'form-control num' ,'readonly' => 'true','onkeypress'=>'return isNumberKey(event);','style'=>'text-align:right;');
echo form_input($data);
?>
</div>
</div>
</div>
<div id="IGSTModel" style="display:none;">
<div class="col-md-2">
<label>IGST In %</label>
<div class="form-group">
<?php
$data = array('name' => 'txtEditOtherTax','value' => set_value('txtEditOtherTax'),'id'=>'txtEditOtherTax', 'class' => 'form-control num','onkeypress'=>'return isNumberKey(event);','onchange'=>'calculateOtherTaxes(1);','style'=>'text-align:right;');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-2">
<label>CGST Amt In INR</label>
<label>IGST Amt INR</label>
<div class="form-group">
<?php
$data = array('name' => 'txtEditAfterGST','value' => set_value('txtEditAfterGST'),'id'=>'txtEditAfterGST', 'class' => 'form-control num' ,'readonly' => 'true','style'=>'text-align:right;');
$data = array('name' => 'txtEditAfterOtherTax','value' => set_value('txtEditAfterOtherTax'),'id'=>'txtEditAfterOtherTax', 'class' => 'form-control num' ,'readonly' => 'true','style'=>'text-align:right;');
echo form_input($data);
?>
?>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12 " >
<div class="col-md-4">
<div class="col-md-2">
<label>Freight Type </label>
<div>
<?php
@ -1355,6 +1368,15 @@ body {
?>
</div>
</div>
<div class="col-md-2" id="EditAmendTripsValue" style="display:none;">
<label>NO Of Trips</label>
<div class="form-group">
<?php
$data = array('name' => 'EditAmendNOOfTrips','value' => set_value('EditAmendNOOfTrips'),'id'=>'EditAmendNOOfTrips', 'class' => 'form-control num' );
echo form_input($data);
?>
</div>
</div>
<div class="col-md-2">
<label>Freight Rate </label>
<div class="form-group">
@ -1364,6 +1386,7 @@ body {
?>
</div>
</div>
<div class="col-md-2">
<label>Freight Amt In INR</label>
<div class="form-group">
@ -1388,8 +1411,8 @@ body {
<div class="row">
<div class="col-md-12" >
<div class="col-md-4 col-md-offset-8">
<label>Total Order Amt In INR</label>
<div class="col-md-4 ">
<label><?php echo "Total Order Amt In ($INRSYM)";?></label>
<div class="form-group">
<?php
$data = array('name' => 'txtEditTotalOrderValue','value' => set_value('txtEditTotalOrderValue'),'id'=>'txtEditTotalOrderValue', 'class' => 'form-control num' ,'readonly' => 'true','style'=>'text-align:right;');
@ -1397,16 +1420,14 @@ body {
?>
</div>
</div>
<div class="col-md-4 col-md-offset-4">
<a class="btn btn-primary EditRevenue" ID="EditRevenue"><i class="fa fa-plus"></i>&nbsp;&nbsp;<span class="bold">Edit Revenue</span></a>&nbsp;&nbsp;&nbsp;&nbsp;<a class="btn btn-primary" data-dismiss="modal" value="Cancel">Cancel</a>
</div>
</div><hr/>
<div class="row">
<div class="col-md-12" >
<div class="col-md-4 col-md-offset-8">
<a class="btn btn-primary EditRevenue" ID="EditRevenue"><i class="fa fa-plus"></i>&nbsp;&nbsp;<span class="bold">Edit Revenue</span></a>
<a class="btn btn-primary" data-dismiss="modal" value="Cancel">Cancel</a>
</div>
</div>
</div>
</div>
<br/><br/>
<!-- footer for revenue po -->
@ -1429,10 +1450,10 @@ body {
<th>Item Name</th>
<th>Quantity</th>
<th>UOM</th>
<th>Rate</th>
<th>Basic Amount</th>
<th>Tax Amount</th>
<th>Total Order Amount</th>
<th>Rate In INR</th>
<th>Basic Amount In INR</th>
<th>Tax Amount In INR</th>
<th>Total Order Amount In INR</th>
<th>Action</th>
</tr>
</thead>
@ -1539,9 +1560,9 @@ body {
</div>
<div class="container">
<div class="row" style="border:1px solid;">
<div class="col-md-12">
<div class="col-md-3">
@ -1596,7 +1617,7 @@ body {
<div class="col-md-3">
<label >Total Packaging Amount </label>
<label >Total Packaging Amount In INR </label>
<?php
$data = array('name' => 'txtTotalPackaing','value' => set_value('txtTotalPackaing',$totPackagingAmt),'id'=>'txtTotalPackaing', 'class' => 'form-control num' ,'readonly' => 'true','style'=>'text-align:right;');
@ -1659,34 +1680,45 @@ body {
</div><br/>
</div>
<div class="col-md-12">
<div class="col-md-12">
<div class="col-md-8">
<div class="row">
<div class="col-md-2"><label>Request On</label></div>
<div class="col-md-4">
<span>Request On</span>
<?php
$data = array('name' => 'Requeston','value' => set_value('Requeston',$Reqon),'id'=>'Requeston', 'class' => 'form-control num' ,'required' => 'true', 'onkeypress'=>'return false;');
echo form_input($data);
?>
</div>
<div class="col-md-4">
<span>Request By</span>
</div><br/>
<div class="row">
<div class="col-md-2"><label>Request By</label></div>
<div class="col-md-4">
<?php
$data = array('name' => 'RequestBy','value' => set_value('RequestBy',$Requestedby),'id'=>'RequestBy', 'class' => 'form-control' ,'required' => 'true');
$data = array('name' => 'RequestBy','value' => set_value('RequestBy', $Requestedby),'id'=>'RequestBy', 'class' => 'form-control' ,'required' => 'true');
echo form_input($data);
?>
</div>
<div class="col-md-4">
<span>Status</span>
</div><br/>
<div class="row"><div class="col-md-2"><label>Status</label></div>
<div class="col-md-4">
<?php
$options = array("0"=>$POStatus);
echo form_dropdown('Status', $options,set_value('Status'),'id="Status"' ,'required="true"' ,'class="form-control select2')
$data = array('name' => 'Status','value' => set_value('Status',$POStatus),'id'=>'Status', 'class' => 'form-control' ,'readonly' => 'true');
echo form_input($data);
?>
</div><br/>
</div>
</div>
</div>
</div>
</div>
</div>
</div></div>
</section> </div>
<script type="text/html" id="RevenueList">
<tr id="<%=index%>">
<td align="left"><%=index%></td>
@ -2209,18 +2241,27 @@ $('#Scheduleby').change(function(){
$('#Scheduleby').val('');
});
<!-- script for table , It works uned the datatable plugin-->
<!-- script for table , It works under the datatable plugin-->
$(function () {
//$("#revenueTax").DataTable();
$('#revenueTax').DataTable({
"paging": true,
"paging": false,
"lengthChange": true,
"searching": false,
//"ordering": true,
// "info": true,
"autoWidth": true
"autoWidth": false
});
});
//If others is the payment terms , display mandatory field
$("#PaymentTerms").change(function() {
if ($('#PaymentTerms').val().trim()=='PT08')
{
$('#otheroptiondiv').show();
}
else {
$('#otheroptiondiv').hide();
}
});
</script>

View File

@ -531,7 +531,17 @@ $('#txtEditCST').change(function() {
});
$('#drpFreight').change(function() {
var FreightType =$("#drpFreight").val();
alert(FreightType);
if (FreightType == "PER TRIP")
{
$('#TripsValue').show();
}
else {
$('#TripsValue').hide();
}
selValue = $("#drpFreight").val() ;
$('#txtFreight').val('');
@ -553,8 +563,31 @@ $('#drpFreight').change(function() {
}
});
/* $('#drpViewFreight').change(function() {
var FreightType =$("#drpViewFreight").val();
if (FreightType == "PER TRIP")
{
$('#ViewTripsValue').show();
}
else {
$('#ViewTripsValue').hide();
}
}); */
$('#drpEditFreight').change(function() {
var FreightType =$("#drpEditFreight").val();
alert(FreightType);
if (FreightType == "PER TRIP")
{
$('#EditTripsValue').show();
}
else {
$('#EditTripsValue').hide();
}
selValue = $("#drpEditFreight").val() ;
$('#txtEditFreight').val('');
@ -1619,6 +1652,8 @@ function calculatePackaging(isEdit)
}
}
$(document).ready(function () {
$("#PaymentTerms").select2();
$('#Date').click(function () {
//for Date range selection
$('#Schedulediv').attr("style","display:none;");
@ -1732,9 +1767,16 @@ SetVatorCST();
$('#EditAfterIgst').val(calculateIgstTax($('#txtEditBasicValue').val(),$('#EditIgst').val()));
}
calculateDiscount(1);
calculatePackaging(1);
calculateFreight(1);
if ($("#EditDiscountType").val()!=0) {
calculateDiscount(1);
}
if ($("#EditPackagingType").val()!=0) {
calculatePackaging(1);
}
if($("#drpEditFreight").val()!=0){
calculateFreight(1);
}
calculateEditTotalValue($('#isEdit').val());
}
@ -1801,12 +1843,7 @@ function calculateEditTaxValue()
</script>
<style>
.content {
Padding:0% ! important;
}
body {
background-color: #ecf0f5;
}
.pagination {
margin :0px ! important;
}
@ -1824,9 +1861,10 @@ body {
echo form_open($this->config->base_url().'/purchaseorder/addPO/',$attributes); ?>
<section class="content">
<div style="border:2px solid #333">
<div id="content"></div>
<div>
<center><b><h2>Siddharth Industries - Edit Revenue Purchase Order - <?php echo $PONO;?></h2></b></center></div><br/><br/>
<center><b><h2>Siddharth Industries - Edit Revenue Purchase Order - <?php echo $PONO;?></h2></b></center></div>
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
@ -1953,7 +1991,7 @@ body {
</div>
</div>
<div class="col-md-4" id="Schedulediv" style="display:none;padding:0%;">
<label >Schedule </label>
<label >Schedule By</label>
<?php
$data = array('name' => 'Scheduleby','value' => set_value('Scheduleby',$DeliverSchedule),'id'=>'Scheduleby', 'class' => 'form-control' ,'required' => 'true' ,'rows' => '3', 'cols' => '40');
echo Form_textarea($data);
@ -1995,6 +2033,15 @@ body {
</div>
<div class="col-md-4" id="otheroptiondiv" style="display:none;">
<label>Description of Payable Terms<span class="badge" style="color:red;text-align:right;background-color: #ecf0f5 ;">*</span></label>
<div class="form-group">
<?php
$data = array('name' => 'Otherpayment','Otherpayment' => set_value('Otherpayment'),'id'=>'Otherpayment', 'class' => 'form-control' ,'required' => 'true');
echo form_input($data);
?>
</div>
</div>
</div>
</div>
@ -2126,7 +2173,7 @@ body {
</div>
</div>
<div class="container-fluid">
<table>
<div align="right">
<div align="right">
<a data-toggle="modal" ><button type="submit" onclick="myFunction();" class="btn btn-primary" id="abcd" >Select Line Item</button> </a>
@ -2172,7 +2219,7 @@ body {
</div>
</div>
<div class="col-md-3">
<label>Cost Center Name</label>
<label>Cost Center Code</label>
<div class="form-group">
<?php
$data = array('name' => 'CostCenter','value' => set_value('CostCenter'),'id'=>'CostCenter', 'class' => 'form-control' ,'readonly' => 'true');
@ -2182,7 +2229,7 @@ body {
</div>
</div>
<div class="col-md-3">
<label>Avl Bud Amt</label>
<label>Avl Bud Amt In INR</label>
<div class="form-group">
<?php
$data = array('name' => 'AvlBudAmt','value' => set_value('AvlBudAmt'),'id'=>'AvlBudAmt', 'class' => 'form-control num' ,'readonly' => 'true');
@ -2297,7 +2344,7 @@ body {
</div>
<div class="col-md-2" >
<label>CGST in %</label>
<label>CGST In %</label>
<div class="form-group">
<?php
$data = array('name' => 'Cgst','value' => set_value('Cgst',0),'id'=>'Cgst', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'change();');
@ -2360,7 +2407,7 @@ body {
</div>
<div id="SGSTAddModel">
<div class="col-md-2">
<label>SGST in %</label>
<label>SGST In %</label>
<div class="form-group">
<?php
$data = array('name' => 'Sgst','value' => set_value('Sgst',0),'id'=>'Sgst', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'change()');
@ -2380,7 +2427,7 @@ body {
</div>
<div id="IGSTAddModel" style="display:none;">
<div class="col-md-2">
<label>IGST in %</label>
<label>IGST In %</label>
<div class="form-group">
<?php
$data = array('name' => 'Igst','value' => set_value('Igst',0),'id'=>'Igst', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'change()');
@ -2401,7 +2448,7 @@ body {
</div>
<div class="col-md-12" >
<div class="col-md-4">
<div class="col-md-2">
<label>Freight Type </label>
<div>
<?php
@ -2420,6 +2467,15 @@ body {
echo form_dropdown('drpFreight', $options,set_value('drpFreight'),'id="drpFreight"' ,'class="form-control "');
?>
</div>
</div>
<div class="col-md-2" id="TripsValue" style="display:none;">
<label>NO Of Trips</label>
<div class="form-group">
<?php
$data = array('name' => 'NOOfTrips','value' => set_value('NOOfTrips'),'id'=>'NOOfTrips', 'class' => 'form-control num' );
echo form_input($data);
?>
</div>
</div>
@ -2467,12 +2523,10 @@ body {
?>
</div>
</div>
<div class="col-md-2 col-md-offset-4"><br/>
<a class="btn btn-primary font AddRevenue" ID="AddRevenue"><i class="fa fa-plus"></i>&nbsp;&nbsp;<span class="bold">Add Revenue</span></a>
</div>
<div class="col-md-2 "><br/>
<a class="btn btn-primary" data-dismiss="modal" value="Cancel">Cancel</a>
<div class="col-md-4 col-md-offset-4"><br/>
<a class="btn btn-primary font AddRevenue" ID="AddRevenue"><i class="fa fa-plus"></i>&nbsp;&nbsp;<span class="bold">Add Revenue</span></a> &nbsp;&nbsp;&nbsp;&nbsp;<a class="btn btn-primary" data-dismiss="modal" value="Cancel">Cancel</a>
</div>
</div>
</div>
@ -2523,7 +2577,7 @@ body {
</div>
</div>
<div class="col-md-3">
<label>Cost Center Name</label>
<label>Cost Center Code</label>
<div class="form-group">
<?php
$data = array('name' => 'EditCostCenter','value' => set_value('EditCostCenter'),'id'=>'EditCostCenter', 'class' => 'form-control' ,'readonly' => 'true');
@ -2533,7 +2587,7 @@ body {
</div>
</div>
<div class="col-md-3">
<label>Avl Bud Amt</label>
<label>Avl Bud Amt In INR</label>
<div class="form-group">
<?php
$data = array('name' => 'EditAvlBudAmt','value' => set_value('EditAvlBudAmt'),'id'=>'EditAvlBudAmt', 'class' => 'form-control num' ,'readonly' => 'true');
@ -2603,7 +2657,7 @@ body {
</div>
</div>
</div><br/>
<div class="col-md-12" style="border : 1px solid">
<div class="col-md-12">
<div class="col-md-4">
<label>Discount Type </label>
@ -2648,7 +2702,7 @@ body {
<div class="col-md-2" >
<label>CGST in %</label>
<label>CGST In %</label>
<div class="form-group">
<?php
$data = array('name' => 'EditCgst','value' => set_value('EditCgst',0),'id'=>'EditCgst', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'Editchange();');
@ -2710,7 +2764,7 @@ body {
</div>
<div id="SGSTEditModel">
<div class="col-md-2">
<label>SGST in %</label>
<label>SGST In %</label>
<div class="form-group">
<?php
$data = array('name' => 'EditSgst','value' => set_value('EditSgst',0),'id'=>'EditSgst', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>' Editchange();');
@ -2730,7 +2784,7 @@ body {
</div>
<div id="IGSTEditModel" style="display:none;">
<div class="col-md-2">
<label>IGST in %</label>
<label>IGST In %</label>
<div class="form-group">
<?php
$data = array('name' => 'EditIgst','value' => set_value('EditIgst',0),'id'=>'EditIgst', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>' Editchange();');
@ -2750,7 +2804,7 @@ body {
</div>
</div>
<div class="col-md-12">
<div class="col-md-4">
<div class="col-md-2">
<label>Freight Type </label>
<div>
<?php
@ -2772,6 +2826,15 @@ body {
?>
</div>
</div>
<div class="col-md-2" id="EditTripsValue" style="display:none;">
<label>NO Of Trips</label>
<div class="form-group">
<?php
$data = array('name' => 'EditNOOfTrips','value' => set_value('EditNOOfTrips'),'id'=>'EditNOOfTrips', 'class' => 'form-control num' );
echo form_input($data);
?>
</div>
</div>
<div class="col-md-2">
<label>Freight Rate </label>
<div class="form-group">
@ -2807,9 +2870,8 @@ body {
<div class="col-md-12" >
<div class="col-md-4" align="right"> <label><?php echo "Total Order Amt In ($INRSYM)";?></label></div>
<div class="col-md-4">
<div class="col-md-4">
<label><?php echo "Total Order Amt In ($INRSYM)";?></label>
<div class="form-group">
<?php
$data = array('name' => 'txtEditTotalOrderValue','value' => set_value('txtEditTotalOrderValue'),'id'=>'txtEditTotalOrderValue', 'class' => 'form-control num' ,'readonly' => 'true','style'=>'text-align:right;');
@ -2817,12 +2879,13 @@ body {
?>
</div>
</div>
<div class="col-md-4">
<a class="btn btn-primary EditRevenue" ID="EditRevenue"><i class="fa fa-plus"></i>&nbsp;&nbsp;<span class="bold">Edit Revenue</span></a>
<a class="btn btn-primary" data-dismiss="modal" value="Cancel">Cancel</a>
<div class="col-md-4 col-md-offset-4"><br/>
<a class="btn btn-primary EditRevenue" ID="EditRevenue"><i class="fa fa-plus"></i>&nbsp;&nbsp;<span class="bold">Edit Revenue</span></a>&nbsp;&nbsp;&nbsp;&nbsp;<a class="btn btn-primary" data-dismiss="modal" value="Cancel">Cancel</a>
</div>
</div>
</div>
</div>
<br/><br/>
<!-- footer for revenue po -->
@ -2869,7 +2932,7 @@ body {
</div>
</div>
<div class="col-md-3">
<label>Cost Center Name</label>
<label>Cost Center Code</label>
<div class="form-group">
<?php
$data = array('name' => 'ViewCostCenter','value' => set_value('ViewCostCenter'),'id'=>'ViewCostCenter', 'class' => 'form-control' ,'readonly' => 'true');
@ -2878,15 +2941,15 @@ body {
?>
</div>
</div>
<!-- <div class="col-md-3">
<label>Avl Bud Amt</label>
<div class="col-md-3">
<label>Avl Bud Amt In INR</label>
<div class="form-group">
<?php
$data = array('name' => 'ViewAvlBudAmt','value' => set_value('ViewAvlBudAmt'),'id'=>'ViewAvlBudAmt', 'class' => 'form-control num' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
</div> -->
</div>
</div>
<div class="col-md-12">
<div class="col-md-2">
@ -2980,7 +3043,7 @@ body {
</div>
<div class="col-md-2" >
<label>CGST in %</label>
<label>CGST In %</label>
<div class="form-group">
<?php
$data = array('name' => 'ViewCGST','value' => set_value('tViewCGST'),'id'=>'ViewCGST', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'calculateCST(0);');
@ -3031,7 +3094,7 @@ body {
</div>
<div id="SGSTViewModel">
<div class="col-md-2">
<label>SGST in %</label>
<label>SGST In %</label>
<div class="form-group">
<?php
$data = array('name' => 'ViewSGST','value' => set_value('ViewSGST'),'id'=>'ViewSGST', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>' calculateGST(0);');
@ -3051,7 +3114,7 @@ body {
</div>
<div id="IGSTViewModel" style="display:none;">
<div class="col-md-2">
<label>IGST in %</label>
<label>IGST In %</label>
<div class="form-group">
<?php
$data = array('name' => 'ViewIGST','value' => set_value('tViewIGST'),'id'=>'ViewIGST', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>' calculateGST(0);');
@ -3083,6 +3146,15 @@ body {
?>
</div>
</div>
<!-- <div class="col-md-2" id="ViewTripsValue" style="display:none;">
<label>NO Of Trips</label>
<div class="form-group">
<?php
$data = array('name' => 'ViewNOOfTrips','value' => set_value('ViewNOOfTrips'),'id'=>'ViewNOOfTrips', 'class' => 'form-control num' );
echo form_input($data);
?>
</div>
</div>-->
<div class="col-md-2">
<label>Freight Rate </label>
<div class="form-group">
@ -3102,7 +3174,7 @@ body {
</div>
</div>
<div class="col-md-4">
<label> Insurance if Any</label>
<label> Insurance In INR (if Any)</label>
<div class="form-group">
<?php
$data = array('name' => 'txtViewInsurance','value' => set_value('txtViewInsurance'),'id'=>'txtViewInsurance', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','style'=>'text-align:right;','readonly' => 'true');
@ -3116,9 +3188,7 @@ body {
<div class="col-md-12" >
<hr/>
<div class="col-md-4" align="right"> <label>Total Order Amount :</label></div>
<div class="col-md-4">
<div class="col-md-4"> <label><?php echo "Total Order Amt In ($INRSYM)";?></label>
<div class="form-group">
<?php
$data = array('name' => 'txtViewTotalOrderValue','value' => set_value('txtViewTotalOrderValue'),'id'=>'txtViewTotalOrderValue', 'class' => 'form-control num' ,'readonly' => 'true','style'=>'text-align:right;');
@ -3126,10 +3196,10 @@ body {
?>
</div>
</div>
<!--<div class="col-md-4">
<a class="btn btn-primary EditRevenue" ID="EditRevenue"><i class="fa fa-plus"></i>&nbsp;&nbsp;<span class="bold">Edit Revenue</span></a>
<div class="col-md-2 col-md-offset-6"><br/>
<a class="btn btn-primary" data-dismiss="modal" value="Cancel">Cancel</a>
</div> -->
</div>
</div>
</div>
@ -3144,23 +3214,22 @@ body {
</form>
</div>
</div>
<br/>
<br/>
<div class="box-body" style="margin-top: -5%;">
<div class="box-body">
<table id="revenueTax" class="table table-bordered table-hover" style="background-color:#fff;font-size:12px;">
<thead style="background-color:#ddf">
<tr>
<th>SNo</th>
<th>Requisition No</th>
<th>Item Code</th>
<th>Item Code</th>
<th>Item Description</th>
<th>Quantity</th>
<th>UOM</th>
<th>Rate</th>
<th>Basic Amount</th>
<th>Tax Amount</th>
<th>Total Order Amount</th>
<th>Actual Quantity</th>
<th>RateIn INR</th>
<th>Basic Amount In INR</th>
<th>Tax Amount In INR</th>
<th>Total Order Amount In INR</th>
<th>Actual Quantity</th>
<th>Received Quantity</th>
<th>Pending Quantity</th>
<th>Action</th>
@ -3201,29 +3270,29 @@ body {
<input type="hidden" name="<?php echo 'materialCode'.$index ?>" id="<?php echo 'materialCode'.$index ?>" value="<?php echo $record->MaterialCode ; ?>" />
<input type="hidden" name="<?php echo 'materialName'.$index ?>" id="<?php echo 'materialName'.$index ?>" value="<?php echo $record->MaterialName ; ?>" />
<input type="hidden" name="<?php echo 'uom'.$index ?>" id="<?php echo 'uom'.$index ?>" value="<?php echo $record->UOM ; ?>" />
<input type="hidden" name="<?php echo 'quantity'.$index ?>" id="<?php echo 'quantity'.$index ?>" value="<?php echo $record->Quantity ; ?>" />
<input align="right" type="hidden" name="<?php echo 'quantity'.$index ?>" id="<?php echo 'quantity'.$index ?>" value="<?php echo $record->Quantity ; ?>" />
<input type="hidden" name="<?php echo 'itemRate'.$index ?>" id="<?php echo 'itemRate'.$index ?>" value="<?php echo $record->Rate ; ?>" />
<input align="right" type="hidden" name="<?php echo 'itemRate'.$index ?>" id="<?php echo 'itemRate'.$index ?>" value="<?php echo $record->Rate ; ?>" />
<input type="hidden" name="<?php echo 'DisType'.$index ?>" id="<?php echo 'DisType'.$index ?>" value="<?php echo $record->DiscountType ; ?>" />
<input type="hidden" name="<?php echo 'DisVal'.$index ?>" id="<?php echo 'DisVal'.$index ?>" value="<?php echo $record->DiscountValue ; ?>" />
<input type="hidden" name="<?php echo 'AfterDisVal'.$index ?>" id="<?php echo 'AfterDisVal'.$index ?>" value="<?php echo $record->AfterDiscount ; ?>" />
<input type="hidden" name="<?php echo 'PackOption'.$index ?>" id="<?php echo 'PackOption'.$index ?>" value="<?php echo $record->PackagingCalulatedOn ; ?>" />
<input type="hidden" name="<?php echo 'PackType'.$index ?>" id="<?php echo 'PackType'.$index ?>" value="<?php echo $record->PackagingType ; ?>" />
<input type="hidden" name="<?php echo 'PackVal'.$index ?>" id="<?php echo 'PackVal'.$index ?>" value="<?php echo $record->PackagingValue ; ?>" />
<input type="hidden" name="<?php echo 'AfterPackVal'.$index ?>" id="<?php echo 'AfterPackVal'.$index ?>" value="<?php echo $record->AfterPackagingValue ; ?>" />
<input type="hidden" name="<?php echo 'RevenueCgst'.$index ?>" id="<?php echo 'RevenueCgst'.$index ?>" value="<?php echo $record->CGST ; ?>" />
<input type="hidden" name="<?php echo 'RevenueAfterCgst'.$index ?>" id="<?php echo 'RevenueAfterCgst'.$index ?>" value="<?php echo $record->AfterCGST ; ?>" />
<input type="hidden" name="<?php echo 'RevenueSgst'.$index ?>" id="<?php echo 'RevenueSgst'.$index ?>" value="<?php echo $record->SGST ; ?>" />
<input type="hidden" name="<?php echo 'RevenueAfterSgst'.$index ?>" id="<?php echo 'RevenueAfterSgst'.$index ?>" value="<?php echo $record->AfterSGST ; ?>" />
<input type="hidden" name="<?php echo 'RevenueIgst'.$index ?>" id="<?php echo 'RevenueIgst'.$index ?>" value="<?php echo $record->IGST ; ?>" />
<input type="hidden" name="<?php echo 'RevenueAfterIgst'.$index ?>" id="<?php echo 'RevenueAfterIgst'.$index ?>" value="<?php echo $record->AfterIGST ; ?>" />
<input type="hidden" name="<?php echo 'FreightType'.$index ?>" id="<?php echo 'FreightType'.$index ?>" value="<?php echo $record->FreightType ; ?>" />
<input type="hidden" name="<?php echo 'FreightVal'.$index ?>" id="<?php echo 'FreightVal'.$index ?>" value="<?php echo $record->FreightValue ; ?>" />
<input type="hidden" name="<?php echo 'AfterFreightVal'.$index ?>" id="<?php echo 'AfterFreightVal'.$index ?>" value="<?php echo $record->AfterFreightValue ; ?>" />
<input type="hidden" name="<?php echo 'basicval'.$index ?>" id="<?php echo 'basicval'.$index ?>" value="<?php echo $record->BasicValue ; ?>"/>
<input type="hidden" name="<?php echo 'Insval'.$index ?>" id="<?php echo 'Insval'.$index ?>" value="<?php echo $record->Insurance ; ?>" />
<input type="hidden" name="<?php echo 'TotalOrderValue'.$index ?>" id="<?php echo 'TotalOrderValue'.$index ?>" value="<?php echo $record->TotalValue ; ?>" />
<input align="right" type="hidden" name="<?php echo 'DisType'.$index ?>" id="<?php echo 'DisType'.$index ?>" value="<?php echo $record->DiscountType ; ?>" />
<input align="right" type="hidden" name="<?php echo 'DisVal'.$index ?>" id="<?php echo 'DisVal'.$index ?>" value="<?php echo $record->DiscountValue ; ?>" />
<input align="right" type="hidden" name="<?php echo 'AfterDisVal'.$index ?>" id="<?php echo 'AfterDisVal'.$index ?>" value="<?php echo $record->AfterDiscount ; ?>" />
<input align="right" type="hidden" name="<?php echo 'PackOption'.$index ?>" id="<?php echo 'PackOption'.$index ?>" value="<?php echo $record->PackagingCalulatedOn ; ?>" />
<input align="right" type="hidden" name="<?php echo 'PackType'.$index ?>" id="<?php echo 'PackType'.$index ?>" value="<?php echo $record->PackagingType ; ?>" />
<input align="right" type="hidden" name="<?php echo 'PackVal'.$index ?>" id="<?php echo 'PackVal'.$index ?>" value="<?php echo $record->PackagingValue ; ?>" />
<input align="right" type="hidden" name="<?php echo 'AfterPackVal'.$index ?>" id="<?php echo 'AfterPackVal'.$index ?>" value="<?php echo $record->AfterPackagingValue ; ?>" />
<input align="right" type="hidden" name="<?php echo 'RevenueCgst'.$index ?>" id="<?php echo 'RevenueCgst'.$index ?>" value="<?php echo $record->CGST ; ?>" />
<input align="right" type="hidden" name="<?php echo 'RevenueAfterCgst'.$index ?>" id="<?php echo 'RevenueAfterCgst'.$index ?>" value="<?php echo $record->AfterCGST ; ?>" />
<input align="right" type="hidden" name="<?php echo 'RevenueSgst'.$index ?>" id="<?php echo 'RevenueSgst'.$index ?>" value="<?php echo $record->SGST ; ?>" />
<input align="right" type="hidden" name="<?php echo 'RevenueAfterSgst'.$index ?>" id="<?php echo 'RevenueAfterSgst'.$index ?>" value="<?php echo $record->AfterSGST ; ?>" />
<input align="right" type="hidden" name="<?php echo 'RevenueIgst'.$index ?>" id="<?php echo 'RevenueIgst'.$index ?>" value="<?php echo $record->IGST ; ?>" />
<input align="right" type="hidden" name="<?php echo 'RevenueAfterIgst'.$index ?>" id="<?php echo 'RevenueAfterIgst'.$index ?>" value="<?php echo $record->AfterIGST ; ?>" />
<input align="right" type="hidden" name="<?php echo 'FreightType'.$index ?>" id="<?php echo 'FreightType'.$index ?>" value="<?php echo $record->FreightType ; ?>" />
<input align="right" type="hidden" name="<?php echo 'FreightVal'.$index ?>" id="<?php echo 'FreightVal'.$index ?>" value="<?php echo $record->FreightValue ; ?>" />
<input align="right" type="hidden" name="<?php echo 'AfterFreightVal'.$index ?>" id="<?php echo 'AfterFreightVal'.$index ?>" value="<?php echo $record->AfterFreightValue ; ?>" />
<input align="right"type="hidden" name="<?php echo 'basicval'.$index ?>" id="<?php echo 'basicval'.$index ?>" value="<?php echo $record->BasicValue ; ?>"/>
<input align="right" type="hidden" name="<?php echo 'Insval'.$index ?>" id="<?php echo 'Insval'.$index ?>" value="<?php echo $record->Insurance ; ?>" />
<input align="right" type="hidden" name="<?php echo 'TotalOrderValue'.$index ?>" id="<?php echo 'TotalOrderValue'.$index ?>" value="<?php echo $record->TotalValue ; ?>" />
<?php
if($PONOStatus == PO_DRAFT)
@ -3258,16 +3327,12 @@ body {
}
?>
</tbody>
</table>
</table>
</div>
<!-- /.box-body -->
</div>
<div class="container">
<div class="row" style="border:1px solid;">
<div class="col-md-12">
<div class="col-md-3">
@ -3360,14 +3425,14 @@ body {
<div class="col-md-12">
<div class="col-md-12">
<label>Special Instructions </label> <?php
$data = array('name' => 'txtSpcialInstruction','value' => set_value('txtSpcialInstruction',$ServiceDescription),'id'=>'txtSpcialInstruction', 'class' => 'form-control','rows' => '3', 'cols' => '40' );
$data = array('name' => 'txtSpcialInstruction','value' => set_value('txtSpcialInstruction',$ServiceDescription),'id'=>'txtSpcialInstruction', 'class' => 'form-control' );
echo form_textarea($data);
?>
<input type="hidden" name="SpcialInstruction" id="SpcialInstruction" value="<?php echo $ServiceDescription;?>">
</div>
</div>
<div class="row" style="padding: 2% 0%">
<div class="col-md-1 col-md-offset-11"><br/>
<div class="col-md-3 col-md-offset-9"><br/>
<input type="hidden" name="txtPoRange" id="txtPoRange" />
<input type="hidden" name="isEdit" id="isEdit" value="0" />
<input type="hidden" name="txtStatus" id="txtStatus" />
@ -3387,59 +3452,66 @@ body {
</div><br/>
</div>
<div class="col-md-12">
<div class="col-md-8">
<div class="row">
<div class="col-md-2"><label>Request On</label></div>
<div class="col-md-4">
<span>Request On</span>
<?php
$data = array('name' => 'Requeston','value' => set_value('Requeston',$Reqon),'id'=>'Requeston', 'class' => 'form-control num' ,'required' => 'true', 'onkeypress'=>'return false;');
echo form_input($data);
?>
</div>
<div class="col-md-4">
<span>Request By</span>
</div><br/>
<div class="row">
<div class="col-md-2"><label>Request By</label></div>
<div class="col-md-4">
<?php
$data = array('name' => 'RequestBy','value' => set_value('RequestBy', $RequesterName),'id'=>'RequestBy', 'class' => 'form-control' ,'required' => 'true');
echo form_input($data);
?>
</div>
<div class="col-md-4">
<span>Status</span>
</div><br/>
<div class="row"><div class="col-md-2"><label>Status</label></div>
<div class="col-md-4">
<?php
// $options = array("0"=>$PONOStatus);
// echo form_dropdown('Status', $options,set_value('Status'),'id="Status"' ,'required="true"' ,'class="form-control select2')
$data = array('name' => 'Status','value' => set_value('Status',$StatusName),'id'=>'Status', 'class' => 'form-control' ,'readonly' => 'true');
echo form_input($data);
?>
</div><br/>
</div>
</div>
</div>
</div>
</div>
</div>
</div> </section></div>
<script type="text/html" id="RevenueList">
<tr id="<%=index%>">
<td align="left"><%=index%></td>
<td align="left"><%=ReqNo%></td>
<td align="left"><%=MaterialCode%></td>
<td align="left"><%=MaterialName%></td>
<td align="left"><%=Quantity%></td>
<td align="right"><%=Quantity%></td>
<td align="left"><%=UOM%></td>
<td align="left"><%=Rate%></td>
<td align="left"><%=BasicAmount%></td>
<td align="left"><%=Taxvalue%></td>
<td align="left"><%=TotalValue%></td>
<td align="left"><%=ActualQuantity%></td>
<td align="left"><%=ReceivedQuantity%></td>
<td align="left"><%=PendingQuantity%></td>
<td align="right"><%=Rate%></td>
<td align="right"><%=BasicAmount%></td>
<td align="right"><%=Taxvalue%></td>
<td align="right"><%=TotalValue%></td>
<td align="right"><%=ActualQuantity%></td>
<td align="right"><%=ReceivedQuantity%></td>
<td align="right"><%=PendingQuantity%></td>
<td>
<a data-target='#EDITREVENUE' data-id="<%=index%>" data-userid="<%=index%>" data-toggle="modal" href="#EDITREVENUE"><i class="fa fa-pencil" data-toggle="tooltip" title="Click here to view/Edit the <%=ReqNo%> Requisition details"></i>&nbsp;&nbsp;&nbsp;</a> <a href='#' onclick = "DeleteRow(<%=index%>)" class="link" data-id="<%=index%>" data-userid="<%=index%>" id="Del" ><span class="glyphicon glyphicon-trash"></span></a>
</td>
</tr>
</script>
</div>
</section></div></script>
<script>
var index = <?php echo $index; ?>;
var userid = '';
@ -4291,16 +4363,16 @@ $('#Scheduleby').change(function(){
$('#Scheduleby').val('');
});
<!-- script for table , It works uned the datatable plugin-->
$(function () {
//$("#revenueTax").DataTable();
$('#revenueTax').DataTable({
"paging": true,
"lengthChange": true,
"paging": false,
"lengthChange": false,
"searching": false,
//"ordering": true,
// "info": true,
"autoWidth": true
"autoWidth": false
});
});
@ -4327,10 +4399,16 @@ function change(){
$('#AfterIgst').val(calculateIgstTax($('#txtBasicValue').val(),$('#Igst').val()));
}
calculateDiscount(0);
calculatePackaging(0);
calculateFreight(0);
if ($("#DiscountType").val()!=0) {
calculateDiscount(0);
}
if ($("#PackagingType").val()!=0) {
calculatePackaging(0);
}
if($("#drpFreight").val()!=0){
calculateFreight(0);
}
calculateTotalValue();
}
@ -4376,4 +4454,14 @@ function calculateTaxValue()
//alert('tot:'+tot);
return tot;
}
//If others is the payment terms to display mandatory field
$("#PaymentTerms").change(function() {
if ($('#PaymentTerms').val().trim()=='PT08')
{
$('#otheroptiondiv').show();
}
else {
$('#otheroptiondiv').hide();
}
});
</script>

View File

@ -165,7 +165,7 @@
<td>Requistion Number</td>
<td>Requested By</td>
<td>Requested Department</td>
<td>Cost Center</td>
<td>Cost Center Code</td>
</tr>
<tr>
@ -267,7 +267,7 @@
<table style="border-collapse: collapse;" cellpadding="0" cellspacing="0" border="1" width="100%">
<tbody>
<tr>
<td style="text-align: center;" ><strong>Total Amount In Words <?php echo "$CurrencyCode ($CurrencyName)"?></strong><br /><br /><em><?php echo $TotalAmountInWords." "."Only.";?></em></td>
<td style="text-align: center;" ><strong>Total Amount In Words</strong><br /><br /><em><?php echo $TotalAmountInWords." "."Only.";?></em></td>
<td style="text-align: center;" ><strong>Total Amount In <?php echo "$CurrencyCode ($CurrencyName)" ;?> <?php echo $TotalOrderValue;?> </strong></td>
</tr>

View File

@ -88,7 +88,10 @@ if(!empty($INRSYMBOL))
<script>
$(document).ready(function(){
$("#PaymentTerms").select2();
});
function openModal()
{
@ -534,7 +537,18 @@ $('#txtEditCST').change(function() {
}
});
$('#drpFreight').change(function() {
var FreightType =$("#drpFreight").val();
if (FreightType == "PER TRIP")
{
$('#TripsValue').show();
}
else {
$('#TripsValue').hide();
}
if($('#Rate').val() != '' && $('#MaterialCode').val() != "0" )
{
selValue = $("#drpFreight").val() ;
@ -565,7 +579,17 @@ $('#drpFreight').change(function() {
});
$('#drpEditFreight').change(function() {
var FreightType =$("#drpEditFreight").val();
if (FreightType == "PER TRIP")
{
$('#EditTripsValue').show();
}
else {
$('#EditTripsValue').hide();
}
if($('#EditRate').val() != '' && $('#EditMaterialCode').val() != "0" )
{
selValue = $("#drpEditFreight").val() ;
@ -1845,6 +1869,7 @@ function calculateEditTaxValue()
//alert('tot:'+tot);
return tot;
}
$(document).ready(function () {
$('#Date').click(function () {
//for Date range selection
@ -1857,20 +1882,19 @@ function calculateEditTaxValue()
$('#Schedulediv').show();
});
});
</script>
<style>
.content {
Padding:0% ! important;
}
body {
background-color: #ecf0f5;
}
.pagination {
margin :0px ! important;
}
.box-body {
padding:0px ! important;
}
.num {
text-align:right;
}
</style>
<div class="content-wrapper">
<?php
@ -1879,9 +1903,9 @@ body {
echo form_open($this->config->base_url().'/purchaseorder/addPO/',$attributes); ?>
<section class="content">
<div style="border:2px solid #333">
<div id="content"></div>
<div>
<div>
<center><b><h2>Siddharth Industries - Revenue Purchase Order</h2></b></center></div>
<div class="container-fluid">
<div class="row">
@ -1906,7 +1930,7 @@ body {
<label>Purchase Order Date</label>
<div class="form-group">
<?php
$data = array('name' => 'PODate','value' => set_value('PODate',$CurrentDate),'id'=>'PODate', 'class' => 'form-control' ,'required' => 'true', 'onkeypress'=>'return false;');
$data = array('name' => 'PODate','value' => set_value('PODate',$CurrentDate),'id'=>'PODate', 'class' => 'form-control num' ,'required' => 'true', 'onkeypress'=>'return false;');
echo form_input($data);
?>
</div>
@ -1995,13 +2019,13 @@ body {
<label>Delivery Date</label>
<div class="form-group">
<?php
$data = array('name' => 'Deliverydt','value' => set_value('Deliverydt',$CurrentDate),'id'=>'Deliverydt', 'class' => 'form-control' ,'required' => 'true','onkeypress'=>'return false;');
$data = array('name' => 'Deliverydt','value' => set_value('Deliverydt',$CurrentDate),'id'=>'Deliverydt', 'class' => 'form-control num' ,'required' => 'true','onkeypress'=>'return false;');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-4" id="Schedulediv" style="display:none;padding:0%;">
<label >Schedule </label>
<label >Schedule By</label>
<?php
$data = array('name' => 'Scheduleby','value' => set_value('Scheduleby'),'id'=>'Scheduleby', 'class' => 'form-control' ,'required' => 'true' ,'rows' => '3', 'cols' => '40');
echo Form_textarea($data);
@ -2014,8 +2038,8 @@ body {
<div class="col-md-12">
<legend>Payment Details</legend>
<!-- Text input-->
<div class="col-md-3">
<span for="payablefrom">Payable Terms</span>
<div class="col-md-4">
<label for="payablefrom">Payable Terms</label>
<?php
@ -2037,7 +2061,15 @@ body {
?>
</div>
<div class="col-md-4" id="otheroptiondiv" style="display:none;">
<label>Description of Payable Terms<span class="badge" style="color:red;text-align:right;background-color: #ecf0f5 ;">*</span></label>
<div class="form-group">
<?php
$data = array('name' => 'Otherpayment','Otherpayment' => set_value('Otherpayment'),'id'=>'Otherpayment', 'class' => 'form-control' ,'required' => 'true');
echo form_input($data);
?>
</div>
</div>
</div>
</div>
</div>
@ -2168,7 +2200,7 @@ body {
</div>
</div>
<div class="container-fluid">
<table>
<div align="right">
<div align="right">
<a data-toggle="modal" ><button type="submit" onclick="openModal();" class="btn btn-primary" id="abcd" >Select Line Item</button> </a>
@ -2214,7 +2246,7 @@ body {
</div>
</div>
<div class="col-md-3">
<label>Cost Center Name</label>
<label>Cost Center Code</label>
<div class="form-group">
<?php
@ -2227,7 +2259,7 @@ body {
<label>Avl Bud Amt In INR</label>
<div class="form-group">
<?php
$data = array('name' => 'AvlBudAmt','value' => set_value('AvlBudAmt'),'id'=>'AvlBudAmt', 'class' => 'form-control' ,'readonly' => 'true');
$data = array('name' => 'AvlBudAmt','value' => set_value('AvlBudAmt'),'id'=>'AvlBudAmt', 'class' => 'form-control num' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
@ -2269,7 +2301,7 @@ body {
<label>Quantity</label>
<div class="form-group">
<?php
$data = array('name' => 'Quantity','value' => set_value('Quantity'),'id'=>'Quantity', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'change()');
$data = array('name' => 'Quantity','value' => set_value('Quantity'),'id'=>'Quantity', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'change()');
echo form_input($data);
?>
</div>
@ -2279,7 +2311,7 @@ body {
<!-- <label>Rate</label> -->
<div class="form-group">
<?php
$data = array('name' => 'Rate','value' => set_value('Rate'),'id'=>'Rate', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'change()' );
$data = array('name' => 'Rate','value' => set_value('Rate'),'id'=>'Rate', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'change()' );
echo form_input($data);
?>
</div>
@ -2289,7 +2321,7 @@ body {
<!-- <label>Basic Amount</label> -->
<div class="form-group">
<?php
$data = array('name' => 'txtBasicValue','value' => set_value('txtBasicValue'),'id'=>'txtBasicValue', 'class' => 'form-control' ,'readonly' => 'true');
$data = array('name' => 'txtBasicValue','value' => set_value('txtBasicValue'),'id'=>'txtBasicValue', 'class' => 'form-control num' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
@ -2334,14 +2366,14 @@ body {
<label>Discounted Amt In INR</label>
<div class="form-group">
<?php
$data = array('name' => 'txtAfterDiscount','value' => set_value('txtAfterDiscount'),'id'=>'txtAfterDiscount', 'class' => 'form-control num' ,'readonly' => 'true');
$data = array('name' => 'txtAfterDiscount','value' => set_value('txtAfterDiscount',0.00),'id'=>'txtAfterDiscount', 'class' => 'form-control num' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-2" >
<label>CGST in %</label>
<label>CGST In %</label>
<div class="form-group">
<?php
$data = array('name' => 'Cgst','value' => set_value('Cgst',0),'id'=>'Cgst', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'change()');
@ -2353,7 +2385,7 @@ body {
<label>CGST Amt In INR</label>
<div class="form-group">
<?php
$data = array('name' => 'AfterCgst','value' => set_value('AfterCgst',0),'id'=>'AfterCgst', 'class' => 'form-control num' ,'readonly' => 'true');
$data = array('name' => 'AfterCgst','value' => set_value('AfterCgst',0.00),'id'=>'AfterCgst', 'class' => 'form-control num' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
@ -2397,14 +2429,14 @@ body {
<label>Packaging Amt In INR</label>
<div class="form-group">
<?php
$data = array('name' => 'txtAfterPackaging','value' => set_value('txtAfterPackaging'),'id'=>'txtAfterPackaging', 'class' => 'form-control num' ,'readonly' => 'true');
$data = array('name' => 'txtAfterPackaging','value' => set_value('txtAfterPackaging',0.00),'id'=>'txtAfterPackaging', 'class' => 'form-control num' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div id="SGSTAddModel">
<div class="col-md-2">
<label>SGST in %</label>
<label>SGST In %</label>
<div class="form-group">
<?php
$data = array('name' => 'Sgst','value' => set_value('Sgst',0),'id'=>'Sgst', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>' change();');
@ -2416,7 +2448,7 @@ body {
<label>SGST Amt In INR</label>
<div class="form-group">
<?php
$data = array('name' => 'AfterSgst','value' => set_value('AfterSgst',0),'id'=>'AfterSgst', 'class' => 'form-control num' ,'readonly' => 'true');
$data = array('name' => 'AfterSgst','value' => set_value('AfterSgst',0.00),'id'=>'AfterSgst', 'class' => 'form-control num' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
@ -2424,7 +2456,7 @@ body {
</div>
<div id="IGSTAddModel" style="display:none;">
<div class="col-md-2">
<label>IGST in %</label>
<label>IGST In %</label>
<div class="form-group">
<?php
$data = array('name' => 'Igst','value' => set_value('Igst',0),'id'=>'Igst', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>' change();');
@ -2436,7 +2468,7 @@ body {
<label>IGST Amt In INR</label>
<div class="form-group">
<?php
$data = array('name' => 'AfterIgst','value' => set_value('AfterIgst',0),'id'=>'AfterIgst', 'class' => 'form-control num' ,'readonly' => 'true');
$data = array('name' => 'AfterIgst','value' => set_value('AfterIgst',0.00),'id'=>'AfterIgst', 'class' => 'form-control num' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
@ -2445,7 +2477,7 @@ body {
</div>
<div class="col-md-12" >
<div class="col-md-4">
<div class="col-md-2">
<label>Freight Type </label>
<div>
<?php
@ -2464,6 +2496,15 @@ body {
echo form_dropdown('drpFreight', $options,set_value('drpFreight'),'id="drpFreight"' ,'class="form-control "');
?>
</div>
</div>
<div class="col-md-2" id="TripsValue" style="display:none;">
<label>NO Of Trips</label>
<div class="form-group">
<?php
$data = array('name' => 'NOOfTrips','value' => set_value('NOOfTrips'),'id'=>'NOOfTrips', 'class' => 'form-control num' );
echo form_input($data);
?>
</div>
</div>
@ -2481,7 +2522,7 @@ body {
<label>Freight Amt In INR</label>
<div class="form-group">
<?php
$data = array('name' => 'txtAfterFreight','value' => set_value('txtAfterFreight'),'id'=>'txtAfterFreight', 'class' => 'form-control num' ,'readonly' => 'true');
$data = array('name' => 'txtAfterFreight','value' => set_value('txtAfterFreight',0.00),'id'=>'txtAfterFreight', 'class' => 'form-control num' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
@ -2490,7 +2531,7 @@ body {
<label> Insurance In INR (if Any)</label>
<div class="form-group">
<?php
$data = array('name' => 'txtInsurance','value' => set_value('txtInsurance'),'id'=>'txtInsurance', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'calculateTotalValue(0);');
$data = array('name' => 'txtInsurance','value' => set_value('txtInsurance',0.00),'id'=>'txtInsurance', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'calculateTotalValue(0);');
echo form_input($data);
?>
</div>
@ -2506,17 +2547,15 @@ body {
<label><?php echo "Total Order Amt In ($INRSYM)";?></label>
<div class="form-group">
<?php
$data = array('name' => 'txtTotalOrderValue','value' => set_value('txtTotalOrderValue'),'id'=>'txtTotalOrderValue', 'class' => 'form-control num' ,'readonly' => 'true');
$data = array('name' => 'txtTotalOrderValue','value' => set_value('txtTotalOrderValue',0.00),'id'=>'txtTotalOrderValue', 'class' => 'form-control num' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-2 col-md-offset-4"><br/>
<a class="btn btn-primary font AddRevenue" ID="AddRevenue"><i class="fa fa-plus"></i>&nbsp;&nbsp;<span class="bold">Add Revenue</span></a>
</div>
<div class="col-md-2 "><br/>
<a class="btn btn-primary" data-dismiss="modal" value="Cancel">Cancel</a>
<div class="col-md-4 col-md-offset-4"><br/>
<a class="btn btn-primary font AddRevenue" ID="AddRevenue"><i class="fa fa-plus"></i>&nbsp;&nbsp;<span class="bold">Add Revenue</span></a>&nbsp;&nbsp;&nbsp;&nbsp;<a class="btn btn-primary" data-dismiss="modal" value="Cancel">Cancel</a>
</div>
</div>
</div>
@ -2566,7 +2605,7 @@ body {
</div>
</div>
<div class="col-md-3">
<label>Cost Center Name</label>
<label>Cost Center Code</label>
<div class="form-group">
<?php
$data = array('name' => 'EditCostCenter','value' => set_value('EditCostCenter'),'id'=>'EditCostCenter', 'class' => 'form-control' ,'readonly' => 'true');
@ -2575,7 +2614,7 @@ body {
</div>
</div>
<div class="col-md-3">
<label>Avl Bud Amt</label>
<label>Avl Bud Amt In INR</label>
<div class="form-group">
<?php
$data = array('name' => 'EditAvlBudAmt','value' => set_value('EditAvlBudAmt'),'id'=>'EditAvlBudAmt', 'class' => 'form-control' ,'readonly' => 'true');
@ -2626,7 +2665,7 @@ body {
</div>
</div>
<div class="col-md-2">
<label><?php echo "Rate ($INRSYM)"?></label>
<label><?php echo "Rate In ($INRSYM)"?></label>
<div class="form-group">
<?php
$data = array('name' => 'EditRate','value' => set_value('EditRate'),'id'=>'EditRate', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'Editchange()','style'=>'text-align:right;' );
@ -2689,7 +2728,7 @@ body {
<div class="col-md-2" >
<label>CGST in %</label>
<label>CGST In %</label>
<div class="form-group">
<?php
$data = array('name' => 'EditCgst','value' => set_value('EditCgst',0),'id'=>'EditCgst', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'Editchange();');
@ -2701,7 +2740,7 @@ body {
<label>CGST Amt In INR</label>
<div class="form-group">
<?php
$data = array('name' => 'EditAfterCgst','value' => set_value('EditAfterCgst',0),'id'=>'EditAfterCgst', 'class' => 'form-control num' ,'readonly' => 'true');
$data = array('name' => 'EditAfterCgst','value' => set_value('EditAfterCgst',0.00),'id'=>'EditAfterCgst', 'class' => 'form-control num' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
@ -2751,7 +2790,7 @@ body {
</div>
<div id="SGSTEditModel">
<div class="col-md-2">
<label>SGST in %</label>
<label>SGST In %</label>
<div class="form-group">
<?php
$data = array('name' => 'EditSgst','value' => set_value('EditSgst',0),'id'=>'EditSgst', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>' Editchange();');
@ -2763,7 +2802,7 @@ body {
<label>SGST Amt In INR</label>
<div class="form-group">
<?php
$data = array('name' => 'EditAfterSgst','value' => set_value('EditAfterSgst',0),'id'=>'EditAfterSgst', 'class' => 'form-control num' ,'readonly' => 'true');
$data = array('name' => 'EditAfterSgst','value' => set_value('EditAfterSgst',0.00),'id'=>'EditAfterSgst', 'class' => 'form-control num' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
@ -2771,7 +2810,7 @@ body {
</div>
<div id="IGSTEditModel" style="display:none;">
<div class="col-md-2">
<label>IGST in %</label>
<label>IGST In %</label>
<div class="form-group">
<?php
$data = array('name' => 'EditIgst','value' => set_value('EditIgst',0),'id'=>'EditIgst', 'class' => 'form-control num' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>' Editchange();');
@ -2783,7 +2822,7 @@ body {
<label>IGST Amt In INR</label>
<div class="form-group">
<?php
$data = array('name' => 'EditAfterIgst','value' => set_value('EditAfterIgst',0),'id'=>'EditAfterIgst', 'class' => 'form-control num' ,'readonly' => 'true');
$data = array('name' => 'EditAfterIgst','value' => set_value('EditAfterIgst',0.00),'id'=>'EditAfterIgst', 'class' => 'form-control num' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
@ -2791,7 +2830,7 @@ body {
</div>
</div>
<div class="col-md-12">
<div class="col-md-4">
<div class="col-md-2">
<label>Freight Type </label>
<div>
<?php
@ -2813,6 +2852,15 @@ body {
?>
</div>
</div>
<div class="col-md-2" id="EditTripsValue" style="display:none;">
<label>NO Of Trips</label>
<div class="form-group">
<?php
$data = array('name' => 'EditNOOfTrips','value' => set_value('EditNOOfTrips'),'id'=>'EditNOOfTrips', 'class' => 'form-control num' );
echo form_input($data);
?>
</div>
</div>
<div class="col-md-2">
<label>Freight Rate </label>
<div class="form-group">
@ -2856,12 +2904,10 @@ body {
?>
</div>
</div>
<div class="col-md-2 col-md-offset-4" ><br/>
<a class="btn btn-primary EditRevenue" ID="EditRevenue"><i class="fa fa-plus"></i>&nbsp;&nbsp;<span class="bold">Edit Revenue</span></a>
</div>
<div class="col-md-2"><br/>
<a class="btn btn-primary" data-dismiss="modal" value="Cancel">Cancel</a>
<div class="col-md-4 col-md-offset-4" ><br/>
<a class="btn btn-primary EditRevenue" ID="EditRevenue"><i class="fa fa-plus"></i>&nbsp;&nbsp;<span class="bold">Edit Revenue</span></a>&nbsp;&nbsp;&nbsp;&nbsp; <a class="btn btn-primary" data-dismiss="modal" value="Cancel">Cancel</a>
</div>
</div>
</div>
<br/>
@ -2882,14 +2928,14 @@ body {
<tr>
<th>SNo</th>
<th>Requisition No</th>
<th>Item Code</th>
<th>Item Code</th>
<th>Item Description</th>
<th>Quantity</th>
<th>UOM</th>
<th>Rate</th>
<th>Basic Amount</th>
<th>Tax Amount</th>
<th>Total Order Amount</th>
<th>Rate In INR</th>
<th>Basic Amount In INR</th>
<th>Tax Amount In INR</th>
<th>Total Order Amount In INR</th>
<th>Action</th>
</tr>
</thead>
@ -3025,7 +3071,8 @@ body {
</div>
</div>
</section>
</div></section>
<script type="text/html" id="RevenueList">
<tr id="<%=index%>">
@ -3033,12 +3080,12 @@ body {
<td align="left"><%=ReqNo%></td>
<td align="left"><%=MaterialCode%></td>
<td align="left"><%=MaterialName%></td>
<td align="left"><%=Quantity%></td>
<td align="right"><%=Quantity%></td>
<td align="left"><%=UOM%></td>
<td align="left"><%=Rate%></td>
<td align="left"><%=BasicAmount%></td>
<td align="left"><%=Taxvalue%></td>
<td align="left"><%=TotalValue%></td>
<td align="right"><%=Rate%></td>
<td align="right"><%=BasicAmount%></td>
<td align="right"><%=Taxvalue%></td>
<td align="right"><%=TotalValue%></td>
<td>
<a data-target='#EDITREVENUE' data-id="<%=index%>" data-userid="<%=index%>" data-toggle="modal" href="#EDITREVENUE"><i class="fa fa-pencil" data-toggle="tooltip" title="Click here to view/Edit the <%=ReqNo%> Requisition details"></i>&nbsp;&nbsp;&nbsp;</a> <a href='#' onclick = "DeleteRow(<%=index%>)" class="link" data-id="<%=index%>" data-userid="<%=index%>" id="Del" ><span class="glyphicon glyphicon-trash"></span></a>
@ -3678,16 +3725,16 @@ $('#SpcialInstruction').val(splinstr);
}
}
<!-- script for table , It works uned the datatable plugin-->
$(function () {
//$("#revenueTax").DataTable();
$('#revenueTax').DataTable({
"paging": false,
"lengthChange": true,
"lengthChange": false,
"searching": false,
"ordering": false,
// "info": true,
"autoWidth": true
"autoWidth": false
});
});
@ -3830,7 +3877,18 @@ function calculateTotalValue()
//alert('tot:'+tot);
return tot;
}
//If others is the payment terms to display mandatory field
$("#PaymentTerms").change(function() {
if ($('#PaymentTerms').val().trim()=='PT08')
{
$('#otheroptiondiv').show();
}
else {
$('#otheroptiondiv').hide();
}
});
</script>

View File

@ -124,9 +124,11 @@
</div>
<div class="page" style="font-size:12px;">
<table style="border-collapse: collapse;" border="1" width="100%" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<tr style="background:#8c8c8c;color:#fff;">
<td>Requistion Number</td>
<td>Requested By</td>
<td>Requested Department</td>
@ -154,11 +156,11 @@
</tbody>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
<table style="border-collapse: collapse;" border="1" width="100%" cellspacing="0" cellpadding="0">
<table style="border-collapse: collapse;" border="0" width="100%" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>#</td>
<tr style="background:#8c8c8c;color:#fff;">
<td>#</td>
<td>Item Name</td>
<td>UOM</td>
<td>Qty</td>
@ -224,13 +226,7 @@
</tbody>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
<table style="border-collapse: collapse;" border="1" width="100%" cellspacing="0" cellpadding="0">
<tbody>
@ -312,7 +308,7 @@
</tr>
</tbody>
</table> -->
<br/>
<p>&nbsp;</p>
<div align="Left"> <b>Released By : </b><?php echo $detail->FirstName;?></div>
<div align="Left"> <b>Released On : </b><?php echo $releasedOn->format('d-m-Y');?></div>
@ -325,4 +321,5 @@
?>
<?php } ?>
<?php } ?>
</div>

View File

@ -130,11 +130,13 @@
</div>
<div class="page" style="font-size:12px;">
<table style="border-collapse: collapse;" border="1" width="100%" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<tr style="background:#8c8c8c;color:#fff;">
<td>Requistion Number</td>
@ -142,7 +144,7 @@
<td>Requested Department</td>
<td>Cost Center &nbsp;</td>
<td>Cost Center Code</td>
</tr>
@ -175,14 +177,13 @@
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
<table style="border-collapse: collapse;" border="1" width="100%" cellspacing="0" cellpadding="0">
<table style="border-collapse: collapse;" border="0" width="100%" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<tr style="background:#8c8c8c;color:#fff;">
<td>#</td>
@ -431,4 +432,4 @@
<?php } ?>
</div>