its the condition required on a cell
now for condition before is
else if(vendtrans.TransType != LedgerTransType::Payment && vendtrans.TransType != LedgerTransType::Settlement && vendtrans.DueDate <= toDate)
and condition after is (vendtrans.TransType == LedgerTransType::Payment , how these can be put together else if(vendtrans.TransType != LedgerTransType::Payment && vendtrans.TransType != LedgerTransType::Settlement && vendtrans.DueDate <= toDate)
{
AdvToVend = vendtrans.AmountMST;
cell = null;
cell = cells.get_Item(currentRow, 9);
cell.get_style().get_Numberformat().set_Format("0");
cell.set_Value(AdvToVend);
}
Hi Sachin,
Had you noticed my reply from several minutes ago? You might be writing your reply at the moment I was posting my thoughts.
t should meet both conditions thats the problem and else if
(vendtrans.TransType != LedgerTransType::Payment && vendtrans.TransType != LedgerTransType::Settlement && vendtrans.DueDate <= toDate
&& vendtrans.TransType == LedgerTransType::Payment)
this will cause logical problem as one way i am choosing to payment transtype(but vendtrans.DueDate <= toDate with this conditions )and other way i also want transtype payment
Hi Sachin,
When I try to understand your question, I think it should meet the first condition or the second condition. I'm ignoring the word Total in the description as I can only see the part of your coding where you share the if=statement. To combine them you can do it in the next way:
else if ((vendtrans.TransType != LedgerTransType::Payment && vendtrans.TransType != LedgerTransType::Settlement && vendtrans.DueDate <= toDate) || (vendtrans.TransType == LedgerTransType::Payment))
I don't understand your question. Please elaborate.
By the way, I changed the category from Administration and Setup to Development / Customization / SDK, because your question clearly is about development.
André Arnaud de Cal...
291,979
Super User 2025 Season 1
Martin Dráb
230,848
Most Valuable Professional
nmaenpaa
101,156