How to add buttom down payment in sales invoice and purchase invoice

help me how to add buttom or custom coloms for down payment in sales invoice and purchase invoice please, thanks

It depends on whether you are requesting down payment or if you want to acknowledge actual down payment.

If you have received a down payment for an invoice, you need to go back to the said payment and edit it and apply it to the invoice and it should be automatically reflected on the invoice.

To request down payment, you can either use a Custom Field or a Footer.

See the following guides:

can you help me to write that code in footer ?

Although not updated to include code for other things such as footers the principle remains the same. Please see FAQ - Manager Forum where it states:

  • Be specific. …If your question is related to custom themes or custom reports, always post the code or report definition you have developed and the results it produces. Do not simply post a picture of something you want and ask other users to tell you how to achieve it.

and

Be non-commercial. …Do not offer or solicit products or services. Do not ask Forum members to develop themes, reports, or localizations for you unless you have already tried yourself. Then (as mentioned above), post your own work and the results, stating clearly the problem you are having.