Showing of QtyOnHand etc. in the choice form

Accounting and inventory IFRS/GAAP suite for SMB. General questions. See 1C:AccountingSuite details

#1
People who like this:0Yes/0No
Interested
Rating: 11
Joined: Nov 10, 2011
Company: 1A Software e.U

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.

 
#2
People who like this:0Yes/0No
Active user
Rating: 4
Joined: Jul 29, 2011
Company: 1C Company

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.

 
#3
People who like this:0Yes/0No
Interested
Rating: 11
Joined: Nov 10, 2011
Company: 1A Software e.U

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?

 
#4
People who like this:0Yes/0No
Active user
Rating: 4
Joined: Jul 29, 2011
Company: 1C Company

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?

 
#5
People who like this:0Yes/0No
Interested
Rating: 11
Joined: Nov 10, 2011
Company: 1A Software e.U

Konstantin,

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

 
#6
People who like this:0Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

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

 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)
Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.