Digital Invoice Fragment
The returned extractions in the DigitalInvoiceFragmentListener.onPayInvoice() are updated to include the user's modifications:
"amountToPay" is updated to contain the sum of the selected line items' prices,
the line items are updated according to the user's modifications.
Before showing the DigitalInvoiceFragment
you should validate the compound extractions using the LineItemsValidator. These extractions are returned in the AnalysisFragmentListener.onExtractionsAvailable() listener method.
Include the DigitalInvoiceFragment
into your layout by using the DigitalInvoiceFragment.createInstance() factory method to create an instance and display it using the androidx.fragment.app.FragmentManager.
A DigitalInvoiceFragmentListener instance must be available before the DigitalInvoiceFragment
is attached to an Activity. Failing to do so will throw an exception. The listener instance can be provided either implicitly by making the hosting Activity implement the DigitalInvoiceFragmentListener interface or explicitly by setting the listener using DigitalInvoiceFragment.listener.
Your Activity is automatically set as the listener in DigitalInvoiceFragment.onCreate().
Customizing the Digital Invoice Screen
See the DigitalInvoiceActivity for details.
Constructors
Types
Functions
header and footer are counted as aprox. 3 items in order to have same time spent on scrolling different size views
Set a listener for digital invoice events.
Set a listener for digital invoice events.
Call this method when the modified selectable line item was returned by the LineItemDetailsListener.onSave method.