Skip to content

Commit c2be637

Browse files
committed
feat: add SAP B1 entity Filament resources (Partner, Item, Order, Invoice)
- Add PartnerResource with full CRUD for business partners - Add ItemResource with full CRUD for inventory items - Add OrderResource with CRUD and Close/Cancel actions - Add InvoiceResource with CRUD, Cancel action, and payment tracking - Add plugin feature flags: partnerEnabled, itemEnabled, orderEnabled, invoiceEnabled - Add comprehensive translation strings for all resources - Add unit tests for all new resources (24 new tests)
1 parent 6196093 commit c2be637

26 files changed

Lines changed: 2200 additions & 0 deletions

resources/lang/en/sapb1-filament.php

Lines changed: 166 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,5 +217,171 @@
217217
'create_success' => 'Tenant created successfully',
218218
],
219219
],
220+
'partner' => [
221+
'navigation_label' => 'Business Partners',
222+
'model_label' => 'Partner',
223+
'plural_model_label' => 'Partners',
224+
'sections' => [
225+
'basic' => 'Basic Information',
226+
'contact' => 'Contact Information',
227+
'address' => 'Address',
228+
'finance' => 'Finance',
229+
'notes' => 'Notes',
230+
],
231+
'fields' => [
232+
'card_code' => 'Partner Code',
233+
'card_name' => 'Partner Name',
234+
'card_type' => 'Type',
235+
'group_code' => 'Group Code',
236+
'phone1' => 'Phone 1',
237+
'phone2' => 'Phone 2',
238+
'cellular' => 'Mobile',
239+
'fax' => 'Fax',
240+
'email' => 'Email',
241+
'address' => 'Address',
242+
'zip_code' => 'ZIP Code',
243+
'city' => 'City',
244+
'country' => 'Country',
245+
'currency' => 'Currency',
246+
'tax_id' => 'Tax ID',
247+
'valid' => 'Active',
248+
'notes' => 'Notes',
249+
'balance' => 'Balance',
250+
],
251+
'filters' => [
252+
'card_type' => 'Type',
253+
'valid' => 'Status',
254+
'all' => 'All',
255+
'active' => 'Active',
256+
'inactive' => 'Inactive',
257+
],
258+
],
259+
'item' => [
260+
'navigation_label' => 'Items',
261+
'model_label' => 'Item',
262+
'plural_model_label' => 'Items',
263+
'sections' => [
264+
'basic' => 'Basic Information',
265+
'category' => 'Category',
266+
'sales_purchase' => 'Sales / Purchase',
267+
'stock' => 'Stock Information',
268+
],
269+
'fields' => [
270+
'item_code' => 'Item Code',
271+
'item_name' => 'Item Name',
272+
'foreign_name' => 'Foreign Name',
273+
'barcode' => 'Barcode',
274+
'item_type' => 'Item Type',
275+
'group_code' => 'Group Code',
276+
'manufacturer' => 'Manufacturer',
277+
'default_warehouse' => 'Default Warehouse',
278+
'sales_item' => 'Sales Item',
279+
'purchase_item' => 'Purchase Item',
280+
'inventory_item' => 'Inventory Item',
281+
'quantity_on_stock' => 'Quantity On Stock',
282+
'quantity_ordered_vendors' => 'Ordered from Vendors',
283+
'quantity_ordered_customers' => 'Ordered by Customers',
284+
'available' => 'Available',
285+
'valid' => 'Active',
286+
],
287+
'filters' => [
288+
'item_type' => 'Item Type',
289+
'valid' => 'Status',
290+
'all' => 'All',
291+
'active' => 'Active',
292+
'inactive' => 'Inactive',
293+
'sales_item' => 'Sales Item',
294+
'purchase_item' => 'Purchase Item',
295+
'inventory_item' => 'Inventory Item',
296+
'has_stock' => 'Has Stock',
297+
],
298+
],
299+
'order' => [
300+
'navigation_label' => 'Sales Orders',
301+
'model_label' => 'Order',
302+
'plural_model_label' => 'Orders',
303+
'sections' => [
304+
'basic' => 'Basic Information',
305+
'lines' => 'Order Lines',
306+
'totals' => 'Totals',
307+
'notes' => 'Notes',
308+
],
309+
'fields' => [
310+
'doc_num' => 'Order No',
311+
'card_code' => 'Customer',
312+
'card_name' => 'Customer Name',
313+
'doc_date' => 'Order Date',
314+
'doc_due_date' => 'Due Date',
315+
'num_at_card' => 'Customer Ref. No',
316+
'document_lines' => 'Order Lines',
317+
'item_code' => 'Item',
318+
'quantity' => 'Quantity',
319+
'price' => 'Price',
320+
'warehouse_code' => 'Warehouse',
321+
'discount_percent' => 'Discount %',
322+
'vat_sum' => 'Tax Total',
323+
'doc_total' => 'Total',
324+
'comments' => 'Comments',
325+
'status' => 'Status',
326+
],
327+
'filters' => [
328+
'status' => 'Status',
329+
'from' => 'From',
330+
'until' => 'Until',
331+
],
332+
'actions' => [
333+
'close' => 'Close',
334+
'close_confirm_title' => 'Close Order',
335+
'close_confirm_description' => 'Are you sure you want to close this order? This action cannot be undone.',
336+
'cancel' => 'Cancel',
337+
'cancel_confirm_title' => 'Cancel Order',
338+
'cancel_confirm_description' => 'Are you sure you want to cancel this order? This action cannot be undone.',
339+
],
340+
],
341+
'invoice' => [
342+
'navigation_label' => 'Sales Invoices',
343+
'model_label' => 'Invoice',
344+
'plural_model_label' => 'Invoices',
345+
'sections' => [
346+
'basic' => 'Basic Information',
347+
'lines' => 'Invoice Lines',
348+
'totals' => 'Totals',
349+
'notes' => 'Notes',
350+
],
351+
'fields' => [
352+
'doc_num' => 'Invoice No',
353+
'card_code' => 'Customer',
354+
'card_name' => 'Customer Name',
355+
'doc_date' => 'Invoice Date',
356+
'doc_due_date' => 'Due Date',
357+
'num_at_card' => 'Customer Ref. No',
358+
'document_lines' => 'Invoice Lines',
359+
'item_code' => 'Item',
360+
'quantity' => 'Quantity',
361+
'price' => 'Price',
362+
'warehouse_code' => 'Warehouse',
363+
'discount_percent' => 'Discount %',
364+
'vat_sum' => 'Tax Total',
365+
'doc_total' => 'Total',
366+
'paid_to_date' => 'Paid Amount',
367+
'balance' => 'Balance',
368+
'comments' => 'Comments',
369+
'status' => 'Status',
370+
],
371+
'filters' => [
372+
'status' => 'Status',
373+
'from' => 'From',
374+
'until' => 'Until',
375+
'has_balance' => 'Payment Status',
376+
'all' => 'All',
377+
'unpaid' => 'Unpaid',
378+
'paid' => 'Paid',
379+
],
380+
'actions' => [
381+
'cancel' => 'Cancel',
382+
'cancel_confirm_title' => 'Cancel Invoice',
383+
'cancel_confirm_description' => 'Are you sure you want to cancel this invoice? This action cannot be undone.',
384+
],
385+
],
220386
],
221387
];

0 commit comments

Comments
 (0)