Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- if substring(pt_mstr.pt_part,1,4) = "0805"
- and substring(pt_mstr.pt_part,15,3) <> "048"
- and pt_mstr.pt__dec01 >= 2
- and xptk_mstr.xptk_dec02 >= 600
- and string(xptk_mstr.xptk_tariff) = "7208400010"
- then all_txt = "OK".
- if substring(pt_mstr.pt_part,1,4) = "0805"
- and substring(pt_mstr.pt_part,15,3) <> "048"
- and pt_mstr.pt__dec01 < 2
- and xptk_mstr.xptk_dec02 >= 600
- and string(xptk_mstr.xptk_tariff) = "7208400090"
- then all_txt = "OK".
- if substring(pt_mstr.pt_part,1,4) = "0806"
- and substring(pt_mstr.pt_part,15,3) <> "048"
- and pt_mstr.pt__dec01 >= 2
- and xptk_mstr.xptk_dec02 >= 600
- and string(xptk_mstr.xptk_tariff) = "7208400010"
- then all_txt = "OK".
- if substring(pt_mstr.pt_part,1,4) = "0806"
- and substring(pt_mstr.pt_part,15,3) <> "048"
- and pt_mstr.pt__dec01 < 2
- and xptk_mstr.xptk_dec02 >= 600
- and string(xptk_mstr.xptk_tariff) = "7208400090"
- then all_txt = "OK".
- if substring(pt_mstr.pt_part,1,4) = "0807"
- and substring(pt_mstr.pt_part,15,3) <> "048"
- and pt_mstr.pt__dec01 >= 2
- and xptk_mstr.xptk_dec02 >= 600
- and string(xptk_mstr.xptk_tariff) = "7208400010"
- then all_txt = "OK".
- if substring(pt_mstr.pt_part,1,4) = "0807"
- and substring(pt_mstr.pt_part,15,3) <> "048"
- and pt_mstr.pt__dec01 < 2
- and xptk_mstr.xptk_dec02 >= 600
- and string(xptk_mstr.xptk_tariff) = "7208400090"
- then all_txt = "OK".
- if substring(pt_mstr.pt_part,1,4) = "0900"
- and substring(pt_mstr.pt_part,15,3) <> "048"
- and substring(pt_mstr.pt_part,15,3) <> "051"
- and pt_mstr.pt__dec01 < 3
- and xptk_mstr.xptk_dec02 >= 600
- and string(xptk_mstr.xptk_tariff) = "7208540000"
- then all_txt = "OK".
- if substring(pt_mstr.pt_part,1,4) = "0900"
- and substring(pt_mstr.pt_part,15,3) <> "048"
- and substring(pt_mstr.pt_part,15,3) <> "051"
- and pt_mstr.pt__dec01 >= 3
- and pt_mstr.pt__dec01 < 4.75
- and xptk_mstr.xptk_dec02 >= 600
- and string(xptk_mstr.xptk_tariff) = "7208539000"
- then all_txt = "OK".
- if substring(pt_mstr.pt_part,1,4) = "0900"
- and substring(pt_mstr.pt_part,15,3) <> "048"
- and substring(pt_mstr.pt_part,15,3) <> "051"
- and pt_mstr.pt__dec01 >= 4.75
- and pt_mstr.pt__dec01 <= 10
- and xptk_mstr.xptk_dec02 >= 2050
- and string(xptk_mstr.xptk_tariff) = "7208529110"
- then all_txt = "OK".
- if substring(pt_mstr.pt_part,1,4) = "0900"
- and substring(pt_mstr.pt_part,15,3) <> "048"
- and substring(pt_mstr.pt_part,15,3) <> "051"
- and pt_mstr.pt__dec01 >= 4.75
- and pt_mstr.pt__dec01 <= 10
- and xptk_mstr.xptk_dec02 >= 600
- and xptk_mstr.xptk_dec02 < 2050
- and string(xptk_mstr.xptk_tariff) = "7208529900"
- then all_txt = "OK".
- if substring(pt_mstr.pt_part,1,4) = "0900"
- and substring(pt_mstr.pt_part,15,3) <> "048"
- and substring(pt_mstr.pt_part,15,3) <> "051"
- and pt_mstr.pt__dec01 > 10
- and pt_mstr.pt__dec01 <= 15
- and xptk_mstr.xptk_dec02 >= 2050
- and string(xptk_mstr.xptk_tariff) = "7208519110"
- then all_txt = "OK".
- if substring(pt_mstr.pt_part,1,4) = "0900"
- and substring(pt_mstr.pt_part,15,3) <> "048"
- and substring(pt_mstr.pt_part,15,3) <> "051"
- and pt_mstr.pt__dec01 > 10
- and pt_mstr.pt__dec01 <= 15
- and xptk_mstr.xptk_dec02 >= 600
- and xptk_mstr.xptk_dec02 < 2050
- and string(xptk_mstr.xptk_tariff) = "7208519810"
- then all_txt = "OK".
- if substring(pt_mstr.pt_part,1,4) = "0900"
- and substring(pt_mstr.pt_part,15,3) <> "048"
- and substring(pt_mstr.pt_part,15,3) <> "051"
- and pt_mstr.pt__dec01 > 15
- and xptk_mstr.xptk_dec02 >= 600
- and string(xptk_mstr.xptk_tariff) = "7208512010"
- then all_txt = "OK".
- if substring(pt_mstr.pt_part,1,4) = "0900"
- and substring(pt_mstr.pt_part,15,3) <> "048"
- and substring(pt_mstr.pt_part,15,3) <> "051"
- and pt_mstr.pt__dec01 >= 4.75
- and xptk_mstr.xptk_dec02 > 500
- and string(xptk_mstr.xptk_tariff) = "7211140010"
- then all_txt = "OK".
- if substring(pt_mstr.pt_part,1,4) = "0900"
- and substring(pt_mstr.pt_part,15,3) <> "048"
- and substring(pt_mstr.pt_part,15,3) <> "051"
- and pt_mstr.pt__dec01 >= 4.75
- and xptk_mstr.xptk_dec02 <= 500
- and string(xptk_mstr.xptk_tariff) = "7211140090"
- then all_txt = "OK".
- if substring(pt_mstr.pt_part,1,4) = "0900"
- and substring(pt_mstr.pt_part,15,3) <> "048"
- and substring(pt_mstr.pt_part,15,3) <> "051"
- and pt_mstr.pt__dec01 < 4.75
- and xptk_mstr.xptk_dec02 > 500
- and string(xptk_mstr.xptk_tariff) = "7211190010"
- then all_txt = "OK".
- if substring(pt_mstr.pt_part,1,4) = "0900"
- and substring(pt_mstr.pt_part,15,3) <> "048"
- and substring(pt_mstr.pt_part,15,3) <> "051"
- and pt_mstr.pt__dec01 < 4.75
- and xptk_mstr.xptk_dec02 <= 500
- and string(xptk_mstr.xptk_tariff) = "7211190090"
- then all_txt = "OK".
- if substring(pt_mstr.pt_part,1,4) = "0A00"
- and substring(pt_mstr.pt_part,15,3) <> "048"
- and substring(pt_mstr.pt_part,15,3) <> "051"
- and pt_mstr.pt__dec01 < 0.5
- and xptk_mstr.xptk_dec02 >= 600
- and string(xptk_mstr.xptk_tariff) = "7209289000"
- then all_txt = "OK".
- if substring(pt_mstr.pt_part,1,4) = "0A00"
- and substring(pt_mstr.pt_part,15,3) <> "048"
- and substring(pt_mstr.pt_part,15,3) <> "051"
- and pt_mstr.pt__dec01 >= 0.5
- and pt_mstr.pt__dec01 <= 1
- and xptk_mstr.xptk_dec02 >= 600
- and string(xptk_mstr.xptk_tariff) = "7209279000"
- then all_txt = "OK".
- if substring(pt_mstr.pt_part,1,4) = "0A00"
- and substring(pt_mstr.pt_part,15,3) <> "048"
- and substring(pt_mstr.pt_part,15,3) <> "051"
- and pt_mstr.pt__dec01 > 1
- and pt_mstr.pt__dec01 < 3
- and xptk_mstr.xptk_dec02 >= 600
- and string(xptk_mstr.xptk_tariff) = "7209269000"
- then all_txt = "OK".
- if substring(pt_mstr.pt_part,1,4) = "0A00"
- and substring(pt_mstr.pt_part,15,3) <> "048"
- and substring(pt_mstr.pt_part,15,3) <> "051"
- and pt_mstr.pt__dec01 >= 3
- and xptk_mstr.xptk_dec02 >= 600
- and string(xptk_mstr.xptk_tariff) = "7209250090"
- then all_txt = "OK".
- if substring(pt_mstr.pt_part,1,4) = "0A00"
- and substring(pt_mstr.pt_part,15,3) <> "048"
- and substring(pt_mstr.pt_part,15,3) <> "051"
- and pt_mstr.pt__dec01 >= 0.35
- and xptk_mstr.xptk_dec02 < 600
- and xptk_mstr.xptk_dec02 > 500
- and string(xptk_mstr.xptk_tariff) = "7211233010"
- then all_txt = "OK".
- if substring(pt_mstr.pt_part,1,4) = "0A00"
- and substring(pt_mstr.pt_part,15,3) <> "048"
- and substring(pt_mstr.pt_part,15,3) <> "051"
- and pt_mstr.pt__dec01 >= 0.35
- and xptk_mstr.xptk_dec02 < 600
- and xptk_mstr.xptk_dec02 <= 500
- and string(xptk_mstr.xptk_tariff) = "7211233099"
- then all_txt = "OK".
- if substring(pt_mstr.pt_part,1,4) = "0A00"
- and substring(pt_mstr.pt_part,15,3) <> "048"
- and substring(pt_mstr.pt_part,15,3) <> "051"
- and pt_mstr.pt__dec01 < 0.35
- and xptk_mstr.xptk_dec02 < 600
- and xptk_mstr.xptk_dec02 > 500
- and string(xptk_mstr.xptk_tariff) = "7211238011"
- then all_txt = "OK".
- if substring(pt_mstr.pt_part,1,4) = "0A00"
- and substring(pt_mstr.pt_part,15,3) <> "048"
- and substring(pt_mstr.pt_part,15,3) <> "051"
- and pt_mstr.pt__dec01 < 0.35
- and xptk_mstr.xptk_dec02 < 600
- and xptk_mstr.xptk_dec02 <= 500
- and string(xptk_mstr.xptk_tariff) = "7211238099"
- then all_txt = "OK".
- if substring(pt_mstr.pt_part,1,4) = "0A00"
- and substring(pt_mstr.pt_part,15,3) = "051"
- and xptk_mstr.xptk_dec02 > 600
- and string(xptk_mstr.xptk_tariff) = "7225508000"
- then all_txt = "OK".*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement