You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

446 lines
21 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <template id="account_financial_report.report_aged_partner_balance_qweb">
  4. <t t-call="web.html_container">
  5. <t t-foreach="docs" t-as="o">
  6. <t t-call="account_financial_report.internal_layout">
  7. <t t-call="account_financial_report.report_aged_partner_balance_base"/>
  8. </t>
  9. </t>
  10. </t>
  11. </template>
  12. <template id="account_financial_report.report_aged_partner_balance_base">
  13. <!-- Saved flag fields into variables, used to define columns display -->
  14. <t t-set="show_move_line_details" t-value="o.show_move_line_details"/>
  15. <!-- Defines global variables used by internal layout -->
  16. <t t-set="title">Aged Partner Balance</t>
  17. <t t-set="company_name" t-value="o.company_id.name"/>
  18. <div class="page">
  19. <!-- Display filters -->
  20. <t t-call="account_financial_report.report_aged_partner_balance_filters"/>
  21. <t t-foreach="o.account_ids" t-as="account">
  22. <div class="page_break">
  23. <!-- Display account header -->
  24. <div class="act_as_table list_table" style="margin-top: 10px;"/>
  25. <div class="act_as_caption account_title"
  26. style="width: 100%;">
  27. <span t-field="account.code"/>
  28. -
  29. <span t-field="account.name"/>
  30. </div>
  31. <!-- Display account lines -->
  32. <t t-if="not show_move_line_details">
  33. <div class="act_as_table data_table"
  34. style="width: 100%;">
  35. <!-- Display account header -->
  36. <t t-call="account_financial_report.report_aged_partner_balance_lines_header"/>
  37. <t t-foreach="account.partner_ids" t-as="partner">
  38. <!-- Display one line per partner -->
  39. <t t-call="account_financial_report.report_aged_partner_balance_lines"/>
  40. </t>
  41. </div>
  42. <!-- Display account footer -->
  43. <t t-call="account_financial_report.report_aged_partner_balance_account_ending_cumul"/>
  44. </t>
  45. <!-- Display account move lines -->
  46. <t t-if="show_move_line_details">
  47. <!-- Display account partners -->
  48. <t t-foreach="account.partner_ids" t-as="partner">
  49. <div class="page_break">
  50. <!-- Display partner header -->
  51. <div class="act_as_caption account_title">
  52. <span t-field="partner.name"/>
  53. </div>
  54. <!-- Display partner move lines -->
  55. <t t-call="account_financial_report.report_aged_partner_balance_move_lines"/>
  56. <!-- Display partner footer -->
  57. <t t-call="account_financial_report.report_aged_partner_balance_partner_ending_cumul">
  58. <t t-set="partner_cumul_line" t-value="partner.line_ids"/>
  59. </t>
  60. </div>
  61. </t>
  62. <!-- Display account footer -->
  63. <t t-call="account_financial_report.report_aged_partner_balance_account_ending_cumul"/>
  64. </t>
  65. </div>
  66. </t>
  67. </div>
  68. </template>
  69. <template id="account_financial_report.report_aged_partner_balance_filters">
  70. <div class="act_as_table data_table" style="width: 100%;">
  71. <div class="act_as_row labels">
  72. <div class="act_as_cell">Date at filter</div>
  73. <div class="act_as_cell">Target moves filter</div>
  74. </div>
  75. <div class="act_as_row">
  76. <div class="act_as_cell">
  77. <span t-field="o.date_at"/>
  78. </div>
  79. <div class="act_as_cell">
  80. <t t-if="o.only_posted_moves">All posted entries</t>
  81. <t t-if="not o.only_posted_moves">All entries</t>
  82. </div>
  83. </div>
  84. </div>
  85. </template>
  86. <template id="account_financial_report.report_aged_partner_balance_lines_header">
  87. <!-- Display table headers for lines -->
  88. <div class="act_as_thead">
  89. <div class="act_as_row labels">
  90. <!--## partner-->
  91. <div class="act_as_cell" style="width: 32.52%;">Partner</div>
  92. <!--## amount_residual-->
  93. <div class="act_as_cell" style="width: 9.64%;">Residual</div>
  94. <!--## current-->
  95. <div class="act_as_cell" style="width: 9.64%;">Not due</div>
  96. <!--## age_30_days-->
  97. <div class="act_as_cell" style="width: 9.64%;">1 - 30 d.</div>
  98. <!--## age_60_days-->
  99. <div class="act_as_cell" style="width: 9.64%;">31 - 60 d.</div>
  100. <!--## age_90_days-->
  101. <div class="act_as_cell" style="width: 9.64%;">61 - 90 d.</div>
  102. <!--## age_120_days-->
  103. <div class="act_as_cell" style="width: 9.64%;">91 - 120 d.</div>
  104. <!--## older-->
  105. <div class="act_as_cell" style="width: 9.64%;"> > 120 d.</div>
  106. </div>
  107. </div>
  108. </template>
  109. <template id="account_financial_report.report_aged_partner_balance_lines">
  110. <!-- Display each lines -->
  111. <t t-foreach="partner.line_ids" t-as="line">
  112. <!-- # lines -->
  113. <div class="act_as_row lines">
  114. <!--## partner-->
  115. <div class="act_as_cell left">
  116. <span t-field="line.partner"/>
  117. </div>
  118. <!--## amount_residual-->
  119. <div class="act_as_cell amount">
  120. <span t-field="line.amount_residual"/>
  121. </div>
  122. <!--## current-->
  123. <div class="act_as_cell amount">
  124. <span t-field="line.current"/>
  125. </div>
  126. <!--## age_30_days-->
  127. <div class="act_as_cell amount">
  128. <span t-field="line.age_30_days"/>
  129. </div>
  130. <!--## age_60_days-->
  131. <div class="act_as_cell amount">
  132. <span t-field="line.age_60_days"/>
  133. </div>
  134. <!--## age_90_days-->
  135. <div class="act_as_cell amount">
  136. <span t-field="line.age_90_days"/>
  137. </div>
  138. <!--## age_120_days-->
  139. <div class="act_as_cell amount">
  140. <span t-field="line.age_120_days"/>
  141. </div>
  142. <!--## older-->
  143. <div class="act_as_cell amount">
  144. <span t-field="line.older"/>
  145. </div>
  146. </div>
  147. </t>
  148. </template>
  149. <template id="account_financial_report.report_aged_partner_balance_move_lines">
  150. <div class="act_as_table data_table" style="width: 100%;">
  151. <!-- Display table headers for move lines -->
  152. <div class="act_as_thead">
  153. <div class="act_as_row labels">
  154. <!--## date-->
  155. <div class="act_as_cell first_column" style="width: 5.26%;">
  156. Date</div>
  157. <!--## move-->
  158. <div class="act_as_cell" style="width: 8.77%;">Entry</div>
  159. <!--## journal-->
  160. <div class="act_as_cell" style="width: 5.01%;">Journal</div>
  161. <!--## account code-->
  162. <div class="act_as_cell" style="width: 6.88%;">Account</div>
  163. <!--## partner-->
  164. <div class="act_as_cell" style="width: 10.52%;">Partner
  165. </div>
  166. <!--## ref - label-->
  167. <div class="act_as_cell" style="width: 19.23%;">Ref -
  168. Label</div>
  169. <!--## date_due-->
  170. <div class="act_as_cell" style="width: 6.26%;">Due
  171. date</div>
  172. <!--## amount_residual-->
  173. <div class="act_as_cell" style="width: 6.19%;">Residual
  174. </div>
  175. <!--## current-->
  176. <div class="act_as_cell" style="width: 6.19%;">Current</div>
  177. <!--## age_30_days-->
  178. <div class="act_as_cell" style="width: 6.19%;">Age ≤ 30
  179. d.</div>
  180. <!--## age_60_days-->
  181. <div class="act_as_cell" style="width: 6.19%;">Age ≤ 60
  182. d.</div>
  183. <!--## age_90_days-->
  184. <div class="act_as_cell" style="width: 6.19%;">Age ≤ 90
  185. d.</div>
  186. <!--## age_120_days-->
  187. <div class="act_as_cell" style="width: 6.19%;">Age ≤ 120
  188. d.</div>
  189. <!--## older-->
  190. <div class="act_as_cell" style="width: 6.19%;">Older</div>
  191. </div>
  192. </div>
  193. <!-- Display each move lines -->
  194. <t t-foreach="partner.move_line_ids" t-as="line">
  195. <!-- # lines or centralized lines -->
  196. <div class="act_as_row lines">
  197. <!--## date-->
  198. <div class="act_as_cell left">
  199. <span t-field="line.date"/>
  200. </div>
  201. <!--## move-->
  202. <div class="act_as_cell left">
  203. <span t-field="line.entry"/>
  204. </div>
  205. <!--## journal-->
  206. <div class="act_as_cell left">
  207. <span t-field="line.journal"/>
  208. </div>
  209. <!--## account code-->
  210. <div class="act_as_cell left">
  211. <span t-field="line.account"/>
  212. </div>
  213. <!--## partner-->
  214. <div class="act_as_cell left">
  215. <span t-field="line.partner"/>
  216. </div>
  217. <!--## ref - label-->
  218. <div class="act_as_cell left">
  219. <span t-field="line.label"/>
  220. </div>
  221. <!--## date_due-->
  222. <div class="act_as_cell left">
  223. <span t-field="line.date_due"/>
  224. </div>
  225. <!--## amount_residual-->
  226. <div class="act_as_cell amount">
  227. <span t-field="line.amount_residual"/>
  228. </div>
  229. <!--## current-->
  230. <div class="act_as_cell amount">
  231. <span t-field="line.current"/>
  232. </div>
  233. <!--## age_30_days-->
  234. <div class="act_as_cell amount">
  235. <span t-field="line.age_30_days"/>
  236. </div>
  237. <!--## age_60_days-->
  238. <div class="act_as_cell amount">
  239. <span t-field="line.age_60_days"/>
  240. </div>
  241. <!--## age_90_days-->
  242. <div class="act_as_cell amount">
  243. <span t-field="line.age_90_days"/>
  244. </div>
  245. <!--## age_120_days-->
  246. <div class="act_as_cell amount">
  247. <span t-field="line.age_120_days"/>
  248. </div>
  249. <!--## older-->
  250. <div class="act_as_cell amount">
  251. <span t-field="line.older"/>
  252. </div>
  253. </div>
  254. </t>
  255. </div>
  256. </template>
  257. <template id="account_financial_report.report_aged_partner_balance_partner_ending_cumul">
  258. <!-- Display ending balance line for partner -->
  259. <div class="act_as_table list_table" style="width: 100%;">
  260. <div class="act_as_row labels" style="font-weight: bold;">
  261. <!--## date-->
  262. <div class="act_as_cell right" style="width: 51.41%;">Partner
  263. cumul aged balance</div>
  264. <!--## date_due-->
  265. <div class="act_as_cell" style="width: 5.26%;"/>
  266. <!--## amount_residual-->
  267. <div class="act_as_cell amount" style="width: 6.19%;">
  268. <span t-field="partner_cumul_line.amount_residual"/>
  269. </div>
  270. <!--## current-->
  271. <div class="act_as_cell amount" style="width: 6.19%;">
  272. <span t-field="partner_cumul_line.current"/>
  273. </div>
  274. <!--## age_30_days-->
  275. <div class="act_as_cell amount" style="width: 6.19%;">
  276. <span t-field="partner_cumul_line.age_30_days"/>
  277. </div>
  278. <!--## age_60_days-->
  279. <div class="act_as_cell amount" style="width: 6.19%;">
  280. <span t-field="partner_cumul_line.age_60_days"/>
  281. </div>
  282. <!--## age_90_days-->
  283. <div class="act_as_cell amount" style="width: 6.19%;">
  284. <span t-field="partner_cumul_line.age_90_days"/>
  285. </div>
  286. <!--## age_120_days-->
  287. <div class="act_as_cell amount" style="width: 6.19%;">
  288. <span t-field="partner_cumul_line.age_120_days"/>
  289. </div>
  290. <!--## older-->
  291. <div class="act_as_cell amount" style="width: 6.19%;">
  292. <span t-field="partner_cumul_line.older"/>
  293. </div>
  294. </div>
  295. </div>
  296. </template>
  297. <template id="account_financial_report.report_aged_partner_balance_account_ending_cumul">
  298. <!-- Display ending balance line for account -->
  299. <div class="act_as_table list_table" style="width: 100%;">
  300. <div class="act_as_row labels" style="font-weight: bold;">
  301. <t t-if="not show_move_line_details">
  302. <!--## total-->
  303. <div class="act_as_cell right" style="width: 32.52%;">Total</div>
  304. <!--## amount_residual-->
  305. <div class="act_as_cell amount" style="width: 9.64%;">
  306. <span t-field="account.cumul_amount_residual"/>
  307. </div>
  308. <!--## current-->
  309. <div class="act_as_cell amount" style="width: 9.64%;">
  310. <span t-field="account.cumul_current"/>
  311. </div>
  312. <!--## age_30_days-->
  313. <div class="act_as_cell amount" style="width: 9.64%;">
  314. <span t-field="account.cumul_age_30_days"/>
  315. </div>
  316. <!--## age_60_days-->
  317. <div class="act_as_cell amount" style="width: 9.64%;">
  318. <span t-field="account.cumul_age_60_days"/>
  319. </div>
  320. <!--## age_90_days-->
  321. <div class="act_as_cell amount" style="width: 9.64%;">
  322. <span t-field="account.cumul_age_90_days"/>
  323. </div>
  324. <!--## age_120_days-->
  325. <div class="act_as_cell amount" style="width: 9.64%;">
  326. <span t-field="account.cumul_age_120_days"/>
  327. </div>
  328. <!--## older-->
  329. <div class="act_as_cell amount" style="width: 9.64%;">
  330. <span t-field="account.cumul_older"/>
  331. </div>
  332. </t>
  333. <t t-if="show_move_line_details">
  334. <!--## total-->
  335. <div class="act_as_cell right" style="width: 51.41%;">Total</div>
  336. <!--## date_due-->
  337. <div class="act_as_cell" style="width: 5.26%;"/>
  338. <!--## amount_residual-->
  339. <div class="act_as_cell amount" style="width: 6.19%">
  340. <span t-field="account.cumul_amount_residual"/>
  341. </div>
  342. <!--## current-->
  343. <div class="act_as_cell amount" style="width: 6.19%">
  344. <span t-field="account.cumul_current"/>
  345. </div>
  346. <!--## age_30_days-->
  347. <div class="act_as_cell amount" style="width: 6.19%">
  348. <span t-field="account.cumul_age_30_days"/>
  349. </div>
  350. <!--## age_60_days-->
  351. <div class="act_as_cell amount" style="width: 6.19%">
  352. <span t-field="account.cumul_age_60_days"/>
  353. </div>
  354. <!--## age_90_days-->
  355. <div class="act_as_cell amount" style="width: 6.19%">
  356. <span t-field="account.cumul_age_90_days"/>
  357. </div>
  358. <!--## age_120_days-->
  359. <div class="act_as_cell amount" style="width: 6.19%">
  360. <span t-field="account.cumul_age_120_days"/>
  361. </div>
  362. <!--## older-->
  363. <div class="act_as_cell amount" style="width: 6.19%">
  364. <span t-field="account.cumul_older"/>
  365. </div>
  366. </t>
  367. </div>
  368. <div class="act_as_row" style="font-weight: bold; font-style: italic;">
  369. <t t-if="not show_move_line_details">
  370. <!--## total-->
  371. <div class="act_as_cell right" style="width: 32.52%;">
  372. Percents</div>
  373. <!--## amount_residual-->
  374. <div class="act_as_cell amount" style="width: 9.64%;"/>
  375. <!--## current-->
  376. <div class="act_as_cell amount" style="width: 9.64%;"><span t-field="account.percent_current"/>%
  377. </div>
  378. <!--## age_30_days-->
  379. <div class="act_as_cell amount" style="width: 9.64%;"><span t-field="account.percent_age_30_days"/>%
  380. </div>
  381. <!--## age_60_days-->
  382. <div class="act_as_cell amount" style="width: 9.64%;"><span t-field="account.percent_age_60_days"/>%
  383. </div>
  384. <!--## age_90_days-->
  385. <div class="act_as_cell amount" style="width: 9.64%;"><span t-field="account.percent_age_90_days"/>%
  386. </div>
  387. <!--## age_120_days-->
  388. <div class="act_as_cell amount" style="width: 9.64%;"><span t-field="account.percent_age_120_days"/>
  389. %
  390. </div>
  391. <!--## older-->
  392. <div class="act_as_cell amount" style="width: 9.64%;"><span t-field="account.percent_older"/>%
  393. </div>
  394. </t>
  395. <t t-if="show_move_line_details">
  396. <!--## total-->
  397. <div class="act_as_cell right" style="width: 51.41%;">
  398. Percents</div>
  399. <!--## date_due-->
  400. <div class="act_as_cell" style="width: 5.26%;"/>
  401. <!--## amount_residual-->
  402. <div class="act_as_cell amount" style="width: 6.19%"/>
  403. <!--## current-->
  404. <div class="act_as_cell amount" style="width: 6.19%"><span t-field="account.percent_current"/>%
  405. </div>
  406. <!--## age_30_days-->
  407. <div class="act_as_cell amount" style="width: 6.19%"><span t-field="account.percent_age_30_days"/>%
  408. </div>
  409. <!--## age_60_days-->
  410. <div class="act_as_cell amount" style="width: 6.19%"><span t-field="account.percent_age_60_days"/>%
  411. </div>
  412. <!--## age_90_days-->
  413. <div class="act_as_cell amount" style="width: 6.19%"><span t-field="account.percent_age_90_days"/>%
  414. </div>
  415. <!--## age_120_days-->
  416. <div class="act_as_cell amount" style="width: 6.19%"><span t-field="account.percent_age_120_days"/>%
  417. </div>
  418. <!--## older-->
  419. <div class="act_as_cell amount" style="width: 6.19%"><span t-field="account.percent_older"/>%
  420. </div>
  421. </t>
  422. </div>
  423. </div>
  424. </template>
  425. </odoo>