import Pts from '~/components/business/commonModel/Pts';
import Pub from '~/components/business/commonModel/index.js';

export default class Letrsv {
    constructor() {
        this.data = {
            number: '',
            oldledgrp: {
                cbs: {
                    max: {
                        cur: '',
                        amt: '0.00'
                    },
                    max2: {
                        cur: '',
                        amt: '0.00'
                    }
                }
            },
            ledgrp: {
                a2b: {
                    pts: new Pts().data
                },
                blk: {
                    spcben: '',
                    dftat: '',
                    revnotes: '',
                    feetxt: '',
                    mixdet: '',
                    revcls: '',
                    shpper: '',
                    addamtcov: '',
                    avbwthtxt: '',
                    defdet: '',
                    spcrcb: ''
                },
                rec: {
                    inr: '',
                    tenmaxday: '',
                    nomton: '',
                    expplc: '',
                    stacty: '',
                    revtyp: '',
                    revtimes: '',
                    resflg: '',
                    opndat: '',
                    nomtop: '',
                    avbwth: '',
                    revflg: '',
                    spcbenflg: '',
                    dbtflg: '',
                    shpdat: '',
                    revdat: '',
                    nam: '',
                    prepertxts18: '',
                    cnfins: '',
                    nomspc: '',
                    shptrss18: '',
                    spcrcbflg: '',
                    collflg: '',
                    inctrf: '',
                    shpfro: '',
                    lcrtyp: '',
                    nonban: '',
                    ownref: '',
                    teskeyunc: '',
                    preadvdt: '',
                    avbby: '',
                    pordis: '',
                    apprul: '',
                    shppar: '',
                    prepers18: '',
                    expdat: '',
                    shpto: '',
                    revnbr: '',
                    chato: '',
                    cnfdet: '',
                    revcum: '',
                    aplbnkdirsnd: '',
                    advdat: '',
                    porloa: '',
                    apprultxt: ''
                },
                con: {
                    pts: new Pts().data
                },
                cbs: {
                    opn2: {
                        cur: '',
                        amt: ''
                    },
                    max: {
                        cur: '',
                        amt: ''
                    },
                    nom1: {
                        cur: '',
                        amt: ''
                    },
                    max2: {
                        cur: '',
                        amt: ''
                    }
                },
                drw: {
                    pts: new Pts().data
                },
                ben: {
                    pts: new Pts().data
                },
                avb: {
                    pts: new Pts().data
                },
                iss: {
                    pts: new Pts().data
                },
                apl: {
                    pts: new Pts().data
                },
                adv: {
                    pts: new Pts().data
                },
                apb: {
                    pts: new Pts().data
                },
                rmb: {
                    pts: new Pts().data
                },
            },
            letp: {
                usr: {
                    extkey: window.sessionStorage.userId || 'ZL',
                },
                aamp: {
                    aammod: {
                        addamtflg: ''
                    }
                }
            },
            // mtabut: {
            //     coninf: {
            //         usr: {
            //             extkey: ''
            //         }
            //     }
            // },
            setmod: new Pub().data.Setmod,
            mtabut: new Pub().data.Mtabut,
            trnmod: new Pub().data.Trnmod,
            liaall: new Pub().data.Liaall,
            liaccv: new Pub().data.Liaccv,
            docpan: new Pub().data.Docpan,
        };
    }
}