Create New Supplier
Start
Input Supplier Data
Assign new
sequance value to
Did the supplier validate the
No supplier
already exist required data
and commit the
data
Yes
show error End
message
Update Supplier
Start
Search for supplier
commit the new
Validate the New
Supplier Exist Yes data to the
Data
database
No
show error End
message
Inactive Supplier
Start
No
Validate the
show error inactive date is
message greater or equal
Search for supplier
sysdate
Yes
Enter inactive date
No
commit the new
Supplier Exist Yes data to the
database
Check if there
No any unpaid
invioces or
prepayment
show error show warning
message message End
Yes
Create Supplier Site
Start
Yes
check if the site
Search for supplier already exist
show error
message
No
commit the new
Supplier Exist Yes add new site data to the
database
No
show error End
message
Update Supplier Site
Start
No
Check the new
Search for supplier data is valied
show error
message
Yes
commit the new
Supplier Exist Yes Update the site data to the
database
No
show error End
message
Inactive Supplier Site
Start
No
Search for supplier Validate the
show error inactive date is
message greater or equal
sysdate
Yes
No
Supplier Exist Yes Enter inactive date
commit the new
data to the
database
No
Check if there
any unpaid
show error invioces or
message prepayment
show warning
Yes message End
Create New Supplier Invoice
Start
Input invoice header
validate the
show error invoice header
message data
check if the
No invoice number
Yes is already used No
with the same
supplier
check if the
check the Assign new
supplier site have
any avaliable
No invoice amount sequance value to
prepayment >0 show error invoice
Yes
message and commit the
data
Yes
Input invoice Lines
show hint cotain the
prepayments
numbers Commit the data
Yes
check the
lines total is
Update the items equal invoice
Check the
header total
quantity in the Yes item type is
inventory inventory No
No
show error
message
End
Create New Supplier Prepayment
Start
validate the
prepayment
header data
Input Prepayment
header
check if the Assign new
prepayment
sequance value to
number is
already used
No invoice
with the same and commit the
supplier data
show error
message
check the
prepayment Yes Input prepayment
amount > 0 Lines
No
Commit the data
check the
show error lines total is
Yes
message Yes equal No
prepayment
header total
show error
End message
Update Supplier Invoice
Start
No
Search for the invoice
check if the
invoice number Check the
is already used No invoice
show error with the same amount > 0
message supplier
Update the needed
fields
show error message
Yes
Yes
Check the
invoice status
is not final Update the data
check the
No Yes lines total is
equal invoice
No
header total
show error
show error message
End
message
Delete Supplier Invoice
Start
Search for the invoice
Check the
Delete the invoice
invoice status Yes
header and lines
is not final
No
show error
End
message
Cancel final Supplier Invoice
Start
cancel invoice
Search for the invoice
No
No Set the line amount
and price to zero
Check if the
invoice is paid
Check if the
payment is
reconciled
cancel the payments Yes
Set the header total
End
to zero
Unreconcile the
payment
Create Supplier Credit Memo
Start
Assign new
sequance value to
Credit Memo
and commit the
data
validate the Credit
Input Credit Memo
Memo header
header
data
check if the
Credit Memo No
number is Input Credit Memo
already used Lines
Yes with the same
supplier
check the show error
invoice amount message
<0
Yes
check the
lines total is
Commit the data Yes equal Credit
Memo header
No total
No
show error
message End show error
message
Apply Credit Memo to invoice
Start
Search for Credit
memo
Correct the invoice
choose invoice to enter the correction INV items and
apply amount quantity cost in the
inventory
Yes End
apply the
credit memo to
whole invoice
enter the correction
No
amount and quantity
Pay supplier invoice
Start
Search for not paid or
partial paid invoice
choose invoice to pay
update the invoice
paid amount
Enter the payment End
Open payment form
fileds
Apply prepayment to invoice
Start
Search for invoice
show the avaliable update the
prepayment for the prepayment as fully
supplier applied
Check the
prepayment
End
add the amount want avaliable
to apply amount != 0
Update the invoice Update the
paid amount with the prepayment applied
applied amount and avaliable amount
Create supplier Payment
Start
input payment data
Check the
payment type
Check the Check the
amount < 0 amount > 0
input payment data
Create supplier Payment
Start
input payment data
Check the
payment type
Refund Normal
Check the Check the
amount < 0 amount > 0
No Yes No Yes
Show error massage Show error massage
End
Void supplier Payment
Start
Search for payment split the payment
Check the
from the invoice and
payment related Invoice
transactions mark the invoice as
unpaid or partial paid
Update the paymet
No status to voided
Check if the prepayment
payment is
reconciled
check if the split the payment
prepayment from the prepayment
applied to
No and mark the
Yes prepayment as
invoice
unpaid or partial paid
Show error message
Yes Show error message End
Un reconcile the
Continue? Yes
payment
No
Create New Customer
Start
Input Customer Data
Assign new
sequance value to
Did the Customer validate the
No Customer
already exist required data
and commit the
data
Yes
show error End
message
Update Customer
Start
Search for Customer
commit the new
Validate the New
Customer Exist Yes data to the
Data
database
No
show error End
message
Inactive Customer
Start
No
Validate the
show error inactive date is
message greater or equal
Search for Customer
sysdate
Yes
Enter inactive date
No
commit the new
Customer Exist Yes data to the
database
Check if there
No any unpaid
invioces or
prepayment
show error show warning
message message End
Yes
Create Custmer Site
Start
Yes
check if the site
Search for Customer already exist
show error
message
No
commit the new
Customer Exist Yes add new site data to the
database
No
show error End
message
Update Customer Site
Start
No
Check the new
Search for Customer data is valied
show error
message
Yes
commit the new
Customer Exist Yes Update the site data to the
database
No
show error End
message
Inactive Customer Site
Start
No
Search for Customer Validate the
show error inactive date is
message greater or equal
sysdate
Yes
No
Customer Exist Yes Enter inactive date
commit the new
data to the
database
No
Check if there
any unpaid
show error invioces or
message prepayment
show warning
Yes message End
Create New Customer Invoice
Start
validate the
show error invoice header
Input invoice header
message data
check if the
No invoice number
Yes is already used No
with the same
Customer
check the Assign new
invoice amount sequance value to
check if the >0
Supplier site have No show error invoice
Yes
any avaliable message and commit the
prepayment data
Yes Check the
Inventory item item type
Input invoice Lines
Show the avaliable
show hint cotain the
item quantity
prepayments
numbers
Service
avaliable
quantity > 0
No Show error message
Yes
Commit the data
check the
Yes
lines total is
Update the items equal invoice
Check the
header total
quantity in the Yes item type is
inventory inventory No
No
show error
message
End
Create New Customer Prepayment
Start
validate the
prepayment
header data
Input Prepayment
header
check if the Assign new
prepayment
sequance value to
number is
already used
No Prepayment
with the same and commit the
supplier data
check the
show error
prepayment Yes Input prepayment
message
amount > 0 Lines
No
Commit the data
check the
show error lines total is
Yes
message Yes equal No
prepayment
header total
show error
End message
Update Customer Invoice
Start
No
Search for the invoice
check if the
invoice number Check the
is already used No invoice
show error with the same amount > 0
message Customer
Update the needed
fields
show error message
Yes
Yes
Check the
invoice status
is not final Update the data
check the
No Yes lines total is
equal invoice
No
header total
show error
show error message
End
message
Delete Customer Invoice
Start
Search for the invoice
Check the
Delete the invoice
invoice status Yes
header and lines
is not final
No
show error
End
message