Letter of Credit
A letter of credit card gathers the purchase bills of an import and the expenses that belong to them. When you close it, the program allocates the expenses to the materials of the bills and raises their cost. In this card you define the letter of credit, follow its bills and expenses, set the type of each expense, and close or reopen it. For the practical steps see Open a letter of credit and Allocate letter of credit expenses.
The program calls this letter of credit a "sub letter of credit" when it is shown against its Main Letter of Credit. Every letter of credit belongs to a main letter of credit. You define the main one in the Main Letter of Credit Card.
Opening the window
- From the ribbon: Invoices > Letter of Credit > Letter of Credit. You need the permission Letter of Credit in Users Management. It has four levels: add, browse, modify and delete. No licence feature controls the command.
- From the Chart of Letters of Credit: right-click a main letter of credit and choose Add Letter of Credit to open a new card with that Main Letter of Credit already chosen. Or right-click a letter of credit in the second tree and choose View Letter of Credit... to open its card.
- From some lists that show a letter of credit, such as the bills list of an order, with the display command of the letter of credit: the card opens on that letter of credit.
From the ribbon the card opens new, with no record. From the other two ways it opens on the chosen letter of credit. The navigator at the top has the buttons described in the record navigator. If the Security Level of the letter of credit is higher than your permission, the card opens locked and the text "You do not have permission" replaces the field values.
Card header
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Record navigator | Moves between saved letters of credit and shows the record number. | — | It also shows the source code of the record if your file uses replication. |
| Security Level | The secrecy level of the letter of credit. | No | A user whose level equals or exceeds the secrecy level can open the letter of credit. |
| Code | The code of the letter of credit. | Yes | Not used by another letter of credit. Example LC-001. |
| Name | The name of the letter of credit. | Yes | Not used by another letter of credit. Example Fabric shipment. |
| Latin Name | The name in Latin letters. | No | If you write it, it must not be used by another one. |
| Main Letter of Credit | The main letter of credit that this one belongs to. | Yes | Choose from the main letters of credit in the selection window titled "Select Main Letter of Credit". If you ask it to add a new record, the Main Letter of Credit Card opens. |
| Account | The account of the letter of credit. The expenses collect on it until you close. | Yes, when the field is enabled | The field is enabled when one of the two letter of credit options is on in Program Options (see the two options). With the perpetual inventory option the field is disabled for a letter of credit that has been used in a bill or an entry, or came from a previous year. |
| Contra Account | The account that the closing entry uses instead of the material accounts. | Yes, when the field is enabled | Enabled only with Generate closing entry in Periodic Inventory. |
| CC of Closing Entry | The cost center of the letter of credit line in the closing entry. | No | Enabled only with Use Perpetual Inventory in Letter of Credit. It accepts a center that has no sub centers. The entry uses it when the entry form does not generate an entry for each item, that is, when the letter of credit is collected in one line. |
| Opening Date | The date the letter of credit was opened. | No | Starts with today's date. |
| Entry Form | The entry form of the closing entries. | Yes, when the field is enabled | The first item of the list is Without, then every entry form of the file. Enabled when either option is on. |
| Branch | The branch of the letter of credit. | Yes, when shown | The field appears only if branches are on in the licence and in the file options, and then it is required. The message is "Please select branch". |
| Estimated Closing Date | The date you expect to close the letter of credit. | No | Starts with today's date. It cannot be before Opening Date. It is disabled once the letter of credit is closed. |
| Closing Date | The date the letter of credit was closed. | — | Read only. In an open letter of credit it shows the day it was added. Closing sets it to today. Use LC Status to know whether it is closed. |
| LC Status | Opened or Closed. | — | Read only. A new letter of credit is Opened. |
| Notes | Free notes. | No |
The two options in Program Options
The letter of credit has two options in Program Options, on the Save page, in the group Letter of Credit. They are explained in Letter of Credit in Program Options. Only one of them can be on at a time.
| Option | What it enables in the card |
|---|---|
| Neither is on | Account, Contra Account, CC of Closing Entry and Entry Form are disabled. Closing only reprices and generates no entries. |
| Use Perpetual Inventory in Letter of Credit | Account, Entry Form and CC of Closing Entry. |
| Generate closing entry in Periodic Inventory | Account, Entry Form and Contra Account. |
If a letter of credit is open when you change one of them, a message tells you to close or delete it first. The message does not undo the change; undo it yourself if you do not want it.
Bills list
The list under the heading Invoices shows the bills of the letter of credit that you classified as Bill, that is, the purchase bills whose materials receive the expenses. It does not include expense bills. The order is by date, then bill type, then number. The list refreshes when you open the letter of credit and when you click Update.
| Column | Meaning |
|---|---|
| Bill | The bill type and number, such as "Purchase Bill: 5". |
| Date | The bill date. |
| Value | The net of the bill in its currency: the total plus additions minus discounts. |
| Currency | The currency of the bill. |
| Parity | The parity of the currency in the bill. |
| Equivalent | The value multiplied by the parity, that is, the bill value in the file currency. |
| Description | The notes of the bill. |
| Order | The order the bill was created from, if it came from one order. It stays empty when the bill joins more than one order. |
Row menu of the bills
Right-click a bill. The usual list menu appears with Grid Lines (Ctrl+G), then the command Show Invoice. The command opens the bill in its own window according to its type. An opening inventory bill opens in the opening inventory window. The usual list menu is explained in Lists and trees.
Expenses grid
The grid under the heading Expenses shows everything charged to the letter of credit. It holds three kinds of lines:
- Voucher lines that have the letter of credit in their Letter of Credit column: payment, receipt and journal vouchers. Entries that do not belong to a voucher, such as bill entries, do not appear.
- Lines of bills that you classified as Expense in the letter of credit. Only a line whose material is a service shows.
- Expenses carried over from a previous year. Their name ends with "From Previous Year", and the program shows them first.
The grid is for viewing. The only column you can edit is Expense Type. You cannot add or delete a line in it.
| Column | Meaning |
|---|---|
| Document | The document type and number, such as "Payment Voucher: 12", with "From Previous Year" if it was carried over. |
| Account | The account code and name. For a bill line it is the material account, or the material account of the form, or the default account of the bill. |
| Date | The date of the entry or bill. |
| Net Value | The value of the line in the document currency: debit minus credit in a voucher, and the net of the line in a bill. Positive if it raises the cost, negative if it lowers it. |
| Expense Type | The expense type you chose. It shows <Without> if you chose none. |
| Allocation Method | The allocation method of that type. It changes with Expense Type. Read only. |
| Currency | The currency of the document. |
| Parity | The parity of the currency in the document. |
| Equivalent | Net Value multiplied by the parity. |
| Notes | The notes of the line. |
Choosing the expense type
- Click the Expense Type cell of the line. A list opens with
<Without>and the expense types defined in Letter of Credit Expenses and Allocation. If no type is defined, the list is empty. - Choose the type. Its method appears in Allocation Method.
- Click Modify to save the choice.
You can edit the cell while the letter of credit is open. The list shows the types that existed when you opened the record. If you added a type in the expenses window while the card was open, click Update to see it.
Corner menu
Right-click the corner cell at the top of the grid. Only the search and properties commands remain: Find... (Ctrl+F), Find Next (Ctrl+N), Table Properties... and Save Settings. The commands Copy, Paste, Cut, Clear and Insert are removed. They are explained in Corner menu.
Row menu
Right-click the row number. The usual row commands do not appear. One command appears, according to the source of the line:
| Command | Appears when | What it does |
|---|---|---|
| Show Invoice | The line is a bill. | Opens the bill in its own window according to its type. |
| Show Entry | The line is a voucher line. | Opens the voucher in its own window according to its form. |
Nothing appears for a carried-over line whose original document is not available, and no menu appears on an empty row.
Buttons
| Button | What it does |
|---|---|
Add (Alt+A) | Saves the new letter of credit, then starts a new card. See Add. |
New (Alt+E) | Starts a new card. The program raises the number at the end of Code by one if the option Increment material code after save is on, otherwise it clears Code. It always clears Name and Latin Name. The increment options are in Program Options > Display > Cards, explained in Display options. |
Modify (Alt+M) | Saves the changes of the letter of credit on the screen and the expense types you chose. Disabled in a closed letter of credit. |
Delete (Alt+D) | Deletes the letter of credit. Disabled in a closed one and in one that has bills or expenses. |
| Operations | Opens the menu Close Letter of Credit and Reopen Closed Letter of Credit. Disabled in a new card. |
| Entries | Opens a list of the closing entries the program generated. |
| Preview | Opens the report Preview Letter of Credit for this letter of credit. |
Update (Alt+U) | Reads the letter of credit, its bills, expenses and expense types again from the file. If the window has an unsaved change, the program asks before it drops it. |
| Close (it reads Cancel after any change) | Closes the card. If it has unsaved changes and the warning option On cancel is on, the program asks whether to discard them. |
Button menus
The buttons Operations and Entries open a menu when you click them.
Entries menu
The Entries button opens a list with one line for each closing entry the program generated for this letter of credit: the abbreviation of the entry form, the voucher number in brackets, then its date. Choose a line to open the entry in the window of the saved Entry Form of the card. A choice you have not saved is not used. Modify and Delete are disabled in the window of this voucher. The button is disabled if the letter of credit has no entries. After you close the letter of credit it stays disabled until you click Update. If the letter of credit comes from another replication database, the message "Cannot perform an operation that has a source code not belong to the current database." appears.
Operations menu
| Command | Enabled when | What it does |
|---|---|---|
| Close Letter of Credit | The letter of credit is open and has at least one bill and at least one expense. | Closes the letter of credit. |
| Reopen Closed Letter of Credit | The letter of credit is closed. | Reopens it. |
Both commands are disabled in three cases, because the letter of credit does not match the option that is on in the file:
- Neither letter of credit option is on, but the letter of credit has an Account.
- One of the options is on, but the letter of credit has no Account.
- Generate closing entry in Periodic Inventory is not on, but the letter of credit has a Contra Account.
To fix this, make the option match the letter of credit, or edit the letter of credit while it is open. Close and Reopen have no permission of their own beyond the permission to open the card.
Rules for add, modify and delete
When you add
- If a saved letter of credit is on the screen, the program asks "This window contains some information that might be duplicated...". Click Yes to add it as a new letter of credit.
- It checks the Add permission and the Security Level, and the mandatory fields if you set mandatory fields for cards in Program Options.
- It checks these fields in order and stops at the first error: Code, Name, Main Letter of Credit, then Account and Contra Account if enabled, then Entry Form if either option is on, then Branch if shown.
- It checks that Estimated Closing Date is not before Opening Date.
- It checks that the code, name and Latin name are not used by other letters of credit.
- If the warning On save is on, the program asks "Are you sure you want to complete saving?". Click Save. The warning options are in Program Options.
- It saves the letter of credit as open, records the addition in the event log, and starts a new card as New does. It clears Main Letter of Credit, Entry Form, Account, Contra Account, CC of Closing Entry and Notes, and sets Opening Date and Estimated Closing Date back to today. Branch stays as it was.
When you modify
- It checks the Modify permission according to the Security Level, and that the letter of credit was created in the current database if the file uses replication.
- It checks the fields, the dates and the duplicates as in Add, without counting the letter of credit itself as a duplicate.
- If the warning On modify is on, the program asks "Are you sure you want to save changes ?".
- It saves the letter of credit, deletes the saved expense types of the letter of credit and saves the types now shown in Expense Type, then records the change in the event log.
When you delete
- It checks the Delete permission, and the source database if the file uses replication.
- It always asks "Are you sure you want to delete?". Click Delete.
- If the letter of credit has a bill or an expense, the message "Cannot delete the card!" appears with "The letter of credit card is used in a bill or entry" under it.
- It deletes the letter of credit in one operation and records the deletion. The deletion is final.
The program does not delete a closed letter of credit from the card, because Delete is disabled in it. Reopen it first, then delete it if it has no bills and no expenses.
Closing the letter of credit
Closing allocates the expenses of the letter of credit to the materials of its bills, raises the cost of the materials with them, and closes the letter of credit.
Before closing
When you choose Close Letter of Credit, the program checks in order:
- The source of the letter of credit: if it was created in another database, the message "Cannot perform an operation that has a source code not belong to the current database." appears.
- The fields, the dates and the duplicates as in Modify. If the window shows an unsaved change, the program saves it first, with the question of the On modify warning if it is on; a refusal stops the closing. Then it reads the letter of credit again from the file. So click Modify after you choose the expense types and before you close, so that no unsaved choice is lost.
- Every line of the Expenses grid must have an Expense Type, otherwise the message "Please set the expense type" appears. This includes carried-over lines.
- If the allocation method of an expense uses a text field of the material card, that field in the card of every material of the letter of credit must be a non-empty number with digits and a decimal point only, otherwise the message "Please set a numeric value for (…) field in (…) material card." appears. The fields are Size, Source, Location, Manufacturer, Color, Provenance, Type and Model in the material card. A value with a minus sign, a comma or a letter is refused. The other methods need no field in the material card.
Then closing runs as one operation. If any step fails, the program undoes all of it and nothing changes.
How the program allocates the expenses
The program allocates each expense line that has a type to all the lines of the bills of the letter of credit (the bills classified as Bill only), in proportion to the allocation basis of each line over the sum of the bases:
line share = line basis ÷ sum of the bases × expense value in the file currency
- The basis of a line follows the Allocation Method of the expense type, and it is always multiplied by the quantity of the line. The methods are in the table in Letter of Credit Expenses and Allocation.
- A positive expense raises the cost of the line (an addition). A negative expense lowers it (a discount).
- The expense value in the document currency is multiplied by its parity to the file currency.
- If the sum of the bases is zero, the program does not allocate that expense. The letter of credit still closes, and this amount stays in the balance of its account.
- Only the lines that have an expense type take part.
The total allocated to a line is its addition and its discount. The program saves them in the bill line.
Worked example
The letter of credit LC-001 has two posted purchase bills, whose form has Affects Cost Price, and there is no earlier stock of the two materials. The expense types are "Freight" with the method Qty, and "Insurance" with the method Amount. Two expenses were recorded in the file currency: freight 300.00 and insurance 90.00.
| Bill | Material | Quantity | Unit price | Line value |
|---|---|---|---|---|
| Purchase: 5 | Material A | 100 | 10.00 | 1,000.00 |
| Purchase: 6 | Material B | 50 | 40.00 | 2,000.00 |
| Expense | Basis | Sum of bases | Share of A | Share of B |
|---|---|---|---|---|
Freight 300.00 by Qty | 100 and 50 | 150 | 100 ÷ 150 × 300 = 200.00 | 50 ÷ 150 × 300 = 100.00 |
Insurance 90.00 by Amount | 1,000 and 2,000 | 3,000 | 1,000 ÷ 3,000 × 90 = 30.00 | 2,000 ÷ 3,000 × 90 = 60.00 |
| Total | 230.00 | 160.00 |
After closing, the unit cost of Material A is (1,000.00 + 230.00) ÷ 100 = 12.30 and that of Material B is (2,000.00 + 160.00) ÷ 50 = 43.20. The total allocated, 390.00, equals the sum of the two expenses.
What closing changes
- Lines: it saves in each line of the bills of the letter of credit its addition and discount from the allocation.
- Pricing: it recalculates the average price of the material from all its posted bills in date order. At the position of the bill it adds the addition of the line and subtracts its discount. This enters the average only for posted bills whose form has Affects Cost Price. If the stock of the material was negative at that point, the addition and the discount do not enter the average. Otherwise closing saves the shares and makes the entry, but the cost does not change. If the material is a fixed asset with serial numbers, it also updates the input value of each asset: the unit price with its share of the addition and the discount. Before closing, the expenses of the letter of credit are not part of the average price. Closing does not run the tool that reprices bills, and it does not regenerate the entries of older bills. If you need that, use Reprice bills and regenerate their entries.
- Entries: if one of the two options is on, the program generates one entry for each bill of the letter of credit, dated as the bill and using the Entry Form. The entries are posted if the form posts automatically. They appear in the Entries menu after you click Update.
- The letter of credit: LC Status becomes Closed, Closing Date takes today's date, Modify and Delete are disabled, and you can no longer edit Expense Type.
- It records the closing in the event log, then shows the message "Letter of credit is closed successfully".
After closing, the program does not allow adding, modifying or deleting a bill that belongs to this letter of credit. The message "The current Letter of Credit is closed" appears. A voucher that has a line of this letter of credit cannot be saved either (same message), and its Delete is disabled.
The closing entry
Each bill gets one entry, with debit and credit from its lines. For each line the net is the addition of the letter of credit minus its discount:
| Case | Debit | Credit |
|---|---|---|
| The option Use Perpetual Inventory in Letter of Credit | The materials account that the bill form uses for this material: the one set for the user if there is one, otherwise the one set for the material, otherwise the one set for its group, otherwise the default materials account of the form. | The Account of the letter of credit. |
| The option Generate closing entry in Periodic Inventory, with a Contra Account in the letter of credit | The Contra Account. | The Account of the letter of credit. |
If the net is negative the two sides swap. The shape of the entry follows the entry form. If the form has the option Generate Entry for Each Item on, the program adds two lines for each line: the contra account or materials account line, and the Account line, and it does not use the cost center. Otherwise it adds one line for each line, then one line on Account with the total of the bill, which carries CC of Closing Entry. In the notes of the entry the program writes "Close Letter of Credit" with the code and name of the letter of credit, and in the lines "Bill" and "Material" with the bill number and the material code and name.
In the example above, with Use Perpetual Inventory in Letter of Credit, two entries are generated:
| Entry | Account | Debit | Credit |
|---|---|---|---|
| Purchase bill 5 | Materials account of Material A | 230.00 | |
| Letter of credit account | 230.00 | ||
| Purchase bill 6 | Materials account of Material B | 160.00 | |
| Letter of credit account | 160.00 |
The letter of credit account had taken 390.00 from the two expenses when they were recorded on it, so its balance is zero after closing.
Reopening the letter of credit
Choose Reopen Closed Letter of Credit from Operations. The steps run as one operation:
- It sets the addition and discount of every line of the bills of the letter of credit to zero and recalculates the average price of the materials, so the cost goes back to what it was before closing.
- It cancels the posting of the closing entries and deletes them with their vouchers for good. It deletes nothing else.
- It sets LC Status back to Opened.
The program records this in the event log and shows "Closing letter of credit has cancelled successfully". Modify and Delete become enabled. If the program finds no lines for the bills of the letter of credit, it does nothing and shows no message. After reopening, the field Closing Date shows today's date. It does not change in the file until a save, so the program saves this date if you click Modify. Estimated Closing Date stays disabled after reopening, and after New on a closed letter of credit. Click Update to enable it again.
How the letter of credit links to bills and vouchers
- Bill: the More Info page of the bill has the field Letter of Credit and then Type, with the values Without, Bill and Expense. The two fields work in purchase and purchase return forms only. In a purchase return the program sets Expense and you cannot change it; its value is negative and lowers the cost. With branches on, a bill whose branch differs from the branch of its letter of credit is not saved: "Bill branch is different from the selected LC branch, cannot continue." The Letter of Credit field offers only open letters of credit, and those of the branch of the bill if branches are on. If you choose a letter of credit and leave Type at Without, the message "Please set the Letter of Credit type" appears. A bill classified as Expense must not hold a stock material, otherwise the message "Cannot add or modify a bill defined as an expense in the Letter of Credit in case the bill has one stock material or more" appears. With perpetual inventory, the material, addition and discount accounts of an expense bill take the account of the letter of credit. See Bill More Info.
- Voucher: voucher lines have the column Letter of Credit. If one of the options is on and you choose a letter of credit in a line, the program puts the account of the letter of credit in the line and takes its branch. With perpetual inventory you cannot change that account. See Payment voucher and Journal entry.
- If you modify a bill or a voucher and the program saves its lines again, it relinks the chosen expense types to the new lines by line number.
- You can follow the cost of letters of credit in the report Letter of Credit Movement.
Messages
| Message | Why it appears | What to do |
|---|---|---|
| This window contains some information that might be duplicated... Are you sure you want to add? | You clicked Add with a saved letter of credit on the screen. | Click Yes, or No and use Modify. |
| Code is Missing | Code is empty. | Write the code. |
| Please enter the name | Name is empty. | Write the name. |
| Please set the main letter of credit | You did not choose Main Letter of Credit. | Choose it. |
| Please select an account | Account is enabled and empty. | Choose an account. |
| Contra Account is missing | Contra Account is enabled and empty. | Choose an account. |
| Please set the closing entry form | An option is on and you did not choose Entry Form. | Choose the form. |
| Please select branch | Branches are on and you did not choose Branch. | Choose it. |
| Invalid value, and under it: Estimated Closing Date can’t be prior to opening date | Estimated Closing Date is before Opening Date. | Correct one of the dates. |
| Invalid value, and under it: Code is used in another card. Card can't be saved!: … | The code is used by another letter of credit. | Change the code. |
| Invalid value, and under it: The name is used in another card Can't save card!: … | The name or the Latin name is used by another letter of credit. | Change it. |
| Are you sure you want to complete saving? / Are you sure you want to save changes ? / Are you sure you want to delete? | The warning option is on, or you clicked Delete. | Click Save or Delete to continue. |
| Do you want to ignore the inputs and close the window? | You closed the window with unsaved changes, and the warning option On cancel is on. | Close Window discards the changes, Cancel goes back. |
| Window settings has changed. Do you want to ignore changes? | You clicked Update and the window has an unsaved change. | Click Yes to drop it, or No to stay. |
| Cannot delete the card!, and under it: The letter of credit card is used in a bill or entry | The letter of credit has a bill or an expense. | Remove it from the bills and vouchers first. |
| Please set the expense type | A line of the Expenses grid has no Expense Type and you chose Close. | Choose the type in every line and click Modify. |
| Please set a numeric value for (…) field in (…) material card. | The allocation field in the material card is empty or not numeric. | Write a number in the field. |
| Letter of credit is closed successfully | The closing succeeded. | — |
| Closing letter of credit has cancelled successfully | The reopening succeeded. | — |
| Branches of Entries and bills are different from LC branch, cannot close! | Branches are on, the letter of credit has a branch, and the branch of a bill or entry on it is different. | Make the branches the same and try again. |
| Account branch is different from LC branch, cannot close! | Branches are on and the branches of the Account do not include the branch of the letter of credit. | Choose an account that shows in the branch of the letter of credit. |
| Branch of cost center of closing entry is different from LC branch, cannot close! | The same, for the cost center. | Choose a center that shows in the branch of the letter of credit. |
| Main LC branch is different from LC branch, cannot close! | The same, for the main letter of credit. | Change the branches of the main letter of credit or of the letter of credit. |
| Cannot perform an operation that has a source code not belong to the current database. | The letter of credit was created in another replication database. | Do the operation in the database that created it. |
When one of the four branch messages appears, nothing changes: the program undoes the whole closing. If there is more than one, only the first appears. The branches are checked at closing only, if branches are on and the letter of credit has a branch and an Account.
Related
This page applies to alameen ERP 10, version 10.1.79.764.