Package com.storedobject.ui.inventory
Interface ProducesGRN
- All Known Implementing Classes:
POBrowser
,SendItemsForRepair
public interface ProducesGRN
Tag a logic to denote that it produces GRN entries.
- Author:
- Syam
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
canFinalize
(InventoryGRN grn) This method is invoked when the button is pressed to mark the GRN as inspected/received.default void
extraGRNInfoCreated
(InventoryGRN grn, StoredObject extraInfo) This is invoked when an "Extra Information" instance is created for a GRN.default void
extraGRNInfoLoaded
(InventoryGRN grn, StoredObject extraInfo) This is invoked when an existing "Extra Information" instance is loaded for the current object.default void
savingGRNExtraInfo
(InventoryGRN grn, StoredObject extraInfo) This is invoked when an existing "Extra Information" instance is being saved.default void
This is invoked whenever status of a GRN is changed.
-
Method Details
-
statusOfGRNChanged
This is invoked whenever status of a GRN is changed.- Parameters:
grn
- GRN that is affected.
-
extraGRNInfoCreated
This is invoked when an "Extra Information" instance is created for a GRN. At this point, you may set your own values if required.- Parameters:
grn
- The GRN instance for which the "Extra Information" is created.extraInfo
- Newly created "Extra Information" instance.
-
extraGRNInfoLoaded
This is invoked when an existing "Extra Information" instance is loaded for the current object. At this point, you may set your own values if required.- Parameters:
grn
- The GRN instance for which the "Extra Information" is loaded.extraInfo
- The "Extra Information" instance loaded now.
-
savingGRNExtraInfo
This is invoked when an existing "Extra Information" instance is being saved.If an exception is thrown from this method, the save process will not happen.
- Parameters:
grn
- The GRN instance for which the "Extra Information" is getting saved.extraInfo
- The "Extra Information" instance to be saved.- Throws:
Exception
- if any validation error to be notified.
-
canFinalize
This method is invoked when the button is pressed to mark the GRN as inspected/received. This method may show appropriate messages and may returnfalse
if some other associated data is incomplete.- Parameters:
grn
- Current GRN.- Returns:
- True/false.
-