Pada record room stay, ketika klik tombol issue card maka akan menyimpan data berikut ke doctype room card. Lalu, tambahkan field read-only room card number yg link ke doctype room card yang muncul setelah klik issued card.
Buat doctype room card dengan atribut berikut
reservation number (otomatis terisi ketika issued card)
room (otomatis terisi ketika issued card)
guest name (otomatis terisi ketika issued card)
punya child table: card issued
card number: (membaca dari card yang di scan)
active: boolean-checkbox (otomatis terisi ketika issued card)
arrival (otomatis terisi ketika issued card)
departure (otomatis terisi ketika issued card)
issued date: timestamp (otomatis terisi ketika issued card)
issued by: link ke doctype user (otomatis terisi ketika issued card)
Pada record room stay, ketika klik tombol issue card maka akan menyimpan data berikut ke doctype room card. Lalu, tambahkan field read-only room card number yg link ke doctype room card yang muncul setelah klik issued card.
Buat doctype room card dengan atribut berikut
punya child table: card issued