Summary of issue/request/query
XML file sent from Billing looks like messed up:
Attached is different XML file again, even more messed up, contain billing number from past billing B000001 and contain billing from another warehouse
What I did is this query: (internal)
UPDATE
BIL_SUMMARY A
LEFT JOIN BIL_TARIFF_DETAILS D
ON A.ORGANIZATIONID = D.ORGANIZATIONID
AND A.TARIFFID = D.TARIFFID
AND D.CHARGECATEGORY = A.`chargeCategory`
AND D.`chargeType` = A.`chargeType`
AND D.RATEBASE=A.RATEBASE
SET A.UDF01=D.UDF01, A.UDF02=D.UDF02 ,A.UDF04=D.UDF06
WHERE A.ORGANIZATIONID = 'OJV_CML'
AND A.WAREHOUSEID = 'CBT01'
AND A.UDF01 IS NULL
To ensure the 3 fields are the same then correct XML will be exported
Files | ||
---|---|---|
|
DataImage71.png
497 KB
|
|
|
||
|
||
|