extend topping slot
Signed-off-by: Pakin <pakin.t@forth.co.th>
This commit is contained in:
parent
05d66feb6f
commit
bcfab1ba89
1 changed files with 7 additions and 3 deletions
|
|
@ -125,11 +125,15 @@ pub fn get_mat_prefix(country: &str) -> String {
|
|||
pub fn check_allowed_change_mat_prefix(mat_id: Value) -> bool {
|
||||
let mat_id_i = mat_id.as_i64().unwrap();
|
||||
|
||||
let exception_list = [
|
||||
2101, 1031, 1, 9100, 8101, 8102, 8111, 8112, 8113, 8114, 8115, 8116, 8117, 8118, 8119,
|
||||
8120, 8001, 8002, 8888, 8889, 200000, 201001, 201002, 100004, 0,
|
||||
let mut exception_list = vec![
|
||||
2101, 1031, 1, 9100, 8101, 8102, 8001, 8002, 8888, 8889, 200000, 201001, 201002, 100004, 0,
|
||||
];
|
||||
|
||||
// topping slot
|
||||
for i in 1..21 {
|
||||
exception_list.push(8110 + i);
|
||||
}
|
||||
|
||||
!exception_list.contains(&mat_id_i)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue