tundebabzy ad08d4ce96 Ability to hold payment for disputed invoices #12048 (#13298)
* add new fields to Supplier Master:
- on_hold: To signal the Customer is blocked from completing certain transactions
- hold_type: 3 options - All, invoices and payments

* sanitize `on_hold` field input

* show hold status in list view

* add `release_date` field to Supplier Master:
- specifies the date when transaction restraint will be removed

* reset release date if supplier is not on hold

* add validation to stop transactions when Supplier is blocked

* add test cases

* return empty list for outstanding references if supplier is blocked

* block make button:payment if supplier is blocked

* adjust test cases

* PEP 8 clean up

* more tests

* adds new fields to Purchase Invoice:
- release_date: once set, invoice will be on hold until set date
- hold_comment: so user can add comment pertaining to why invoice is on hold

* implement individual purchase invoice on hold logic

* allow user to change release date

* update manual

* final cleanup including more validation and tests

* update supplier manual

* make default for release_date argument todays date

* remove Auto Repeat added by mistake

* add on_hold_field to purchase invoice

* add 'On Hold' or 'Temporarily on Hold' status for purchase invoice in list view

* implement explicit payment hold in purchase invoice

* update manual

* add dialog for saving comment

* bug fix, refactor, clean up

* more test cases
2018-05-16 11:31:41 +05:30

134 lines
5.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Purchase Invoice
Purchase Invoice is the exact opposite of your Sales Invoice. It is the bill
that your Supplier sends you for products or services delivered. Here you
accrue expenses to your Supplier. Making a Purchase Invoice is very similar to
making a Purchase Order.
To make a new Purchase Invoice:
> type "new purchase invoice" into the search bar then select "New Purchase
Invoice" from the drop down
or click on “Make Purchase Invoice” in Purchase Order or Purchase Receipt.
You can also create a Purchase Invoice from:
> Accounts > Billing > Purchase Invoice > New Purchase Invoice
<img class="screenshot" alt="Purchase Invoice" src="{{docs_base_url}}/assets/img/accounts/purchase-invoice.png">
The concept of “Posting Date” is again same as Sales Invoice. “Bill No” and
“Bill Date” helps to track the bill number as set by your Supplier for
reference.
#### Is Paid option
The **Is Paid** checkbox should be checked if there is a part or full payment
on the invoice at posting date.
#### Update Stock
The **Update Stock** checkbox should be checked if you want ERPNext to automatically
update your inventory. Consequently, there will be no need for a Delivery Note.
#### Accounting Impact
Like in Sales Invoice, you have to enter an Expense or an Asset account for
each row in your Items table. This helps to indicate if the Item is an Asset
or an Expense. You must also enter a Cost Center. These can also be set in the
Item master.
The Purchase Invoice will affect your accounts as follows:
Accounting entries (GL Entry) for a typical double entry “purchase”:
Debits:
* Expense or Asset (net totals, excluding taxes)
* Taxes (/assets if VAT-type or expense again).
Credits:
* Supplier
##### Accounting Treatment When **Is Paid** is checked
If **Is Paid** is checked, ERPNext will also make the following
accounting entries:
Debits:
* Supplier
Credits:
* Bank/Cash Account
To see entries in your Purchase Invoice after you “Submit”, click on “View
Ledger”.
* * *
#### Is purchase an “Expense” or an “Asset”?
If the Item is consumed immediately on purchase, or if it is a service, then
the purchase becomes an “Expense”. For example, a telephone bill or travel
bill is an “Expense” - it is already consumed.
For inventory Items, that have a value, these purchases are not yet “Expense”,
because they still have a value while they remain in your stock. They are
“Assets”. If they are raw-materials (used in a process), they will become
“Expense” the moment they are consumed in the process. If they are to be sold
to a Customer, they become “Expense” when you ship them to the Customer.
* * *
#### Deducting Taxes at Source
In many countries, the law may require you to deduct taxes, while paying your
suppliers. These taxes could be based on a standard rate. Under these type of
schemes, typically if a Supplier crosses a certain threshold of payment, and
if the type of product is taxable, you may have to deduct some tax (which you
pay back to your government, on your Suppliers behalf).
To do this, you will have to make a new Tax Account under “Tax Liabilities” or
similar and credit this Account by the percent you are bound to deduct for
every transaction.
For more help, please contact your Accountant!
#### Hold Payments For A Purchase Invoice
There are two ways to put a purchase invoice on hold:
- Date Span Hold
- Explicit Hold
##### Explicit Hold
Explicit hold holds the purchase invoice indefinitely.
To do it, in the "Hold Invoice" section of the purchase invoice form, simply
check the "Hold Invoice" checkbox. In the "Reason For Putting On Hold" text
field, type a comment explaining why the invoice is to be put on hold.
If you need to hold a submitted invoice, click the "Make" drop down button
and click "Block Invoice". Also add a comment explaining why the invoice is
to be put on hold in the dialog that pops up and click "Save".
##### Date Span Hold
Date span hold holds the purchase invoice until a
specified date. To do it, in the "Hold Invoice" section of the purchase
invoice form, check the "Hold Invoice" checkbox. Next, input the release date
in the dialog that pops up and click "Save". The release date is the date
that the hold on the document expires.
After the invoice has been saved, you can change the release date by clicking
on the "Hold Invoice" drop down button and then "Change Release Date". This
action will cause a dialog to appear.
<img class="screenshot" alt="Purchase Invoice on hold" src="{{docs_base_url}}/assets/img/accounts/purchase-invoice-hold.png">
Select the new release date and click "Save". You should also enter a comment
in the "Reason For Putting On Hold" field.
Take note of the following:
- All purchases that have been placed on hold will not included in a Payment Entry's references table
- The release date cannot be in the past.
- You can only block or unblock a purchase invoice if it is unpaid.
- You can only change the release date if the invoice is unpaid.
{next}