Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
3350 มุมมอง

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

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

Hello,

thank you for your reply.

That helped me a lot!


Regards
Lars

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.พ. 24
6166
1
เม.ย. 25
1385
2
มี.ค. 25
1598
4
พ.ย. 24
7291
1
มี.ค. 24
2193