Desktop version

Main > Forum > Applications > 1C:AccountingSuite > Showing of QtyOnHand etc. in the choice form

Forum

Search UsersRules
Showing of QtyOnHand etc. in the choice form
#1
Interested
Points:: 0
Joined:: Nov 10, 2011

Hi,

how can I configure 1C:Accounting Suite v. 29 in order to show QtyOnHand when a user creates a SalseInvoice and selects an item from the list?

Thanks for any advice.

Profile
#2
Active user
Points:: 23
Joined:: Jul 29, 2011

you can run a query, something like this:

Code
Query = New Query("SELECT
                  |   InventoryJrnlBalance.QtyBalance
                  |FROM
                  |   AccumulationRegister.InventoryJrnl.Balance AS InventoryJrnlBalance
                  |WHERE
                  |   InventoryJrnlBalance.Product = &Product
                  |   AND InventoryJrnlBalance.Location = &Location");
Query.SetParameter("Product", CurRowLineItems.Product);
Query.SetParameter("Location", Location);
QueryResult = Query.Execute();

If QueryResult.IsEmpty() Then
Else
  Dataset = QueryResult.Unload();
  CurrentBalance = Dataset[0][0];
EndIf;


and then find out a way to show a balance, maybe in a message window - Message();

Also when you open the item card the balance is shown on the card.

Profile
#3
Interested
Points:: 0
Joined:: Nov 10, 2011

Konstantin,

Thank you for your answer. Is there some possibility to see this quantity directly in the list? There are:

Code, Description, Type and Price.

I would like to have an additional column with this attribute. How can I do it?

Profile
#4
Active user
Points:: 23
Joined:: Jul 29, 2011

after a sales invoice is created QtyOnHand can change. how do you plan to handle this:

1) save QtyOnHand at the moment when the document was created and don't update it?
2) update this information every time the document is open?
3) only put Qty in this column for the selected item row, but erase it after the user moves to a different row?

Profile
#5
Interested
Points:: 0
Joined:: Nov 10, 2011

Konstantin,

you wrote the balance was shown on the item card. Is it not the same, just another presentation at another moment?

Profile
#6
Guest
Points::
Joined::

I suggest you to implement this function using a Pickup form from Goods Expence document of Managed Application Demo as an example.

Profile
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)



© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.