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: 14
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: 14
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
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.