from parser_helper import *

def parse_indolakto(items):

    result = {
        "supplier": "PT.INDOLAKTO",
        "invoice_no": None,
        "tanggal": None
    }

    faktur = find_text(
        items,
        "FAKTUR"
    )

    if faktur:

        nomor = find_below(
            items,
            faktur
        )

        if nomor:
            result["invoice_no"] = nomor["text"]

    return result