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

Hello Everybody,

I want to give my invoices a number like : (actual month -1)/invoice Serial number, for example, this is month 9, I want that the system gives my invoices a number like 08/39000, I can now only give my invoices a number like : 09/39000

I tried in the prefix to do : %((month)s-1) but the minus 1 does'nt work.

Thanks in advance for your precious help.

 

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

Hello, 

I've tried it, it gives me this error  : 

Constraint Error
Invoice Number must be unique per Company.

Thanks.

อวตาร
ละทิ้ง

Maybe you have already invoice with same number in previous month. Try it on empty database.

ผู้เขียน

I think It ust took month-1 like 09-1, it did'nt take it like an arithmetic operation, that's why, because I had the same result using %((month)s-1)

It could be. you must see invoice number genreated

2014-09-11 15:19 GMT+02:00 Yassine TEIMI <yteimi01@gmail.com>:

I think It ust took month-1 like 09-1, it did'nt take it like an arithmetic operation, that's why, because I had the same result using %((month)s-1)

--
Yassine TEIMI
Sent by OpenERP S.A. using Odoo about Forum Post False

คำตอบที่ดีที่สุด

I do not know if it works but if it would work it would be:

%((month-1)s)

อวตาร
ละทิ้ง
ผู้เขียน

Hello, I've tried it, it gives me this error : Constraint Error Invoice Number must be unique per Company. Thanks.

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ก.ย. 24
1629
2
มี.ค. 24
3375
2
ก.พ. 23
3989
Manually set invoice number แก้ไขแล้ว
6
ต.ค. 20
38356
1
ก.ย. 20
4588