Skip to content

NEW Feature enabling Prorata charges - #14

Open
Amael-PE wants to merge 36 commits into
developfrom
backup_prorata
Open

NEW Feature enabling Prorata charges#14
Amael-PE wants to merge 36 commits into
developfrom
backup_prorata

Conversation

@Amael-PE

Copy link
Copy Markdown
Collaborator

NEW Feature enabling Prorata charges
Enabled by INVOICE_USE_PRORATA_DISCOUNT
Still todo:

  • Implement in generic pdf
  • Exportcsv action in selljournal.php
  • Recap in paiement attendu card.php
  • In order & create from client order
  • Copy from an invoice to the other (clone and from a situation)

Amael-PE and others added 30 commits January 3, 2025 20:29
NEW Progress report in situation invoice card.php
Make changes to enable selection on new invocie of the order to merge
The order to merge is then inserted wrapped in a Subtotal
* NEW import_lines_from_object for invocies now is wrapped in subtitles

* NEW new invoice suggest to merge new project orders

Make changes to enable selection on new invocie of the order to merge
The order to merge is then inserted wrapped in a Subtotal

---------

Co-authored-by: Amael-PE <amael@amael.io>
…php (#7)

* FIX Fix precommit CI errors

* FIX Error in next_invoices avancement

* NEW Change the method to compute global progress of an invoice

This allows to be closer to the practice in industry

* NEW Feat to display total amount of contrat/invoices serie in progress table
* FIX Complete wath was started in Dolibarr#17243 for pdf_cannelle

* FIX Continue for eagle_proforma
* NEW Custom model for commercial proposal

Based on cyan model, with no ref client

* NEW Custom Situation Invoice model update

V1 available.
Still missing prorata feature, which will depend on another branch.
Total progress to change also

* REFACT Refactoring for better maintenance capability (factoring in functions)

* FIX Model custom for situation invoices

All is find, except pro rata: feature to be added

* Fix Typo
…#10)

* NEW Template for supplier order without prices

* FIX Remove TVA column in supplier orders without prices

* FIX Template sansprix fix padding in pagehead for styling

* NEW Supplier order template for ProductWithdrawal

* Fix Some small styling updates. New field info shown SentBy

* NEW Template supplier order custom with prices
… attributes

Building on an existing db field, introduce in Facture class a property prorata_discount (amount in currency) and prorata_rate (virtual property).
It also alter total_ht with a hook to update discount based on rate.
Prorata, as the name suggest, is a discount whose % is fixed and amount varies with total excl. taxes
* FIX : removes traces of <<<HEAD conflicts following the postponement of branch 13 modifications (Dolibarr#32014)

Co-authored-by: John Fleuret <john.fleuret@atgp.net>

* fix CI

* Test pr action

* Avoid error

* Exclude test files

* fix

* fix join societe_commerciaux in societe list

* fix: remove list mass action update price wihen price mode is not uniq price

* fix: remove list mass action update price wihen price mode is not uniq price

* Fix : cron job user rights force reload

* FIX Bad calculation of the theoretical stock. Did not take into account
the inc/dec stock option.

* FIX select 2 no record found

* FIX Complete wath was started in Dolibarr#17243 for pdf_cannelle

* FIX Continue for eagle_proforma

* Fix pb in output of label of email

---------

Co-authored-by: alkaan <prog@alkaan.com>
Co-authored-by: John Fleuret <john.fleuret@atgp.net>
Co-authored-by: Frédéric France <frederic.france@free.fr>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
Co-authored-by: uvaldenaire-opendsi <uvaldenaire@easya.solutions>
Co-authored-by: Florian HENRY <florian.henry@open-concept.pro>
Co-authored-by: Maxime Kohlhaas <maxime@atm-consulting.fr>
Co-authored-by: GregM <gregory.maza@atm-consulting.fr>
Co-authored-by: Amael-PE <amael@amael.io>
fix a issue unableing pdf model detection on specimen generation
Reduce padding in 1st page tableau
Introduce Prorata rate:
+ Global variable for Account in accountancy
+ Write and see in journal
+ See and modify rate in card
+ Add in total table in pdf
+ Langs and trads
+ Hooks in common object for price claculation (properly manage add_lines and delete_lines)
Bug was due to updatePrice in CommonObject which do not have prorata_discount
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants