Programmer:Item Opening Maintenance: Difference between revisions

no edit summary
No edit summary
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 12:
#*The filtering will have impact on adding new record of an ItemCode that is not in the range of the filtered range.
#*:If the newly added ItemCode is not in the filter range, system throw exception message of "Item Code is not in Filter range."
#The value of '''Seq''' cannot repeat the same, when the value of below columns are all the same, or already exist in the record of Item Opening:
#*ItemCode
#*UOM
Line 18:
#*BatchNo
#:If there is any occasion when '''Seq''' is repeated for the same ItemCode, UOM, Location and BatchNo, below error message is thrown:
#:'''Sequence for Item''' 'FG00001', '''UOM''' 'UNIT', '''Location''' 'HQ', '''BatchNo''' ' ' '''is not correct.'''.
#'''Seq''' will affect how the '''cost''' of '''FIFO''' and '''LIFO''' is calculated.
 
==References of AutoCount Accounting version 1.8==
Line 135 ⟶ 136:
===Adding two entries of same ItemCode to Item Opening===
Following example shows the increase of '''Seq''' when 2nd entry of Item Opening has the same '''ItemCode''', '''UOM''', '''Location''' and '''BatchNo''' from the 1st entry.
<syntaxhighlight lang="csharp" highlight="22-24,31-33,27,36">
public void NewTwoEntriesOfSameItem(BCE.Data.DBSetting dbSetting)
{
Line 185 ⟶ 186:
</syntaxhighlight>
 
==Find and Delete Item Opening entry==
When delete existing item opening entry, "ItemOpeningKey" is required.<br/>
This example uses a function to find the ItemOpeningKey.<br/>
Line 245 ⟶ 246:
</syntaxhighlight>
 
===Get '''ItemOpeningKey'''===
Function to find a list of keys that is/are matching.
<syntaxhighlight lang="csharp">