Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
3324 Lượt xem

Hello,


as my customer uses a very special invoice number, I was wondering, if it is possible to access the single components of the number, which is generated as a sequence from a prefix and an increasing number.

So, would it be possible to e.g. just print the prefix in a report? As the prefix is also generated by a char and "%(year)s", would it also be possible to only access the year-part?


Thanks in advance.

Regards

Lars

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

Hello,

thank you for your reply.

That helped me a lot!


Regards
Lars

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Probably this is not the best way, but I dont know other way. As you know how many characters the prefix has, you can try something like this:

o.number[0:2] for example. Just set the correct range. Same for years.

Like i say, its not the best way, if the prefix or years character numbers change, you should change the report too... But I dont know other way.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 2 24
6110
1
thg 4 25
1290
2
thg 3 25
1476
4
thg 11 24
7144
1
thg 3 24
2086