hino / app / controllers / account-management / account-address.js
account-address.js
Raw
import Controller from '@ember/controller';

export default Controller.extend({
	queryParams: ['page', 'perPage', 'sort', 'filter'],
	page: 1,
	perPage: 15,
	filter: null,
	parentId: "",
	init() {
		this._super(...arguments);
		this.table = {
			mode: "list",
			model: "account-address",
			columns: [
			{
				name: 'Party Number',
				key: 'partyNumber',
				uri: "account-address.detail",
				editUri: "account-address.edit"
			},
			{
				name: 'Is Primary',
				key: 'isPrimary',
			},
			{
				name: 'Type',
				key: 'addressType.addressType',
			},
			{
				name: 'Country',
				key: 'country.countryName',
			},
			{
				name: 'Alamat 1',
				key: 'alamat1',
			},
			{
				name: 'Alamat 2',
				key: 'alamat2',
			},
			{
				name: 'Alamat 3',
				key: 'alamat3',
			},
			{
				name: 'Kelurahan',
				key: 'village.village',
			},
			{
				name: 'Provinsi',
				key: 'province.province',
			},
			{
				name: 'Kabupaten/Kotamadya',
				key: 'municipality.municipality',
			},
			{
				name: 'Kecamatan',
				key: 'subDistrict.subDistrict',
			},
			{
				name: 'Kode POS',
				key: 'kodePos',
			},
			{
				name: 'Government ID Value',
				key: 'governmentIdValue',
			},
			] 
		};
	},
});