How to show Remaining balance amount in distributi
-
- Posts: 13
- Joined: Fri May 07, 2010 8:19 am
- Location: Pakistan
- Contact:
How to show Remaining balance amount in distributi
When we enter distribution lines while entering invoice, which is less then total amount, it should show total of all distributions after entering each line. If total amount is 10,000 and we enter value 9,000 on distribution, we want to show 1,000 remaining balance there on the form so that we can easily distinguish the remaining balance amount.
-
- Posts: 13
- Joined: Fri May 07, 2010 8:19 am
- Location: Pakistan
- Contact:
-
- Posts: 74
- Joined: Tue Jul 10, 2007 10:02 am
- Location: India
Hello.
Navigate to Help/Diagnostics/Custom Code/Personalize and enter the following personalization:
Condition Tab
Trigger Event->WHEN-NEW-ITEM-INSTANCE
Trigger Object->D_SUM_FOLDER.AMOUNT
Condition->:INV_SUM_FOLDER.INVOICE_AMOUNT > :INV_SUM_FOLDER.DISTRIBUTION_TOTAL
Action Tab
Type->Message
Message Type->Show
Message Text->='The amount remaining is now: '||' ' ||(:INV_SUM_FOLDER.INVOICE_AMOUNT - :INV_SUM_FOLDER.DISTRIBUTION_TOTAL)
Pay attention to colon.
Let me know if it worked.
Octavio
Navigate to Help/Diagnostics/Custom Code/Personalize and enter the following personalization:
Condition Tab
Trigger Event->WHEN-NEW-ITEM-INSTANCE
Trigger Object->D_SUM_FOLDER.AMOUNT
Condition->:INV_SUM_FOLDER.INVOICE_AMOUNT > :INV_SUM_FOLDER.DISTRIBUTION_TOTAL
Action Tab
Type->Message
Message Type->Show
Message Text->='The amount remaining is now: '||' ' ||(:INV_SUM_FOLDER.INVOICE_AMOUNT - :INV_SUM_FOLDER.DISTRIBUTION_TOTAL)
Pay attention to colon.
Let me know if it worked.
Octavio
-
- Posts: 13
- Joined: Fri May 07, 2010 8:19 am
- Location: Pakistan
- Contact:
Thanks Octavio
it calculates the condition but doesnt provide the result,,,
i cant understand where is the mistake.. can you pleaze tell me
Condition is:
:LINE_SUM_FOLDER.D_SUM_AMOUNT > :LINE_SUM_FOLDER.D_SUM_DIST_TOTAL
works fine but
in message
(:LINE_SUM_FOLDER.D_SUM_AMOUNT - :LINE_SUM_FOLDER.D_SUM_DIST_TOTAL)
it is not calculating the difference...
can you please tell me where i am having the problem.
Mazahir Abbas
it calculates the condition but doesnt provide the result,,,
i cant understand where is the mistake.. can you pleaze tell me
Condition is:
:LINE_SUM_FOLDER.D_SUM_AMOUNT > :LINE_SUM_FOLDER.D_SUM_DIST_TOTAL
works fine but
in message
(:LINE_SUM_FOLDER.D_SUM_AMOUNT - :LINE_SUM_FOLDER.D_SUM_DIST_TOTAL)
it is not calculating the difference...
can you please tell me where i am having the problem.
Mazahir Abbas
-
- Posts: 13
- Joined: Fri May 07, 2010 8:19 am
- Location: Pakistan
- Contact:
Who is online
Users browsing this forum: No registered users and 1 guest