sum or substration of two tabular section located in differents documents

The 1C:Enterprise developers forum

#1
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Jan 16, 2022
Company: EMU

hello guys! can anyone help me for sum or substration of two tabular section located in differents documents.

 
#2
People who like this:0Yes/0No
Administrator
Rating: 23
Joined: Oct 3, 2019
Company:

Hello Ndayisenga,

would you describe your task in more detail?

 
#3
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Jan 16, 2022
Company: EMU



i wanna substract loanAmount in document called loan with RepaidAmount in document called RepaidCredits

Remaining = loanAmount - RepaidAmount

 
#4
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Jan 16, 2022
Company: EMU

 
#5
People who like this:0Yes/0No
Administrator
Rating: 23
Joined: Oct 3, 2019
Company:

Hi Ndayisenga,

see this example pls:

Code
sumRepaidAmount = docRepayingCredits.RepayingBook.Total("RepaidAmount");
sumLoanAmount    = docLoans.YourCredits.Total("loanAmount");

Remaining = sumLoanAmount - sumRepaidAmount;


variables "docRepayingCredits" and "docLoans" must contain a reference to the relevant documents

 
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.