# Document Incoming Management

**URL:** <https://discuss.tryton.org/t/document-incoming-management/6147>\
**Category:** Feature\
**Created:** [May 13, 2023, 5:38pm UTC](https://discuss.tryton.org/t/document-incoming-management/6147 "2023-05-13T17:38:53Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![albert](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/albert/32/21_2.png) [@albert](https://discuss.tryton.org/u/albert)\
**Post date:** [July 7, 2023, 12:46pm UTC](https://discuss.tryton.org/t/document-incoming-management/6147/21 "2023-07-07T12:46:25Z")

</div>

> [@ced](#):
>
> My scanner can scan multiple pages and generate a single PDF (it can even send it to an email).  
> _It is not such fancy nor expensive scanner._

But you need to supply to only the pages that are part of the same document.

That means that if you have 30 shipments you must scan each one individually.

What we do is that the user only needs to add a label to the first page of each shipment, and that allows us to split automatically.

It is a very usual practice because allows users to scan all documents at once at the end of the day.

---

<div class="post-metadata">

**Author:** ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)\
**Post date:** [July 7, 2023, 12:53pm UTC](https://discuss.tryton.org/t/document-incoming-management/6147/22 "2023-07-07T12:53:53Z")

</div>

> [@albert](#):
>
> That means that if you have 30 shipments you must scan each one individually.

You can scan them all together and split them in the application with the split wizard.

> [@albert](#):
>
> What we do is that the user only needs to add a label to the first page of each shipment, and that allows us to split automatically.

This seems a complexe logistic to manage in the warehouse when someone in the office could do it without any logistic.

---

<div class="post-metadata">

**Author:** ![albert](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/albert/32/21_2.png) [@albert](https://discuss.tryton.org/u/albert)\
**Post date:** [July 7, 2023, 1:14pm UTC](https://discuss.tryton.org/t/document-incoming-management/6147/23 "2023-07-07T13:14:13Z")

</div>

> [@ced](#):
>
> You can scan them all together and split them in the application with the split wizard.

There’s usually a limit in the number of pages those scanners are able to add to a PDF.

---

<div class="post-metadata">

**Author:** ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)\
**Post date:** [July 19, 2023, 8:59am UTC](https://discuss.tryton.org/t/document-incoming-management/6147/24 "2023-07-19T08:59:36Z")

</div>

> [@ced](#):
>
> So on purchase processing, the system should try to delete or update draft invoice line with too much quantity before creating credit note lines.

I tried to design such solution but I faced an issue. I could not know when processing the purchase which draft invoice line must be deleted. So the risk is to delete the invoice line created by document incoming instead of the one created automatically.

So instead I think the best option is that user who plan to use document incoming for supplier invoice should set the invoice method to manual.  
But in order to provide users with way to fix mistakes, I think we should have a [button to force the creation of the invoice](https://foss.heptapod.net/tryton/tryton/-/issues/12412) from a purchase with manual method. In this case the manual method will work like the “On Order” method.  
And for the case where an invoice method was set on purchase and the supplier invoice is imported by document incoming, if the lines are correctly linked to the purchase lines, a credit note will be created. So the user will have a draft supplier invoice and a draft supplier credit note that cancel each other. The user may want to delete them. But if he does not, this will not corrupt any forecast any way.

---

<div class="post-metadata">

**Author:** ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)\
**Post date:** [July 19, 2023, 3:23pm UTC](https://discuss.tryton.org/t/document-incoming-management/6147/25 "2023-07-19T15:23:00Z")

</div>

The merge request is ready now: [Add document incoming module (!598) · Merge requests · Tryton / Tryton · GitLab](https://foss.heptapod.net/tryton/tryton/-/merge_requests/598)

I made this small video to show the module in action:

---

<div class="post-metadata">

**Author:** ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)\
**Post date:** [October 16, 2023, 6:00am UTC](https://discuss.tryton.org/t/document-incoming-management/6147/26 "2023-10-16T06:00:21Z")

</div>

This topic was automatically closed after 14 days. New replies are no longer allowed.

[Previous page](https://discuss.tryton.org/t/document-incoming-management/6147.md?page=1)
