././@PaxHeader0000000000000000000000000000003400000000000010212 xustar0028 mtime=1739705952.3336895 trytond_account_payment_clearing-7.0.5/0000755000175000017500000000000014754347140016464 5ustar00cedced././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1739705949.0 trytond_account_payment_clearing-7.0.5/CHANGELOG0000644000175000017500000000635414754347135017712 0ustar00cedced Version 7.0.5 - 2025-02-16 -------------------------- * Bug fixes (see mercurial logs for details) Version 7.0.4 - 2025-02-01 -------------------------- * Bug fixes (see mercurial logs for details) Version 7.0.3 - 2024-10-18 -------------------------- * Bug fixes (see mercurial logs for details) Version 7.0.2 - 2024-04-17 -------------------------- * Bug fixes (see mercurial logs for details) Version 7.0.1 - 2024-01-15 -------------------------- * Bug fixes (see mercurial logs for details) Version 7.0.0 - 2023-10-30 -------------------------- * Bug fixes (see mercurial logs for details) * Add support for Python 3.12 * Limit account on payment to receivable or payable Version 6.8.0 - 2023-05-01 -------------------------- * Bug fixes (see mercurial logs for details) * Remove support for Python 3.7 * Add support for Python 3.11 Version 6.6.0 - 2022-10-31 -------------------------- * Bug fixes (see mercurial logs for details) Version 6.4.0 - 2022-05-02 -------------------------- * Bug fixes (see mercurial logs for details) * Prevent to select reconciled payment or group on draft statement line * Reconcile payment clearing line with all statement lines * Use reference field for statement line relation * Add support for Python 3.10 * Remove support for Python 3.6 Version 6.2.0 - 2021-11-01 -------------------------- * Bug fixes (see mercurial logs for details) Version 6.0.0 - 2021-05-03 -------------------------- * Bug fixes (see mercurial logs for details) Version 5.8.0 - 2020-11-02 -------------------------- * Bug fixes (see mercurial logs for details) * Remove support for Python 3.5 Version 5.6.0 - 2020-05-04 -------------------------- * Bug fixes (see mercurial logs for details) * Use the date of the statement line as date for the clearing move Version 5.4.0 - 2019-11-04 -------------------------- * Bug fixes (see mercurial logs for details) * Relax Account domain on Payment Version 5.2.0 - 2019-05-06 -------------------------- * Bug fixes (see mercurial logs for details) * Add support for payment and payment_group on Statement Rule Version 5.0.0 - 2018-10-01 -------------------------- * Bug fixes (see mercurial logs for details) * Remove support for Python 2.7 Version 4.8.0 - 2018-04-23 -------------------------- * Bug fixes (see mercurial logs for details) * Add cron task to post clearing move after journal delay Version 4.6.0 - 2017-10-30 -------------------------- * Bug fixes (see mercurial logs for details) * Allow to use account instead of line for clearing Version 4.4.0 - 2017-05-01 -------------------------- * Bug fixes (see mercurial logs for details) * Allow to set the date of the clearing move Version 4.2.0 - 2016-11-28 -------------------------- * Bug fixes (see mercurial logs for details) * Mark Payment as succeded or failed when imported in statement * Allow to link statement line to group of payments Version 4.0.0 - 2016-05-02 -------------------------- * Bug fixes (see mercurial logs for details) * Add Python3 support Version 3.8.0 - 2015-11-02 -------------------------- * Bug fixes (see mercurial logs for details) Version 3.6.0 - 2015-04-20 -------------------------- * Bug fixes (see mercurial logs for details) * Add support for PyPy Version 3.4.0 - 2014-10-20 -------------------------- * Initial release ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1739705949.0 trytond_account_payment_clearing-7.0.5/COPYRIGHT0000644000175000017500000000125714754347135017770 0ustar00cedcedCopyright (C) 2014-2025 Cédric Krier. Copyright (C) 2014-2025 B2CK SPRL. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1698685598.0 trytond_account_payment_clearing-7.0.5/LICENSE0000644000175000017500000010451314517761236017500 0ustar00cedced GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1698685598.0 trytond_account_payment_clearing-7.0.5/MANIFEST.in0000644000175000017500000000014714517761236020227 0ustar00cedcedinclude CHANGELOG include COPYRIGHT include LICENSE include README.rst include icons/LICENSE graft doc ././@PaxHeader0000000000000000000000000000003400000000000010212 xustar0028 mtime=1739705952.3336895 trytond_account_payment_clearing-7.0.5/PKG-INFO0000644000175000017500000000643314754347140017567 0ustar00cedcedMetadata-Version: 2.2 Name: trytond_account_payment_clearing Version: 7.0.5 Summary: Tryton module for payment clearing Home-page: http://www.tryton.org/ Download-URL: http://downloads.tryton.org/7.0/ Author: Tryton Author-email: foundation@tryton.org License: GPL-3 Project-URL: Bug Tracker, https://bugs.tryton.org/ Project-URL: Documentation, https://docs.tryton.org/modules-account-payment-clearing Project-URL: Forum, https://www.tryton.org/forum Project-URL: Source Code, https://code.tryton.org/tryton Keywords: tryton account payment clearing Classifier: Development Status :: 5 - Production/Stable Classifier: Environment :: Plugins Classifier: Framework :: Tryton Classifier: Intended Audience :: Developers Classifier: Intended Audience :: Financial and Insurance Industry Classifier: Intended Audience :: Legal Industry Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+) Classifier: Natural Language :: Bulgarian Classifier: Natural Language :: Catalan Classifier: Natural Language :: Chinese (Simplified) Classifier: Natural Language :: Czech Classifier: Natural Language :: Dutch Classifier: Natural Language :: English Classifier: Natural Language :: Finnish Classifier: Natural Language :: French Classifier: Natural Language :: German Classifier: Natural Language :: Hungarian Classifier: Natural Language :: Indonesian Classifier: Natural Language :: Italian Classifier: Natural Language :: Persian Classifier: Natural Language :: Polish Classifier: Natural Language :: Portuguese (Brazilian) Classifier: Natural Language :: Romanian Classifier: Natural Language :: Russian Classifier: Natural Language :: Slovenian Classifier: Natural Language :: Spanish Classifier: Natural Language :: Turkish Classifier: Natural Language :: Ukrainian Classifier: Operating System :: OS Independent Classifier: Programming Language :: Python :: 3 Classifier: Programming Language :: Python :: 3.8 Classifier: Programming Language :: Python :: 3.9 Classifier: Programming Language :: Python :: 3.10 Classifier: Programming Language :: Python :: 3.11 Classifier: Programming Language :: Python :: 3.12 Classifier: Programming Language :: Python :: Implementation :: CPython Classifier: Topic :: Office/Business Classifier: Topic :: Office/Business :: Financial :: Accounting Requires-Python: >=3.8 License-File: LICENSE Requires-Dist: trytond_company<7.1,>=7.0 Requires-Dist: trytond_account<7.1,>=7.0 Requires-Dist: trytond_account_payment<7.1,>=7.0 Requires-Dist: trytond<7.1,>=7.0 Provides-Extra: test Requires-Dist: proteus<7.1,>=7.0; extra == "test" Requires-Dist: trytond_account_statement<7.1,>=7.0; extra == "test" Requires-Dist: trytond_account_statement_rule<7.1,>=7.0; extra == "test" Requires-Dist: trytond_account_invoice<7.1,>=7.0; extra == "test" Dynamic: author Dynamic: author-email Dynamic: classifier Dynamic: description Dynamic: download-url Dynamic: home-page Dynamic: keywords Dynamic: license Dynamic: project-url Dynamic: provides-extra Dynamic: requires-dist Dynamic: requires-python Dynamic: summary ############################### Account Payment Clearing Module ############################### The *Account Payment Clearing Module* allows to generate account move when a payment is succeeded between the receivable/payable account to a clearing account defined on the payment journal. ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1698685598.0 trytond_account_payment_clearing-7.0.5/README.rst0000644000175000017500000000052514517761236020160 0ustar00cedced############################### Account Payment Clearing Module ############################### The *Account Payment Clearing Module* allows to generate account move when a payment is succeeded between the receivable/payable account to a clearing account defined on the payment journal. .. toctree:: :maxdepth: 2 design releases ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1698685598.0 trytond_account_payment_clearing-7.0.5/__init__.py0000644000175000017500000000174014517761236020602 0ustar00cedced# This file is part of Tryton. The COPYRIGHT file at the top level of # this repository contains the full copyright notices and license terms. from trytond.pool import Pool from . import account, ir, payment, statement def register(): Pool.register( payment.Journal, payment.Payment, payment.Group, payment.SucceedStart, account.Move, account.MoveReconciliation, ir.Cron, module='account_payment_clearing', type_='model') Pool.register( statement.Payment, statement.PaymentGroup, statement.Statement, statement.StatementLine, module='account_payment_clearing', type_='model', depends=['account_statement']) Pool.register( statement.StatementRuleLine, module='account_payment_clearing', type_='model', depends=['account_statement_rule']) Pool.register( payment.Succeed, module='account_payment_clearing', type_='wizard') ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1698685598.0 trytond_account_payment_clearing-7.0.5/account.py0000644000175000017500000000340214517761236020474 0ustar00cedced# This file is part of Tryton. The COPYRIGHT file at the top level of # this repository contains the full copyright notices and license terms. from trytond.pool import Pool, PoolMeta from trytond.tools import grouped_slice class Move(metaclass=PoolMeta): __name__ = 'account.move' @classmethod def _get_origin(cls): models = super(Move, cls)._get_origin() return models + ['account.payment'] def _payments_to_update(reconciliations): pool = Pool() Payment = pool.get('account.payment') Reconciliation = pool.get('account.move.reconciliation') moves = set() others = set() for reconciliation in reconciliations: for line in reconciliation.lines: moves.add(line.move) others.update(line.reconciliations_delegated) payments = set() for sub_moves in grouped_slice(moves): payments.update(Payment.search([ ('clearing_move', 'in', [m.id for m in sub_moves]), ], order=[])) if others: payments.update(_payments_to_update(Reconciliation.browse(others))) return payments class MoveReconciliation(metaclass=PoolMeta): __name__ = 'account.move.reconciliation' @classmethod def create(cls, vlist): pool = Pool() Payment = pool.get('account.payment') reconciliations = super().create(vlist) Payment.__queue__.update_reconciled( list(_payments_to_update(reconciliations))) return reconciliations @classmethod def delete(cls, reconciliations): pool = Pool() Payment = pool.get('account.payment') payments = _payments_to_update(reconciliations) super().delete(reconciliations) Payment.__queue__.update_reconciled(list(payments)) ././@PaxHeader0000000000000000000000000000003400000000000010212 xustar0028 mtime=1739705952.3270226 trytond_account_payment_clearing-7.0.5/doc/0000755000175000017500000000000014754347140017231 5ustar00cedced././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1725720314.0 trytond_account_payment_clearing-7.0.5/doc/conf.py0000644000175000017500000000536314667063372020544 0ustar00cedced# This file is part of Tryton. The COPYRIGHT file at the top level of # this repository contains the full copyright notices and license terms. import os base_url = os.environ.get('DOC_BASE_URL') if base_url: modules_url = base_url + '/modules-{module}/' trytond_url = base_url + '/server/' else: modules_url = ( 'https://docs.tryton.org/${series}/modules-{module}/') trytond_url = 'https://docs.tryton.org/${series}/server/' def get_info(): import configparser import subprocess import sys module_dir = os.path.dirname(os.path.dirname(__file__)) config = configparser.ConfigParser() config.read_file(open(os.path.join(module_dir, 'tryton.cfg'))) info = dict(config.items('tryton')) result = subprocess.run( [sys.executable, 'setup.py', '--name', '--description'], stdout=subprocess.PIPE, check=True, cwd=module_dir) info['name'], info['description'] = ( result.stdout.decode('utf-8').strip().splitlines()) result = subprocess.run( [sys.executable, 'setup.py', '--version'], stdout=subprocess.PIPE, check=True, cwd=module_dir) version = result.stdout.decode('utf-8').strip() major_version, minor_version, _ = version.split('.', 2) major_version = int(major_version) minor_version = int(minor_version) if minor_version % 2: info['series'] = 'latest' info['branch'] = 'branch/default' else: info['series'] = '.'.join(version.split('.', 2)[:2]) info['branch'] = 'branch/' + info['series'] for key in {'depends', 'extras_depend'}: info[key] = info.get(key, '').strip().splitlines() info['modules'] = set(info['depends'] + info['extras_depend']) info['modules'] -= {'ir', 'res'} return info info = get_info() html_theme = 'sphinx_book_theme' html_theme_options = { 'repository_provider': 'gitlab', 'repository_url': 'https://code.tryton.org/tryton', 'repository_branch': info['branch'], 'use_source_button': True, 'use_edit_page_button': True, 'use_repository_button': True, 'use_download_button': False, 'path_to_docs': 'modules/account_payment_clearing/doc', } html_title = info['description'] master_doc = 'index' project = info['name'] release = version = info['series'] default_role = 'ref' highlight_language = 'none' extensions = [ 'sphinx_copybutton', 'sphinx.ext.intersphinx', ] intersphinx_mapping = { 'trytond': (trytond_url.format(series=version), None), } intersphinx_mapping.update({ m: (modules_url.format( module=m.replace('_', '-'), series=version), None) for m in info['modules'] }) linkcheck_ignore = [r'/.*', r'https://demo.tryton.org/*'] del get_info, info, base_url, modules_url, trytond_url ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1698685598.0 trytond_account_payment_clearing-7.0.5/doc/design.rst0000644000175000017500000000246314517761236021244 0ustar00cedced****** Design ****** The *Account Payment Clearing Module* introduces the following concepts: .. _model-account.payment: Payment ======= When the *Account Payment Clearing Module* is activated, the payment gain some extra properties. These include an `Account ` to use for clearing if no `Move Line ` is set. .. seealso:: The `Payment ` concept is introduced by the :doc:`Account Payment Module `. Wizards ------- .. _wizard-account.payment.succeed: Succeed Payment ^^^^^^^^^^^^^^^ The *Succeed Payment* wizard asks for the date to use for the clearing `Account Move ` before succeeding the payment. .. _model-account.payment.journal: Payment Journal =============== When the *Account Payment Clearing Module* is activated, the payment journal gain some extra properties that controls the clearing behavior. These include a clearing account and journal to use to create the `Account Move ` and a clearing delay to post automatically the created moves. .. seealso:: The `Payment Journal ` concept is introduced by the :doc:`Account Payment Module `. ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1698685598.0 trytond_account_payment_clearing-7.0.5/doc/index.rst0000644000175000017500000000052514517761236021077 0ustar00cedced############################### Account Payment Clearing Module ############################### The *Account Payment Clearing Module* allows to generate account move when a payment is succeeded between the receivable/payable account to a clearing account defined on the payment journal. .. toctree:: :maxdepth: 2 design releases ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1698685598.0 trytond_account_payment_clearing-7.0.5/doc/releases.rst0000644000175000017500000000013214517761236021565 0ustar00cedced.. _releases-index: ============= Release notes ============= .. include:: ../CHANGELOG ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1698685598.0 trytond_account_payment_clearing-7.0.5/doc/requirements-doc.txt0000644000175000017500000000004414517761236023261 0ustar00cedcedsphinx_book_theme sphinx_copybutton ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1698685598.0 trytond_account_payment_clearing-7.0.5/ir.py0000644000175000017500000000070114517761236017451 0ustar00cedced# This file is part of Tryton. The COPYRIGHT file at the top level of # this repository contains the full copyright notices and license terms. from trytond.pool import PoolMeta class Cron(metaclass=PoolMeta): __name__ = 'ir.cron' @classmethod def __setup__(cls): super().__setup__() cls.method.selection.append( ('account.payment.journal|cron_post_clearing_moves', "Post Clearing Moves")) ././@PaxHeader0000000000000000000000000000003300000000000010211 xustar0027 mtime=1739705952.330356 trytond_account_payment_clearing-7.0.5/locale/0000755000175000017500000000000014754347140017723 5ustar00cedced././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1698685598.0 trytond_account_payment_clearing-7.0.5/locale/bg.po0000644000175000017500000000411514517761236020657 0ustar00cedced# msgid "" msgstr "Content-Type: text/plain; charset=utf-8\n" msgctxt "field:account.payment,account:" msgid "Account" msgstr "" msgctxt "field:account.payment,clearing_move:" msgid "Clearing Move" msgstr "" msgctxt "field:account.payment,clearing_reconciled:" msgid "Clearing Reconciled" msgstr "" msgctxt "field:account.payment,statement_lines:" msgid "Statement Lines" msgstr "" msgctxt "field:account.payment.group,clearing_reconciled:" msgid "Clearing Reconciled" msgstr "" msgctxt "field:account.payment.group,statement_lines:" msgid "Statement Lines" msgstr "" msgctxt "field:account.payment.journal,clearing_account:" msgid "Clearing Account" msgstr "" msgctxt "field:account.payment.journal,clearing_journal:" msgid "Clearing Journal" msgstr "" msgctxt "field:account.payment.journal,clearing_posting_delay:" msgid "Clearing Posting Delay" msgstr "" msgctxt "field:account.payment.succeed.start,date:" msgid "Date" msgstr "" msgctxt "help:account.payment,account:" msgid "Define the account to use for clearing move." msgstr "" msgctxt "help:account.payment,clearing_reconciled:" msgid "Checked if clearing line is reconciled." msgstr "" msgctxt "help:account.payment.group,clearing_reconciled:" msgid "All payments in the group are reconciled." msgstr "" msgctxt "help:account.payment.journal,clearing_posting_delay:" msgid "" "Post automatically the clearing moves after the delay.\n" "Leave empty for no posting." msgstr "" #, fuzzy msgctxt "model:account.payment.succeed.start,name:" msgid "Succeed Payment" msgstr "Succeed Payments" msgctxt "model:ir.action,name:wizard_succeed" msgid "Succeed Payments" msgstr "Succeed Payments" msgctxt "model:ir.model.button,string:payment_succeed_wizard_button" msgid "Succeed" msgstr "Succeed" #, fuzzy msgctxt "selection:ir.cron,method:" msgid "Post Clearing Moves" msgstr "Post Clearing Moves" msgctxt "view:account.payment.journal:" msgid "Clearing" msgstr "" msgctxt "wizard_button:account.payment.succeed,start,end:" msgid "Cancel" msgstr "" #, fuzzy msgctxt "wizard_button:account.payment.succeed,start,succeed:" msgid "Succeed" msgstr "Succeed" ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1698685598.0 trytond_account_payment_clearing-7.0.5/locale/ca.po0000644000175000017500000000511614517761236020654 0ustar00cedced# msgid "" msgstr "Content-Type: text/plain; charset=utf-8\n" msgctxt "field:account.payment,account:" msgid "Account" msgstr "Compte" msgctxt "field:account.payment,clearing_move:" msgid "Clearing Move" msgstr "Assentament de liquidació" msgctxt "field:account.payment,clearing_reconciled:" msgid "Clearing Reconciled" msgstr "Liquidació conciliada" msgctxt "field:account.payment,statement_lines:" msgid "Statement Lines" msgstr "Línies d'extracte" msgctxt "field:account.payment.group,clearing_reconciled:" msgid "Clearing Reconciled" msgstr "Liquidació conciliada" msgctxt "field:account.payment.group,statement_lines:" msgid "Statement Lines" msgstr "Línies d'extracte" msgctxt "field:account.payment.journal,clearing_account:" msgid "Clearing Account" msgstr "Compte de liquidació" msgctxt "field:account.payment.journal,clearing_journal:" msgid "Clearing Journal" msgstr "Diari de liquidació" msgctxt "field:account.payment.journal,clearing_posting_delay:" msgid "Clearing Posting Delay" msgstr "Retràs comptabilització liquidació" msgctxt "field:account.payment.succeed.start,date:" msgid "Date" msgstr "Data" msgctxt "help:account.payment,account:" msgid "Define the account to use for clearing move." msgstr "Defineix el compte a utilitzar pel moviment de liquidació." msgctxt "help:account.payment,clearing_reconciled:" msgid "Checked if clearing line is reconciled." msgstr "Marcat si l'apunt de liquidació s'ha conciliat." msgctxt "help:account.payment.group,clearing_reconciled:" msgid "All payments in the group are reconciled." msgstr "Tots els pagaments del grup s'han conciliat." msgctxt "help:account.payment.journal,clearing_posting_delay:" msgid "" "Post automatically the clearing moves after the delay.\n" "Leave empty for no posting." msgstr "" "Comptabilitza automàticament els asentaments de liquidació desprès del retràs.\n" "Deixeu-ho en blanc per no comptabilitzar." msgctxt "model:account.payment.succeed.start,name:" msgid "Succeed Payment" msgstr "Marca pagament amb èxit" msgctxt "model:ir.action,name:wizard_succeed" msgid "Succeed Payments" msgstr "Marca pagaments amb èxit" msgctxt "model:ir.model.button,string:payment_succeed_wizard_button" msgid "Succeed" msgstr "Amb èxit" msgctxt "selection:ir.cron,method:" msgid "Post Clearing Moves" msgstr "Comptabilitza assentaments de liquidació" msgctxt "view:account.payment.journal:" msgid "Clearing" msgstr "Liquidació" msgctxt "wizard_button:account.payment.succeed,start,end:" msgid "Cancel" msgstr "Cancel·la" msgctxt "wizard_button:account.payment.succeed,start,succeed:" msgid "Succeed" msgstr "Amb èxit" ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1698685598.0 trytond_account_payment_clearing-7.0.5/locale/cs.po0000644000175000017500000000411514517761236020674 0ustar00cedced# msgid "" msgstr "Content-Type: text/plain; charset=utf-8\n" msgctxt "field:account.payment,account:" msgid "Account" msgstr "" msgctxt "field:account.payment,clearing_move:" msgid "Clearing Move" msgstr "" msgctxt "field:account.payment,clearing_reconciled:" msgid "Clearing Reconciled" msgstr "" msgctxt "field:account.payment,statement_lines:" msgid "Statement Lines" msgstr "" msgctxt "field:account.payment.group,clearing_reconciled:" msgid "Clearing Reconciled" msgstr "" msgctxt "field:account.payment.group,statement_lines:" msgid "Statement Lines" msgstr "" msgctxt "field:account.payment.journal,clearing_account:" msgid "Clearing Account" msgstr "" msgctxt "field:account.payment.journal,clearing_journal:" msgid "Clearing Journal" msgstr "" msgctxt "field:account.payment.journal,clearing_posting_delay:" msgid "Clearing Posting Delay" msgstr "" msgctxt "field:account.payment.succeed.start,date:" msgid "Date" msgstr "" msgctxt "help:account.payment,account:" msgid "Define the account to use for clearing move." msgstr "" msgctxt "help:account.payment,clearing_reconciled:" msgid "Checked if clearing line is reconciled." msgstr "" msgctxt "help:account.payment.group,clearing_reconciled:" msgid "All payments in the group are reconciled." msgstr "" msgctxt "help:account.payment.journal,clearing_posting_delay:" msgid "" "Post automatically the clearing moves after the delay.\n" "Leave empty for no posting." msgstr "" #, fuzzy msgctxt "model:account.payment.succeed.start,name:" msgid "Succeed Payment" msgstr "Succeed Payments" msgctxt "model:ir.action,name:wizard_succeed" msgid "Succeed Payments" msgstr "Succeed Payments" msgctxt "model:ir.model.button,string:payment_succeed_wizard_button" msgid "Succeed" msgstr "Succeed" #, fuzzy msgctxt "selection:ir.cron,method:" msgid "Post Clearing Moves" msgstr "Post Clearing Moves" msgctxt "view:account.payment.journal:" msgid "Clearing" msgstr "" msgctxt "wizard_button:account.payment.succeed,start,end:" msgid "Cancel" msgstr "" #, fuzzy msgctxt "wizard_button:account.payment.succeed,start,succeed:" msgid "Succeed" msgstr "Succeed" ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1698685598.0 trytond_account_payment_clearing-7.0.5/locale/de.po0000644000175000017500000000515514517761236020664 0ustar00cedced# msgid "" msgstr "Content-Type: text/plain; charset=utf-8\n" msgctxt "field:account.payment,account:" msgid "Account" msgstr "Konto" msgctxt "field:account.payment,clearing_move:" msgid "Clearing Move" msgstr "Abstimmungsbuchungssatz" msgctxt "field:account.payment,clearing_reconciled:" msgid "Clearing Reconciled" msgstr "Zahlungsausgleich abgestimmt" msgctxt "field:account.payment,statement_lines:" msgid "Statement Lines" msgstr "Kontoauszugspositionen" msgctxt "field:account.payment.group,clearing_reconciled:" msgid "Clearing Reconciled" msgstr "Zahlungsausgleich abgestimmt" msgctxt "field:account.payment.group,statement_lines:" msgid "Statement Lines" msgstr "Kontoauszugspositionen" msgctxt "field:account.payment.journal,clearing_account:" msgid "Clearing Account" msgstr "Konto Zahlungsausgleich" msgctxt "field:account.payment.journal,clearing_journal:" msgid "Clearing Journal" msgstr "Journal Zahlungsausgleich" msgctxt "field:account.payment.journal,clearing_posting_delay:" msgid "Clearing Posting Delay" msgstr "Verzögerung des Zahlungsausgleichs" msgctxt "field:account.payment.succeed.start,date:" msgid "Date" msgstr "Datum" msgctxt "help:account.payment,account:" msgid "Define the account to use for clearing move." msgstr "Definieren des Kontos für die Ausgleichsbuchungssätze." msgctxt "help:account.payment,clearing_reconciled:" msgid "Checked if clearing line is reconciled." msgstr "Ausgewählt wenn Zahlungsausgleichsbuchung abgestimmt ist." msgctxt "help:account.payment.group,clearing_reconciled:" msgid "All payments in the group are reconciled." msgstr "Alle Zahlungen in der Gruppe sind abgestimmt." msgctxt "help:account.payment.journal,clearing_posting_delay:" msgid "" "Post automatically the clearing moves after the delay.\n" "Leave empty for no posting." msgstr "" "Automatisches Verbuchen der Ausgleichsbuchungssätze mit Verzögerung.\n" "Leer lassen, um keine Buchungssätze zu erzeugen." msgctxt "model:account.payment.succeed.start,name:" msgid "Succeed Payment" msgstr "Erfolgreiche Zahlung" msgctxt "model:ir.action,name:wizard_succeed" msgid "Succeed Payments" msgstr "Erfolgreiche Zahlungen" msgctxt "model:ir.model.button,string:payment_succeed_wizard_button" msgid "Succeed" msgstr "Erfolgreich markieren" msgctxt "selection:ir.cron,method:" msgid "Post Clearing Moves" msgstr "Ausgleichsbuchungssätze erstellen" msgctxt "view:account.payment.journal:" msgid "Clearing" msgstr "Zahlungsausgleich" msgctxt "wizard_button:account.payment.succeed,start,end:" msgid "Cancel" msgstr "Abbrechen" msgctxt "wizard_button:account.payment.succeed,start,succeed:" msgid "Succeed" msgstr "Erfolgreich" ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1698685598.0 trytond_account_payment_clearing-7.0.5/locale/es.po0000644000175000017500000000511414517761236020676 0ustar00cedced# msgid "" msgstr "Content-Type: text/plain; charset=utf-8\n" msgctxt "field:account.payment,account:" msgid "Account" msgstr "Cuenta" msgctxt "field:account.payment,clearing_move:" msgid "Clearing Move" msgstr "Asiento de liquidación" msgctxt "field:account.payment,clearing_reconciled:" msgid "Clearing Reconciled" msgstr "Liquidación conciliada" msgctxt "field:account.payment,statement_lines:" msgid "Statement Lines" msgstr "Líneas de extracto" msgctxt "field:account.payment.group,clearing_reconciled:" msgid "Clearing Reconciled" msgstr "Liquidación conciliada" msgctxt "field:account.payment.group,statement_lines:" msgid "Statement Lines" msgstr "Líneas de extracto" msgctxt "field:account.payment.journal,clearing_account:" msgid "Clearing Account" msgstr "Cuenta de liquidación" msgctxt "field:account.payment.journal,clearing_journal:" msgid "Clearing Journal" msgstr "Diario de liquidación" msgctxt "field:account.payment.journal,clearing_posting_delay:" msgid "Clearing Posting Delay" msgstr "Retraso contabilización liquidación" msgctxt "field:account.payment.succeed.start,date:" msgid "Date" msgstr "Fecha" msgctxt "help:account.payment,account:" msgid "Define the account to use for clearing move." msgstr "Define la cuenta a utilizar para el asiento de liquidación." msgctxt "help:account.payment,clearing_reconciled:" msgid "Checked if clearing line is reconciled." msgstr "Marcado si el apunte de liquidación se ha conciliado." msgctxt "help:account.payment.group,clearing_reconciled:" msgid "All payments in the group are reconciled." msgstr "Todos los pagos del grupo se han conciliado." msgctxt "help:account.payment.journal,clearing_posting_delay:" msgid "" "Post automatically the clearing moves after the delay.\n" "Leave empty for no posting." msgstr "" "Contabiliza automáticamente los apuntes de liquidación después del retraso.\n" "Dejar en blanco para no contabilizar." msgctxt "model:account.payment.succeed.start,name:" msgid "Succeed Payment" msgstr "Marcar pagos con éxito" msgctxt "model:ir.action,name:wizard_succeed" msgid "Succeed Payments" msgstr "Marcar pagos con éxito" msgctxt "model:ir.model.button,string:payment_succeed_wizard_button" msgid "Succeed" msgstr "Con éxito" msgctxt "selection:ir.cron,method:" msgid "Post Clearing Moves" msgstr "Contabilizar asientos de liquidación" msgctxt "view:account.payment.journal:" msgid "Clearing" msgstr "Liquidación" msgctxt "wizard_button:account.payment.succeed,start,end:" msgid "Cancel" msgstr "Cancelar" msgctxt "wizard_button:account.payment.succeed,start,succeed:" msgid "Succeed" msgstr "Con éxito" ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1698685598.0 trytond_account_payment_clearing-7.0.5/locale/es_419.po0000644000175000017500000000431014517761236021270 0ustar00cedced# msgid "" msgstr "Content-Type: text/plain; charset=utf-8\n" msgctxt "field:account.payment,account:" msgid "Account" msgstr "" msgctxt "field:account.payment,clearing_move:" msgid "Clearing Move" msgstr "Asiento de compensación" #, fuzzy msgctxt "field:account.payment,clearing_reconciled:" msgid "Clearing Reconciled" msgstr "Asiento de compensación" msgctxt "field:account.payment,statement_lines:" msgid "Statement Lines" msgstr "" #, fuzzy msgctxt "field:account.payment.group,clearing_reconciled:" msgid "Clearing Reconciled" msgstr "Asiento de compensación" msgctxt "field:account.payment.group,statement_lines:" msgid "Statement Lines" msgstr "" msgctxt "field:account.payment.journal,clearing_account:" msgid "Clearing Account" msgstr "Cuenta de compensación" msgctxt "field:account.payment.journal,clearing_journal:" msgid "Clearing Journal" msgstr "Libro diario de compensación" msgctxt "field:account.payment.journal,clearing_posting_delay:" msgid "Clearing Posting Delay" msgstr "" msgctxt "field:account.payment.succeed.start,date:" msgid "Date" msgstr "Fecha" msgctxt "help:account.payment,account:" msgid "Define the account to use for clearing move." msgstr "" msgctxt "help:account.payment,clearing_reconciled:" msgid "Checked if clearing line is reconciled." msgstr "" msgctxt "help:account.payment.group,clearing_reconciled:" msgid "All payments in the group are reconciled." msgstr "" msgctxt "help:account.payment.journal,clearing_posting_delay:" msgid "" "Post automatically the clearing moves after the delay.\n" "Leave empty for no posting." msgstr "" msgctxt "model:account.payment.succeed.start,name:" msgid "Succeed Payment" msgstr "Pago exitoso" msgctxt "model:ir.action,name:wizard_succeed" msgid "Succeed Payments" msgstr "Pago exitoso" #, fuzzy msgctxt "model:ir.model.button,string:payment_succeed_wizard_button" msgid "Succeed" msgstr "Exitoso" msgctxt "selection:ir.cron,method:" msgid "Post Clearing Moves" msgstr "" msgctxt "view:account.payment.journal:" msgid "Clearing" msgstr "Compensación" msgctxt "wizard_button:account.payment.succeed,start,end:" msgid "Cancel" msgstr "Cancelar" msgctxt "wizard_button:account.payment.succeed,start,succeed:" msgid "Succeed" msgstr "Exitoso" ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1698685598.0 trytond_account_payment_clearing-7.0.5/locale/et.po0000644000175000017500000000457014517761236020704 0ustar00cedced# msgid "" msgstr "Content-Type: text/plain; charset=utf-8\n" msgctxt "field:account.payment,account:" msgid "Account" msgstr "Konto" msgctxt "field:account.payment,clearing_move:" msgid "Clearing Move" msgstr "Arvelduse kanne" #, fuzzy msgctxt "field:account.payment,clearing_reconciled:" msgid "Clearing Reconciled" msgstr "Arvelduse kanne" msgctxt "field:account.payment,statement_lines:" msgid "Statement Lines" msgstr "" #, fuzzy msgctxt "field:account.payment.group,clearing_reconciled:" msgid "Clearing Reconciled" msgstr "Arvelduse kanne" msgctxt "field:account.payment.group,statement_lines:" msgid "Statement Lines" msgstr "" msgctxt "field:account.payment.journal,clearing_account:" msgid "Clearing Account" msgstr "Arvelduse konto" msgctxt "field:account.payment.journal,clearing_journal:" msgid "Clearing Journal" msgstr "Arvelduse päevaraamat" msgctxt "field:account.payment.journal,clearing_posting_delay:" msgid "Clearing Posting Delay" msgstr "Arvelduse postitamise viivitus" msgctxt "field:account.payment.succeed.start,date:" msgid "Date" msgstr "Kuupäev" msgctxt "help:account.payment,account:" msgid "Define the account to use for clearing move." msgstr "Määra konto, mida kasutada arveldamise kandel." msgctxt "help:account.payment,clearing_reconciled:" msgid "Checked if clearing line is reconciled." msgstr "" msgctxt "help:account.payment.group,clearing_reconciled:" msgid "All payments in the group are reconciled." msgstr "" msgctxt "help:account.payment.journal,clearing_posting_delay:" msgid "" "Post automatically the clearing moves after the delay.\n" "Leave empty for no posting." msgstr "" "Postita automaatselt arvelduse kanded pärast viivitust.Jäta tühjaks kui ei " "soovi postitada." msgctxt "model:account.payment.succeed.start,name:" msgid "Succeed Payment" msgstr "Tasumine õnnestus" msgctxt "model:ir.action,name:wizard_succeed" msgid "Succeed Payments" msgstr "Tasumised õnnestusid" msgctxt "model:ir.model.button,string:payment_succeed_wizard_button" msgid "Succeed" msgstr "Õnnestunud" msgctxt "selection:ir.cron,method:" msgid "Post Clearing Moves" msgstr "Postita tasumise kanded" msgctxt "view:account.payment.journal:" msgid "Clearing" msgstr "Tasumine" msgctxt "wizard_button:account.payment.succeed,start,end:" msgid "Cancel" msgstr "Tühista" msgctxt "wizard_button:account.payment.succeed,start,succeed:" msgid "Succeed" msgstr "Õnnestunud" ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1698685598.0 trytond_account_payment_clearing-7.0.5/locale/fa.po0000644000175000017500000000477514517761236020671 0ustar00cedced# msgid "" msgstr "Content-Type: text/plain; charset=utf-8\n" msgctxt "field:account.payment,account:" msgid "Account" msgstr "حساب" msgctxt "field:account.payment,clearing_move:" msgid "Clearing Move" msgstr "تسویه جابجایی" #, fuzzy msgctxt "field:account.payment,clearing_reconciled:" msgid "Clearing Reconciled" msgstr "تسویه جابجایی" msgctxt "field:account.payment,statement_lines:" msgid "Statement Lines" msgstr "" #, fuzzy msgctxt "field:account.payment.group,clearing_reconciled:" msgid "Clearing Reconciled" msgstr "تسویه جابجایی" msgctxt "field:account.payment.group,statement_lines:" msgid "Statement Lines" msgstr "" msgctxt "field:account.payment.journal,clearing_account:" msgid "Clearing Account" msgstr "تسویه حساب" msgctxt "field:account.payment.journal,clearing_journal:" msgid "Clearing Journal" msgstr "تسویه روزنامه" msgctxt "field:account.payment.journal,clearing_posting_delay:" msgid "Clearing Posting Delay" msgstr "تسویه تاخیر ارسال" msgctxt "field:account.payment.succeed.start,date:" msgid "Date" msgstr "تاریخ" msgctxt "help:account.payment,account:" msgid "Define the account to use for clearing move." msgstr "تعریف حساب برای استفاده تسویه جابجایی." msgctxt "help:account.payment,clearing_reconciled:" msgid "Checked if clearing line is reconciled." msgstr "" msgctxt "help:account.payment.group,clearing_reconciled:" msgid "All payments in the group are reconciled." msgstr "" msgctxt "help:account.payment.journal,clearing_posting_delay:" msgid "" "Post automatically the clearing moves after the delay.\n" "Leave empty for no posting." msgstr "" "ارسال تسویه جابجایی ها بعداز تأخییر بطورخودکار.\n" "برای بدون ارسال خالی بگذارید." msgctxt "model:account.payment.succeed.start,name:" msgid "Succeed Payment" msgstr "پرداخت موفق" msgctxt "model:ir.action,name:wizard_succeed" msgid "Succeed Payments" msgstr "پرداخت های موفق" msgctxt "model:ir.model.button,string:payment_succeed_wizard_button" msgid "Succeed" msgstr "Succeed" #, fuzzy msgctxt "selection:ir.cron,method:" msgid "Post Clearing Moves" msgstr "Post Clearing Moves" msgctxt "view:account.payment.journal:" msgid "Clearing" msgstr "تسویه" msgctxt "wizard_button:account.payment.succeed,start,end:" msgid "Cancel" msgstr "انصراف" msgctxt "wizard_button:account.payment.succeed,start,succeed:" msgid "Succeed" msgstr "موفق شد" ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1698685598.0 trytond_account_payment_clearing-7.0.5/locale/fi.po0000644000175000017500000000411514517761236020665 0ustar00cedced# msgid "" msgstr "Content-Type: text/plain; charset=utf-8\n" msgctxt "field:account.payment,account:" msgid "Account" msgstr "" msgctxt "field:account.payment,clearing_move:" msgid "Clearing Move" msgstr "" msgctxt "field:account.payment,clearing_reconciled:" msgid "Clearing Reconciled" msgstr "" msgctxt "field:account.payment,statement_lines:" msgid "Statement Lines" msgstr "" msgctxt "field:account.payment.group,clearing_reconciled:" msgid "Clearing Reconciled" msgstr "" msgctxt "field:account.payment.group,statement_lines:" msgid "Statement Lines" msgstr "" msgctxt "field:account.payment.journal,clearing_account:" msgid "Clearing Account" msgstr "" msgctxt "field:account.payment.journal,clearing_journal:" msgid "Clearing Journal" msgstr "" msgctxt "field:account.payment.journal,clearing_posting_delay:" msgid "Clearing Posting Delay" msgstr "" msgctxt "field:account.payment.succeed.start,date:" msgid "Date" msgstr "" msgctxt "help:account.payment,account:" msgid "Define the account to use for clearing move." msgstr "" msgctxt "help:account.payment,clearing_reconciled:" msgid "Checked if clearing line is reconciled." msgstr "" msgctxt "help:account.payment.group,clearing_reconciled:" msgid "All payments in the group are reconciled." msgstr "" msgctxt "help:account.payment.journal,clearing_posting_delay:" msgid "" "Post automatically the clearing moves after the delay.\n" "Leave empty for no posting." msgstr "" #, fuzzy msgctxt "model:account.payment.succeed.start,name:" msgid "Succeed Payment" msgstr "Succeed Payments" msgctxt "model:ir.action,name:wizard_succeed" msgid "Succeed Payments" msgstr "Succeed Payments" msgctxt "model:ir.model.button,string:payment_succeed_wizard_button" msgid "Succeed" msgstr "Succeed" #, fuzzy msgctxt "selection:ir.cron,method:" msgid "Post Clearing Moves" msgstr "Post Clearing Moves" msgctxt "view:account.payment.journal:" msgid "Clearing" msgstr "" msgctxt "wizard_button:account.payment.succeed,start,end:" msgid "Cancel" msgstr "" #, fuzzy msgctxt "wizard_button:account.payment.succeed,start,succeed:" msgid "Succeed" msgstr "Succeed" ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1698685598.0 trytond_account_payment_clearing-7.0.5/locale/fr.po0000644000175000017500000000513614517761236020702 0ustar00cedced# msgid "" msgstr "Content-Type: text/plain; charset=utf-8\n" msgctxt "field:account.payment,account:" msgid "Account" msgstr "Compte" msgctxt "field:account.payment,clearing_move:" msgid "Clearing Move" msgstr "Mouvement de compensation" msgctxt "field:account.payment,clearing_reconciled:" msgid "Clearing Reconciled" msgstr "Compensation réconciliée" msgctxt "field:account.payment,statement_lines:" msgid "Statement Lines" msgstr "Lignes de relevé" msgctxt "field:account.payment.group,clearing_reconciled:" msgid "Clearing Reconciled" msgstr "Compensation réconciliée" msgctxt "field:account.payment.group,statement_lines:" msgid "Statement Lines" msgstr "Lignes de relevé" msgctxt "field:account.payment.journal,clearing_account:" msgid "Clearing Account" msgstr "Compte de compensation" msgctxt "field:account.payment.journal,clearing_journal:" msgid "Clearing Journal" msgstr "Journal de compensation" msgctxt "field:account.payment.journal,clearing_posting_delay:" msgid "Clearing Posting Delay" msgstr "Délai de comptabilisation de compensation" msgctxt "field:account.payment.succeed.start,date:" msgid "Date" msgstr "Date" msgctxt "help:account.payment,account:" msgid "Define the account to use for clearing move." msgstr "Définit le compte à utiliser pour le mouvement de compensation." msgctxt "help:account.payment,clearing_reconciled:" msgid "Checked if clearing line is reconciled." msgstr "Coché si la ligne de compensation est réconciliée." msgctxt "help:account.payment.group,clearing_reconciled:" msgid "All payments in the group are reconciled." msgstr "Tous les paiements du groupe sont réconciliés." msgctxt "help:account.payment.journal,clearing_posting_delay:" msgid "" "Post automatically the clearing moves after the delay.\n" "Leave empty for no posting." msgstr "" "Comptabilise automatiquement les mouvements de compensation après le délai.\n" "Laissez vide pour ne pas comptabiliser." msgctxt "model:account.payment.succeed.start,name:" msgid "Succeed Payment" msgstr "Réussir les paiements" msgctxt "model:ir.action,name:wizard_succeed" msgid "Succeed Payments" msgstr "Réussir les paiements" msgctxt "model:ir.model.button,string:payment_succeed_wizard_button" msgid "Succeed" msgstr "Réussir" msgctxt "selection:ir.cron,method:" msgid "Post Clearing Moves" msgstr "Comptabiliser les mouvements de compensation" msgctxt "view:account.payment.journal:" msgid "Clearing" msgstr "Compensation" msgctxt "wizard_button:account.payment.succeed,start,end:" msgid "Cancel" msgstr "Annuler" msgctxt "wizard_button:account.payment.succeed,start,succeed:" msgid "Succeed" msgstr "Réussir" ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1698685598.0 trytond_account_payment_clearing-7.0.5/locale/hu.po0000644000175000017500000000411514517761236020703 0ustar00cedced# msgid "" msgstr "Content-Type: text/plain; charset=utf-8\n" msgctxt "field:account.payment,account:" msgid "Account" msgstr "" msgctxt "field:account.payment,clearing_move:" msgid "Clearing Move" msgstr "" msgctxt "field:account.payment,clearing_reconciled:" msgid "Clearing Reconciled" msgstr "" msgctxt "field:account.payment,statement_lines:" msgid "Statement Lines" msgstr "" msgctxt "field:account.payment.group,clearing_reconciled:" msgid "Clearing Reconciled" msgstr "" msgctxt "field:account.payment.group,statement_lines:" msgid "Statement Lines" msgstr "" msgctxt "field:account.payment.journal,clearing_account:" msgid "Clearing Account" msgstr "" msgctxt "field:account.payment.journal,clearing_journal:" msgid "Clearing Journal" msgstr "" msgctxt "field:account.payment.journal,clearing_posting_delay:" msgid "Clearing Posting Delay" msgstr "" msgctxt "field:account.payment.succeed.start,date:" msgid "Date" msgstr "" msgctxt "help:account.payment,account:" msgid "Define the account to use for clearing move." msgstr "" msgctxt "help:account.payment,clearing_reconciled:" msgid "Checked if clearing line is reconciled." msgstr "" msgctxt "help:account.payment.group,clearing_reconciled:" msgid "All payments in the group are reconciled." msgstr "" msgctxt "help:account.payment.journal,clearing_posting_delay:" msgid "" "Post automatically the clearing moves after the delay.\n" "Leave empty for no posting." msgstr "" #, fuzzy msgctxt "model:account.payment.succeed.start,name:" msgid "Succeed Payment" msgstr "Succeed Payments" msgctxt "model:ir.action,name:wizard_succeed" msgid "Succeed Payments" msgstr "Succeed Payments" msgctxt "model:ir.model.button,string:payment_succeed_wizard_button" msgid "Succeed" msgstr "Succeed" #, fuzzy msgctxt "selection:ir.cron,method:" msgid "Post Clearing Moves" msgstr "Post Clearing Moves" msgctxt "view:account.payment.journal:" msgid "Clearing" msgstr "" msgctxt "wizard_button:account.payment.succeed,start,end:" msgid "Cancel" msgstr "" #, fuzzy msgctxt "wizard_button:account.payment.succeed,start,succeed:" msgid "Succeed" msgstr "Succeed" ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1698685598.0 trytond_account_payment_clearing-7.0.5/locale/id.po0000644000175000017500000000400114517761236020655 0ustar00cedced# msgid "" msgstr "Content-Type: text/plain; charset=utf-8\n" msgctxt "field:account.payment,account:" msgid "Account" msgstr "Akun" msgctxt "field:account.payment,clearing_move:" msgid "Clearing Move" msgstr "" msgctxt "field:account.payment,clearing_reconciled:" msgid "Clearing Reconciled" msgstr "" msgctxt "field:account.payment,statement_lines:" msgid "Statement Lines" msgstr "" msgctxt "field:account.payment.group,clearing_reconciled:" msgid "Clearing Reconciled" msgstr "" msgctxt "field:account.payment.group,statement_lines:" msgid "Statement Lines" msgstr "" msgctxt "field:account.payment.journal,clearing_account:" msgid "Clearing Account" msgstr "" msgctxt "field:account.payment.journal,clearing_journal:" msgid "Clearing Journal" msgstr "" msgctxt "field:account.payment.journal,clearing_posting_delay:" msgid "Clearing Posting Delay" msgstr "" msgctxt "field:account.payment.succeed.start,date:" msgid "Date" msgstr "Tanggal" msgctxt "help:account.payment,account:" msgid "Define the account to use for clearing move." msgstr "" msgctxt "help:account.payment,clearing_reconciled:" msgid "Checked if clearing line is reconciled." msgstr "" msgctxt "help:account.payment.group,clearing_reconciled:" msgid "All payments in the group are reconciled." msgstr "" msgctxt "help:account.payment.journal,clearing_posting_delay:" msgid "" "Post automatically the clearing moves after the delay.\n" "Leave empty for no posting." msgstr "" msgctxt "model:account.payment.succeed.start,name:" msgid "Succeed Payment" msgstr "" msgctxt "model:ir.action,name:wizard_succeed" msgid "Succeed Payments" msgstr "" msgctxt "model:ir.model.button,string:payment_succeed_wizard_button" msgid "Succeed" msgstr "" msgctxt "selection:ir.cron,method:" msgid "Post Clearing Moves" msgstr "" msgctxt "view:account.payment.journal:" msgid "Clearing" msgstr "" msgctxt "wizard_button:account.payment.succeed,start,end:" msgid "Cancel" msgstr "Batal" msgctxt "wizard_button:account.payment.succeed,start,succeed:" msgid "Succeed" msgstr "" ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1698685598.0 trytond_account_payment_clearing-7.0.5/locale/it.po0000644000175000017500000000431014517761236020700 0ustar00cedced# msgid "" msgstr "Content-Type: text/plain; charset=utf-8\n" msgctxt "field:account.payment,account:" msgid "Account" msgstr "Conto" msgctxt "field:account.payment,clearing_move:" msgid "Clearing Move" msgstr "Movimento di compensazione" msgctxt "field:account.payment,clearing_reconciled:" msgid "Clearing Reconciled" msgstr "" msgctxt "field:account.payment,statement_lines:" msgid "Statement Lines" msgstr "" #, fuzzy msgctxt "field:account.payment.group,clearing_reconciled:" msgid "Clearing Reconciled" msgstr "Movimento di compensazione" msgctxt "field:account.payment.group,statement_lines:" msgid "Statement Lines" msgstr "" msgctxt "field:account.payment.journal,clearing_account:" msgid "Clearing Account" msgstr "Conto di compensazione" msgctxt "field:account.payment.journal,clearing_journal:" msgid "Clearing Journal" msgstr "Registro di compensazione" msgctxt "field:account.payment.journal,clearing_posting_delay:" msgid "Clearing Posting Delay" msgstr "" msgctxt "field:account.payment.succeed.start,date:" msgid "Date" msgstr "Data" msgctxt "help:account.payment,account:" msgid "Define the account to use for clearing move." msgstr "" msgctxt "help:account.payment,clearing_reconciled:" msgid "Checked if clearing line is reconciled." msgstr "" msgctxt "help:account.payment.group,clearing_reconciled:" msgid "All payments in the group are reconciled." msgstr "" msgctxt "help:account.payment.journal,clearing_posting_delay:" msgid "" "Post automatically the clearing moves after the delay.\n" "Leave empty for no posting." msgstr "" msgctxt "model:account.payment.succeed.start,name:" msgid "Succeed Payment" msgstr "Pagamenti avvenuti con successo" msgctxt "model:ir.action,name:wizard_succeed" msgid "Succeed Payments" msgstr "Pagamenti avvenuti con successo" msgctxt "model:ir.model.button,string:payment_succeed_wizard_button" msgid "Succeed" msgstr "Riusciti" msgctxt "selection:ir.cron,method:" msgid "Post Clearing Moves" msgstr "" msgctxt "view:account.payment.journal:" msgid "Clearing" msgstr "Compensazione" msgctxt "wizard_button:account.payment.succeed,start,end:" msgid "Cancel" msgstr "Annulla" msgctxt "wizard_button:account.payment.succeed,start,succeed:" msgid "Succeed" msgstr "Riusciti" ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1698685598.0 trytond_account_payment_clearing-7.0.5/locale/lo.po0000644000175000017500000000463014517761236020703 0ustar00cedced# msgid "" msgstr "Content-Type: text/plain; charset=utf-8\n" msgctxt "field:account.payment,account:" msgid "Account" msgstr "" msgctxt "field:account.payment,clearing_move:" msgid "Clearing Move" msgstr "ຊໍາລະເຄື່ອນຍ້າຍ" #, fuzzy msgctxt "field:account.payment,clearing_reconciled:" msgid "Clearing Reconciled" msgstr "ຊໍາລະເຄື່ອນຍ້າຍ" msgctxt "field:account.payment,statement_lines:" msgid "Statement Lines" msgstr "" #, fuzzy msgctxt "field:account.payment.group,clearing_reconciled:" msgid "Clearing Reconciled" msgstr "ຊໍາລະເຄື່ອນຍ້າຍ" msgctxt "field:account.payment.group,statement_lines:" msgid "Statement Lines" msgstr "" msgctxt "field:account.payment.journal,clearing_account:" msgid "Clearing Account" msgstr "ບັນຊີສະສາງ" msgctxt "field:account.payment.journal,clearing_journal:" msgid "Clearing Journal" msgstr "ບັນຊີສະສາງປະຈຳວັນ" msgctxt "field:account.payment.journal,clearing_posting_delay:" msgid "Clearing Posting Delay" msgstr "" msgctxt "field:account.payment.succeed.start,date:" msgid "Date" msgstr "ວັນທີ" msgctxt "help:account.payment,account:" msgid "Define the account to use for clearing move." msgstr "" msgctxt "help:account.payment,clearing_reconciled:" msgid "Checked if clearing line is reconciled." msgstr "" msgctxt "help:account.payment.group,clearing_reconciled:" msgid "All payments in the group are reconciled." msgstr "" msgctxt "help:account.payment.journal,clearing_posting_delay:" msgid "" "Post automatically the clearing moves after the delay.\n" "Leave empty for no posting." msgstr "" msgctxt "model:account.payment.succeed.start,name:" msgid "Succeed Payment" msgstr "ການຈ່າຍສຳເລັດ" #, fuzzy msgctxt "model:ir.action,name:wizard_succeed" msgid "Succeed Payments" msgstr "Succeed Payments" msgctxt "model:ir.model.button,string:payment_succeed_wizard_button" msgid "Succeed" msgstr "Succeed" #, fuzzy msgctxt "selection:ir.cron,method:" msgid "Post Clearing Moves" msgstr "Post Clearing Moves" msgctxt "view:account.payment.journal:" msgid "Clearing" msgstr "ການຊໍາລະ" msgctxt "wizard_button:account.payment.succeed,start,end:" msgid "Cancel" msgstr "ຍົກເລີກ" msgctxt "wizard_button:account.payment.succeed,start,succeed:" msgid "Succeed" msgstr "ສຳເລັດແລ້ວ" ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1698685598.0 trytond_account_payment_clearing-7.0.5/locale/lt.po0000644000175000017500000000416114517761236020707 0ustar00cedced# msgid "" msgstr "Content-Type: text/plain; charset=utf-8\n" msgctxt "field:account.payment,account:" msgid "Account" msgstr "Koresponduojanti sąskaita" msgctxt "field:account.payment,clearing_move:" msgid "Clearing Move" msgstr "" msgctxt "field:account.payment,clearing_reconciled:" msgid "Clearing Reconciled" msgstr "" msgctxt "field:account.payment,statement_lines:" msgid "Statement Lines" msgstr "" msgctxt "field:account.payment.group,clearing_reconciled:" msgid "Clearing Reconciled" msgstr "" msgctxt "field:account.payment.group,statement_lines:" msgid "Statement Lines" msgstr "" msgctxt "field:account.payment.journal,clearing_account:" msgid "Clearing Account" msgstr "" msgctxt "field:account.payment.journal,clearing_journal:" msgid "Clearing Journal" msgstr "" msgctxt "field:account.payment.journal,clearing_posting_delay:" msgid "Clearing Posting Delay" msgstr "" msgctxt "field:account.payment.succeed.start,date:" msgid "Date" msgstr "Data" msgctxt "help:account.payment,account:" msgid "Define the account to use for clearing move." msgstr "" msgctxt "help:account.payment,clearing_reconciled:" msgid "Checked if clearing line is reconciled." msgstr "" msgctxt "help:account.payment.group,clearing_reconciled:" msgid "All payments in the group are reconciled." msgstr "" msgctxt "help:account.payment.journal,clearing_posting_delay:" msgid "" "Post automatically the clearing moves after the delay.\n" "Leave empty for no posting." msgstr "" msgctxt "model:account.payment.succeed.start,name:" msgid "Succeed Payment" msgstr "Sėkmingai apmokėta" msgctxt "model:ir.action,name:wizard_succeed" msgid "Succeed Payments" msgstr "Sėkmingai apmokėta" msgctxt "model:ir.model.button,string:payment_succeed_wizard_button" msgid "Succeed" msgstr "Sėkmingai" #, fuzzy msgctxt "selection:ir.cron,method:" msgid "Post Clearing Moves" msgstr "Post Clearing Moves" msgctxt "view:account.payment.journal:" msgid "Clearing" msgstr "" msgctxt "wizard_button:account.payment.succeed,start,end:" msgid "Cancel" msgstr "Atsisakyti" msgctxt "wizard_button:account.payment.succeed,start,succeed:" msgid "Succeed" msgstr "Sėkmingai" ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1698685598.0 trytond_account_payment_clearing-7.0.5/locale/nl.po0000644000175000017500000000500414517761236020676 0ustar00cedced# msgid "" msgstr "Content-Type: text/plain; charset=utf-8\n" msgctxt "field:account.payment,account:" msgid "Account" msgstr "Rekening" msgctxt "field:account.payment,clearing_move:" msgid "Clearing Move" msgstr "tegenboeking" msgctxt "field:account.payment,clearing_reconciled:" msgid "Clearing Reconciled" msgstr "Compensatieboeking afgeletterd" msgctxt "field:account.payment,statement_lines:" msgid "Statement Lines" msgstr "Afschrift regels" msgctxt "field:account.payment.group,clearing_reconciled:" msgid "Clearing Reconciled" msgstr "Compensatieboeking afgeletterd" msgctxt "field:account.payment.group,statement_lines:" msgid "Statement Lines" msgstr "Afschrift regels" msgctxt "field:account.payment.journal,clearing_account:" msgid "Clearing Account" msgstr "tegen rekening" msgctxt "field:account.payment.journal,clearing_journal:" msgid "Clearing Journal" msgstr "tegen dagboek" msgctxt "field:account.payment.journal,clearing_posting_delay:" msgid "Clearing Posting Delay" msgstr "tegenboeking vertraging" msgctxt "field:account.payment.succeed.start,date:" msgid "Date" msgstr "Datum" msgctxt "help:account.payment,account:" msgid "Define the account to use for clearing move." msgstr "definieer de rekening om te gebruiken voor de tegenboekingen." msgctxt "help:account.payment,clearing_reconciled:" msgid "Checked if clearing line is reconciled." msgstr "Aangevinkt als de compensatieboekingsregel is afgeletterd." msgctxt "help:account.payment.group,clearing_reconciled:" msgid "All payments in the group are reconciled." msgstr "Alle betalingen in de groep zijn afgeletterd." msgctxt "help:account.payment.journal,clearing_posting_delay:" msgid "" "Post automatically the clearing moves after the delay.\n" "Leave empty for no posting." msgstr "" "maak automatisch de tegenboeking na de vertraging (delay).\n" "Laat leeg om geen boekingen te maken." msgctxt "model:account.payment.succeed.start,name:" msgid "Succeed Payment" msgstr "succesvolle betalingen" msgctxt "model:ir.action,name:wizard_succeed" msgid "Succeed Payments" msgstr "geslaagde betalingen" msgctxt "model:ir.model.button,string:payment_succeed_wizard_button" msgid "Succeed" msgstr "geslaagd" msgctxt "selection:ir.cron,method:" msgid "Post Clearing Moves" msgstr "Maak tegenboekingen" msgctxt "view:account.payment.journal:" msgid "Clearing" msgstr "tegenboeking" msgctxt "wizard_button:account.payment.succeed,start,end:" msgid "Cancel" msgstr "Annuleer" msgctxt "wizard_button:account.payment.succeed,start,succeed:" msgid "Succeed" msgstr "geslaagd" ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1698685598.0 trytond_account_payment_clearing-7.0.5/locale/pl.po0000644000175000017500000000413414517761236020703 0ustar00cedced# msgid "" msgstr "Content-Type: text/plain; charset=utf-8\n" msgctxt "field:account.payment,account:" msgid "Account" msgstr "Konto" msgctxt "field:account.payment,clearing_move:" msgid "Clearing Move" msgstr "" msgctxt "field:account.payment,clearing_reconciled:" msgid "Clearing Reconciled" msgstr "" msgctxt "field:account.payment,statement_lines:" msgid "Statement Lines" msgstr "" msgctxt "field:account.payment.group,clearing_reconciled:" msgid "Clearing Reconciled" msgstr "" msgctxt "field:account.payment.group,statement_lines:" msgid "Statement Lines" msgstr "" msgctxt "field:account.payment.journal,clearing_account:" msgid "Clearing Account" msgstr "" msgctxt "field:account.payment.journal,clearing_journal:" msgid "Clearing Journal" msgstr "" msgctxt "field:account.payment.journal,clearing_posting_delay:" msgid "Clearing Posting Delay" msgstr "" msgctxt "field:account.payment.succeed.start,date:" msgid "Date" msgstr "Data" msgctxt "help:account.payment,account:" msgid "Define the account to use for clearing move." msgstr "" msgctxt "help:account.payment,clearing_reconciled:" msgid "Checked if clearing line is reconciled." msgstr "" msgctxt "help:account.payment.group,clearing_reconciled:" msgid "All payments in the group are reconciled." msgstr "" msgctxt "help:account.payment.journal,clearing_posting_delay:" msgid "" "Post automatically the clearing moves after the delay.\n" "Leave empty for no posting." msgstr "" #, fuzzy msgctxt "model:account.payment.succeed.start,name:" msgid "Succeed Payment" msgstr "Succeed Payments" msgctxt "model:ir.action,name:wizard_succeed" msgid "Succeed Payments" msgstr "Succeed Payments" msgctxt "model:ir.model.button,string:payment_succeed_wizard_button" msgid "Succeed" msgstr "Succeed" #, fuzzy msgctxt "selection:ir.cron,method:" msgid "Post Clearing Moves" msgstr "Post Clearing Moves" msgctxt "view:account.payment.journal:" msgid "Clearing" msgstr "" msgctxt "wizard_button:account.payment.succeed,start,end:" msgid "Cancel" msgstr "Anuluj" #, fuzzy msgctxt "wizard_button:account.payment.succeed,start,succeed:" msgid "Succeed" msgstr "Succeed" ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1698685598.0 trytond_account_payment_clearing-7.0.5/locale/pt.po0000644000175000017500000000445414517761236020720 0ustar00cedced# msgid "" msgstr "Content-Type: text/plain; charset=utf-8\n" msgctxt "field:account.payment,account:" msgid "Account" msgstr "Conta" msgctxt "field:account.payment,clearing_move:" msgid "Clearing Move" msgstr "Movimento de Compensação" #, fuzzy msgctxt "field:account.payment,clearing_reconciled:" msgid "Clearing Reconciled" msgstr "Movimento de Compensação" msgctxt "field:account.payment,statement_lines:" msgid "Statement Lines" msgstr "" #, fuzzy msgctxt "field:account.payment.group,clearing_reconciled:" msgid "Clearing Reconciled" msgstr "Movimento de Compensação" msgctxt "field:account.payment.group,statement_lines:" msgid "Statement Lines" msgstr "" msgctxt "field:account.payment.journal,clearing_account:" msgid "Clearing Account" msgstr "Conta de Compensação" msgctxt "field:account.payment.journal,clearing_journal:" msgid "Clearing Journal" msgstr "Diário de Compensação" msgctxt "field:account.payment.journal,clearing_posting_delay:" msgid "Clearing Posting Delay" msgstr "" msgctxt "field:account.payment.succeed.start,date:" msgid "Date" msgstr "Data" msgctxt "help:account.payment,account:" msgid "Define the account to use for clearing move." msgstr "Define a conta usada para o movimento de compensação." msgctxt "help:account.payment,clearing_reconciled:" msgid "Checked if clearing line is reconciled." msgstr "" msgctxt "help:account.payment.group,clearing_reconciled:" msgid "All payments in the group are reconciled." msgstr "" msgctxt "help:account.payment.journal,clearing_posting_delay:" msgid "" "Post automatically the clearing moves after the delay.\n" "Leave empty for no posting." msgstr "" msgctxt "model:account.payment.succeed.start,name:" msgid "Succeed Payment" msgstr "Pagamento com Sucesso" #, fuzzy msgctxt "model:ir.action,name:wizard_succeed" msgid "Succeed Payments" msgstr "Succeed Payments" msgctxt "model:ir.model.button,string:payment_succeed_wizard_button" msgid "Succeed" msgstr "Succeed" #, fuzzy msgctxt "selection:ir.cron,method:" msgid "Post Clearing Moves" msgstr "Post Clearing Moves" msgctxt "view:account.payment.journal:" msgid "Clearing" msgstr "Compensação" msgctxt "wizard_button:account.payment.succeed,start,end:" msgid "Cancel" msgstr "Cancelar" msgctxt "wizard_button:account.payment.succeed,start,succeed:" msgid "Succeed" msgstr "Sucesso" ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1698685598.0 trytond_account_payment_clearing-7.0.5/locale/ro.po0000644000175000017500000000377114517761236020716 0ustar00cedced# msgid "" msgstr "Content-Type: text/plain; charset=utf-8\n" msgctxt "field:account.payment,account:" msgid "Account" msgstr "Cont" msgctxt "field:account.payment,clearing_move:" msgid "Clearing Move" msgstr "" msgctxt "field:account.payment,clearing_reconciled:" msgid "Clearing Reconciled" msgstr "" msgctxt "field:account.payment,statement_lines:" msgid "Statement Lines" msgstr "" msgctxt "field:account.payment.group,clearing_reconciled:" msgid "Clearing Reconciled" msgstr "" msgctxt "field:account.payment.group,statement_lines:" msgid "Statement Lines" msgstr "" msgctxt "field:account.payment.journal,clearing_account:" msgid "Clearing Account" msgstr "" msgctxt "field:account.payment.journal,clearing_journal:" msgid "Clearing Journal" msgstr "" msgctxt "field:account.payment.journal,clearing_posting_delay:" msgid "Clearing Posting Delay" msgstr "" msgctxt "field:account.payment.succeed.start,date:" msgid "Date" msgstr "Data" msgctxt "help:account.payment,account:" msgid "Define the account to use for clearing move." msgstr "" msgctxt "help:account.payment,clearing_reconciled:" msgid "Checked if clearing line is reconciled." msgstr "" msgctxt "help:account.payment.group,clearing_reconciled:" msgid "All payments in the group are reconciled." msgstr "" msgctxt "help:account.payment.journal,clearing_posting_delay:" msgid "" "Post automatically the clearing moves after the delay.\n" "Leave empty for no posting." msgstr "" msgctxt "model:account.payment.succeed.start,name:" msgid "Succeed Payment" msgstr "" msgctxt "model:ir.action,name:wizard_succeed" msgid "Succeed Payments" msgstr "" msgctxt "model:ir.model.button,string:payment_succeed_wizard_button" msgid "Succeed" msgstr "" msgctxt "selection:ir.cron,method:" msgid "Post Clearing Moves" msgstr "" msgctxt "view:account.payment.journal:" msgid "Clearing" msgstr "" msgctxt "wizard_button:account.payment.succeed,start,end:" msgid "Cancel" msgstr "" msgctxt "wizard_button:account.payment.succeed,start,succeed:" msgid "Succeed" msgstr "" ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1698685598.0 trytond_account_payment_clearing-7.0.5/locale/ru.po0000644000175000017500000000411514517761236020715 0ustar00cedced# msgid "" msgstr "Content-Type: text/plain; charset=utf-8\n" msgctxt "field:account.payment,account:" msgid "Account" msgstr "" msgctxt "field:account.payment,clearing_move:" msgid "Clearing Move" msgstr "" msgctxt "field:account.payment,clearing_reconciled:" msgid "Clearing Reconciled" msgstr "" msgctxt "field:account.payment,statement_lines:" msgid "Statement Lines" msgstr "" msgctxt "field:account.payment.group,clearing_reconciled:" msgid "Clearing Reconciled" msgstr "" msgctxt "field:account.payment.group,statement_lines:" msgid "Statement Lines" msgstr "" msgctxt "field:account.payment.journal,clearing_account:" msgid "Clearing Account" msgstr "" msgctxt "field:account.payment.journal,clearing_journal:" msgid "Clearing Journal" msgstr "" msgctxt "field:account.payment.journal,clearing_posting_delay:" msgid "Clearing Posting Delay" msgstr "" msgctxt "field:account.payment.succeed.start,date:" msgid "Date" msgstr "" msgctxt "help:account.payment,account:" msgid "Define the account to use for clearing move." msgstr "" msgctxt "help:account.payment,clearing_reconciled:" msgid "Checked if clearing line is reconciled." msgstr "" msgctxt "help:account.payment.group,clearing_reconciled:" msgid "All payments in the group are reconciled." msgstr "" msgctxt "help:account.payment.journal,clearing_posting_delay:" msgid "" "Post automatically the clearing moves after the delay.\n" "Leave empty for no posting." msgstr "" #, fuzzy msgctxt "model:account.payment.succeed.start,name:" msgid "Succeed Payment" msgstr "Succeed Payments" msgctxt "model:ir.action,name:wizard_succeed" msgid "Succeed Payments" msgstr "Succeed Payments" msgctxt "model:ir.model.button,string:payment_succeed_wizard_button" msgid "Succeed" msgstr "Succeed" #, fuzzy msgctxt "selection:ir.cron,method:" msgid "Post Clearing Moves" msgstr "Post Clearing Moves" msgctxt "view:account.payment.journal:" msgid "Clearing" msgstr "" msgctxt "wizard_button:account.payment.succeed,start,end:" msgid "Cancel" msgstr "" #, fuzzy msgctxt "wizard_button:account.payment.succeed,start,succeed:" msgid "Succeed" msgstr "Succeed" ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1698685598.0 trytond_account_payment_clearing-7.0.5/locale/sl.po0000644000175000017500000000437114517761236020711 0ustar00cedced# msgid "" msgstr "Content-Type: text/plain; charset=utf-8\n" msgctxt "field:account.payment,account:" msgid "Account" msgstr "Konto" msgctxt "field:account.payment,clearing_move:" msgid "Clearing Move" msgstr "Klirinška knjižba" #, fuzzy msgctxt "field:account.payment,clearing_reconciled:" msgid "Clearing Reconciled" msgstr "Klirinška knjižba" msgctxt "field:account.payment,statement_lines:" msgid "Statement Lines" msgstr "" #, fuzzy msgctxt "field:account.payment.group,clearing_reconciled:" msgid "Clearing Reconciled" msgstr "Klirinška knjižba" msgctxt "field:account.payment.group,statement_lines:" msgid "Statement Lines" msgstr "" msgctxt "field:account.payment.journal,clearing_account:" msgid "Clearing Account" msgstr "Klirinški konto" msgctxt "field:account.payment.journal,clearing_journal:" msgid "Clearing Journal" msgstr "Klirinški dnevnik" msgctxt "field:account.payment.journal,clearing_posting_delay:" msgid "Clearing Posting Delay" msgstr "" msgctxt "field:account.payment.succeed.start,date:" msgid "Date" msgstr "Datum" msgctxt "help:account.payment,account:" msgid "Define the account to use for clearing move." msgstr "Konto za knjiženje klirinškega prometa" msgctxt "help:account.payment,clearing_reconciled:" msgid "Checked if clearing line is reconciled." msgstr "" msgctxt "help:account.payment.group,clearing_reconciled:" msgid "All payments in the group are reconciled." msgstr "" msgctxt "help:account.payment.journal,clearing_posting_delay:" msgid "" "Post automatically the clearing moves after the delay.\n" "Leave empty for no posting." msgstr "" msgctxt "model:account.payment.succeed.start,name:" msgid "Succeed Payment" msgstr "Zaključeno plačilo" #, fuzzy msgctxt "model:ir.action,name:wizard_succeed" msgid "Succeed Payments" msgstr "Succeed Payments" msgctxt "model:ir.model.button,string:payment_succeed_wizard_button" msgid "Succeed" msgstr "Succeed" #, fuzzy msgctxt "selection:ir.cron,method:" msgid "Post Clearing Moves" msgstr "Post Clearing Moves" msgctxt "view:account.payment.journal:" msgid "Clearing" msgstr "Kliring" msgctxt "wizard_button:account.payment.succeed,start,end:" msgid "Cancel" msgstr "Prekliči" msgctxt "wizard_button:account.payment.succeed,start,succeed:" msgid "Succeed" msgstr "Zaključi" ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1698685598.0 trytond_account_payment_clearing-7.0.5/locale/tr.po0000644000175000017500000000411514517761236020714 0ustar00cedced# msgid "" msgstr "Content-Type: text/plain; charset=utf-8\n" msgctxt "field:account.payment,account:" msgid "Account" msgstr "" msgctxt "field:account.payment,clearing_move:" msgid "Clearing Move" msgstr "" msgctxt "field:account.payment,clearing_reconciled:" msgid "Clearing Reconciled" msgstr "" msgctxt "field:account.payment,statement_lines:" msgid "Statement Lines" msgstr "" msgctxt "field:account.payment.group,clearing_reconciled:" msgid "Clearing Reconciled" msgstr "" msgctxt "field:account.payment.group,statement_lines:" msgid "Statement Lines" msgstr "" msgctxt "field:account.payment.journal,clearing_account:" msgid "Clearing Account" msgstr "" msgctxt "field:account.payment.journal,clearing_journal:" msgid "Clearing Journal" msgstr "" msgctxt "field:account.payment.journal,clearing_posting_delay:" msgid "Clearing Posting Delay" msgstr "" msgctxt "field:account.payment.succeed.start,date:" msgid "Date" msgstr "" msgctxt "help:account.payment,account:" msgid "Define the account to use for clearing move." msgstr "" msgctxt "help:account.payment,clearing_reconciled:" msgid "Checked if clearing line is reconciled." msgstr "" msgctxt "help:account.payment.group,clearing_reconciled:" msgid "All payments in the group are reconciled." msgstr "" msgctxt "help:account.payment.journal,clearing_posting_delay:" msgid "" "Post automatically the clearing moves after the delay.\n" "Leave empty for no posting." msgstr "" #, fuzzy msgctxt "model:account.payment.succeed.start,name:" msgid "Succeed Payment" msgstr "Succeed Payments" msgctxt "model:ir.action,name:wizard_succeed" msgid "Succeed Payments" msgstr "Succeed Payments" msgctxt "model:ir.model.button,string:payment_succeed_wizard_button" msgid "Succeed" msgstr "Succeed" #, fuzzy msgctxt "selection:ir.cron,method:" msgid "Post Clearing Moves" msgstr "Post Clearing Moves" msgctxt "view:account.payment.journal:" msgid "Clearing" msgstr "" msgctxt "wizard_button:account.payment.succeed,start,end:" msgid "Cancel" msgstr "" #, fuzzy msgctxt "wizard_button:account.payment.succeed,start,succeed:" msgid "Succeed" msgstr "Succeed" ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1698685598.0 trytond_account_payment_clearing-7.0.5/locale/uk.po0000644000175000017500000000376114517761236020714 0ustar00cedced# msgid "" msgstr "Content-Type: text/plain; charset=utf-8\n" msgctxt "field:account.payment,account:" msgid "Account" msgstr "" msgctxt "field:account.payment,clearing_move:" msgid "Clearing Move" msgstr "" msgctxt "field:account.payment,clearing_reconciled:" msgid "Clearing Reconciled" msgstr "" msgctxt "field:account.payment,statement_lines:" msgid "Statement Lines" msgstr "" msgctxt "field:account.payment.group,clearing_reconciled:" msgid "Clearing Reconciled" msgstr "" msgctxt "field:account.payment.group,statement_lines:" msgid "Statement Lines" msgstr "" msgctxt "field:account.payment.journal,clearing_account:" msgid "Clearing Account" msgstr "" msgctxt "field:account.payment.journal,clearing_journal:" msgid "Clearing Journal" msgstr "" msgctxt "field:account.payment.journal,clearing_posting_delay:" msgid "Clearing Posting Delay" msgstr "" msgctxt "field:account.payment.succeed.start,date:" msgid "Date" msgstr "" msgctxt "help:account.payment,account:" msgid "Define the account to use for clearing move." msgstr "" msgctxt "help:account.payment,clearing_reconciled:" msgid "Checked if clearing line is reconciled." msgstr "" msgctxt "help:account.payment.group,clearing_reconciled:" msgid "All payments in the group are reconciled." msgstr "" msgctxt "help:account.payment.journal,clearing_posting_delay:" msgid "" "Post automatically the clearing moves after the delay.\n" "Leave empty for no posting." msgstr "" msgctxt "model:account.payment.succeed.start,name:" msgid "Succeed Payment" msgstr "" msgctxt "model:ir.action,name:wizard_succeed" msgid "Succeed Payments" msgstr "" msgctxt "model:ir.model.button,string:payment_succeed_wizard_button" msgid "Succeed" msgstr "" msgctxt "selection:ir.cron,method:" msgid "Post Clearing Moves" msgstr "" msgctxt "view:account.payment.journal:" msgid "Clearing" msgstr "" msgctxt "wizard_button:account.payment.succeed,start,end:" msgid "Cancel" msgstr "" msgctxt "wizard_button:account.payment.succeed,start,succeed:" msgid "Succeed" msgstr "" ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1698685598.0 trytond_account_payment_clearing-7.0.5/locale/zh_CN.po0000644000175000017500000000411514517761236021270 0ustar00cedced# msgid "" msgstr "Content-Type: text/plain; charset=utf-8\n" msgctxt "field:account.payment,account:" msgid "Account" msgstr "" msgctxt "field:account.payment,clearing_move:" msgid "Clearing Move" msgstr "" msgctxt "field:account.payment,clearing_reconciled:" msgid "Clearing Reconciled" msgstr "" msgctxt "field:account.payment,statement_lines:" msgid "Statement Lines" msgstr "" msgctxt "field:account.payment.group,clearing_reconciled:" msgid "Clearing Reconciled" msgstr "" msgctxt "field:account.payment.group,statement_lines:" msgid "Statement Lines" msgstr "" msgctxt "field:account.payment.journal,clearing_account:" msgid "Clearing Account" msgstr "" msgctxt "field:account.payment.journal,clearing_journal:" msgid "Clearing Journal" msgstr "" msgctxt "field:account.payment.journal,clearing_posting_delay:" msgid "Clearing Posting Delay" msgstr "" msgctxt "field:account.payment.succeed.start,date:" msgid "Date" msgstr "" msgctxt "help:account.payment,account:" msgid "Define the account to use for clearing move." msgstr "" msgctxt "help:account.payment,clearing_reconciled:" msgid "Checked if clearing line is reconciled." msgstr "" msgctxt "help:account.payment.group,clearing_reconciled:" msgid "All payments in the group are reconciled." msgstr "" msgctxt "help:account.payment.journal,clearing_posting_delay:" msgid "" "Post automatically the clearing moves after the delay.\n" "Leave empty for no posting." msgstr "" #, fuzzy msgctxt "model:account.payment.succeed.start,name:" msgid "Succeed Payment" msgstr "Succeed Payments" msgctxt "model:ir.action,name:wizard_succeed" msgid "Succeed Payments" msgstr "Succeed Payments" msgctxt "model:ir.model.button,string:payment_succeed_wizard_button" msgid "Succeed" msgstr "Succeed" #, fuzzy msgctxt "selection:ir.cron,method:" msgid "Post Clearing Moves" msgstr "Post Clearing Moves" msgctxt "view:account.payment.journal:" msgid "Clearing" msgstr "" msgctxt "wizard_button:account.payment.succeed,start,end:" msgid "Cancel" msgstr "" #, fuzzy msgctxt "wizard_button:account.payment.succeed,start,succeed:" msgid "Succeed" msgstr "Succeed" ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1739471505.0 trytond_account_payment_clearing-7.0.5/payment.py0000644000175000017500000004127514753435221020521 0ustar00cedced# This file is part of Tryton. The COPYRIGHT file at the top level of # this repository contains the full copyright notices and license terms. from collections import defaultdict from functools import wraps from sql.aggregate import BoolAnd, Min from sql.conditionals import Coalesce from trytond import backend from trytond.model import ModelView, Workflow, fields from trytond.pool import Pool, PoolMeta from trytond.pyson import Bool, Eval, If, TimeDelta from trytond.tools import grouped_slice, reduce_ids from trytond.transaction import Transaction from trytond.wizard import Button, StateTransition, StateView, Wizard class Journal(metaclass=PoolMeta): __name__ = 'account.payment.journal' clearing_account = fields.Many2One('account.account', 'Clearing Account', domain=[ ('company', '=', Eval('company', -1)), ('type', '!=', None), ('closed', '!=', True), ('party_required', '=', False), ], states={ 'required': Bool(Eval('clearing_journal')), }) clearing_journal = fields.Many2One('account.journal', 'Clearing Journal', states={ 'required': Bool(Eval('clearing_account')), }, context={ 'company': Eval('company', None), }) clearing_posting_delay = fields.TimeDelta( "Clearing Posting Delay", domain=['OR', ('clearing_posting_delay', '=', None), ('clearing_posting_delay', '>=', TimeDelta()), ], help="Post automatically the clearing moves after the delay.\n" "Leave empty for no posting.") @classmethod def cron_post_clearing_moves(cls, date=None): pool = Pool() Date = pool.get('ir.date') Move = pool.get('account.move') if date is None: date = Date.today() moves = [] journals = cls.search([ ('company', '=', Transaction().context.get('company')), ('clearing_posting_delay', '!=', None), ]) for journal in journals: move_date = date - journal.clearing_posting_delay moves.extend(Move.search([ ('date', '<=', move_date), ('origin.journal.id', '=', journal.id, 'account.payment'), ('state', '=', 'draft'), ('company', '=', journal.company.id), ])) Move.post(moves) def cancel_clearing_move(func): @wraps(func) def wrapper(cls, payments, *args, **kwargs): pool = Pool() Move = pool.get('account.move') Line = pool.get('account.move.line') Reconciliation = pool.get('account.move.reconciliation') func(cls, payments, *args, **kwargs) to_delete = [] to_reconcile = defaultdict(lambda: defaultdict(list)) to_unreconcile = [] for payment in payments: if payment.clearing_move: if payment.clearing_move.state == 'draft': to_delete.append(payment.clearing_move) for line in payment.clearing_move.lines: if line.reconciliation: to_unreconcile.append(line.reconciliation) else: cancel_move = payment.clearing_move.cancel() for line in (payment.clearing_move.lines + cancel_move.lines): if line.reconciliation: to_unreconcile.append(line.reconciliation) if line.account.reconcile: to_reconcile[payment.party][line.account].append( line) # Remove clearing_move before delete # in case reconciliation triggers use it. cls.write(payments, {'clearing_move': None}) if to_unreconcile: Reconciliation.delete(to_unreconcile) if to_delete: Move.delete(to_delete) for party in to_reconcile: for lines in to_reconcile[party].values(): Line.reconcile(lines) cls.update_reconciled(payments) return wrapper class Payment(metaclass=PoolMeta): __name__ = 'account.payment' account = fields.Many2One( 'account.account', "Account", ondelete='RESTRICT', domain=[ ('closed', '!=', True), ('company', '=', Eval('company', -1)), ['OR', ('second_currency', '=', Eval('currency', None)), [ ('company.currency', '=', Eval('currency', None)), ('second_currency', '=', None), ], ], If(Eval('line'), ('id', '=', None), ()), ], states={ 'readonly': Eval('state') != 'draft', 'invisible': Eval('line') & ~Eval('account'), }, help="Define the account to use for clearing move.") clearing_move = fields.Many2One('account.move', 'Clearing Move', readonly=True) clearing_reconciled = fields.Boolean( "Clearing Reconciled", readonly=True, states={ 'invisible': ~Eval('clearing_move'), }, help="Checked if clearing line is reconciled.") @property def amount_line_paid(self): amount = super().amount_line_paid if self.clearing_move: clearing_lines = [ l for l in self.clearing_move.lines if l.account == self.clearing_account] if clearing_lines: clearing_line = clearing_lines[0] if (not self.line.reconciliation and clearing_line.reconciliation): if self.line.second_currency: payment_amount = abs(self.line.amount_second_currency) else: payment_amount = abs( self.line.credit - self.line.debit) amount -= max(min(self.amount, payment_amount), 0) return amount @classmethod def __setup__(cls): super(Payment, cls).__setup__() line_invisible = Eval('account') & ~Eval('line') if 'invisible' in cls.line.states: cls.line.states['invisible'] &= line_invisible else: cls.line.states['invisible'] = line_invisible cls._buttons.update({ 'succeed_wizard': cls._buttons['succeed'], }) cls.account.domain = [ cls.account.domain, cls._account_type_domain(), ] @classmethod def _account_type_domain(cls): return If(Eval('state') == 'draft', If(Eval('kind') == 'receivable', ('type.receivable', '=', True), ('type.payable', '=', True), ), ()) @fields.depends('party', 'kind', 'date') def on_change_party(self): super().on_change_party() if self.kind == 'receivable': if self.party: with Transaction().set_context(date=self.date): self.account = self.party.account_receivable_used else: self.account = None @classmethod @ModelView.button_action('account_payment_clearing.wizard_succeed') def succeed_wizard(cls, payments): pass @classmethod @ModelView.button @Workflow.transition('succeeded') def succeed(cls, payments): pool = Pool() Line = pool.get('account.move.line') super(Payment, cls).succeed(payments) cls.set_clearing_move(payments) to_reconcile = [] for payment in payments: if (payment.line and not payment.line.reconciliation and payment.clearing_move): lines = [l for l in payment.clearing_move.lines if l.account == payment.line.account] + [payment.line] if not sum(l.debit - l.credit for l in lines): to_reconcile.append(lines) Line.reconcile(*to_reconcile) cls.reconcile_clearing(payments) cls.update_reconciled(payments) @property def clearing_account(self): transaction = Transaction() context = transaction.context with transaction.set_context(date=context.get('clearing_date')): if self.line: return self.line.account.current() elif self.account: return self.account.current() elif self.kind == 'payable': return self.party.account_payable_used elif self.kind == 'receivable': return self.party.account_receivable_used @property def clearing_party(self): if self.line: return self.line.party else: return self.party @classmethod def set_clearing_move(cls, payments): pool = Pool() Move = pool.get('account.move') moves = [] for payment in payments: move = payment._get_clearing_move() if move and not payment.clearing_move: payment.clearing_move = move moves.append(move) if moves: Move.save(moves) cls.save(payments) def _get_clearing_move(self, date=None): pool = Pool() Move = pool.get('account.move') Line = pool.get('account.move.line') Currency = pool.get('currency.currency') Period = pool.get('account.period') Date = pool.get('ir.date') if (not self.journal.clearing_account or not self.journal.clearing_journal): return if self.clearing_move: return self.clearing_move if date is None: date = Transaction().context.get('clearing_date') if date is None: with Transaction().set_context(company=self.company.id): date = Date.today() period = Period.find(self.company, date=date) local_currency = self.journal.currency == self.company.currency if not local_currency: with Transaction().set_context(date=self.date): local_amount = Currency.compute( self.journal.currency, self.amount, self.company.currency) else: local_amount = self.amount move = Move(journal=self.journal.clearing_journal, origin=self, date=date, period=period, company=self.company) line = Line() if self.kind == 'payable': line.debit, line.credit = local_amount, 0 else: line.debit, line.credit = 0, local_amount line.account = self.clearing_account if not local_currency: line.amount_second_currency = self.amount.copy_sign( line.debit - line.credit) line.second_currency = self.journal.currency line.party = (self.clearing_party if line.account.party_required else None) counterpart = Line() if self.kind == 'payable': counterpart.debit, counterpart.credit = 0, local_amount else: counterpart.debit, counterpart.credit = local_amount, 0 counterpart.account = self.journal.clearing_account.current(date) if not local_currency: counterpart.amount_second_currency = self.amount.copy_sign( counterpart.debit - counterpart.credit) counterpart.second_currency = self.journal.currency move.lines = (line, counterpart) return move @classmethod @ModelView.button @Workflow.transition('processing') @cancel_clearing_move def proceed(cls, payments): super().proceed(payments) @classmethod @ModelView.button @Workflow.transition('failed') @cancel_clearing_move def fail(cls, payments): super(Payment, cls).fail(payments) @classmethod def update_reconciled(cls, payments): for payment in payments: if payment.clearing_move: payment.clearing_reconciled = all( l.reconciliation for l in payment.clearing_lines) else: payment.clearing_reconciled = False cls.save(payments) @classmethod def reconcile_clearing(cls, payments): pool = Pool() MoveLine = pool.get('account.move.line') Group = pool.get('account.payment.group') to_reconcile = [] for payment in payments: if not payment.clearing_move: continue clearing_account = payment.journal.clearing_account if not clearing_account or not clearing_account.reconcile: continue lines = [l for l in payment.clearing_lines if not l.reconciliation] if lines and not sum((l.debit - l.credit) for l in lines): to_reconcile.append(lines) if to_reconcile: MoveLine.reconcile(*to_reconcile) Group.reconcile_clearing( Group.browse(list({p.group for p in payments if p.group}))) @property def clearing_lines(self): clearing_account = self.journal.clearing_account if self.clearing_move: for line in self.clearing_move.lines: if line.account == clearing_account: yield line @classmethod def copy(cls, payments, default=None): if default is None: default = {} else: default = default.copy() default.setdefault('clearing_move') return super(Payment, cls).copy(payments, default=default) class Group(metaclass=PoolMeta): __name__ = 'account.payment.group' clearing_reconciled = fields.Function(fields.Boolean( "Clearing Reconciled", help="All payments in the group are reconciled."), 'get_reconciled', searcher='search_reconciled') @classmethod def get_reconciled(cls, groups, name): pool = Pool() Payment = pool.get('account.payment') payment = Payment.__table__() cursor = Transaction().connection.cursor() result = defaultdict() column = Coalesce(payment.clearing_reconciled, False) if backend.name == 'sqlite': column = Min(column) else: column = BoolAnd(column) for sub_groups in grouped_slice(groups): cursor.execute(*payment.select( payment.group, column, where=reduce_ids(payment.group, sub_groups), group_by=payment.group)) result.update(cursor) return result @classmethod def search_reconciled(cls, name, clause): pool = Pool() Payment = pool.get('account.payment') payment = Payment.__table__() _, operator, value = clause Operator = fields.SQL_OPERATORS[operator] column = Coalesce(payment.clearing_reconciled, False) if backend.name == 'sqlite': column = Min(column) else: column = BoolAnd(column) query = payment.select( payment.group, having=Operator(column, value), group_by=payment.group) return [('id', 'in', query)] @classmethod def reconcile_clearing(cls, groups): pool = Pool() MoveLine = pool.get('account.move.line') to_reconcile = [] for group in groups: clearing_account = group.journal.clearing_account if not clearing_account or not clearing_account.reconcile: continue lines = [l for l in group.clearing_lines if not l.reconciliation] if lines and not sum((l.debit - l.credit) for l in lines): to_reconcile.append(lines) if to_reconcile: MoveLine.reconcile(*to_reconcile) @property def clearing_lines(self): for payment in self.payments: yield from payment.clearing_lines class Succeed(Wizard): "Succeed Payment" __name__ = 'account.payment.succeed' start = StateView('account.payment.succeed.start', 'account_payment_clearing.succeed_start_view_form', [ Button('Cancel', 'end', 'tryton-cancel'), Button('Succeed', 'succeed', 'tryton-ok', default=True), ]) succeed = StateTransition() def transition_succeed(self): with Transaction().set_context(clearing_date=self.start.date): self.model.succeed(self.records) return 'end' class SucceedStart(ModelView): "Succeed Payment" __name__ = 'account.payment.succeed.start' date = fields.Date("Date", required=True) @classmethod def default_date(cls): pool = Pool() Date = pool.get('ir.date') return Date.today() ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1698685598.0 trytond_account_payment_clearing-7.0.5/payment.xml0000644000175000017500000000454214517761236020673 0ustar00cedced account.payment.journal payment_journal_form account.payment payment_form account.payment payment_list account.payment.group payment_group_list Succeed Payments account.payment.succeed account.payment account.payment.succeed.start form succeed_start_form succeed_wizard Succeed account.payment.journal|cron_post_clearing_moves days ././@PaxHeader0000000000000000000000000000003400000000000010212 xustar0028 mtime=1739705952.3336895 trytond_account_payment_clearing-7.0.5/setup.cfg0000644000175000017500000000004614754347140020305 0ustar00cedced[egg_info] tag_build = tag_date = 0 ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1725720314.0 trytond_account_payment_clearing-7.0.5/setup.py0000755000175000017500000001143114667063372020206 0ustar00cedced#!/usr/bin/env python3 # This file is part of Tryton. The COPYRIGHT file at the top level of # this repository contains the full copyright notices and license terms. import io import os import re from configparser import ConfigParser from setuptools import find_packages, setup def read(fname): content = io.open( os.path.join(os.path.dirname(__file__), fname), 'r', encoding='utf-8').read() content = re.sub( r'(?m)^\.\. toctree::\r?\n((^$|^\s.*$)\r?\n)*', '', content) return content def get_require_version(name): require = '%s >= %s.%s, < %s.%s' require %= (name, major_version, minor_version, major_version, minor_version + 1) return require config = ConfigParser() config.read_file(open(os.path.join(os.path.dirname(__file__), 'tryton.cfg'))) info = dict(config.items('tryton')) for key in ('depends', 'extras_depend', 'xml'): if key in info: info[key] = info[key].strip().splitlines() version = info.get('version', '0.0.1') major_version, minor_version, _ = version.split('.', 2) major_version = int(major_version) minor_version = int(minor_version) name = 'trytond_account_payment_clearing' if minor_version % 2: download_url = '' else: download_url = 'http://downloads.tryton.org/%s.%s/' % ( major_version, minor_version) requires = [] for dep in info.get('depends', []): if not re.match(r'(ir|res)(\W|$)', dep): requires.append(get_require_version('trytond_%s' % dep)) requires.append(get_require_version('trytond')) tests_require = [get_require_version('proteus'), get_require_version('trytond_account_statement'), get_require_version('trytond_account_statement_rule'), get_require_version('trytond_account_invoice'), ] setup(name=name, version=version, description='Tryton module for payment clearing', long_description=read('README.rst'), author='Tryton', author_email='foundation@tryton.org', url='http://www.tryton.org/', download_url=download_url, project_urls={ "Bug Tracker": 'https://bugs.tryton.org/', "Documentation": ( 'https://docs.tryton.org/' 'modules-account-payment-clearing'), "Forum": 'https://www.tryton.org/forum', "Source Code": 'https://code.tryton.org/tryton', }, keywords='tryton account payment clearing', package_dir={'trytond.modules.account_payment_clearing': '.'}, packages=( ['trytond.modules.account_payment_clearing'] + ['trytond.modules.account_payment_clearing.%s' % p for p in find_packages()] ), package_data={ 'trytond.modules.account_payment_clearing': (info.get('xml', []) + ['tryton.cfg', 'view/*.xml', 'locale/*.po', '*.fodt', 'icons/*.svg', 'tests/*.rst']), }, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Environment :: Plugins', 'Framework :: Tryton', 'Intended Audience :: Developers', 'Intended Audience :: Financial and Insurance Industry', 'Intended Audience :: Legal Industry', 'License :: OSI Approved :: ' 'GNU General Public License v3 or later (GPLv3+)', 'Natural Language :: Bulgarian', 'Natural Language :: Catalan', 'Natural Language :: Chinese (Simplified)', 'Natural Language :: Czech', 'Natural Language :: Dutch', 'Natural Language :: English', 'Natural Language :: Finnish', 'Natural Language :: French', 'Natural Language :: German', 'Natural Language :: Hungarian', 'Natural Language :: Indonesian', 'Natural Language :: Italian', 'Natural Language :: Persian', 'Natural Language :: Polish', 'Natural Language :: Portuguese (Brazilian)', 'Natural Language :: Romanian', 'Natural Language :: Russian', 'Natural Language :: Slovenian', 'Natural Language :: Spanish', 'Natural Language :: Turkish', 'Natural Language :: Ukrainian', 'Operating System :: OS Independent', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', 'Programming Language :: Python :: 3.12', 'Programming Language :: Python :: Implementation :: CPython', 'Topic :: Office/Business', 'Topic :: Office/Business :: Financial :: Accounting', ], license='GPL-3', python_requires='>=3.8', install_requires=requires, extras_require={ 'test': tests_require, }, zip_safe=False, entry_points=""" [trytond.modules] account_payment_clearing = trytond.modules.account_payment_clearing """, ) ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1728937047.0 trytond_account_payment_clearing-7.0.5/statement.py0000644000175000017500000002064314703276127021047 0ustar00cedced# This file is part of Tryton. The COPYRIGHT file at the top level of # this repository contains the full copyright notices and license terms. from sql import Null from sql.operators import Concat from trytond.model import fields from trytond.pool import Pool, PoolMeta from trytond.pyson import Eval, If from trytond.transaction import Transaction class Payment(metaclass=PoolMeta): __name__ = 'account.payment' statement_lines = fields.One2Many( 'account.statement.line', 'related_to', "Statement Lines", readonly=True) @property def clearing_lines(self): clearing_account = self.journal.clearing_account yield from super().clearing_lines for statement_line in self.statement_lines: if statement_line.move: for line in statement_line.move.lines: if line.account == clearing_account: yield line class PaymentGroup(metaclass=PoolMeta): __name__ = 'account.payment.group' statement_lines = fields.One2Many( 'account.statement.line', 'related_to', "Statement Lines", readonly=True) @property def clearing_lines(self): clearing_account = self.journal.clearing_account yield from super().clearing_lines for statement_line in self.statement_lines: if statement_line.move: for line in statement_line.move.lines: if line.account == clearing_account: yield line class Statement(metaclass=PoolMeta): __name__ = 'account.statement' @classmethod def _process_payments(cls, moves): pool = Pool() Payment = pool.get('account.payment') payments = super()._process_payments(moves) if payments: Payment.__queue__.reconcile_clearing(payments) return payments def _group_key(self, line): key = super(Statement, self)._group_key(line) if hasattr(line, 'payment'): key += (('payment', line.payment),) return key class StatementLine(metaclass=PoolMeta): __name__ = 'account.statement.line' @classmethod def __setup__(cls): super(StatementLine, cls).__setup__() cls.related_to.domain['account.payment'] = [ cls.related_to.domain.get('account.payment', []), If(Eval('statement_state') == 'draft', ('clearing_reconciled', '!=', True), ()), ] cls.related_to.domain['account.payment.group'] = [ ('company', '=', Eval('company', -1)), ('currency', '=', Eval('currency', -1)), If(Eval('statement_state') == 'draft', ('clearing_reconciled', '!=', True), ()), ] @classmethod def __register__(cls, module): table = cls.__table__() super().__register__(module) table_h = cls.__table_handler__(module) cursor = Transaction().connection.cursor() # Migration from 6.2: replace payment by related_to if table_h.column_exist('payment'): cursor.execute(*table.update( [table.related_to], [Concat('account.payment,', table.payment)], where=table.payment != Null)) table_h.drop_column('payment') # Migration from 6.2: replace payment_group by related_to if table_h.column_exist('payment_group'): cursor.execute(*table.update( [table.related_to], [Concat('account.payment.group,', table.payment_group)], where=table.payment_group != Null)) table_h.drop_column('payment_group') @classmethod def _get_relations(cls): return super()._get_relations() + ['account.payment.group'] @property @fields.depends('related_to') def payment_group(self): pool = Pool() PaymentGroup = pool.get('account.payment.group') related_to = getattr(self, 'related_to', None) if isinstance(related_to, PaymentGroup) and related_to.id >= 0: return related_to @payment_group.setter def payment_group(self, value): self.related_to = value @fields.depends(methods=['payment', 'payment_group']) def on_change_related_to(self): super().on_change_related_to() if self.payment: clearing_account = self.payment.journal.clearing_account if clearing_account: self.account = clearing_account if self.payment_group: self.party = None clearing_account = self.payment_group.journal.clearing_account if clearing_account: self.account = clearing_account def payments(self): yield from super().payments() if self.payment_group: yield self.payment_group.kind, self.payment_group.payments @fields.depends('party', methods=['payment']) def on_change_party(self): super(StatementLine, self).on_change_party() if self.payment: if self.payment.party != self.party: self.payment = None if self.party: self.payment_group = None @fields.depends('account', methods=['payment', 'payment_group']) def on_change_account(self): super(StatementLine, self).on_change_account() if self.payment: clearing_account = self.payment.journal.clearing_account elif self.payment_group: clearing_account = self.payment_group.journal.clearing_account else: return if self.account != clearing_account: self.payment = None @classmethod def post_move(cls, lines): pool = Pool() Move = pool.get('account.move') super(StatementLine, cls).post_move(lines) Move.post([l.payment.clearing_move for l in lines if l.payment and l.payment.clearing_move and l.payment.clearing_move.state == 'draft']) class StatementRuleLine(metaclass=PoolMeta): __name__ = 'account.statement.rule.line' def _get_related_to(self, origin, keywords, party=None, amount=0): return super()._get_related_to( origin, keywords, party=party, amount=amount) | { self._get_payment(origin, keywords, party=party, amount=amount), self._get_payment_group(origin, keywords), } def _get_party_from(self, related_to): pool = Pool() Payment = pool.get('account.payment') party = super()._get_party_from(related_to) if isinstance(related_to, Payment): party = related_to.party return party def _get_account_from(self, related_to): pool = Pool() Payment = pool.get('account.payment') PaymentGroup = pool.get('account.payment.group') account = super()._get_account_from(related_to) if isinstance(related_to, (Payment, PaymentGroup)): account = related_to.journal.clearing_account return account def _get_payment(self, origin, keywords, party=None, amount=0): pool = Pool() Payment = pool.get('account.payment') if keywords.get('payment'): domain = [ ('rec_name', '=', keywords['payment']), ('company', '=', origin.company.id), ('currency', '=', origin.currency.id), ('state', 'in', ['processing', 'succeeded', 'failed']), ('clearing_reconciled', '!=', True), ] if party: domain.append(('party', '=', party.id)) if amount > 0: domain.append(('kind', '=', 'receivable')) elif amount < 0: domain.append(('kind', '=', 'payable')) payments = Payment.search(domain) if len(payments) == 1: payment, = payments return payment def _get_payment_group(self, origin, keywords): pool = Pool() PaymentGroup = pool.get('account.payment.group') if keywords.get('payment_group'): groups = PaymentGroup.search([ ('rec_name', '=', keywords['payment_group']), ('company', '=', origin.company.id), ('currency', '=', origin.currency.id), ('clearing_reconciled', '!=', True), ]) if len(groups) == 1: group, = groups return group ././@PaxHeader0000000000000000000000000000003300000000000010211 xustar0027 mtime=1739705952.330356 trytond_account_payment_clearing-7.0.5/tests/0000755000175000017500000000000014754347140017626 5ustar00cedced././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1698685598.0 trytond_account_payment_clearing-7.0.5/tests/__init__.py0000644000175000017500000000022014517761236021734 0ustar00cedced# This file is part of Tryton. The COPYRIGHT file at the top level of # this repository contains the full copyright notices and license terms. ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1707150267.0 trytond_account_payment_clearing-7.0.5/tests/scenario_account_negative_payment_clearing.rst0000644000175000017500000000636514560205673031173 0ustar00cedced================================== Negative Payment Clearing Scenario ================================== Imports:: >>> import datetime as dt >>> from decimal import Decimal >>> from proteus import Model, Wizard >>> from trytond.tests.tools import activate_modules >>> from trytond.modules.company.tests.tools import create_company, \ ... get_company >>> from trytond.modules.account.tests.tools import create_fiscalyear, \ ... create_chart, get_accounts >>> today = dt.date.today() Activate modules:: >>> config = activate_modules(['account_payment_clearing']) Create company:: >>> _ = create_company() >>> company = get_company() Create fiscal year:: >>> fiscalyear = create_fiscalyear(company) >>> fiscalyear.click('create_period') Create chart of accounts:: >>> _ = create_chart(company) >>> accounts = get_accounts(company) >>> receivable = accounts['receivable'] >>> payable = accounts['payable'] >>> cash = accounts['cash'] >>> expense = accounts['expense'] >>> Account = Model.get('account.account') >>> bank_clearing = Account(parent=payable.parent) >>> bank_clearing.name = 'Bank Clearing' >>> bank_clearing.type = payable.type >>> bank_clearing.reconcile = True >>> bank_clearing.deferral = True >>> bank_clearing.save() >>> Journal = Model.get('account.journal') >>> expense_journal, = Journal.find([('code', '=', 'EXP')]) Create payment journal:: >>> PaymentJournal = Model.get('account.payment.journal') >>> payment_journal = PaymentJournal(name='Manual', ... process_method='manual', clearing_journal=expense_journal, ... clearing_account=bank_clearing) >>> payment_journal.save() Create parties:: >>> Party = Model.get('party.party') >>> supplier = Party(name='Supplier') >>> supplier.save() Create payable move:: >>> Move = Model.get('account.move') >>> move = Move() >>> move.journal = expense_journal >>> line = move.lines.new( ... account=payable, party=supplier, maturity_date=today, ... debit=Decimal('-50.00')) >>> line = move.lines.new(account=expense, credit=Decimal('-50.00')) >>> move.click('post') >>> payable.reload() >>> payable.balance Decimal('-50.00') Pay the line:: >>> Payment = Model.get('account.payment') >>> line, = [l for l in move.lines if l.account == payable] >>> pay_line = Wizard('account.move.line.pay', [line]) >>> pay_line.execute('next_') >>> pay_line.form.journal = payment_journal >>> pay_line.execute('next_') >>> payment, = Payment.find([('state', '=', 'draft')]) >>> payment.amount Decimal('50.00') >>> payment.click('submit') >>> payment.click('approve') >>> payment.state 'approved' >>> process_payment = payment.click('process_wizard') >>> payment.state 'processing' Succeed payment:: >>> succeed = payment.click('succeed_wizard') >>> succeed.execute('succeed') >>> payment.state 'succeeded' >>> payment.clearing_move.state 'draft' >>> payable.reload() >>> payable.balance Decimal('0.00') >>> bank_clearing.reload() >>> bank_clearing.balance Decimal('-50.00') >>> bool(payment.line.reconciliation) True ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1728936993.0 trytond_account_payment_clearing-7.0.5/tests/scenario_account_payment_clearing.rst0000644000175000017500000003342014703276041027275 0ustar00cedced========================= Payment Clearing Scenario ========================= Imports:: >>> import datetime as dt >>> from decimal import Decimal >>> from proteus import Model, Wizard >>> from trytond.tests.tools import activate_modules >>> from trytond.modules.currency.tests.tools import get_currency >>> from trytond.modules.company.tests.tools import create_company, \ ... get_company >>> from trytond.modules.account.tests.tools import create_fiscalyear, \ ... create_chart, get_accounts >>> from trytond.modules.account_invoice.tests.tools import \ ... set_fiscalyear_invoice_sequences >>> today = dt.date.today() >>> yesterday = today - dt.timedelta(days=1) >>> first = today + dt.timedelta(days=1) Activate modules:: >>> config = activate_modules(['account_payment_clearing', 'account_statement']) Create company:: >>> _ = create_company() >>> company = get_company() Create fiscal year:: >>> fiscalyear = set_fiscalyear_invoice_sequences( ... create_fiscalyear(company, (yesterday, first))) >>> fiscalyear.click('create_period') Create chart of accounts:: >>> _ = create_chart(company) >>> accounts = get_accounts(company) >>> receivable = accounts['receivable'] >>> revenue = accounts['revenue'] >>> expense = accounts['expense'] >>> payable = accounts['payable'] >>> cash = accounts['cash'] >>> Account = Model.get('account.account') >>> bank_clearing = Account(parent=payable.parent) >>> bank_clearing.name = 'Bank Clearing' >>> bank_clearing.type = payable.type >>> bank_clearing.reconcile = True >>> bank_clearing.deferral = True >>> bank_clearing.save() >>> Journal = Model.get('account.journal') >>> expense_journal, = Journal.find([('code', '=', 'EXP')]) >>> revenue_journal, = Journal.find([('code', '=', 'REV')]) Create payment journal:: >>> PaymentJournal = Model.get('account.payment.journal') >>> payment_journal = PaymentJournal(name='Manual', ... process_method='manual', ... clearing_journal=expense_journal, ... clearing_account=bank_clearing, ... clearing_posting_delay=dt.timedelta(1)) >>> payment_journal.save() Create parties:: >>> Party = Model.get('party.party') >>> supplier = Party(name='Supplier') >>> supplier.save() >>> customer = Party(name='Customer') >>> customer.save() Create payable move:: >>> Move = Model.get('account.move') >>> move = Move() >>> move.journal = expense_journal >>> line = move.lines.new( ... account=payable, party=supplier, maturity_date=today, ... credit=Decimal('50.00')) >>> line = move.lines.new(account=expense, debit=Decimal('50.00')) >>> move.click('post') >>> payable.reload() >>> payable.balance Decimal('-50.00') Partially pay the line:: >>> Payment = Model.get('account.payment') >>> line, = [l for l in move.lines if l.account == payable] >>> pay_line = Wizard('account.move.line.pay', [line]) >>> pay_line.execute('next_') >>> pay_line.form.journal = payment_journal >>> pay_line.execute('next_') >>> payment, = Payment.find() >>> payment.amount = Decimal('30.0') >>> payment.click('submit') >>> payment.click('approve') >>> payment.state 'approved' >>> process_payment = payment.click('process_wizard') >>> payment.state 'processing' Succeed payment:: >>> succeed = payment.click('succeed_wizard') >>> succeed.form.date = first >>> succeed.execute('succeed') >>> payment.state 'succeeded' >>> payment.clearing_move.date == first True >>> payment.clearing_move.state 'draft' >>> bool(payment.clearing_reconciled) False >>> payable.reload() >>> payable.balance Decimal('-20.00') >>> bank_clearing.reload() >>> bank_clearing.balance Decimal('-30.00') >>> payment.line.reconciliation Fail payment:: >>> payment.click('fail') >>> payment.state 'failed' >>> payment.clearing_move >>> bool(payment.clearing_reconciled) False >>> payment.line.reconciliation >>> payable.reload() >>> payable.balance Decimal('-50.00') >>> bank_clearing.reload() >>> bank_clearing.balance Decimal('0.00') Pay the line:: >>> line, = [l for l in move.lines if l.account == payable] >>> pay_line = Wizard('account.move.line.pay', [line]) >>> pay_line.execute('next_') >>> pay_line.form.journal = payment_journal >>> pay_line.execute('next_') >>> payment, = Payment.find([('state', '=', 'draft')]) >>> payment.amount Decimal('50.00') >>> payment.click('submit') >>> payment.click('approve') >>> payment.state 'approved' >>> process_payment = payment.click('process_wizard') >>> payment.state 'processing' Succeed payment:: >>> succeed = payment.click('succeed_wizard') >>> succeed.execute('succeed') >>> payment.state 'succeeded' >>> payment.clearing_move.state 'draft' >>> payable.reload() >>> payable.balance Decimal('0.00') >>> bank_clearing.reload() >>> bank_clearing.balance Decimal('-50.00') >>> bool(payment.line.reconciliation) True Fail payment:: >>> payment.click('fail') >>> payment.state 'failed' >>> payment.clearing_move >>> payment.line.reconciliation Succeed payment and post clearing:: >>> succeed = payment.click('succeed_wizard') >>> succeed.form.date = yesterday >>> succeed.execute('succeed') >>> payment.state 'succeeded' >>> Cron = Model.get('ir.cron') >>> Company = Model.get('company.company') >>> cron_post_clearing_moves, = Cron.find([ ... ('method', '=', ... 'account.payment.journal|cron_post_clearing_moves'), ... ]) >>> cron_post_clearing_moves.companies.append(Company(company.id)) >>> cron_post_clearing_moves.click('run_once') >>> payment.reload() >>> clearing_move = payment.clearing_move >>> clearing_move.state 'posted' Fail payment with posted clearing:: >>> payment.click('fail') >>> payment.state 'failed' >>> payment.clearing_move >>> bool(payment.clearing_reconciled) False >>> payment.line.reconciliation >>> clearing_move.reload() >>> line, = [l for l in clearing_move.lines ... if l.account == payment.line.account] >>> bool(line.reconciliation) True Succeed payment to use on statement:: >>> succeed = payment.click('succeed_wizard') >>> succeed.execute('succeed') >>> payment.state 'succeeded' Create statement:: >>> StatementJournal = Model.get('account.statement.journal') >>> Statement = Model.get('account.statement') >>> account_journal, = Journal.find([('code', '=', 'STA')], limit=1) >>> statement_journal = StatementJournal(name='Test', ... journal=account_journal, ... account=cash, ... ) >>> statement_journal.save() >>> statement = Statement(name='test', ... journal=statement_journal, ... start_balance=Decimal('0.00'), ... end_balance=Decimal('-50.00'), ... ) Create a line for the payment:: >>> line = statement.lines.new(date=today) >>> line.amount = Decimal('-50.00') >>> line.related_to = payment >>> line.party == supplier True >>> line.account == bank_clearing True Remove the party must remove payment:: >>> line.party = None >>> line.related_to >>> line.related_to = payment Change account must remove payment:: >>> line.account = receivable >>> line.related_to >>> line.account = None >>> line.related_to = payment Validate statement:: >>> statement.click('validate_statement') >>> statement.state 'validated' >>> line, = statement.lines >>> move_line, = [l for l in line.move.lines ... if l.account == bank_clearing] >>> bool(move_line.reconciliation) True >>> bank_clearing.reload() >>> bank_clearing.balance Decimal('0.00') >>> payment.reload() >>> bool(payment.clearing_reconciled) True >>> bool(payment.group.clearing_reconciled) True Unreconcile payment clearing to allow reimbursement:: >>> move_line.reconciliation.delete() >>> payment.reload() >>> bool(payment.clearing_reconciled) False >>> bool(payment.group.clearing_reconciled) False Create a statement that reimburse the payment group:: >>> statement = Statement(name='test', ... journal=statement_journal, ... start_balance=Decimal('-50.00'), ... end_balance=Decimal('0.00'), ... ) >>> line = statement.lines.new(date=today) >>> line.related_to = payment.group >>> line.account == bank_clearing True >>> line.amount = Decimal('50.00') >>> statement.click('validate_statement') >>> statement.state 'validated' Payment must be failed:: >>> payment.reload() >>> payment.state 'failed' Payment in a foreign currency ----------------------------- Create a payment journal in Euro:: >>> euro = get_currency('EUR') >>> euro_payment_journal = PaymentJournal( ... name='Euro Payments', process_method='manual', currency=euro, ... clearing_journal=expense_journal, clearing_account=bank_clearing) >>> euro_payment_journal.save() Create a payable move:: >>> move = Move() >>> move.journal = expense_journal >>> line = move.lines.new( ... account=payable, party=supplier, maturity_date=today, ... credit=Decimal('20.00'), ... amount_second_currency=Decimal('-40.00'), second_currency=euro) >>> line = move.lines.new( ... account=expense, debit=Decimal('20.00'), ... amount_second_currency=Decimal('40.00'), second_currency=euro) >>> move.click('post') Pay the line:: >>> line, = [l for l in move.lines if l.account == payable] >>> pay_line = Wizard('account.move.line.pay', [line]) >>> pay_line.execute('next_') >>> pay_line.form.journal = euro_payment_journal >>> pay_line.execute('next_') >>> payment, = Payment.find([('state', '=', 'draft')]) >>> payment.amount Decimal('40.00') >>> payment.click('submit') >>> payment.click('approve') >>> process_payment = payment.click('process_wizard') >>> payment.state 'processing' Succeed payment:: >>> succeed = payment.click('succeed_wizard') >>> succeed.execute('succeed') >>> debit_line, = [l for l in payment.clearing_move.lines if l.debit > 0] >>> debit_line.debit Decimal('20.00') >>> debit_line.amount_second_currency Decimal('40.00') Create receivable move:: >>> move = Move() >>> move.journal = revenue_journal >>> line = move.lines.new( ... account=receivable, party=customer, maturity_date=today, ... debit=Decimal('50.00'), second_currency=euro, ... amount_second_currency=Decimal('100.0')) >>> line = move.lines.new(account=revenue, credit=Decimal('50.00')) >>> move.click('post') >>> receivable.reload() >>> receivable.balance Decimal('50.00') Pay the line:: >>> Payment = Model.get('account.payment') >>> line, = [l for l in move.lines if l.account == receivable] >>> pay_line = Wizard('account.move.line.pay', [line]) >>> pay_line.execute('next_') >>> pay_line.form.journal = euro_payment_journal >>> pay_line.execute('next_') >>> payment, = Payment.find([('state', '=', 'draft')]) >>> payment.amount Decimal('100.0') >>> payment.click('submit') >>> process_payment = payment.click('process_wizard') >>> payment.state 'processing' Succeed payment:: >>> succeed = payment.click('succeed_wizard') >>> succeed.execute('succeed') >>> credit_line, = [l for l in payment.clearing_move.lines if l.credit > 0] >>> credit_line.credit Decimal('50.00') >>> credit_line.amount_second_currency Decimal('-100.0') Validate Statement with processing payment -------------------------------------------- Create a payable move:: >>> move = Move() >>> move.journal = expense_journal >>> line = move.lines.new( ... account=payable, party=supplier, maturity_date=today, ... credit=Decimal('50.00')) >>> line = move.lines.new(account=expense, debit=Decimal('50.00')) >>> move.click('post') Create a processing payment for the move:: >>> Payment = Model.get('account.payment') >>> line, = [l for l in move.lines if l.account == payable] >>> pay_line = Wizard('account.move.line.pay', [line]) >>> pay_line.execute('next_') >>> pay_line.form.journal = payment_journal >>> pay_line.execute('next_') >>> payment, = Payment.find([('line', '=', line.id)]) >>> payment.click('submit') >>> payment.click('approve') >>> payment.state 'approved' >>> process_payment = payment.click('process_wizard') >>> payment.state 'processing' Create statement for the payment:: >>> statement = Statement(name='test', ... journal=statement_journal, ... start_balance=Decimal('0.00'), ... end_balance=Decimal('-50.00')) >>> line = statement.lines.new(date=yesterday) >>> line.amount = Decimal('-50.00') >>> line.related_to = payment >>> line.party == supplier True >>> line.account == bank_clearing True >>> statement.save() Validate statement and check the payment is confirmed:: >>> statement.click('validate_statement') >>> statement.state 'validated' >>> line, = statement.lines >>> move_line, = [l for l in line.move.lines ... if l.account == bank_clearing] >>> bool(move_line.reconciliation) True >>> payment.reload() >>> payment.state 'succeeded' >>> bool(payment.clearing_reconciled) True >>> debit_line, = [l for l in payment.clearing_move.lines if l.debit > 0] >>> debit_line.debit Decimal('50.00') >>> debit_line.date == yesterday True ././@PaxHeader0000000000000000000000000000021000000000000010206 xustar00114 path=trytond_account_payment_clearing-7.0.5/tests/scenario_account_payment_clearing_invoice_amount_to_pay.rst 22 mtime=1728936993.0 trytond_account_payment_clearing-7.0.5/tests/scenario_account_payment_clearing_invoice_amount_to_pay0000644000175000017500000001235514703276041033144 0ustar00cedced====================================== Payment Clearing Invoice Amount to Pay ====================================== Imports:: >>> from decimal import Decimal >>> from proteus import Model, Wizard >>> from trytond.tests.tools import activate_modules >>> from trytond.modules.currency.tests.tools import get_currency >>> from trytond.modules.company.tests.tools import ( ... create_company, get_company) >>> from trytond.modules.account.tests.tools import ( ... create_fiscalyear, create_chart, get_accounts) >>> from trytond.modules.account_invoice.tests.tools import ( ... set_fiscalyear_invoice_sequences) Activate modules:: >>> config = activate_modules( ... ['account_payment_clearing', 'account_invoice']) Create company:: >>> _ = create_company() >>> company = get_company() Create fiscal year:: >>> fiscalyear = set_fiscalyear_invoice_sequences( ... create_fiscalyear(company)) >>> fiscalyear.click('create_period') Create chart of accounts:: >>> _ = create_chart(company) >>> accounts = get_accounts(company) >>> receivable = accounts['receivable'] >>> revenue = accounts['revenue'] >>> expense = accounts['expense'] >>> payable = accounts['payable'] >>> cash = accounts['cash'] >>> Account = Model.get('account.account') >>> bank_clearing = Account(parent=payable.parent) >>> bank_clearing.name = 'Bank Clearing' >>> bank_clearing.type = payable.type >>> bank_clearing.reconcile = True >>> bank_clearing.deferral = True >>> bank_clearing.save() >>> Journal = Model.get('account.journal') >>> expense_journal, = Journal.find([('code', '=', 'EXP')]) >>> revenue_journal, = Journal.find([('code', '=', 'REV')]) Create payment journal:: >>> PaymentJournal = Model.get('account.payment.journal') >>> payment_journal = PaymentJournal(name='No Clearing', ... process_method='manual') >>> payment_journal.save() >>> clearing_journal = PaymentJournal(name='Clearing', ... process_method='manual', ... clearing_journal=expense_journal, ... clearing_account=bank_clearing) >>> clearing_journal.save() Create parties:: >>> Party = Model.get('party.party') >>> supplier = Party(name='Supplier') >>> supplier.save() >>> customer = Party(name='Customer') >>> customer.save() Create and pay an invoice without clearing:: >>> Invoice = Model.get('account.invoice') >>> invoice = Invoice() >>> invoice.party = customer >>> line = invoice.lines.new() >>> line.account = revenue >>> line.quantity = 1 >>> line.unit_price = Decimal('100') >>> invoice.save() >>> invoice.click('post') >>> invoice.amount_to_pay Decimal('100.00') >>> paid_line, = [l for l in invoice.move.lines if l.account == receivable] >>> pay_line = Wizard('account.move.line.pay', [paid_line]) >>> pay_line.execute('next_') >>> pay_line.form.journal = payment_journal >>> pay_line.execute('next_') >>> Payment = Model.get('account.payment') >>> payment, = Payment.find() >>> payment.click('submit') >>> payment.state 'submitted' >>> process_payment = payment.click('process_wizard') >>> succeed = payment.click('succeed_wizard') >>> succeed.execute('succeed') >>> invoice.reload() >>> invoice.amount_to_pay Decimal('0.00') Create an invoice and pay it:: >>> invoice1 = Invoice() >>> invoice1.party = customer >>> line = invoice1.lines.new() >>> line.account = revenue >>> line.quantity = 1 >>> line.unit_price = Decimal('100') >>> invoice1.save() >>> invoice1.click('post') >>> invoice1.amount_to_pay Decimal('100.00') >>> paid_line, = [l for l in invoice1.move.lines if l.account == receivable] >>> pay_line = Wizard('account.move.line.pay', [paid_line]) >>> pay_line.execute('next_') >>> pay_line.form.journal = clearing_journal >>> pay_line.execute('next_') >>> payment, = Payment.find([('state', '=', 'draft')]) >>> payment.click('submit') >>> payment.state 'submitted' >>> process_payment = payment.click('process_wizard') >>> succeed = payment.click('succeed_wizard') >>> succeed.execute('succeed') >>> invoice1.reload() >>> invoice1.amount_to_pay Decimal('0') Unreconcile the payment line and check the amount to pay:: >>> other_line, = [l for l in paid_line.reconciliation.lines ... if l != paid_line] >>> unreconcile = Wizard('account.move.unreconcile_lines', [paid_line]) >>> invoice1.reload() >>> invoice1.amount_to_pay Decimal('0.00') Create a second invoice and reconcile its line to pay with the payment:: >>> invoice2 = Invoice() >>> invoice2.party = customer >>> line = invoice2.lines.new() >>> line.account = revenue >>> line.quantity = 1 >>> line.unit_price = Decimal('100') >>> invoice2.save() >>> invoice2.click('post') >>> inv2_line, = [l for l in invoice2.move.lines if l.account == receivable] >>> reconcile = Wizard( ... 'account.move.reconcile_lines', [inv2_line, other_line]) >>> invoice1.reload() >>> invoice1.amount_to_pay Decimal('100.00') >>> invoice2.reload() >>> invoice2.amount_to_pay Decimal('0') ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1738183523.0 trytond_account_payment_clearing-7.0.5/tests/test_module.py0000644000175000017500000000073714746511543022534 0ustar00cedced# This file is part of Tryton. The COPYRIGHT file at the top level of # this repository contains the full copyright notices and license terms. from trytond.modules.company.tests import CompanyTestMixin from trytond.tests.test_tryton import ModuleTestCase class AccountPaymentTestCase(CompanyTestMixin, ModuleTestCase): 'Test Account Payment module' module = 'account_payment_clearing' extras = ['account_statement', 'account_statement_rule'] del ModuleTestCase ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1698685598.0 trytond_account_payment_clearing-7.0.5/tests/test_scenario.py0000644000175000017500000000045014517761236023044 0ustar00cedced# This file is part of Tryton. The COPYRIGHT file at the top level of # this repository contains the full copyright notices and license terms. from trytond.tests.test_tryton import load_doc_tests def load_tests(*args, **kwargs): return load_doc_tests(__name__, __file__, *args, **kwargs) ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1698685598.0 trytond_account_payment_clearing-7.0.5/tox.ini0000644000175000017500000000107014517761236020000 0ustar00cedced[tox] envlist = {py38,py39,py310,py311,py312}-{sqlite,postgresql} [testenv] usedevelop = true extras = test commands = coverage run --omit=*/tests/* -m xmlrunner discover -s tests {posargs} commands_post = coverage report coverage xml deps = coverage unittest-xml-reporting postgresql: psycopg2 >= 2.7.0 passenv = * setenv = sqlite: TRYTOND_DATABASE_URI={env:SQLITE_URI:sqlite://} postgresql: TRYTOND_DATABASE_URI={env:POSTGRESQL_URI:postgresql://} sqlite: DB_NAME={env:DB_NAME::memory:} postgresql: DB_NAME={env:DB_NAME:test} ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1738430303.0 trytond_account_payment_clearing-7.0.5/tryton.cfg0000644000175000017500000000025014747453537020513 0ustar00cedced[tryton] version=7.0.5 depends: company account account_payment ir extras_depend: account_statement account_statement_rule xml: payment.xml ././@PaxHeader0000000000000000000000000000003300000000000010211 xustar0027 mtime=1739705952.330356 trytond_account_payment_clearing-7.0.5/trytond_account_payment_clearing.egg-info/0000755000175000017500000000000014754347140026776 5ustar00cedced././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1739705951.0 trytond_account_payment_clearing-7.0.5/trytond_account_payment_clearing.egg-info/PKG-INFO0000644000175000017500000000643314754347137030107 0ustar00cedcedMetadata-Version: 2.2 Name: trytond_account_payment_clearing Version: 7.0.5 Summary: Tryton module for payment clearing Home-page: http://www.tryton.org/ Download-URL: http://downloads.tryton.org/7.0/ Author: Tryton Author-email: foundation@tryton.org License: GPL-3 Project-URL: Bug Tracker, https://bugs.tryton.org/ Project-URL: Documentation, https://docs.tryton.org/modules-account-payment-clearing Project-URL: Forum, https://www.tryton.org/forum Project-URL: Source Code, https://code.tryton.org/tryton Keywords: tryton account payment clearing Classifier: Development Status :: 5 - Production/Stable Classifier: Environment :: Plugins Classifier: Framework :: Tryton Classifier: Intended Audience :: Developers Classifier: Intended Audience :: Financial and Insurance Industry Classifier: Intended Audience :: Legal Industry Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+) Classifier: Natural Language :: Bulgarian Classifier: Natural Language :: Catalan Classifier: Natural Language :: Chinese (Simplified) Classifier: Natural Language :: Czech Classifier: Natural Language :: Dutch Classifier: Natural Language :: English Classifier: Natural Language :: Finnish Classifier: Natural Language :: French Classifier: Natural Language :: German Classifier: Natural Language :: Hungarian Classifier: Natural Language :: Indonesian Classifier: Natural Language :: Italian Classifier: Natural Language :: Persian Classifier: Natural Language :: Polish Classifier: Natural Language :: Portuguese (Brazilian) Classifier: Natural Language :: Romanian Classifier: Natural Language :: Russian Classifier: Natural Language :: Slovenian Classifier: Natural Language :: Spanish Classifier: Natural Language :: Turkish Classifier: Natural Language :: Ukrainian Classifier: Operating System :: OS Independent Classifier: Programming Language :: Python :: 3 Classifier: Programming Language :: Python :: 3.8 Classifier: Programming Language :: Python :: 3.9 Classifier: Programming Language :: Python :: 3.10 Classifier: Programming Language :: Python :: 3.11 Classifier: Programming Language :: Python :: 3.12 Classifier: Programming Language :: Python :: Implementation :: CPython Classifier: Topic :: Office/Business Classifier: Topic :: Office/Business :: Financial :: Accounting Requires-Python: >=3.8 License-File: LICENSE Requires-Dist: trytond_company<7.1,>=7.0 Requires-Dist: trytond_account<7.1,>=7.0 Requires-Dist: trytond_account_payment<7.1,>=7.0 Requires-Dist: trytond<7.1,>=7.0 Provides-Extra: test Requires-Dist: proteus<7.1,>=7.0; extra == "test" Requires-Dist: trytond_account_statement<7.1,>=7.0; extra == "test" Requires-Dist: trytond_account_statement_rule<7.1,>=7.0; extra == "test" Requires-Dist: trytond_account_invoice<7.1,>=7.0; extra == "test" Dynamic: author Dynamic: author-email Dynamic: classifier Dynamic: description Dynamic: download-url Dynamic: home-page Dynamic: keywords Dynamic: license Dynamic: project-url Dynamic: provides-extra Dynamic: requires-dist Dynamic: requires-python Dynamic: summary ############################### Account Payment Clearing Module ############################### The *Account Payment Clearing Module* allows to generate account move when a payment is succeeded between the receivable/payable account to a clearing account defined on the payment journal. ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1739705952.0 trytond_account_payment_clearing-7.0.5/trytond_account_payment_clearing.egg-info/SOURCES.txt0000644000175000017500000000411714754347140030665 0ustar00cedcedCHANGELOG COPYRIGHT LICENSE MANIFEST.in README.rst __init__.py account.py ir.py payment.py payment.xml setup.py statement.py tox.ini tryton.cfg ./__init__.py ./account.py ./ir.py ./payment.py ./payment.xml ./statement.py ./tryton.cfg ./locale/bg.po ./locale/ca.po ./locale/cs.po ./locale/de.po ./locale/es.po ./locale/es_419.po ./locale/et.po ./locale/fa.po ./locale/fi.po ./locale/fr.po ./locale/hu.po ./locale/id.po ./locale/it.po ./locale/lo.po ./locale/lt.po ./locale/nl.po ./locale/pl.po ./locale/pt.po ./locale/ro.po ./locale/ru.po ./locale/sl.po ./locale/tr.po ./locale/uk.po ./locale/zh_CN.po ./tests/__init__.py ./tests/scenario_account_negative_payment_clearing.rst ./tests/scenario_account_payment_clearing.rst ./tests/scenario_account_payment_clearing_invoice_amount_to_pay.rst ./tests/test_module.py ./tests/test_scenario.py ./view/payment_form.xml ./view/payment_group_list.xml ./view/payment_journal_form.xml ./view/payment_list.xml ./view/succeed_start_form.xml doc/conf.py doc/design.rst doc/index.rst doc/releases.rst doc/requirements-doc.txt locale/bg.po locale/ca.po locale/cs.po locale/de.po locale/es.po locale/es_419.po locale/et.po locale/fa.po locale/fi.po locale/fr.po locale/hu.po locale/id.po locale/it.po locale/lo.po locale/lt.po locale/nl.po locale/pl.po locale/pt.po locale/ro.po locale/ru.po locale/sl.po locale/tr.po locale/uk.po locale/zh_CN.po tests/__init__.py tests/scenario_account_negative_payment_clearing.rst tests/scenario_account_payment_clearing.rst tests/scenario_account_payment_clearing_invoice_amount_to_pay.rst tests/test_module.py tests/test_scenario.py trytond_account_payment_clearing.egg-info/PKG-INFO trytond_account_payment_clearing.egg-info/SOURCES.txt trytond_account_payment_clearing.egg-info/dependency_links.txt trytond_account_payment_clearing.egg-info/entry_points.txt trytond_account_payment_clearing.egg-info/not-zip-safe trytond_account_payment_clearing.egg-info/requires.txt trytond_account_payment_clearing.egg-info/top_level.txt view/payment_form.xml view/payment_group_list.xml view/payment_journal_form.xml view/payment_list.xml view/succeed_start_form.xml././@PaxHeader0000000000000000000000000000020500000000000010212 xustar00111 path=trytond_account_payment_clearing-7.0.5/trytond_account_payment_clearing.egg-info/dependency_links.txt 22 mtime=1739705951.0 trytond_account_payment_clearing-7.0.5/trytond_account_payment_clearing.egg-info/dependency_links.tx0000644000175000017500000000000114754347137032666 0ustar00cedced ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1739705951.0 trytond_account_payment_clearing-7.0.5/trytond_account_payment_clearing.egg-info/entry_points.txt0000644000175000017500000000012614754347137032301 0ustar00cedced[trytond.modules] account_payment_clearing = trytond.modules.account_payment_clearing ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1698685656.0 trytond_account_payment_clearing-7.0.5/trytond_account_payment_clearing.egg-info/not-zip-safe0000644000175000017500000000000114517761330031222 0ustar00cedced ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1739705951.0 trytond_account_payment_clearing-7.0.5/trytond_account_payment_clearing.egg-info/requires.txt0000644000175000017500000000036114754347137031404 0ustar00cedcedtrytond_company<7.1,>=7.0 trytond_account<7.1,>=7.0 trytond_account_payment<7.1,>=7.0 trytond<7.1,>=7.0 [test] proteus<7.1,>=7.0 trytond_account_statement<7.1,>=7.0 trytond_account_statement_rule<7.1,>=7.0 trytond_account_invoice<7.1,>=7.0 ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1739705951.0 trytond_account_payment_clearing-7.0.5/trytond_account_payment_clearing.egg-info/top_level.txt0000644000175000017500000000001014754347137031525 0ustar00cedcedtrytond ././@PaxHeader0000000000000000000000000000003300000000000010211 xustar0027 mtime=1739705952.330356 trytond_account_payment_clearing-7.0.5/view/0000755000175000017500000000000014754347140017436 5ustar00cedced././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1698685598.0 trytond_account_payment_clearing-7.0.5/view/payment_form.xml0000644000175000017500000000122214517761236022660 0ustar00cedced