Advertisement
NikolayPaskulov

Untitled

Nov 18th, 2014
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.31 KB | None | 0 0
  1. JS :
  2. //Смяна,промяна на contentEditables дивове и валидации
  3. table.onmousedown = function (e) {
  4. var t = e.target,
  5. startDate = document.getElementById('firstDate').value.split('-').reverse().join('');
  6.  
  7. if (t.className.indexOf('table-cell') >= 0 && t.className.slice(t.className.lastIndexOf('c')) != 'c1') {
  8. var prevState = t.innerHTML;
  9. t.contentEditable = "true";
  10.  
  11. t.onkeydown = function (e) {
  12. if (e.keyCode == 13) {
  13. t.blur();
  14. t.contentEditable = "false";
  15. }
  16. }
  17.  
  18. t.onblur = function (e) {
  19. var cellPosition = t.className.slice(t.className.lastIndexOf('c') + 1);
  20. if (cellPosition > 9 || cellPosition == 4) {
  21. if (isNaN(t.innerHTML)) {
  22. t.innerHTML = prevState;
  23. return;
  24. }
  25. if (t.innerHTML && Number(cellPosition) != 4 && t.innerHTML != prevState) {
  26. t.innerHTML = Number(t.innerHTML).toFixed(2);
  27. calculateFooter();
  28. }
  29. }
  30. if (cellPosition == 3) {
  31. if (t.innerHTML != '01' || t.innerHTML != '02' || t.innerHTML != '03' || t.innerHTML != '07' || t.innerHTML != '09'
  32. || t.innerHTML != '11' || t.innerHTML != '12' || t.innerHTML != '13' || t.innerHTML != '91' || t.innerHTML != '92'
  33. || t.innerHTML != '93' || t.innerHTML != '94') {
  34. t.innerHTML = prevState;
  35. return;
  36. }
  37. }
  38. if (cellPosition == 2) {
  39. if (isNaN(t.innerHTML)) {
  40. t.innerHTML = prevState;
  41. return;
  42. } else {
  43. if (Number(t.innerHTML) < 0 || Number(t.innerHTML) > 9999) {
  44. t.innerHTML = prevState;
  45. return;
  46. }
  47. }
  48. }
  49. if (cellPosition == 5) {
  50. if (t.innerHTML.length != 10 || (t.innerHTML).match(/\w+/g).length != 3 || (t.innerHTML).match(/\//g).length != 2) {
  51. t.innerHTML = prevState;
  52. return;
  53. }
  54. }
  55. if (t.innerHTML != prevState) {
  56. changeTxtState(t.parentNode.children[0].innerHTML, cellPosition, t.innerHTML);
  57. startDeclaration(startDate);
  58. }
  59. }
  60. }
  61. }
  62.  
  63. //Скриване/показване на празните клетки
  64. document.getElementById('pokupkiHideEmptyCells').onclick = function () {
  65. var strArray = [],
  66. styleTag = document.getElementById('pokupkiStyle'),
  67. headerWidth = 0;
  68.  
  69. //Проверка дали вече не са скрити колоните
  70. if (this.innerHTML == 'Покажи празните колони') {
  71. styleTag.innerHTML = '';
  72. this.innerHTML = 'Скрии празните колони'
  73. return;
  74. }
  75. this.innerHTML = 'Покажи празните колони';
  76.  
  77. for (var z = 6; z < table.children[0].children.length; z++) {
  78. headerWidth += table.children[0].children[z].offsetWidth;
  79. if (purchFooter[z - 6] == '0.00') {
  80. styleTag.innerHTML += '#main-wrapper .c' + (z + 4) + '{ width:0px; display:none; }';
  81. }
  82. if (z == 12) {
  83. strArray.push('#nameHeader > .table-cell:nth-child(2), #footer > .table-row:last-child > .table-cell:nth-child(2) { width:' + headerWidth + 'px;}');
  84. headerWidth = 0;
  85. }
  86. if (z == table.children[0].children.length - 1) {
  87. (headerWidth > 0) ? strArray.push('#nameHeader > .table-cell:nth-child(3), #footer > .table-row:last-child > .table-cell:nth-child(3) { width:' + headerWidth + 'px;}') :
  88. strArray.push('#nameHeader > .table-cell:nth-child(3), #footer > .table-row:last-child > .table-cell:nth-child(3) { display:none;}');
  89. }
  90. }
  91. strArray.push('@media print { #main-wrapper {width:133%;}');
  92. styleTag.innerHTML += strArray.join('');
  93. }
  94.  
  95. //Построяване на таблицата с дневника на продажбите
  96. function buildPokupkiTable(arr, danPer) {
  97. var strArray = [],
  98. rowCounter = 1,
  99. cells = [];
  100.  
  101. purchFooter = [];
  102. document.getElementById('InZDDS').textContent = 'BG175140782';
  103. document.getElementById('DanPer').textContent = danPer.substr(4, 2) + '/' + danPer.substr(0, 4);
  104. for (var i = 0; i < arr.length; i++) {
  105. var client = arr[i].partner.slice(arr[i].partner.lastIndexOf(':') + 1),
  106. date = arr[i].date.slice(6, 8) + '/' + arr[i].date.slice(4, 6) + '/' + arr[i].date.slice(0, 4),
  107. vat = Number(arr[i].vat).toFixed(2) || '&nbsp;',
  108. sumWithoutVat = ((Number(arr[i].sum) - Number(arr[i].vat)).toFixed(2)) || '&nbsp;',
  109. type = arr[i].type;
  110.  
  111. if (isDateInRange(danPer, date)) continue;
  112. cells[i] = [];
  113. cells[i][0] = rowCounter;
  114. cells[i][1] = '9999';
  115. cells[i][2] = (arr[i].НОММД && arr[i].НОММД != 0 && arr[i].НОММД != '') ? arr[i].НОММД : arr[i].ВИДДОК;
  116. cells[i][3] = (arr[i].НОММД && arr[i].НОММД != 0 && arr[i].НОММД != '') ? arr[i].НОММД : arr[i].docNumber;
  117. cells[i][4] = date;
  118. cells[i][5] = '999999999999999'; // ако няма се поставят 999999999999999;
  119. cells[i][6] = client;
  120. cells[i][7] = arr[i].comment || 'Покупки';
  121. cells[i][8] = (type == 51) ? '01' : (type == 52) ? '02' : '';
  122. cells[i][9] = (type == 3 || type == 18 || type == 21 || type == 43) ? sumWithoutVat : (type == 35 || type == 36) ? arr[i].СУМАБДК : '';
  123. cells[i][10] = (type == 1 || type == 17 || type == 20 || type == 44 || type == 45) ? sumWithoutVat : (type == 35 || type == 36) ? arr[i].СУМАДК : '';
  124. cells[i][11] = (type == 1 || type == 17 || type == 20 || type == 44 || type == 45) ? vat : (type == 35 || type == 36) ? (arr[i].ДДСДК != 0) ? arr[i].ДДСДК : arr[i].СУМАДК * 0.2 : '';
  125. cells[i][12] = (type == 35 || type == 36) ? arr[i].СУМАЧДК : '';
  126. cells[i][13] = (type == 35 || type == 36) ? (arr[i].ДДСДК != 0) ? arr[i].ДДСДК : arr[i].СУМАЧДК * 0.2 : '';
  127. cells[i][14] = (type == 33 || type == 34) ? vat : '';
  128. cells[i][15] = (type == 4 || type == 38) ? arr[i].sum : '';
  129.  
  130. filloutput(cells[i], danPer);
  131.  
  132. strArray.push('<div class="table-row">')
  133. for (var a = 0; a < cells[i].length; a++) {
  134. var classCounter = a + 1;
  135. strArray.push('<div class="table-cell c' + classCounter + '">' + cells[i][a] + '</div>');
  136. }
  137. strArray.push('</div>');
  138. rowCounter++;
  139. }
  140.  
  141. table.innerHTML = strArray.join('');
  142. pokupkiDone = true;
  143. calculateFooter();
  144. }
  145.  
  146. //Попълване на стринга с информация за дневника на покупките, който ще бъде записан в .txt формат
  147. function filloutput(arr, danPer) {
  148. var NumberZDDS = document.getElementById('InZDDS').innerHTML;
  149. pokupkiTxt += (addSymbols('BG175140782', 15) + addSymbols(danPer.substr(0, 4) + danPer.substr(4, 2), 6) + addSymbols(arr[1], 4, true) + addSymbols(arr[0], 15, true) + addSymbols(arr[2], 2) +
  150. addSymbols(arr[3], 20) + addSymbols(arr[4], 10) + addSymbols(arr[5], 15) + addSymbols(arr[6], 50) + addSymbols(arr[7], 30) + addSymbols(Number(arr[9]).toFixed(2), 15, true) +
  151. addSymbols(Number(arr[10]).toFixed(2), 15, true) + addSymbols(Number(arr[11]).toFixed(2), 15, true) + addSymbols(Number(arr[12]).toFixed(2), 15, true) +
  152. addSymbols(Number(arr[13]).toFixed(2), 15, true) + addSymbols(Number(arr[14]).toFixed(2), 15, true) + addSymbols(Number(arr[15]).toFixed(2), 15, true) + addSymbols(arr[8], 2) + '\r\n');
  153. }
  154.  
  155. // Преработва .txt файлът
  156. function cutLineFromFile(str) {
  157. var charLenght = [15, 6, 4, 15, 2, 20, 10, 15, 50, 30, 15, 15, 15, 15, 15, 15, 15, 2],
  158. lenOfLine = 274,
  159. lines = str.split('\r\n'),
  160. currentLine = [],
  161. begginingChar = 0,
  162. startDate = document.getElementById('firstDate').value.split('-').reverse().join('');
  163. lines.pop(1);
  164.  
  165. for (var a = 0; a < lines.length; a++) {
  166. for (var b = 0; b < charLenght.length; b++) {
  167. currentLine.push(lines[a].substr(begginingChar, charLenght[b]))
  168. begginingChar += charLenght[b];
  169. if (b == charLenght.length - 1) {
  170. begginingChar = 0;
  171. printLine(currentLine);
  172. currentLine = [];
  173. }
  174. }
  175. }
  176. calculateFooter();
  177. startDeclaration(startDate);
  178. }
  179.  
  180. // Добавя нов ред в таблицата от преработеният .txt файл
  181. function printLine(arr) {
  182. var strArray = [],
  183. isTakkenLastIndex = false,
  184. classCounter = 1,
  185. rowCounter = (table.children[0]) ? Number(table.children[table.children.length - 1].children[0].innerHTML) + 1 : 1;
  186.  
  187. strArray.push('<div class="table-row">')
  188. for (var i = 4; i < arr.length - 1; i++) {
  189. arr[i] = arr[i].replace(/\s/g, '');
  190. if (arr[i] == '0.00') arr[i] = '';
  191. if (i == 4) {
  192. arr[3] = addSymbols(rowCounter, 15, true);
  193. pokupkiTxt += arr.join('') + '\r\n';
  194. strArray.push('<div class="table-cell c' + classCounter + '">' + rowCounter + '</div>');
  195. strArray.push('<div class="table-cell c' + (classCounter + 1) + '">' + arr[2] + '</div>')
  196. }
  197. if (i == 10) {
  198. if (!isTakkenLastIndex) {
  199. strArray.push('<div class="table-cell c' + (classCounter + 2) + '">' + arr[arr.length - 1] + '</div>')
  200. isTakkenLastIndex = true;
  201. i--;
  202. rowCounter++;
  203. classCounter++;
  204. continue;
  205. }
  206. }
  207. strArray.push('<div class="table-cell c' + (classCounter + 2) + '">' + arr[i] + '</div>');
  208. rowCounter++;
  209. classCounter++;
  210. }
  211. strArray.push('</div>');
  212. table.innerHTML += strArray.join('');
  213. }
  214.  
  215. //след промяна на някоя от клетките промяната се отразява и в txt файлът
  216. function changeTxtState(rowNumber, cell, text) {
  217. var rowLenght = [15, 4, 2, 20, 10, 15, 50, 30, 2, 15, 15, 15, 15, 15, 15, 15],
  218. charLenght = [15, 6, 4, 15, 2, 20, 10, 15, 50, 30, 15, 15, 15, 15, 15, 15, 15, 2],
  219. //ИН по зддс, Дан.пер., c2, c1, c3, c4, c5 ,c6, c7, c8, c10, c11, c12, c13, c14, c15, c16, c9;
  220. // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
  221. positionInTxt = 0,
  222. len = (cell > 2 && cell < 9) ? Number(cell) + 1 : (cell == 2 || cell > 9 && cell < 17) ? Number(cell) : (cell == 9) ? 17 : 0,
  223. currentPokupkiTxt = pokupkiTxt.split('\r\n');
  224. for (var i = 0; i < len; i++) {
  225. positionInTxt += charLenght[i];
  226. }
  227.  
  228. currentPokupkiTxt[rowNumber - 1] = currentPokupkiTxt[rowNumber - 1].slice(0, positionInTxt) + addSymbols(text, rowLenght[Number(cell) - 1], true) +
  229. currentPokupkiTxt[rowNumber - 1].slice(positionInTxt + Number(rowLenght[Number(cell) - 1]));
  230. pokupkiTxt = currentPokupkiTxt.join('\r\n');
  231. }
  232.  
  233. //пресмята фоотера
  234. function calculateFooter() {
  235. var footerFullSum = document.getElementById('footerFullSum'),
  236. total = 0;
  237. for (var a = 9; a < 16; a++) {
  238. for (var b = 0; b < table.children.length; b++) {
  239. total += Number(table.children[b].children[a].innerHTML);
  240. }
  241. footerFullSum.children[a - 7].innerHTML = (total != 0) ? total.toFixed(2) : '&nbsp;';
  242. purchFooter[a - 9] = total.toFixed(2);
  243. total = 0;
  244. }
  245. }
  246.  
  247. CSS :
  248. body {
  249. margin: 0;
  250. padding: 0;
  251. }
  252.  
  253. div {
  254. display: inline-block;
  255. float: left;
  256. }
  257.  
  258. body * {
  259. box-sizing: border-box;
  260. }
  261.  
  262. #main-wrapper {
  263. width: 1750px;
  264. border-left: 1px solid #999999;
  265. font-size: 11px;
  266. }
  267.  
  268. .table-row {
  269. width: 100%;
  270. }
  271.  
  272. .table-cell {
  273. border-right: 1px solid #999999;
  274. }
  275.  
  276. #nameHeader, #nameHeader > .table-cell {
  277. height: 60px;
  278. }
  279.  
  280. #nameHeader > .table-cell:first-child, #nameHeader > .table-cell:nth-child(3) {
  281. width: 20%;
  282. }
  283.  
  284. #nameHeader > .table-cell:nth-child(2) {
  285. width: 60%;
  286. }
  287.  
  288. #nameHeader > .table-cell:first-child > div:first-child {
  289. font-size: 20px;
  290. font-weight: bold;
  291. padding-left: 10px;
  292. }
  293.  
  294. #nameHeader > .table-cell:first-child > div:nth-child(2), #nameHeader > .table-cell:first-child > div:nth-child(4) {
  295. width: 51%;
  296. padding-left: 20%;
  297. }
  298.  
  299. #nameHeader > .table-cell, #tableHeader > .table-cell, #tableHeadersFooter > .table-cell {
  300. border-bottom: 1px solid #999999;
  301. }
  302.  
  303. #nameHeader > .table-cell {
  304. border-top: 1px solid #999999;
  305. }
  306.  
  307. #tableHeader > .table-cell {
  308. height: 50px;
  309. }
  310.  
  311. #tableHeader > .table-cell {
  312. text-align: center;
  313. }
  314.  
  315. #tableHeader > .table-cell:first-child, #table > .table-row > .table-cell:first-child {
  316. width: 1.2%;
  317. }
  318.  
  319. #tableHeader > .table-cell:nth-child(2), #table > .table-row > .table-cell:nth-child(2) {
  320. width: 1.8%;
  321. }
  322.  
  323. #tableHeader > .table-cell:nth-child(3) {
  324. width: 11%;
  325. }
  326.  
  327. #tableHeader > .table-cell:nth-child(4), #table > .table-row > .table-cell:nth-child(6) {
  328. width: 6%;
  329. }
  330.  
  331. #tableHeader > .table-cell:nth-child(3) > .table-cell:first-child {
  332. height: 36px;
  333. }
  334.  
  335. #tableHeader > .table-cell:nth-child(3) > .table-cell:nth-child(2), #tableHeader > .table-cell:nth-child(3) > .table-cell:nth-child(3), #tableHeader > .table-cell:nth-child(3) > .table-cell:nth-child(4) {
  336. height: 14px;
  337. }
  338.  
  339. #tableHeader > .table-cell:nth-child(3) > .table-cell:first-child {
  340. width: 100%;
  341. border-right: none;
  342. border-bottom: 1px solid #999999;
  343. }
  344.  
  345. #tableHeader > .table-cell:nth-child(3) > .table-cell:nth-child(2) {
  346. width: 12%;
  347. }
  348.  
  349. #tableHeader > .table-cell:nth-child(3) > .table-cell:nth-child(3) {
  350. width: 50%;
  351. }
  352.  
  353. #tableHeader > .table-cell:nth-child(3) > .table-cell:nth-child(4) {
  354. width: 38%;
  355. border-right: none;
  356. }
  357.  
  358. #tableHeader > .table-cell:nth-child(5), #table > .table-row > .table-cell:nth-child(7) {
  359. width: 10%;
  360. }
  361.  
  362. #tableHeader > .table-cell:nth-child(6), #tableHeader > .table-cell:nth-child(7), #table > .table-row > .table-cell:nth-child(8), #table > .table-row > .table-cell:nth-child(9) {
  363. width: 4%;
  364. }
  365.  
  366. #tableHeader > .table-cell:nth-child(8), #tableHeadersFooter > .table-cell:nth-child(2), #footer .table-row > .table-cell:nth-child(3), #table > .table-row > .table-cell:nth-child(10) {
  367. width: 10%;
  368. }
  369.  
  370. #tableHeader > .table-cell:nth-child(9), #tableHeadersFooter > .table-cell:nth-child(3), #footer .table-row > .table-cell:nth-child(4), #table > .table-row > .table-cell:nth-child(11) {
  371. width: 14%;
  372. }
  373.  
  374. #tableHeader > .table-cell:nth-child(10), #tableHeadersFooter > .table-cell:nth-child(4), #footer .table-row > .table-cell:nth-child(5), #table > .table-row > .table-cell:nth-child(12) {
  375. width: 5%;
  376. }
  377.  
  378. #tableHeader > .table-cell:nth-child(11), #tableHeadersFooter > .table-cell:nth-child(5), #footer .table-row > .table-cell:nth-child(6), #table > .table-row > .table-cell:nth-child(13) {
  379. width: 13%;
  380. }
  381.  
  382. #tableHeader > .table-cell:nth-child(12), #tableHeadersFooter > .table-cell:nth-child(6), #footer .table-row > .table-cell:nth-child(7), #table > .table-row > .table-cell:nth-child(14) {
  383. width: 5%;
  384. }
  385.  
  386. #tableHeader > .table-cell:nth-child(13), #tableHeadersFooter > .table-cell:nth-child(7), #footer .table-row > .table-cell:nth-child(8), #table > .table-row > .table-cell:nth-child(15) {
  387. width: 8%;
  388. }
  389.  
  390. #tableHeader > .table-cell:nth-child(14), #tableHeadersFooter > .table-cell:nth-child(8), #footer .table-row > .table-cell:nth-child(9), #table > .table-row > .table-cell:nth-child(16) {
  391. width: 7%;
  392. }
  393.  
  394. #tableHeadersFooter > .table-cell:first-child {
  395. width: 38%;
  396. text-align: right;
  397. padding-right: 2%;
  398. }
  399.  
  400. #tableHeadersFooter > .table-cell {
  401. background: #d8d8ff;
  402. }
  403.  
  404. #tableHeader > .table-cell:nth-child(5) {
  405. line-height: 50px;
  406. }
  407.  
  408. #footer > .table-row:first-child > .table-cell, #footer .table-row:nth-child(2) > .table-cell {
  409. border-bottom: 1px solid #999999;
  410. height: 15px;
  411. background: #d8d8ff;
  412. }
  413.  
  414. #footer .table-row > .table-cell:first-child {
  415. width: 30%;
  416. border-bottom: none;
  417. background-color: transparent;
  418. }
  419.  
  420. #footer .table-row > .table-cell:nth-child(2) {
  421. width: 8%;
  422. text-align: right;
  423. padding-right: 5px;
  424. }
  425.  
  426. #footer > .table-row:nth-child(3) > .table-cell {
  427. height: 50px;
  428. line-height: 50px;
  429. }
  430.  
  431. #footer > .table-row:nth-child(3) > .table-cell:first-child, #footer > .table-row:nth-child(3) > .table-cell:nth-child(3) {
  432. width: 20%;
  433. border-right: none;
  434. }
  435.  
  436. #footer > .table-row:nth-child(3) > .table-cell:nth-child(2) {
  437. width: 60%;
  438. text-align: left;
  439. }
  440.  
  441. #footer > .table-row:nth-child(3) > .table-cell:nth-child(2) span {
  442. padding-left: 16.5%;
  443. }
  444.  
  445. #footer > .table-row:nth-child(3) > .table-cell:first-child span:first-child {
  446. padding-left: 10px;
  447. }
  448.  
  449. #footer > .table-row:nth-child(3) > .table-cell:first-child span:nth-child(2) {
  450. padding-left: 50%;
  451. }
  452.  
  453. #footer > .table-row:last-child > .table-cell {
  454. border-bottom: 1px solid #999999;
  455. }
  456.  
  457. #table > .table-row > .table-cell:nth-child(3) {
  458. width: 1.32%;
  459. }
  460.  
  461. #table > .table-row > .table-cell:nth-child(4) {
  462. width: 5.5%;
  463. }
  464.  
  465. #table > .table-row > .table-cell:nth-child(5) {
  466. width: 4.18%;
  467. }
  468.  
  469. #table > .table-row > .table-cell, #tableHeadersFooter > .table-cell {
  470. border-bottom: 1px solid #999999;
  471. }
  472.  
  473. #table > .table-row > .table-cell {
  474. overflow: hidden;
  475. height: 15px;
  476. }
  477.  
  478.  
  479. @media print {
  480. #main-wrapper {
  481. width:100%;
  482. }
  483.  
  484. nav, #pokupkiHideEmptyCells {
  485. display: none;
  486. }
  487.  
  488. #main-wrapper > * {
  489. font-size: 7px;
  490. }
  491.  
  492. #main-wrapper #nameHeader > .table-row:first-child > .table-cell:first-child {
  493. font-size: 16.5px;
  494. }
  495. }
  496.  
  497. html :
  498. <div id="main-wrapper">
  499. <div id="nameHeader" class="table-row">
  500. <div class="table-cell">
  501. <div>ДНЕВНИК НА ПОКУПКИТЕ</div>
  502. <div>ИН по ЗДДС:</div><div id="InZDDS">&nbsp;</div>
  503. <div>Данъчен период:</div><div id="DanPer">&nbsp;</div>
  504. </div>
  505. <div class="table-cell"><button id="pokupkiHideEmptyCells" class="pokupkiBtns">Скрии празните колони</button></div>
  506. <div class="table-cell"></div>
  507. </div>
  508. <div id="tableHeader" class="table-row">
  509. <div class="table-cell c1">N по ред</div>
  510. <div class="table-cell c2">Клон</div>
  511. <div class="table-cell">
  512. <div class="table-cell">Документ</div>
  513. <div class="table-cell c3">Вид</div>
  514. <div class="table-cell c4">Номер</div>
  515. <div class="table-cell c5">Дата</div>
  516. </div>
  517. <div class="table-cell c6">Идентиф. номер на контр. доставчик</div>
  518. <div class="table-cell c7">Име на контрагента (доставчик)</div>
  519. <div class="table-cell c8">Вид на стоката услугата</div>
  520. <div class="table-cell c9">Доставка по чл. 163а от ЗДДС</div>
  521. <div class="table-cell c10">ДО и данък на получ.дост. ВОП, чл.82,ал2-5 ЗДДС и внос без право на дан.кред. или без данък</div>
  522. <div class="table-cell c11">ДО на пол.дост ВОП,чл.82 ал.2-5 ЗДДС,внос, ДО на получ. дост. използвани за дост. по чл.69 ал 2 ЗДДС с право на ПДК</div>
  523. <div class="table-cell c12">ДДС с право на пълен данъчен кредит</div>
  524. <div class="table-cell c13">ДО на пол.дост ВОП,чл.82 ал.2-5 ЗДДС, внос, ДО на получ. дост. използвани за дост.по чл.69 ал.2 ЗДДС с право на ЧДК</div>
  525. <div class="table-cell c14">ДДС с право на частичен данъчен кредит</div>
  526. <div class="table-cell c15">Годишна корекция по чл. 73, ал8 ЗДДС</div>
  527. <div class="table-cell c16">ДО при придобиване на стоки от тристр.операция</div>
  528. </div>
  529. <div id="tableHeadersFooter" class="table-row">
  530. <div class="table-cell">ОБЩО:</div>
  531. <div class="table-cell c10">&nbsp;</div>
  532. <div class="table-cell c11">&nbsp;</div>
  533. <div class="table-cell c12">&nbsp;</div>
  534. <div class="table-cell c13">&nbsp;</div>
  535. <div class="table-cell c14">&nbsp;</div>
  536. <div class="table-cell c15">&nbsp;</div>
  537. <div class="table-cell c16">&nbsp;</div>
  538. </div>
  539. <div id="table" class="table-row"></div>
  540. <div id="footer" class="table-row">
  541. <div class="table-row">
  542. <div class="table-cell">&nbsp;</div>
  543. <div class="table-cell c8c9">Общо без вид 11,12,13:</div>
  544. <div class="table-cell c10">&nbsp;</div>
  545. <div class="table-cell c11">&nbsp;</div>
  546. <div class="table-cell c12">&nbsp;</div>
  547. <div class="table-cell c13">&nbsp;</div>
  548. <div class="table-cell c14">&nbsp;</div>
  549. <div class="table-cell c15">&nbsp;</div>
  550. <div class="table-cell c16">&nbsp;</div>
  551. </div>
  552. <div class="table-row" id="footerFullSum">
  553. <div class="table-cell">&nbsp;</div>
  554. <div class="table-cell c8c9">Общо:</div>
  555. <div class="table-cell c10">&nbsp;</div>
  556. <div class="table-cell c11">&nbsp;</div>
  557. <div class="table-cell c12">&nbsp;</div>
  558. <div class="table-cell c13">&nbsp;</div>
  559. <div class="table-cell c14">&nbsp;</div>
  560. <div class="table-cell c15">&nbsp;</div>
  561. <div class="table-cell c16">&nbsp;</div>
  562. </div>
  563. <div class="table-row">
  564. <div class="table-cell">
  565. <span>Длъжност:</span>
  566. <span>Управител:</span>
  567. </div>
  568. <div class="table-cell">
  569. <span>Подпис и печат:</span>
  570. </div>
  571. <div class="table-cell" style="border-right:1px solid #999999;"></div>
  572. </div>
  573. </div>
  574. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement