Advertisement
Guest User

invoice

a guest
Sep 2nd, 2019
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.58 KB | None | 0 0
  1. [
  2. {
  3. "columns": [
  4. {
  5. "image": "$accountLogo",
  6. "fit": [
  7. 120,
  8. 80
  9. ]
  10. },
  11. {
  12. "canvas": [
  13. {
  14. "type": "rect",
  15. "x": 0,
  16. "y": 0,
  17. "w": 190,
  18. "h": "$invoiceDetailsHeight",
  19. "r": 5,
  20. "lineWidth": 1,
  21. "color": "$primaryColor:#009d91"
  22. }
  23. ],
  24. "width": 10,
  25. "margin": [
  26. 200,
  27. 0,
  28. 0,
  29. 0
  30. ]
  31. },
  32. {
  33. "width": 400,
  34. "table": {
  35. "body": "$invoiceDetails"
  36. },
  37. "layout": "noBorders",
  38. "margin": [
  39. 210,
  40. 10,
  41. 10,
  42. 0
  43. ]
  44. }
  45. ]
  46. },
  47. {
  48. "margin": [
  49. 0,
  50. 18,
  51. 0,
  52. 0
  53. ],
  54. "columnGap": 50,
  55. "columns": [
  56. {
  57. "width": 212,
  58. "stack": [
  59. {
  60. "text": "$invoiceToLabel:",
  61. "style": "toLabel"
  62. },
  63. {
  64. "canvas": [
  65. {
  66. "type": "line",
  67. "x1": 0,
  68. "y1": 4,
  69. "x2": 150,
  70. "y2": 4,
  71. "lineWidth": 1,
  72. "dash": {
  73. "length": 3
  74. },
  75. "lineColor": "$primaryColor:#009d91"
  76. }
  77. ],
  78. "margin": [
  79. 0,
  80. 0,
  81. 0,
  82. 4
  83. ]
  84. },
  85. "$clientDetails",
  86. {
  87. "canvas": [
  88. {
  89. "type": "line",
  90. "x1": 0,
  91. "y1": 9,
  92. "x2": 150,
  93. "y2": 9,
  94. "lineWidth": 1,
  95. "dash": {
  96. "length": 3
  97. },
  98. "lineColor": "$primaryColor:#009d91"
  99. }
  100. ]
  101. }
  102. ]
  103. },
  104. {
  105. "width": "*",
  106. "stack": [
  107. {
  108. "text": "$fromLabel:",
  109. "style": "fromLabel"
  110. },
  111. {
  112. "canvas": [
  113. {
  114. "type": "line",
  115. "x1": 0,
  116. "y1": 4,
  117. "x2": 250,
  118. "y2": 4,
  119. "lineWidth": 1,
  120. "dash": {
  121. "length": 3
  122. },
  123. "lineColor": "$primaryColor:#009d91"
  124. }
  125. ],
  126. "margin": [
  127. 0,
  128. 0,
  129. 0,
  130. 4
  131. ]
  132. },
  133. {
  134. "columns": [
  135. "$accountDetails",
  136. "$accountAddress"
  137. ],
  138. "columnGap": 4
  139. },
  140. {
  141. "canvas": [
  142. {
  143. "type": "line",
  144. "x1": 0,
  145. "y1": 9,
  146. "x2": 250,
  147. "y2": 9,
  148. "lineWidth": 1,
  149. "dash": {
  150. "length": 3
  151. },
  152. "lineColor": "$primaryColor:#009d91"
  153. }
  154. ]
  155. }
  156. ]
  157. }
  158. ]
  159. },
  160. {
  161. "canvas": [
  162. {
  163. "type": "rect",
  164. "x": 0,
  165. "y": 0,
  166. "w": 515,
  167. "h": 35,
  168. "r": 6,
  169. "lineWidth": 1,
  170. "color": "$primaryColor:#009d91"
  171. }
  172. ],
  173. "width": 10,
  174. "margin": [
  175. 0,
  176. 30,
  177. 0,
  178. -30
  179. ]
  180. },
  181. {
  182. "style": "invoiceLineItemsTable",
  183. "table": {
  184. "headerRows": 1,
  185. "widths": "$invoiceLineItemColumns",
  186. "body": "$invoiceLineItems"
  187. },
  188. "layout": {
  189. "hLineWidth": "$notFirst:.5",
  190. "vLineWidth": "$none",
  191. "hLineColor": "$primaryColor:#009d91",
  192. "paddingLeft": "$amount:8",
  193. "paddingRight": "$amount:8",
  194. "paddingTop": "$amount:8",
  195. "paddingBottom": "$amount:8"
  196. }
  197. },
  198. {
  199. "columns": [
  200. "$Signature",
  201. {
  202. "stack": [
  203. {
  204. "style": "subtotals",
  205. "table": {
  206. "widths": [
  207. "*",
  208. "35%"
  209. ],
  210. "body": "$subtotalsWithoutBalance"
  211. },
  212. "layout": {
  213. "hLineWidth": "$none",
  214. "vLineWidth": "$none",
  215. "paddingLeft": "$amount:34",
  216. "paddingRight": "$amount:8",
  217. "paddingTop": "$amount:4",
  218. "paddingBottom": "$amount:4"
  219. }
  220. },
  221. {
  222. "canvas": [
  223. {
  224. "type": "rect",
  225. "x": 50,
  226. "y": 20,
  227. "w": 208,
  228. "h": 30,
  229. "r": 4,
  230. "lineWidth": 1,
  231. "color": "$primaryColor:#009d91"
  232. }
  233. ]
  234. },
  235. {
  236. "style": "subtotalsBalance",
  237. "table": {
  238. "widths": [
  239. "*",
  240. "50%"
  241. ],
  242. "body": "$subtotalsBalance"
  243. },
  244. "layout": {
  245. "hLineWidth": "$none",
  246. "vLineWidth": "$none",
  247. "paddingLeft": "$amount:34",
  248. "paddingRight": "$amount:8",
  249. "paddingTop": "$amount:4",
  250. "paddingBottom": "$amount:4"
  251. }
  252. }
  253. ]
  254. }
  255. ]
  256. },
  257. "$invoice.terms",
  258. {
  259. "stack": [
  260. "$invoiceDocuments"
  261. ],
  262. "style": "invoiceDocuments"
  263. }
  264. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement