mirror of https://github.com/jeecgboot/jeecg-boot
fix: disabling edit when invoice number not null
parent
f5b88dcc70
commit
e528d9f947
|
@ -53,7 +53,8 @@
|
|||
UPDATE extra_fee
|
||||
SET unit_price = #{price},
|
||||
quantity = #{qty},
|
||||
description = #{description}
|
||||
description =
|
||||
IF(option_id = (SELECT id FROM extra_fee_option WHERE en_name = 'Autres') AND invoice_number IS NULL, #{description}, description)
|
||||
WHERE id = #{id};
|
||||
</update>
|
||||
</mapper>
|
Loading…
Reference in New Issue