Dear All,
Expect your valuable advice on this.
I have come across this error in the cash box payment. The below mentioned error appears when we try to approve the cash box payment.
As we investigate the issue further, the basic data were set accordingly and the there were no functional error with regards to the relevant transaction ID. And no customization done & this is standard IFS. Transaction Type -Direct Cash Payment
As we checked from the backend /sql we found there is link with the mixed payment table. Hence, we had to do small data repair and proceed with the transaction.
Refer the below sql query for further understanding. Expect your inputs whether this is bug or whether we can eliminate this error through functionally.
CURSOR get_zero_payment_line IS
SELECT t.party_type,t.lump_sum_trans_id,t.mixed_payment_ledger_trans_id
FROM MIXED_PAYMENT_LEDGER_TRANS_TAB t
WHERE t.company = '***'
AND t.mixed_payment_id = '29641'
AND NVL(t.curr_amount,0) = 0
AND NVL(t.disc_curr_amount,0) = 0
AND NVL(t.withheld_tax_curr_amount,0) = 0
AND NVL(t.write_off_curr_amount,0) = 0
AND NVL(Mixed_Payment_Deduct_Det_API.Get_Deduction_Amount(company,
mixed_payment_id,
lump_sum_trans_id,
mixed_payment_ledger_trans_id),0) = 0
AND ( NVL(t.new_diff_item,'FALSE') = 'TRUE'
OR NVL(Ledger_Item_API.Is_Invoice_Str(company,
t.identity,
Party_Type_API.Decode(t.party_type),
t.ledger_item_series_id,
t.ledger_item_id,
t.ledger_item_version),'FALSE') = 'TRUE');
Please advise.
Regards
Naadira