On this page, users with Admin or Mafi roles can create/edit mafis and/or mafi status transactions and all their respective details, such as ownership details for mafis or current status/location for mafi status transactions.

The first section is comprised of search filters, where users can input any filters they want to search for desired mafis.
In the table of mafis, the serial number is a link where the user can view all mafi details, including ownership details and previous status transactions.

Actions for each mafi in mafi table:
|
|
Create a new mafi status transaction |
|
|
Edit the current mafi status transaction |
|
|
Edit mafi |
|
|
Delete mafi |
Clicking the ‘Create Mafi’ button will display a modal that allows the user to create a mafi.

Users can create this mafi by clicking either ‘Save and Close’ or ‘Save and Create Transaction’. If the user clicks ‘Save and Close’ the create modal will disappear and the page will reload, displaying the new mafi in the mafi table. If the user clicks ‘Save and Create Transaction’, the create mafi modal will disappear and the create mafi status transaction modal will appear (See Create Mafi Status Transaction section for more details).
Clicking the edit mafi action will display the edit mafi modal.

The user can edit all mafi details and ownership details except for the ownership type. If you want to change the ownership type for this mafi, the user must create a new mafi with the same serial number and the new ownership type.
Either clicking the 'Create Mafi Status Transaction' action or creating a transaction from the create/edit mafi modal will display the create mafi status transaction modal.


If the mafi status type is updated to ‘Assigned’ or ‘Positioning’, the Vessel dropdown will be enabled, which will allow the user to choose the reservation port calls for this status transaction.
Clicking the ‘Edit Current Mafi Status Transaction’ action will display a modal with the inputs populated with the current mafi status transaction details.

All fields can be edited, and when saved, only the current mafi status transaction will be updated.
After selecting the mafis the user wants to create a status transaction for (either by checking the checkbox in the ‘Select column of the mafi table or by clicking the ’Select All Mafis' button), the user can then click the ‘Mass Create Mafi Status Transactions’ button to display a modal for a user to mass create mafi status transactions for all the selected mafis.

Clicking the ‘Delete Mafi’ action will display a modal that confirms the deletion of the selected mafi.
