Desktop version

Main > Forum > 1C:Enterprise Platform > 1C:Enterprise – Business applications platform > sum or substration of two tabular section located in differents documents

Forum

Search UsersRules
sum or substration of two tabular section located in differents documents
#1
Just came
Points:: 0
Joined:: Jan 16, 2022

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

Profile
#2
Administrator
Points:: 0
Joined:: Oct 3, 2019

Hello Ndayisenga,

would you describe your task in more detail?

Profile
#3
Just came
Points:: 0
Joined:: Jan 16, 2022



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

Remaining = loanAmount - RepaidAmount

Profile
#4
Just came
Points:: 0
Joined:: Jan 16, 2022

Profile
#5
Administrator
Points:: 0
Joined:: Oct 3, 2019

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

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.