Overview
Comment:Invoice module: status change fixed
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | invoice_module
Files: files | file ages | folders
SHA3-256: 16c249bfab4c5ec1d9f50d4d0ff39f06419811cf2cb6816931b215c9390844d9
User & Date: alinaar on 2023-03-03 15:33:34
Other Links: branch diff | manifest | tags
Context
2023-03-03
15:43
Invoice module: JSON schemas moved to specific folder check-in: 66f8a81566 user: alinaar tags: invoice_module
15:33
Invoice module: status change fixed check-in: 16c249bfab user: alinaar tags: invoice_module
15:29
Invoice module: contact_info renamed to org_contact check-in: 58de99b283 user: alinaar tags: invoice_module
Changes

Modified src/skel-dist/modules/invoice/details.html from [764a8669d3] to [cab9cf5162].

13
14
15
16
17
18
19
20
21
22

23
24
25



26
27
28
29
30
31


32


33
34

35
36
37
38
39
40
41
42
43
			{{:error message='Aucun devis sélectionné:'}}
		{{else}}
			{{:assign var='new_status_label' from='STATUS_LABELS.%s'|args:$_POST.status}}
			{{if $new_status_label === null}}
				{{:assign var='errors[]' value='Nouveau statut invalide : %s.'|args:$_POST.status}}
			{{else}}
				{{#load id=$_POST.id|intval}}
					
					{{:save id=$id
						validate_schema="./quotation.schema.json"

						type=$type
						recipient_business_name=$recipient_business_name
						recipient_address=$recipient_address



						subject=$subject
						date=$date
						deadline=$deadline
						status=$_POST.status
						items=$items
						total=$total


						org_contact=$org_contact


						payment_detail=$payment_detail
						extra_info=$extra_info

					}}
					
					{{:http redirect="?id=%d&ok=1"|args:$id}}
				{{/load}}
			{{/if}}
			{{#foreach from=$errors item='error'}}
				<p class="error block">{{$error}}</p>
			{{/foreach}}
		{{/if}}







<


>



>
>
>






>
>

>
>


>

|







13
14
15
16
17
18
19

20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
			{{:error message='Aucun devis sélectionné:'}}
		{{else}}
			{{:assign var='new_status_label' from='STATUS_LABELS.%s'|args:$_POST.status}}
			{{if $new_status_label === null}}
				{{:assign var='errors[]' value='Nouveau statut invalide : %s.'|args:$_POST.status}}
			{{else}}
				{{#load id=$_POST.id|intval}}

					{{:save id=$id
						validate_schema="./quotation.schema.json"
						key=$key
						type=$type
						recipient_business_name=$recipient_business_name
						recipient_address=$recipient_address
						recipient_member_id=$recipient_member_id
						recipient_member_numero=$recipient_member_numero
						introduction_text=$introduction_text
						subject=$subject
						date=$date
						deadline=$deadline
						status=$_POST.status
						items=$items
						total=$total
						vat_exemption=$vat_exemption
						siret=$siret
						org_contact=$org_contact
						signing_place=$signing_place
						signing_date=$signing_date
						payment_detail=$payment_detail
						extra_info=$extra_info
						module_version=$module_version
					}}

					{{:http redirect="?id=%d&ok=1"|args:$id}}
				{{/load}}
			{{/if}}
			{{#foreach from=$errors item='error'}}
				<p class="error block">{{$error}}</p>
			{{/foreach}}
		{{/if}}